You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add an node label to filter on for external retriever base class and WeaviateRetriever
* Add node_label_neo4j parameter to Qdrant and Pinecone retrievers
* Update doc + do not force escaping the node label to allow node label expression
* Update unit test
Copy file name to clipboardExpand all lines: src/neo4j_graphrag/retrievers/external/pinecone/pinecone.py
+7-1Lines changed: 7 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -83,6 +83,7 @@ class PineconeNeo4jRetriever(ExternalRetriever):
83
83
retrieval_query (str): Cypher query that gets appended.
84
84
result_formatter (Optional[Callable[[neo4j.Record], RetrieverResultItem]]): Function to transform a neo4j.Record to a RetrieverResultItem.
85
85
neo4j_database (Optional[str]): The name of the Neo4j database. If not provided, this defaults to the server's default database ("neo4j" by default) (`see reference to documentation <https://neo4j.com/docs/operations-manual/current/database-administration/#manage-databases-default>`_).
86
+
node_label_neo4j (Optional[str]): The label of the Neo4j node to retrieve. This label must be properly escaped if needed, eg "`Label with spaces`".
86
87
87
88
Raises:
88
89
RetrieverInitializationError: If validation of the input arguments fail.
Copy file name to clipboardExpand all lines: src/neo4j_graphrag/retrievers/external/qdrant/qdrant.py
+7-1Lines changed: 7 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -79,6 +79,7 @@ class QdrantNeo4jRetriever(ExternalRetriever):
79
79
return_properties (Optional[list[str]]): List of node properties to return.
80
80
result_formatter (Optional[Callable[[neo4j.Record], RetrieverResultItem]]): Function to transform a neo4j.Record to a RetrieverResultItem.
81
81
neo4j_database (Optional[str]): The name of the Neo4j database. If not provided, this defaults to the server's default database ("neo4j" by default) (`see reference to documentation <https://neo4j.com/docs/operations-manual/current/database-administration/#manage-databases-default>`_).
82
+
node_label_neo4j (Optional[str]): The label of the Neo4j node to retrieve. This label must be properly escaped if needed, eg "`Label with spaces`".
82
83
83
84
Raises:
84
85
RetrieverInitializationError: If validation of the input arguments fail.
Copy file name to clipboardExpand all lines: src/neo4j_graphrag/retrievers/external/weaviate/weaviate.py
+10-1Lines changed: 10 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -81,6 +81,7 @@ class WeaviateNeo4jRetriever(ExternalRetriever):
81
81
return_properties (Optional[list[str]]): List of node properties to return.
82
82
result_formatter (Optional[Callable[[neo4j.Record], RetrieverResultItem]]): Function to transform a neo4j.Record to a RetrieverResultItem.
83
83
neo4j_database (Optional[str]): The name of the Neo4j database. If not provided, this defaults to the server's default database ("neo4j" by default) (`see reference to documentation <https://neo4j.com/docs/operations-manual/current/database-administration/#manage-databases-default>`_).
84
+
node_label_neo4j (Optional[str]): The label of the Neo4j node to retrieve. This label must be properly escaped if needed, eg "`Label with spaces`".
84
85
85
86
Raises:
86
87
RetrieverInitializationError: If validation of the input arguments fail.
0 commit comments