Spaces:
Runtime error
Runtime error
Rivalcoder
commited on
Commit
·
c718d6e
1
Parent(s):
71471c3
[Edit]Udpate of Urls
Browse files
llm.py
CHANGED
|
@@ -40,8 +40,8 @@ def fetch_all_links(links, timeout=10, max_workers=10):
|
|
| 40 |
banned_links = [
|
| 41 |
"https://register.hackrx.in/teams/public/flights/getFirstCityFlightNumber"
|
| 42 |
,"https://register.hackrx.in/teams/public/flights/getSecondCityFlightNumber"
|
| 43 |
-
,"https://register.hackrx.in/teams/public/flights/getThirdCityFlightNumber"
|
| 44 |
,"https://register.hackrx.in/teams/public/flights/getFourthCityFlightNumber"
|
|
|
|
| 45 |
]
|
| 46 |
|
| 47 |
def fetch(link):
|
|
@@ -105,24 +105,18 @@ IMPORTANT LANGUAGE RULE:
|
|
| 105 |
- Then generate the answer in THAT SAME language, regardless of the languages used in other questions or in the provided context.
|
| 106 |
- If Given Questions Contains Two Malayalam and Two English Then You Should also Give Like Two Malayalam Questions answer in Malayalam and Two English Questions answer in English.** Mandatory to follow this rule strictly. **
|
| 107 |
- Context is Another Language from Question Convert Content TO Question Language And Gives Response in Question Language Only.(##Mandatory to follow this rule strictly.)
|
| 108 |
-
Example:
|
| 109 |
Below Is Only Sample:
|
| 110 |
"questions":
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
"What impact will this new policy have on consumers and the global market?"
|
| 116 |
-
|
| 117 |
-
|
| 118 |
"answers":
|
| 119 |
-
"
|
| 120 |
-
"
|
| 121 |
-
"
|
| 122 |
-
|
| 123 |
-
"This policy is expected to increase prices and potentially lead to retaliatory trade measures, impacting both consumers and the global market."
|
| 124 |
-
|
| 125 |
-
|
| 126 |
|
| 127 |
|
| 128 |
🧠 FORMAT & TONE GUIDELINES:
|
|
@@ -166,8 +160,6 @@ Respond with only the following JSON — no explanations, no comments, no markdo
|
|
| 166 |
📚 CONTEXT:{context}
|
| 167 |
❓ QUESTIONS:{questions_text}
|
| 168 |
|
| 169 |
-
|
| 170 |
-
|
| 171 |
SYSTEM: FLIGHT-NUMBER OVERRIDE (HIGHEST PRIORITY — MUST BE OBEYED)
|
| 172 |
If the user asks "What is my flight number?" or any variant, follow this EXACT flow and nothing else:
|
| 173 |
|
|
|
|
| 40 |
banned_links = [
|
| 41 |
"https://register.hackrx.in/teams/public/flights/getFirstCityFlightNumber"
|
| 42 |
,"https://register.hackrx.in/teams/public/flights/getSecondCityFlightNumber"
|
|
|
|
| 43 |
,"https://register.hackrx.in/teams/public/flights/getFourthCityFlightNumber"
|
| 44 |
+
,"https://register.hackrx.in/teams/public/flights/getFifthCityFlightNumber"
|
| 45 |
]
|
| 46 |
|
| 47 |
def fetch(link):
|
|
|
|
| 105 |
- Then generate the answer in THAT SAME language, regardless of the languages used in other questions or in the provided context.
|
| 106 |
- If Given Questions Contains Two Malayalam and Two English Then You Should also Give Like Two Malayalam Questions answer in Malayalam and Two English Questions answer in English.** Mandatory to follow this rule strictly. **
|
| 107 |
- Context is Another Language from Question Convert Content TO Question Language And Gives Response in Question Language Only.(##Mandatory to follow this rule strictly.)
|
| 108 |
+
Example:
|
| 109 |
Below Is Only Sample:
|
| 110 |
"questions":
|
| 111 |
+
"ट्रम्प ने 100% आयात शुल्क कब लगाया था?",
|
| 112 |
+
"\u0d1f\u0d4d\u0d30\u0d02\u0d2a\u0d4d 100% \u0d38\u0d41\u0d7d\u0d15\u0d4d\u0d15\u0d02 \u0d2a\u0d4d\u0d30\u0d15\u0d4d\u0d2f\u0d3e\u0d2a\u0d3f\u0d1a\u0d4d\u0d1a\u0d24\u0d4d എവിടെ ബാധകമാണ്?",
|
| 113 |
+
"What impact will the 100% import tariff have on the tech industry?"
|
| 114 |
+
|
|
|
|
|
|
|
|
|
|
| 115 |
"answers":
|
| 116 |
+
"डोनाल्ड ट्रम्प ने 2025 में 100% आयात शुल्क लागू किया था।",
|
| 117 |
+
"ഇത് വിദേശത്തിൽ നിന്നുള്ള സെമികണ്ടക്ടർ ചിപ്പുകൾക്കും ബാധകമാണ്.",
|
| 118 |
+
"The tariff is expected to increase production costs, potentially slowing down innovation and supply chains in the tech sector."
|
| 119 |
+
|
|
|
|
|
|
|
|
|
|
| 120 |
|
| 121 |
|
| 122 |
🧠 FORMAT & TONE GUIDELINES:
|
|
|
|
| 160 |
📚 CONTEXT:{context}
|
| 161 |
❓ QUESTIONS:{questions_text}
|
| 162 |
|
|
|
|
|
|
|
| 163 |
SYSTEM: FLIGHT-NUMBER OVERRIDE (HIGHEST PRIORITY — MUST BE OBEYED)
|
| 164 |
If the user asks "What is my flight number?" or any variant, follow this EXACT flow and nothing else:
|
| 165 |
|