Skip to content

Commit

Permalink
Update graph_db_custom_prompt.ts (#2920)
Browse files Browse the repository at this point in the history
To avoid missing parameter error as langchain-ai/langchain#11706, we should use double curly brackets in the cypher examples
  • Loading branch information
tomasonjo authored Oct 17, 2023
1 parent 737d986 commit 15b2096
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/src/chains/graph_db_custom_prompt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Do not respond to any questions that might ask anything else than for you to con
Do not include any text except the generated Cypher statement.
Follow these Cypher example when Generating Cypher statements:
# How many actors played in Top Gun?
MATCH (m:Movie {title:"Top Gun"})<-[:ACTED_IN]-()
MATCH (m:Movie {{title:"Top Gun"}})<-[:ACTED_IN]-()
RETURN count(*) AS result
The question is:
Expand Down

0 comments on commit 15b2096

Please sign in to comment.