singhankur01 commited on
Commit
7b17c7b
·
verified ·
1 Parent(s): 12cae28

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -148,7 +148,7 @@ 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 and make it perfect to the query.
152
 
153
  Step 2 – **Critique & Revise**:
154
  - Review the initial answers for any missing or underused context.
@@ -238,6 +238,8 @@ async def run_hackrx(req: RunRequest):
238
 
239
  elif "FinalRound4SubmissionPDF.pdf" in doc_url:
240
  print(doc_url)
 
 
241
  try:
242
  city_url = "https://register.hackrx.in/submissions/myFavouriteCity"
243
  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
+ - If the query is not in english language then respond excatly with: "I do not know this language , ask in English Only".
152
 
153
  Step 2 – **Critique & Revise**:
154
  - Review the initial answers for any missing or underused context.
 
238
 
239
  elif "FinalRound4SubmissionPDF.pdf" in doc_url:
240
  print(doc_url)
241
+ for q in req.questions:
242
+ print(q)
243
  try:
244
  city_url = "https://register.hackrx.in/submissions/myFavouriteCity"
245
  city_response = requests.get(city_url)