Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
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}
|