JVMFileDocumentEmbeddingStorage
A file-system-based storage implementation for managing and embedding documents represented by file paths.
This class extends EmbeddingBasedDocumentStorage and is specialized for JVM-based systems where documents are represented as file paths (Path). It combines a DocumentEmbedder for embedding the file content into vectors and a JVMFileVectorStorage for managing the storage and retrieval of these embeddings along with their associated documents.
The primary responsibility of this class is to facilitate:
Storing and embedding documents housed in a file system using a specified DocumentEmbedder.
Ranking documents based on similarity to query embeddings.
Managing file-based vector storage via JVMFileVectorStorage.
Parameters
The embedder responsible for generating vector representations of file-based documents.
The root directory path used as the base for file-based vector storage.
Constructors
Creates an instance of JVMFileDocumentEmbeddingStorage.