dolphinium commited on
Commit
131ad34
·
1 Parent(s): 6589065

update qualititve data prompt

Browse files
Files changed (1) hide show
  1. llm_prompts.py +5 -1
llm_prompts.py CHANGED
@@ -55,6 +55,9 @@ Your most important job is to think like an analyst and choose a `analysis_dimen
55
  * For `group.sort`: If `analysis_measure` involves a function on a field (e.g., `sum(total_deal_value_in_million)`), you MUST use the full function: `group.sort: 'sum(total_deal_value_in_million) desc'`.
56
  * If `analysis_measure` is 'count', you MUST OMIT the `group.sort` parameter entirely.
57
  * For sorting, NEVER use 'date_year' directly for `sort` in `terms` facets; use 'index asc' or 'index desc' instead. For other sorts, use 'date'.
 
 
 
58
  4. **Output Format**: Your final output must be a single, raw JSON object. Do not add comments or markdown formatting. The JSON MUST include a `reasoning` object explaining your choices.
59
 
60
  ---
@@ -153,7 +156,8 @@ This is the most critical part of your task. A bad choice leads to a useless, bo
153
  "group": true,
154
  "group.field": "news_type",
155
  "group.limit": 1,
156
- "sort": "date desc"
 
157
  }}
158
  }}
159
  ```
 
55
  * For `group.sort`: If `analysis_measure` involves a function on a field (e.g., `sum(total_deal_value_in_million)`), you MUST use the full function: `group.sort: 'sum(total_deal_value_in_million) desc'`.
56
  * If `analysis_measure` is 'count', you MUST OMIT the `group.sort` parameter entirely.
57
  * For sorting, NEVER use 'date_year' directly for `sort` in `terms` facets; use 'index asc' or 'index desc' instead. For other sorts, use 'date'.
58
+ 3. On **Qualitative Data** Group Operation:
59
+ * We need to show user **standout examples** for each category chosen.
60
+ For example: if user asks for "USA approved drugs last 5 years" We need to show user standout examples for each year. In this context: standout means the news with the biggest deals in million for each year for example.
61
  4. **Output Format**: Your final output must be a single, raw JSON object. Do not add comments or markdown formatting. The JSON MUST include a `reasoning` object explaining your choices.
62
 
63
  ---
 
156
  "group": true,
157
  "group.field": "news_type",
158
  "group.limit": 1,
159
+ "group.sort": "sum(total_deal_value_in_million) desc",
160
+ "sort": "total_deal_value_in_million desc"
161
  }}
162
  }}
163
  ```