mirror of
https://github.com/StanGirard/quivr.git
synced 2024-12-18 16:11:45 +03:00
c21797905d
* fix(backend): temperature signature * feat(qa): fixed temperature question generator and added doc * feat(prompt): added instructions to standalone question * fix(brains-rights): fixed function missing
10 lines
426 B
Python
10 lines
426 B
Python
from langchain.prompts.prompt import PromptTemplate
|
|
|
|
_template = """Given the following conversation and a follow up question, rephrase the follow up question to be a standalone question, in its original language. include the follow up instructions in the standalone question.
|
|
|
|
Chat History:
|
|
{chat_history}
|
|
Follow Up Input: {question}
|
|
Standalone question:"""
|
|
CONDENSE_QUESTION_PROMPT = PromptTemplate.from_template(_template)
|