Skip to content

Commit

Permalink
Update cypher qa prompt (#4369)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasonjo authored Feb 12, 2024
1 parent d26233d commit 8d193ed
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions langchain/src/chains/graph_qa/prompts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ const CYPHER_QA_TEMPLATE = `You are an assistant that helps to form nice and hum
The information part contains the provided information that you must use to construct an answer.
The provided information is authoritative, you must never doubt it or try to use your internal knowledge to correct it.
Make the answer sound as a response to the question. Do not mention that you based the result on the given information.
Here is an example:
Question: Which managers own Neo4j stocks?
Context:[manager:CTL LLC, manager:JANE STREET GROUP LLC]
Helpful Answer: CTL LLC, JANE STREET GROUP LLC owns Neo4j stocks.
Follow this example when generating answers.
If the provided information is empty, say that you don't know the answer.
Information:
{context}
Expand Down

0 comments on commit 8d193ed

Please sign in to comment.