There was an error while loading. Please reload this page.
1 parent 6371927 commit a32586fCopy full SHA for a32586f
libs/langchain-community/src/vectorstores/neo4j_vector.ts
@@ -637,6 +637,15 @@ export class Neo4jVectorStore extends VectorStore {
637
return results.map((result) => result[0]);
638
}
639
640
+ async similaritySearchWithScore(
641
+ query: string,
642
+ k = 4,
643
+ params: Record<string, any> = {}
644
+ ): Promise<[Document, number][]> {
645
+ const embedding = await this.embeddings.embedQuery(query);
646
+ return this.similaritySearchVectorWithScore(embedding, k, query, params);
647
+ }
648
+
649
async similaritySearchVectorWithScore(
650
vector: number[],
651
k: number,
0 commit comments