ret = await agent.run( input="Tell me about the top-level assets and liabilities for Tesla in 2021, and compare it against those of Apple in 2021. Which company is doing better?" )
Running step prepare_chat_history Step prepare_chat_history produced event InputEvent Running step handle_llm_input Step handle_llm_input produced event ReportGenerationEvent Running step generate_report Step generate_report produced event StopEvent
SummaryIndex
mechansim for the agent tool.summary_index = SummaryIndex(nodes) summary_index.storage_context.persist(os.path.join(persist_dir, "summary_index")) summary_query_engine = summary_index.as_query_engine( llm=self.model, response_mode="tree_summarize", use_async=True, ) summary_tool = QueryEngineTool.from_defaults( name=f"summary_tool_{class_name}", query_engine=summary_query_engine, description=(f"Useful for summarization questions related to {class_name}"), )
vector_index
and the summary_index
on disk so I do not have to regenerate it. How do you recommend I do that.summary_index.summary=None
which tells me something is off. Is the summary text generated and stored somewhere by any chance?phoenix-arize
instrument. The folks at at phoenix are telling me to downgrade to llama-inde<=10.19.0
, that does not feel right. Can you see our conversation here? https://arize-ai.slack.com/archives/C04R3GXC8HK/p1713806586565339?thread_ts=1713530589.312499&cid=C04R3GXC8HKset_global_handler("arize_phoenix") query_engine = vector_index.as_query_engine( llm=llm, similarity_top_k=20, node_postprocessors=[reranker], refine_template=PromptTemplate(prompt_str), # text_qa_template=PromptTemplate(prompt_str), ) output = query_engine.query("my query")