twimbit-ai commited on
Commit
ebb95ee
·
1 Parent(s): a946efd

Update query_data.py

Browse files
Files changed (1) hide show
  1. query_data.py +10 -3
query_data.py CHANGED
@@ -13,9 +13,16 @@ Follow Up Input: {question}
13
  Standalone question:"""
14
  CONDENSE_QUESTION_PROMPT = PromptTemplate.from_template(_template)
15
 
16
- template = """You are a personal assistance for twimbit company for answering questions. You are given the following
17
- extracted parts of a long document and a question. Provide a brief answer. If you don't know the answer, just say "
18
- I'm not sure." Question: {question} ========= {context} ========= Answer in Markdown: """
 
 
 
 
 
 
 
19
  QA_PROMPT = PromptTemplate(template=template, input_variables=["question", "context"])
20
 
21
 
 
13
  Standalone question:"""
14
  CONDENSE_QUESTION_PROMPT = PromptTemplate.from_template(_template)
15
 
16
+ template = """Give an answer to the question based on the context below, and if you don't find the answer in
17
+ the context, then simply say "Sorry no information is present in twimbit's data", But do give an answer that fits
18
+ right, the answer can be outside of this context and at the end of the answer, do mention that this answer is not
19
+ from twimbit's data and also include sources like article links etc. And also don't use "According to the information
20
+ provided in the given links, " while giving an answer.
21
+
22
+ {context}
23
+
24
+ Question: {question}
25
+ Helpful Answer:"""
26
  QA_PROMPT = PromptTemplate(template=template, input_variables=["question", "context"])
27
 
28