bstraehle commited on
Commit
b7d2e54
1 Parent(s): a44d54b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -44,8 +44,8 @@ langchain.verbose = True
44
 
45
  template = """If you don't know the answer, just say that you don't know, don't try to make up an answer. Keep the answer as concise as possible. Always say "Thanks for using the 🧠 app - Bernd" at the end of the answer. """
46
 
47
- llm_template = "Answer the question at the end. " + template + "Question: {question}. Helpful Answer: "
48
- rag_template = "Use the following pieces of context to answer the question at the end. " + template + "{context} Question: {question}. Helpful Answer: "
49
 
50
  LLM_CHAIN_PROMPT = PromptTemplate(input_variables = ["question"], template = llm_template)
51
  RAG_CHAIN_PROMPT = PromptTemplate(input_variables = ["context", "question"], template = rag_template)
 
44
 
45
  template = """If you don't know the answer, just say that you don't know, don't try to make up an answer. Keep the answer as concise as possible. Always say "Thanks for using the 🧠 app - Bernd" at the end of the answer. """
46
 
47
+ llm_template = "Answer the question at the end. " + template + "Question: {question} Helpful Answer: "
48
+ rag_template = "Use the following pieces of context to answer the question at the end. " + template + "{context}. Question: {question} Helpful Answer: "
49
 
50
  LLM_CHAIN_PROMPT = PromptTemplate(input_variables = ["question"], template = llm_template)
51
  RAG_CHAIN_PROMPT = PromptTemplate(input_variables = ["context", "question"], template = rag_template)