TextFileDocumentEmbeddingStorage
open class TextFileDocumentEmbeddingStorage<Document, Path>(embedder: Embedder, documentProvider: DocumentProvider<Path, Document>, fs: FileSystemProvider.ReadWrite<Path>, root: Path) : FileDocumentEmbeddingStorage<Document, Path> (source)
A file-based VectorStorage implementation for text documents.
This class specializes in storing and ranking text documents in a file system using embeddings derived from their textual content.
Parameters
embedder
Converts text into vector embeddings and calculates similarity between embeddings.
documentProvider
Provider for reading/writing documents.
fs
Platform-specific file system provider for path manipulations.
root
Root directory where all vector storage will be located.
Type Parameters
Document
The type of document to be stored and processed.
Inheritors
Constructors
Link copied to clipboard
constructor(embedder: Embedder, documentProvider: DocumentProvider<Path, Document>, fs: FileSystemProvider.ReadWrite<Path>, root: Path)
Functions
Link copied to clipboard
Retrieves a flow of all documents stored in the system.
Link copied to clipboard
Link copied to clipboard
open suspend override fun search(request: SimilaritySearchRequest, namespace: String?): List<SearchResult<Document>>
Link copied to clipboard