Commit 4c0d6f8
committed
fix: Inject stillme_instruction into UnifiedPromptBuilder path to fix system architecture queries
CRITICAL FIX: System architecture instruction was not being injected when using UnifiedPromptBuilder.
Problems:
- stillme_instruction (containing system architecture instruction) was only created in non-RAG path
- When using UnifiedPromptBuilder (RAG path), stillme_instruction was not injected into special_instructions
- System architecture queries were not being detected as StillMe queries, so stillme_instruction was empty
Fixes:
1. Added stillme_instruction to special_instructions when using UnifiedPromptBuilder
2. Set is_stillme_query = True when detecting system architecture queries
3. Set is_stillme_query = True when detecting validator count questions
Result: System architecture instruction will now be injected into prompt for RAG path queries.1 parent 04013ed commit 4c0d6f8
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4081 | 4081 | | |
4082 | 4082 | | |
4083 | 4083 | | |
| 4084 | + | |
| 4085 | + | |
| 4086 | + | |
| 4087 | + | |
4084 | 4088 | | |
4085 | 4089 | | |
4086 | 4090 | | |
| |||
7066 | 7070 | | |
7067 | 7071 | | |
7068 | 7072 | | |
| 7073 | + | |
7069 | 7074 | | |
7070 | 7075 | | |
7071 | 7076 | | |
7072 | | - | |
| 7077 | + | |
| 7078 | + | |
7073 | 7079 | | |
7074 | 7080 | | |
7075 | 7081 | | |
| |||
0 commit comments