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
text | The text to be used as reference for semantic search. |
itemsLimit | The maximum number of results to return. |