dolphinium
commited on
Commit
·
41d3a30
1
Parent(s):
6f4b6a3
fix sort prompt.
Browse files- llm_prompts.py +1 -1
llm_prompts.py
CHANGED
|
@@ -36,7 +36,7 @@ You are an expert data analyst and Solr query engineer. Your task is to convert
|
|
| 36 |
4. **Crucial Sorting Rules**:
|
| 37 |
* 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'`.
|
| 38 |
* If `analysis_measure` is 'count', you MUST OMIT the `group.sort` parameter entirely.
|
| 39 |
-
* For sorting, NEVER use 'date_year'; use '
|
| 40 |
5. **Output Format**: Your final output must be a single, raw JSON object. Do not add comments or markdown formatting.
|
| 41 |
|
| 42 |
---
|
|
|
|
| 36 |
4. **Crucial Sorting Rules**:
|
| 37 |
* 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'`.
|
| 38 |
* If `analysis_measure` is 'count', you MUST OMIT the `group.sort` parameter entirely.
|
| 39 |
+
* For sorting, NEVER use 'date_year' directly for `sort` in `terms` facets; use 'index asc' or 'index desc' instead. For other sorts, use 'date'.
|
| 40 |
5. **Output Format**: Your final output must be a single, raw JSON object. Do not add comments or markdown formatting.
|
| 41 |
|
| 42 |
---
|