Log in
Log into community
Find answers from the community
View all posts
Related posts
Did this answer your question?
😞
😐
😃
Powered by
Hall
Inactive
Updated 2 years ago
0
Follow
Yeah I see those but where do I plug
Yeah I see those but where do I plug
Inactive
0
Follow
n
nbulkz
2 years ago
·
Yeah I see those, but where do I plug them in like I would … summary_template=SUMMARY_PROMPT
d
n
L
11 comments
Share
Open in Discord
d
disiok
2 years ago
hey @nbulkz are you just trying to change the prompt for synthesizing the final response?
d
disiok
2 years ago
You can specify them when you call
index.as_query_engine(text_qa_template=....)
d
disiok
2 years ago
Here's the docs for it:
https://gpt-index.readthedocs.io/en/latest/how_to/customization/custom_prompts.html
d
disiok
2 years ago
sorry the docs might be a bit hidden
n
nbulkz
2 years ago
Ah thanks. I missed that somehow
d
disiok
2 years ago
no worries, let us know if you have more issues
n
nbulkz
2 years ago
I tried grepping for qa_template and it didn’t find it hmmm
n
nbulkz
2 years ago
:catshrug:
L
Logan M
2 years ago
It's passed as a kwarg, eventually it ends up here
https://github.com/jerryjliu/llama_index/blob/main/llama_index/query_engine/retriever_query_engine.py#L85
L
Logan M
2 years ago
But passing it into the query engine is the right place
L
Logan M
2 years ago
https://gpt-index.readthedocs.io/en/stable/how_to/customization/custom_prompts.html#example
Add a reply
Sign up and join the conversation on Discord
Join on Discord