Package-level declarations
Types
Represents a generic storage system for documents, without the need for additional metadata or payloads. This interface provides basic document storage operations such as storing, retrieving, and deleting documents.
Defines a generic interface for document storage systems, supporting storing, retrieving, updating, and deleting documents. Each document can be associated with metadata or additional payload.
Represents a document accompanied by its associated payload.
Represents a document ranked by its similarity score.
Represents a specialization of the DocumentStorage interface that handles ranking documents based on their relevance to a given query. The ranking process returns documents along with a similarity score, enabling the filtering and sorting of documents by relevance.
Functions
Retrieves the most relevant documents matching the provided query, ranked by their similarity scores in descending order. Only documents with a similarity score greater than or equal to the specified similarity threshold are included, and the result set is limited to the specified count.