Hello, I'm new to LlamaIndex and I'm trying to use prompt template. what I'm doing wrong? because I get only bad answers 😦
template = (
"We have provided context information below. \n"
"---------------------\n"
"{context_str}"
"\n---------------------\n"
"Given this information, please answer the question: {query_str}\n"
)
custom_qa_prompt = PromptTemplate(template)
query_engine = index.as_query_engine(
service_context=service_context,
similarity_top_k=similarity_top_k,
text_qa_template=custom_qa_prompt,
verbose=True
)