dolphinium commited on
Commit
6e9ade9
·
1 Parent(s): 7cbc718

remove confusing example on get analysis prompt

Browse files
Files changed (1) hide show
  1. llm_prompts.py +1 -31
llm_prompts.py CHANGED
@@ -165,36 +165,6 @@ This is the most critical part of your task. A bad choice leads to a useless, bo
165
  }}
166
  ```
167
 
168
- **User Query 3 (Insightful Breakdown):** "give me recent news on USA drug approvals"
169
- **Correct JSON Output 3:**
170
- ```json
171
- {{
172
- "reasoning": {{
173
- "dimension_choice": "The user filtered for 'drug approvals' (news_type) and 'USA' (territory_hq_s). Using 'news_type' as a dimension would be redundant. The next logical question is 'what diseases are these approvals for?'. Therefore, 'therapeutic_category' is the most insightful dimension.",
174
- "measure_choice": "The user asked for 'news', implying a count of events. 'count' is the appropriate measure."
175
- }},
176
- "analysis_dimension": "therapeutic_category",
177
- "analysis_measure": "count",
178
- "sort_field_for_examples": "date",
179
- "query_filter": "territory_hq_s:\"united states of america\" AND news_type:\"product approvals\" AND date_year:{datetime.datetime.now().year}",
180
- "quantitative_request": {{
181
- "json.facet": {{
182
- "approvals_by_therapeutic_category": {{
183
- "type": "terms",
184
- "field": "therapeutic_category",
185
- "limit": 10,
186
- "sort": "count desc"
187
- }}
188
- }}
189
- }},
190
- "qualitative_request": {{
191
- "group": true,
192
- "group.field": "therapeutic_category",
193
- "group.limit": 1,
194
- "sort": "date desc"
195
- }}
196
- }}
197
- ```
198
 
199
 
200
  **User Query 4 :** "Compare deal values for injection vs oral related to infection news."
@@ -208,7 +178,7 @@ This is the most critical part of your task. A bad choice leads to a useless, bo
208
  "analysis_dimension": "route_branch",
209
  "analysis_measure": "sum(total_deal_value_in_million)",
210
  "sort_field_for_examples": "total_deal_value_in_million",
211
- "query_filter": "drug_delivery_branch_s:(injection OR oral) AND therapeutic_category_s:infections AND date_year:2025 AND total_deal_value_in_million:[0 TO *]",
212
  "quantitative_request": {{
213
  "json.facet": {{
214
  "deal_values_by_route": {{
 
165
  }}
166
  ```
167
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
168
 
169
 
170
  **User Query 4 :** "Compare deal values for injection vs oral related to infection news."
 
178
  "analysis_dimension": "route_branch",
179
  "analysis_measure": "sum(total_deal_value_in_million)",
180
  "sort_field_for_examples": "total_deal_value_in_million",
181
+ "query_filter": "drug_delivery_branch_s:(injection OR oral) AND therapeutic_category_s:infections AND date_year:2025",
182
  "quantitative_request": {{
183
  "json.facet": {{
184
  "deal_values_by_route": {{