InMemoryVectorStorage
A concrete implementation of VectorStorage that stores documents and their associated vector payloads 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.
Parameters
Document
The type of document managed by this storage.
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open suspend override fun readWithPayload(documentId: String): DocumentWithPayload<Document, Vector>?