Rivalcoder commited on
Commit
c718d6e
·
1 Parent(s): 71471c3

[Edit]Udpate of Urls

Browse files
Files changed (1) hide show
  1. llm.py +10 -18
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
- "\u0d1f\u0d4d\u0d30\u0d02\u0d2a\u0d4d \u0d0f\u0d24\u0d4d \u0d26\u0d3f\u0d35\u0d38\u0d2e\u0d3e\u0d23\u0d4d 100% \u0d36\u0d41\u0d7d\u0d15\u0d02 \u0d2a\u0d4d\u0d30\u0d16\u0d4d\u0d2f\u0d3e\u0d2a\u0d3f\u0d1a\u0d4d\u0d1a\u0d24\u0d4d?",
112
- "\u0d0f\u0d24\u0d4d \u0d09\u0d24\u0d4d\u0d2a\u0d28\u0d4d\u0d28\u0d19\u0d4d\u0d19\u0d7e\u0d15\u0d4d\u0d15\u0d4d \u0d08 100% \u0d07\u0d31\u0d15\u0d4d\u0d15\u0d41\u0d2e\u0d24\u0d3f \u0d36\u0d41\u0d7d\u0d15\u0d02 \u0d2c\u0d3e\u0d27\u0d15\u0d2e\u0d3e\u0d23\u0d4d?",
113
- "\u0d0f\u0d24\u0d4d \u0d38\u0d3e\u0d39\u0d1a\u0d30\u0d4d\u0d2f\u0d24\u0d4d\u0d24\u0d3f\u0d7d \u0d12\u0d30\u0d41 \u0d15\u0d2e\u0d4d\u0d2a\u0d28\u0d3f\u0d2f\u0d4d\u0d15\u0d4d\u0d15\u0d4d \u0d08 100% \u0d36\u0d41\u0d7d\u0d15\u0d24\u0d4d\u0d24\u0d3f\u0d7d \u0d28\u0d3f\u0d28\u0d4d\u0d28\u0d41\u0d02 \u0d28\u0d3f\u0d28\u0d4d\u0d28\u0d41\u0d02 \u0d12\u0d34\u0d3f\u0d15\u0d46\u0d2f\u0d3e\u0d15\u0d4d\u0d15\u0d41\u0d02?",
114
- "What was Apple\u2019s investment commitment and what was its objective?",
115
- "What impact will this new policy have on consumers and the global market?"
116
-
117
-
118
  "answers":
119
- "2025 ഓഗസ്റ്റ് 6-നാണ് യുഎസ് പ്രസിഡന്റ് ഡോണൾഡ് ട്രംപ് 100% ഇറക്കുമതി ശുൽക്കം പ്രഖ്യാപിച്ചത്.",
120
- "വിദേശത്ത് നിർമ്മിച്ച കമ്പ്യൂട്ടർ ചിപ്പുകൾക്കും സെമികണ്ടക്ടറുകൾക്കുമാണ് ഈ 100% ഇറക്കുമതി ശുൽക്കം ബാധകമായിട്ടുള്ളത്.",
121
- "യുഎസിൽ നിർമ്മിക്കാൻ പ്രതിജ്ഞാബദ്ധരായ കമ്പനികൾക്ക് 100% ശുൽക്കത്തിൽ നിന്നും ഒഴികെയാക്കാൻ സാധിക്കും.",
122
- "Apple $600 billion investment commitment was announced. The objective was to boost American domestic manufacturing and reduce foreign dependency.",
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