InMemoryDocumentEmbeddingStorage
open class InMemoryDocumentEmbeddingStorage<Document>(embedder: DocumentEmbedder<Document>) : EmbeddingBasedDocumentStorage<Document> (source)
An in-memory implementation of document embedding storage.
This class facilitates the storage and retrieval of documents and their corresponding vector embeddings entirely in memory. It utilizes an InMemoryVectorStorage for managing the document embeddings and extends EmbeddingBasedDocumentStorage, inheriting capabilities such as ranking, storing, and deleting documents based on their embeddings.
Parameters
Document
The type of the documents being stored.
embedder
A mechanism responsible for embedding the documents into vector representations.