Skip to content
Discussion options

You must be logged in to vote

To ensure that the GraphCypherQAChain generates correct and consistent Cypher queries without requiring specific function names to be passed, you can utilize the cypher_query_corrector attribute. This attribute allows for optional Cypher validation, which can help in correcting and validating the generated Cypher queries.

Here is how you can set up the cypher_query_corrector:

  1. Set Up Cypher Query Corrector: Use the CypherQueryCorrector to validate and correct the generated Cypher queries.

  2. Update the Chain Configuration: Configure the GraphCypherQAChain to use the cypher_query_corrector.

Here is an example of how to implement this:

from langchain.chains.graph_qa.cypher_utils import C…

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
5 replies
@scodecs
Comment options

@dosubot
Comment options

Answer selected by scodecs
@scodecs
Comment options

@dosubot
Comment options

@nedRad88
Comment options

Comment options

You must be logged in to vote
1 reply
@dosubot
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants