FileDocumentEmbeddingStorage
open class FileDocumentEmbeddingStorage<Document, Path>(embedder: DocumentEmbedder<Document>, documentProvider: DocumentProvider<Path, Document>, fs: FileSystemProvider.ReadWrite<Path>, root: Path) : EmbeddingBasedDocumentStorage<Document> (source)
A file-based implementation of document embedding storage.
This class facilitates the storage and retrieval of documents and their corresponding vector embeddings in a file system. It utilizes a FileVectorStorage 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.
fs
Platform-specific file system provider for path manipulations
root
Root directory where all vector storage will be located
Inheritors
Constructors
Link copied to clipboard
constructor(embedder: DocumentEmbedder<Document>, documentProvider: DocumentProvider<Path, Document>, fs: FileSystemProvider.ReadWrite<Path>, root: Path)