JVMFileDocumentEmbeddingStorage
A file-system-based VectorStorage implementation for managing and embedding documents represented by file paths.
This class extends EmbeddingStorage and is specialized for JVM-based systems where documents are represented as file paths (java.nio.file.Path). It combines a DocumentEmbedder for embedding the file content into vectors and a ai.koog.rag.vector.backend.JVMFileVectorStorageBackend for managing the storage and retrieval of these embeddings along with their associated documents.
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.
Functions
Retrieves a flow of all documents stored in the system.