Find answers from the community

Updated 3 months ago

is it possible to add system prompt for

is it possible to add system prompt for CondenseQuestionChatEngine?
L
m
10 comments
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
i suppose condense_question_prompt is for the first
how do i modify the query engine's?
the same way you'd normally modify the query engine prompts -- passing in the text_qa_template
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
update: this is fixed after i removed the condense_question_prompt
mmm have not seen that. How did you customize the prompt?
i didnt customize
i just copied the default from the documentations
some sample code that you used would be helpful
Add a reply
Sign up and join the conversation on Discord