JVMFileEmbeddingStorage
class JVMFileEmbeddingStorage(embedder: Embedder, root: Path) : TextFileDocumentEmbeddingStorage<Path, Path> (source)
A JVM-specific implementation of TextFileDocumentEmbeddingStorage tailored for text document embedding and storage within a file system. This class utilizes a ai.koog.rag.base.files.JVMDocumentProvider to handle document reading and manages embeddings using a provided ai.koog.embeddings.base.Embedder.
Parameters
embedder
The embedding implementation used to generate and compare vector embeddings.
root
The root directory where the document storage system is initialized.
Constructors
Link copied to clipboard
Creates an instance of JVMFileEmbeddingStorage.
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<Path>>
Link copied to clipboard