Skip to main content

search

//ellmental/com.theagilemonkeys.ellmental.semanticsearch/SemanticSearch/search

search

suspend fun search(text: String, itemsLimit: Int): SearchOutput

Performs a semantic search operation using the provided text as reference. It will look for texts stored in the VectorStore that are "semantically close" to the provided one and return a ranked list of results.

Return

A list of semantically similar texts ranked by semantic distance (the closest first).

Parameters

jvm

textThe text to be used as reference for semantic search.
itemsLimitThe maximum number of results to return.