Ask a question to get started
Enter to send•Shift+Enter new line
Performs a similarity search on the texts stored in the SingleStoreDB
similaritySearch( query: string, k: number, filter: Metadata, _callbacks: Callbacks ): Promise<DocumentInterface<Metadata>[]>
query
string
A string representing the query text.
k
number
The number of nearest neighbors to return. By default, it is 4.
filter
Metadata
Optional metadata to filter the texts by.
_callbacks
Callbacks
Callbacks object, not used in this implementation.