Find answers from the community

T
TomPro
Offline, last seen 3 months ago
Joined September 25, 2024
Sorry to bother you.... I feel like idiot, but I am close to finish what I want and this is so sad

This is a missing part:

from llama_index import QuestionAnswerPrompt, RefinePrompt
QA_PROMPT_TMPL = (
"We have provided context information below. \n"
"---------------------\n"
"{context_str}"
"\n---------------------\n"
"Given this information, please answer the question: {query_str}\n"
"If the context isn't useful, use general knowleadge."
)
QA_PROMPT = QuestionAnswerPrompt(QA_PROMPT_TMPL)
35 comments
L
L
T