)
chain.run("Who played in The Godfather II?")
> Entering new NebulaGraphQAChain chain...
Generated nGQL:
MATCH (p:`person`)-[:acted_in]->(m:`movie`) WHERE m.`movie`.`name` == 'The Godfather II'
RETURN p.`person`.`name`
Full Context:
{'p.person.name': ['Al Pacino']}
> Finished chain.
'Al Pacino played in The Godfather II.'
previous
GraphCypherQAChain
next
BashChain
 Contents
  
Refresh graph schema information
Querying the graph
By Harrison Chase
    
      © Copyright 2023, Harrison Chase.
      
  Last updated on Jun 16, 2023.
rtdocs_stable/api.python.langchain.com/en/stable/modules/chains/examples/graph_nebula_qa.html