Find answers from the community

s
F
Y
a
P
Updated last month

```py

Plain Text
custom_qa_prompt = (
    "We have provided context information below. \n"
    "---------------------\n"
    "{context_str}"
    "\n---------------------\n"
    "Given this information, please answer the question: {query_str}\n"
)
custom_qa_template = PromptTemplate(custom_qa_prompt)
response_synthesizer = get_response_synthesizer(
    llm=LLM_INSTANCES[model], text_qa_template=custom_qa_template
)


Is this the correct way to pass the response synth a template?
L
m
7 comments
weird im getting errors when making requests ujsing this response synthesizer in a query engine im using as a tool
what kinds of errors tho
IM lookin it may have been a weird one
Its fixed, i think its beause my chat history was different from the prompt when i hot reloaded
a full restart seems to be working
Add a reply
Sign up and join the conversation on Discord