chat_engine = index_ready.as_chat_engine(
verbose=True,
system_prompt=system_prompt,
condense_question_prompt=custom_prompt,
chat_history=history,
similarity_top_k=3,
)
response = chat_engine.chat(data["question"])
=== Calling Function ===
Calling function: query_engine_tool with args: {
"input": "my query text condensed"
}
Got output: Some text.
========================
=== Calling Function ===
Calling function: query_engine_tool with args: {
"input": "condensed question"
}
Got output: An answer for the condensed question.
========================