Method that performs a similarity search in the Pinecone database and returns the results along with their scores.
similaritySearchVectorWithScore(
query: number[],
k: number,
filter: PineconeMetadata
): Promise<[Document<Record<string, any>>, number][]>| Name | Type | Description |
|---|---|---|
query* | number[] | Query vector for the similarity search. |
k* | number | Number of top results to return. |
filter | PineconeMetadata | Optional filter to apply to the search. |