langchain/templates/neo4j-advanced-rag/main.py
Tomaz Bratanic 0dbdb8498a
Neo4j Advanced RAG template (#12794)
Todo:

- [x] Docs
2023-11-03 13:22:55 -07:00

11 lines
278 B
Python

from neo4j_advanced_rag.chain import chain
if __name__ == "__main__":
original_query = "What is the plot of the Dune?"
print(
chain.invoke(
{"question": original_query},
{"configurable": {"strategy": "parent_document"}},
)
)