VectorStorageBackend
Low-level storage interface for documents and their pre-computed vector embeddings.
Implementations handle only persistence — no embedding logic. The embedding step is handled by ai.koog.rag.vector.storage.EmbeddingStorage which composes an embedder with a VectorStorageBackend.
Type Parameters
Document
The type of the document being stored.
Inheritors
Functions
Link copied to clipboard
Retrieves a flow of all documents.
Link copied to clipboard
Retrieves a flow of all documents with their vector embeddings.
Link copied to clipboard
Reads a document along with its vector embedding by document ID.
Link copied to clipboard
Stores a document along with its pre-computed vector embedding.
Updates a document along with its pre-computed vector embedding under the specified ID. Only updates if a document with the given ID already exists.