EmbeddingBasedDocumentStorage
open class EmbeddingBasedDocumentStorage<Document>(embedder: DocumentEmbedder<Document>, storage: VectorStorage<Document>) : RankedDocumentStorage<Document> (source)
A document storage implementation that utilizes embeddings for document ranking and retrieval. This class combines a document embedder for generating vector representations and a storage mechanism capable of associating documents with their respective embeddings. It provides ranking capabilities by measuring similarity between query embeddings and stored document embeddings.
Parameters
Document
The type of the document being stored and ranked.