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 months ago
0
Follow
is it possible to add system prompt for
is it possible to add system prompt for
Inactive
0
Follow
m
mai
6 months ago
ยท
is it possible to add system prompt for CondenseQuestionChatEngine?
L
m
10 comments
Share
Open in Discord
L
Logan M
6 months ago
Theres two LLM calls
One to condense the question
The other to run the query engine
So you'd need to modify the prompt template for one (or both) of those
m
mai
6 months ago
i suppose condense_question_prompt is for the first
m
mai
6 months ago
how do i modify the query engine's?
L
Logan M
6 months ago
the same way you'd normally modify the query engine prompts -- passing in the text_qa_template
m
mai
6 months ago
right, i got it thank you. btw do you know why am i getting this error?
pydantic.v1.error_wrappers.ValidationError: 1 validation error for LLMPredictStartEvent
template
value is not a valid dict (type=type_error.dict)
occurs when i do a follow up stream_chat after the first response
m
mai
6 months ago
update: this is fixed after i removed the condense_question_prompt
L
Logan M
6 months ago
mmm have not seen that. How did you customize the prompt?
m
mai
6 months ago
i didnt customize
m
mai
6 months ago
i just copied the default from the documentations
L
Logan M
6 months ago
some sample code that you used would be helpful
Add a reply
Sign up and join the conversation on Discord
Join on Discord