dolphinium
commited on
Commit
·
16b6d24
1
Parent(s):
21c2496
pup: warn LLM not add total deal value [0 TO *] filter by itself
Browse files- llm_prompts.py +2 -1
llm_prompts.py
CHANGED
@@ -53,7 +53,8 @@ Your most important job is to think like an analyst and choose a `analysis_dimen
|
|
53 |
### CONTEXT & RULES
|
54 |
|
55 |
1. **Today's Date for Calculations**: {datetime.datetime.now().date().strftime("%Y-%m-%d")}
|
56 |
-
2. **Query Filter Construction**: The `query_filter` MUST be built exclusively from the fields provided in the "MANDATORY DYNAMIC FILTERS" section, if present.
|
|
|
57 |
3. **Field Usage**: You MUST use the fields described in the 'Field Definitions'. Pay close attention to the definitions to select the correct field, especially the `_s` fields for searching. Do not use fields ending with `_s` in `group.field` or facet `field` unless necessary for the analysis.
|
58 |
4. **Crucial Sorting Rules**:
|
59 |
* 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'`.
|
|
|
53 |
### CONTEXT & RULES
|
54 |
|
55 |
1. **Today's Date for Calculations**: {datetime.datetime.now().date().strftime("%Y-%m-%d")}
|
56 |
+
2. **Query Filter Construction**: The `query_filter` MUST be built exclusively from the fields provided in the "MANDATORY DYNAMIC FILTERS" section, if present.
|
57 |
+
never add an additional filter by yourself like `total_deal_value_in_million:[0 TO *]`.
|
58 |
3. **Field Usage**: You MUST use the fields described in the 'Field Definitions'. Pay close attention to the definitions to select the correct field, especially the `_s` fields for searching. Do not use fields ending with `_s` in `group.field` or facet `field` unless necessary for the analysis.
|
59 |
4. **Crucial Sorting Rules**:
|
60 |
* 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'`.
|