Files
langchain-python/langchain/chains
Tomaz Bratanic fd866d1801 Update Cypher QA prompt (#5173)
# Improve Cypher QA prompt

The current QA prompt is optimized for networkX answer generation, which
returns all the possible triples.
However, Cypher search is a bit more focused and doesn't necessary
return all the context information.
Due to that reason, the model sometimes refuses to generate an answer
even though the information is provided:

![Screenshot from 2023-05-24
08-36-23](https://github.com/hwchase17/langchain/assets/19948365/351cf9c1-2567-447c-91fd-284ae3fa1ccf)


To fix this issue, I have updated the prompt. Interestingly, I tried
many variations with less instructions and they didn't work properly.
However, the current fix works nicely.
![Screenshot from 2023-05-24
08-37-25](https://github.com/hwchase17/langchain/assets/19948365/fc830603-e6ec-4a23-8a86-eaf572996014)
2023-05-24 08:31:30 -07:00
..
2023-05-11 01:27:58 -07:00
2023-05-03 22:02:55 -07:00
2023-05-13 09:28:28 -07:00
2023-05-24 08:31:30 -07:00
2023-04-30 11:14:09 -07:00
2023-05-13 21:47:01 -07:00
2023-05-22 07:31:48 -07:00
2023-04-30 11:14:09 -07:00