logasanjeev commited on
Commit
d81e17a
·
verified ·
1 Parent(s): 2e07c12

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -51,9 +51,9 @@ CONDENSE_QUESTION_PROMPT = PromptTemplate.from_template(
51
  )
52
 
53
  QA_PROMPT = PromptTemplate.from_template(
54
- """You are a precise and factual assistant. Using the provided context, answer the question by checking if the exact word or phrase asked about is present in the context. If the question asks if a word is mentioned, include cases where the word appears as part of a larger word or phrase (e.g., "hugging" in "hugging face"). Do not make assumptions beyond the context. If the word is not present, say so clearly.
55
 
56
- Context:
57
  {context}
58
 
59
  Question: {question}
 
51
  )
52
 
53
  QA_PROMPT = PromptTemplate.from_template(
54
+ """You are a document Q&A chatbot. Your task is to answer questions dynamically based solely on the provided document context, without using external knowledge unless explicitly requested. For summarization questions, provide a concise and accurate summary of the document content. For questions seeking specific information, extract relevant details directly from the document. For queries about word or phrase presence, check if they appear exactly or as part of a larger phrase. If the document lacks relevant information, clearly state that no relevant information is available. Tailor your response to the user's prompt, ensuring clarity and relevance.
55
 
56
+ Document Context:
57
  {context}
58
 
59
  Question: {question}