neo4j-labs / neodash

NeoDash - a Dashboard Builder for Neo4j
https://neo4j.com/labs/neodash/
Apache License 2.0
424 stars 143 forks source link

correct text to cypher generated but getting error #969

Open ssfd7 opened 6 days ago

ssfd7 commented 6 days ago

Getting the following error: image

When pasting into the neo4j browser query works fine. Why?

nielsdejong commented 1 day ago

Hi @ssfd7 , it seems like here the LLM is not obeying the prompt to generate Cypher only (it's generating ``` characters around it). We can probably fix this by tweaking the prompt to use the updated one in the LangChain library: https://api.python.langchain.com/en/latest/_modules/langchain_experimental/graph_transformers/llm.html

CC @alfredorubin96