quivr/backend/llm/LANGUAGE_PROMPT.py

12 lines
414 B
Python
Raw Normal View History

from langchain.prompts.prompt import PromptTemplate
2023-06-13 15:43:53 +03:00
prompt_template = """Use the following pieces of context to answer the question in the language of the question. If you don't know the answer, just say that you don't know, don't try to make up an answer.
{context}
Question: {question}
Helpful Answer:"""
QA_PROMPT = PromptTemplate(
template=prompt_template, input_variables=["context", "question"]
)