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