VectorStorage

Interface for a vector storage that combines document ingestion and retrieval.

This is the primary user-facing abstraction for working with vector-based document storage. Implementations handle embedding documents into vectors and storing them for similarity-based retrieval.

Type Parameters

Document

The type representing the document being stored.

Request

The type of search requests accepted by this storage.

Inheritors

Functions

Link copied to clipboard
abstract suspend fun add(documents: List<Document>, namespace: String?): List<String>
Link copied to clipboard
abstract suspend fun delete(ids: List<String>, namespace: String?): List<String>
Link copied to clipboard
abstract suspend fun get(ids: List<String>, namespace: String?): List<Document>
Link copied to clipboard
Link copied to clipboard
abstract suspend fun search(request: Request, namespace: String?): List<SearchResult<Document>>
Link copied to clipboard
abstract suspend fun update(documents: Map<String, Document>, namespace: String?): List<String>