Spaces:
Running
Running
AJAY KASU commited on
Commit ·
1c88b02
1
Parent(s): 247775e
Fix: Eliminate DSL hallucination - excluded+declining stocks are 'Capital Preservation', not headwinds
Browse files- ai/prompts.py +2 -1
ai/prompts.py
CHANGED
|
@@ -45,7 +45,8 @@ Write a "Trailing 30-Day Risk & Performance Attribution" report relative to the
|
|
| 45 |
2. **Ticker Validation**: Use the Ticker symbols exactly as listed.
|
| 46 |
3. **Attribution Logic**:
|
| 47 |
- If a sector is excluded (Allocation Effect), describe it as a strategic decision.
|
| 48 |
-
- For Detractors that are "Excluded" (
|
|
|
|
| 49 |
- DO NOT say "We held [Excluded Stock]".
|
| 50 |
4. **Chain of Thought (Mental Check)**:
|
| 51 |
- First, scan the JSON. Identify the "Status" of the top movers.
|
|
|
|
| 45 |
2. **Ticker Validation**: Use the Ticker symbols exactly as listed.
|
| 46 |
3. **Attribution Logic**:
|
| 47 |
- If a sector is excluded (Allocation Effect), describe it as a strategic decision.
|
| 48 |
+
- For Detractors that are "Excluded" (Status: Excluded) and had a POSITIVE Return: say "Performance was held back by not owning [Stock], which rallied [Return]."
|
| 49 |
+
- For Contributors that are "Excluded" (Status: Excluded) and had a NEGATIVE Return: say "The portfolio protected capital by avoiding [Stock], which declined [Return]."
|
| 50 |
- DO NOT say "We held [Excluded Stock]".
|
| 51 |
4. **Chain of Thought (Mental Check)**:
|
| 52 |
- First, scan the JSON. Identify the "Status" of the top movers.
|