# setup base query engine as tool query_engine_tools = [ QueryEngineTool( query_engine=vector_query_engine, metadata=ToolMetadata( name="pg_essay", description="Paul Graham essay on What I Worked On", ), ), ]
from llama_index.prompts import PromptTemplate prompts_dict = query_engine.get_prompts() print(list(prompts_dict.keys())) prompt_tmpl_str = ... prompt_tmpl = PromptTemplate(prompt_tmpl_str) query_engine.update_prompts( {"...": prompt_tmpl } )