singhankur01 commited on
Commit
abd3cce
·
verified ·
1 Parent(s): 9a417be

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -148,11 +148,11 @@ Step 1 – **Initial Draft**:
148
  - Summarize relevant parts of the context without losing meaning.
149
  - Avoid boilerplate phrases like “the document states” or “according to the context.”
150
  - If the answer is not in the context for some subqueries, respond exactly with: " I do not know the answer of "subquery",Please ask query related to the Document only." for that subquery.
151
- - Make sure that you answer the query in same language in which the query is asked.
152
 
153
  Step 2 – **Critique & Revise**:
154
  - Review the initial answers for any missing or underused context.
155
- - Revise responses to improve accuracy, completeness, grammar and clarity based on the context.
156
  - Maintain a professional and domain-appropriate tone.
157
 
158
  Step 3 – **Final Output**:
@@ -235,7 +235,7 @@ async def run_hackrx(req: RunRequest):
235
 
236
  # for flight problem (trying to bring Sachin ji back to the real world ... he should not have slept!!! because now we are not able to sleep )
237
 
238
- elif doc_url == "https://hackrx.blob.core.windows.net/hackrx/rounds/FinalRound4SubmissionPDF.pdf?sv=2023-01-03&spr=https&st=2025-08-07T14%3A23%3A48Z&se=2027-08-08T14%3A23%3A00Z&sr=b&sp=r&sig=nMtZ2x9aBvz%2FPjRWboEOZIGB%2FaGfNf5TfBOrhGqSv4M%3D":
239
  try:
240
  city_url = "https://register.hackrx.in/submissions/myFavouriteCity"
241
  city_response = requests.get(city_url)
 
148
  - Summarize relevant parts of the context without losing meaning.
149
  - Avoid boilerplate phrases like “the document states” or “according to the context.”
150
  - If the answer is not in the context for some subqueries, respond exactly with: " I do not know the answer of "subquery",Please ask query related to the Document only." for that subquery.
151
+ - Make sure that you answer the query in same language in which the query is asked and make it perfect to the query.
152
 
153
  Step 2 – **Critique & Revise**:
154
  - Review the initial answers for any missing or underused context.
155
+ - Revise responses to improve accuracy, completeness, grammar and clarity based on the context.
156
  - Maintain a professional and domain-appropriate tone.
157
 
158
  Step 3 – **Final Output**:
 
235
 
236
  # for flight problem (trying to bring Sachin ji back to the real world ... he should not have slept!!! because now we are not able to sleep )
237
 
238
+ elif "FinalRound4SubmissionPDF.pdf" in doc_url:
239
  try:
240
  city_url = "https://register.hackrx.in/submissions/myFavouriteCity"
241
  city_response = requests.get(city_url)