2023-11-07 21:00:49 +00:00
|
|
|
from neo4j_vector_memory.chain import chain
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
user_id = "user_id_1"
|
|
|
|
session_id = "session_id_1"
|
|
|
|
original_query = "What is the plot of the Dune?"
|
2024-02-10 00:13:30 +00:00
|
|
|
print( # noqa: T201
|
2023-11-07 21:00:49 +00:00
|
|
|
chain.invoke(
|
|
|
|
{"question": original_query, "user_id": user_id, "session_id": session_id}
|
|
|
|
)
|
|
|
|
)
|
|
|
|
follow_up_query = "Tell me more about Leto"
|
2024-02-10 00:13:30 +00:00
|
|
|
print( # noqa: T201
|
2023-11-07 21:00:49 +00:00
|
|
|
chain.invoke(
|
|
|
|
{"question": follow_up_query, "user_id": user_id, "session_id": session_id}
|
|
|
|
)
|
|
|
|
)
|