VectorStorage

Interface for managing storage and retrieval of documents along with their vector embeddings. This interface extends the DocumentStorageWithPayload interface and specializes it by using vectors (embeddings) as the associated payload for documents.

Parameters

Document

The type representing the document being stored.

Inheritors

Functions

Link copied to clipboard
abstract fun allDocuments(): Flow<Document>
Link copied to clipboard
abstract suspend fun delete(documentId: String): Boolean
Link copied to clipboard
abstract suspend fun getPayload(documentId: String): Vector?
Link copied to clipboard
abstract suspend fun read(documentId: String): Document?
Link copied to clipboard
abstract suspend fun readWithPayload(documentId: String): DocumentWithPayload<Document, Vector>?
Link copied to clipboard
abstract suspend fun store(document: Document, data: Vector): String