InMemoryVectorStorageBackend
A concrete implementation of VectorStorageBackend that stores documents and their associated vector embeddings in memory.
Use this class to manage the storage and retrieval of documents and their vector-based data without relying on any external persistent storage. This is suitable for in-memory operations and testing environments where persistent storage is not required.
Type Parameters
The type of document managed by this storage.
Functions
Retrieves a flow of all documents.
Retrieves a flow of all documents with their vector embeddings.
Reads a document along with its vector embedding by document ID.
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.