You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
langchain/templates/neo4j-cypher-memory/main.py

24 lines
584 B
Python

from neo4j_cypher_memory.chain import chain
if __name__ == "__main__":
original_query = "Who played in Top Gun?"
print(
chain.invoke(
{
"question": original_query,
"user_id": "user_123",
"session_id": "session_1",
}
)
)
follow_up_query = "Did they play in any other movies?"
print(
chain.invoke(
{
"question": follow_up_query,
"user_id": "user_123",
"session_id": "session_1",
}
)
)