Pavan178 commited on
Commit
579fd0d
·
verified ·
1 Parent(s): 45bb9f0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -31,6 +31,7 @@ Enhanced Query Requirements:
31
  - Add specific context-driven details
32
  - Ensure precise information retrieval
33
  - Restructure for optimal comprehension
 
34
 
35
  Refined Query:"""
36
  )
@@ -64,13 +65,13 @@ class AdvancedPdfChatbot:
64
  self.chain = None
65
 
66
  self.qa_prompt = PromptTemplate(
67
- template="""You are an expert academic assistant analyzing a document.
68
 
69
  Context: {context}
70
  Question: {question}
71
 
72
  Provide a comprehensive, precise answer based strictly on the document's content.
73
- If the answer isn't directly available, explain why. Try to structure your response according to context such as paragraphs or bullet points, headlines and subtexts""",
74
  input_variables=["context", "question"]
75
  )
76
 
 
31
  - Add specific context-driven details
32
  - Ensure precise information retrieval
33
  - Restructure for optimal comprehension
34
+ - Use specific structure and the response be according to context such as paragraphs or bullet points, headlines and subtexts
35
 
36
  Refined Query:"""
37
  )
 
65
  self.chain = None
66
 
67
  self.qa_prompt = PromptTemplate(
68
+ template="""You are an expert academic assistant analyzing a document. Provide well structured response in Markdown
69
 
70
  Context: {context}
71
  Question: {question}
72
 
73
  Provide a comprehensive, precise answer based strictly on the document's content.
74
+ If the answer isn't directly available, explain why. """,
75
  input_variables=["context", "question"]
76
  )
77