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)