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
Copy file name to clipboardExpand all lines: src/neo4j_graphrag/retrievers/text2cypher.py
+9-3Lines changed: 9 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -55,7 +55,7 @@ class Text2CypherRetriever(Retriever):
55
55
llm (neo4j_graphrag.generation.llm.LLMInterface): LLM object to generate the Cypher query.
56
56
neo4j_schema (Optional[str]): Neo4j schema used to generate the Cypher query.
57
57
examples (Optional[list[str], optional): Optional user input/query pairs for the LLM to use as examples.
58
-
custom_prompt (Optional[str]): Optional custom prompt to use instead of auto generated prompt. Will not include the neo4j_schema or examples args, if provided.
58
+
custom_prompt (Optional[str]): Optional custom prompt to use instead of auto generated prompt. Will include the neo4j_schema for schema and examples for examples prompt parameters, if they are provided.
59
59
60
60
Raises:
61
61
RetrieverInitializationError: If validation of the input arguments fail.
query_text (str): The natural language query used to search the Neo4j database.
127
-
prompt_params (Dict[str, Any]): additional values to inject into the custom prompt, if it is provided. Example: {'schema': 'this is the graph schema'}
133
+
prompt_params (Dict[str, Any]): additional values to inject into the custom prompt, if it is provided. If the schema or examples parameter is specified, it will overwrite the corresponding value passed during initialization. Example: {'schema': 'this is the graph schema'}
128
134
129
135
Raises:
130
136
SearchValidationError: If validation of the input arguments fail.
0 commit comments