Performs a similarity search on the vectors stored in the container. Routes to the appropriate search implementation based on the search type specified in the filter or the default search type configured for the vector store.
similaritySearchVectorWithScore(
queryVector: number[],
k: number = 4,
filter: AzureCosmosDBNoSQLFilterType | undefined = undefined
): Promise<[Document<Record<string, any>>, number][]>| Name | Type | Description |
|---|---|---|
queryVector* | number[] | Query vector for the similarity search. |
k | number | Default: 4Number of nearest neighbors to return. Defaults to 4. |
filter | AzureCosmosDBNoSQLFilterType | undefined | Default: undefinedOptional filter options for the documents. |