Find answers from the community

Updated 10 months ago

Uber/Lyft EBITDA/Financials etc. are

Uber/Lyft EBITDA/Financials etc. are completely outside the scope of the domain I'm querying.

And these examples are reasonably confusing the question process. So I see prompts being sent to the LLM about financials for MSFT/GOOG. This makes sense if those examples are sent, but counterproductive.

Is there any way to avoid this example stage, or provide an alternative set of examples?
W
j
2 comments
You can get all the prompts being used by your engine like this:

Plain Text
# Get all the prompts being used by your engine
prompts_dict = query_engine.get_prompts()
print(prompts_dict)

# Then you can update the prompt like this
query_engine.update_prompts(
    {"response_synthesizer:summary_template": new_summary_tmpl}
) 


Find more here: https://docs.llamaindex.ai/en/stable/examples/prompts/prompt_mixin.html
Thanks - let me look at this in more detail
Add a reply
Sign up and join the conversation on Discord