Find answers from the community

Updated 3 months ago

Thread

Hi, I'm sure somewhere in the documentation it says I can override the base summarization prompt of a DocumentSummaryIndex. Right now I'm not finding documentation & struggling to get it on my own. Any pointers? Thanks
W
f
n
3 comments
I think changing the summary_query here on this line should work for the Summarization Prompt:
https://github.com/run-llama/llama_index/blob/06b0e390fe1d2fab7c41ff63f6505810c15f8684/llama_index/indices/document_summary/base.py#L77

@fengxiaoyang1998 add you here as you had the same query as well
Thank you very much! Tested it. It works
Thank you @WhiteFang_Jr ! I eventually updated the prompt templates on the query engine level which I think is getting at the sam thing
Add a reply
Sign up and join the conversation on Discord