RetrievalStorage

fun interface RetrievalStorage(source)

An interface for retrieving (searching) memory records from a storage. An implementation of this interface is responsible for embedding.

All methods accept an optional namespace parameter that can override the default namespace (table name or collection name) configured in the constructor. When namespace is null, the implementation uses its default namespace.

Inheritors

Functions

Link copied to clipboard
abstract suspend fun search(request: SearchRequest, namespace: String?): List<SearchResult>

Performs a search and returns results with similarity scores.