Skip to content

how to pass allow_dangerous_requests in GraphCypherQAChain #28175

Answered by feijoes
awais019 asked this question in Q&A
Discussion options

You must be logged in to vote

@awais019 I think you are misunderstanding the class. You should use GraphCypherQAChain() when you need to explicitly create an instance of the class. However, if you just need to quickly set up the chain using an LLM, you can use the from_llm method, like this:

cypherChain = GraphCypherQAChain.from_llm(
    ChatOpenAI(temperature=0),
    verbose=True,
    allow_dangerous_requests=True,
    graph=kg
)

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by awais019
Comment options

You must be logged in to vote
1 reply
@shashanka50
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
3 participants