mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-02 11:39:18 +00:00
Update neo4j template readmes (#12540)
This commit is contained in:
@@ -8,6 +8,7 @@ from langchain.vectorstores import Neo4jVector
|
||||
|
||||
retrieval_query = """
|
||||
MATCH (node)-[:HAS_PARENT]->(parent)
|
||||
WITH parent, max(score) AS score // deduplicate parents
|
||||
RETURN parent.text AS text, score, {} AS metadata
|
||||
"""
|
||||
|
||||
|
Reference in New Issue
Block a user