mirror of
https://github.com/hwchase17/langchain
synced 2024-11-08 07:10:35 +00:00
3e0cd11f51
Co-authored-by: Tomaz Bratanic <tomazbratanic@Tomazs-MacBook-Pro.local> Co-authored-by: Erick Friis <erick@langchain.dev>
18 lines
635 B
Python
18 lines
635 B
Python
from neo4j_semantic_layer import agent_executor
|
|
|
|
if __name__ == "__main__":
|
|
original_query = "What do you know about person John?"
|
|
followup_query = "John Travolta"
|
|
chat_history = [
|
|
(
|
|
"What do you know about person John?",
|
|
"I found multiple people named John. Could you please specify "
|
|
"which one you are interested in? Here are some options:"
|
|
"\n\n1. John Travolta\n2. John McDonough",
|
|
)
|
|
]
|
|
print(agent_executor.invoke({"input": original_query}))
|
|
print(
|
|
agent_executor.invoke({"input": followup_query, "chat_history": chat_history})
|
|
)
|