Commit dee5af0
committed
feat(rag): Complete RAG prompt refactoring and bug fixes
- Removed all hardcoded prompts from RAG agents
- Created 3 new prompts for RAG Swarm Coordinator:
* document_grader_v1: Document relevance grading
* query_rewriter_v1: Query optimization for retrieval
* answer_generator_v1: Answer synthesis from context
- Refactored rag_swarm_coordinator.py to use AgentPromptLoader
- Refactored writer_agent.py to use AgentPromptLoader
- All 9 RAG prompts now in LangSmith Hub with proper tags
- Fixed critical bug: Changed ToolMessage detection from msg.type to isinstance()
- Fixed bug: Collect ALL tool results, not just last message
- Changed model from gemini-2.0-flash-exp to gemini-2.5-flash (consistency)
- Added system message to force tool usage in agent node
- Enhanced LangSmith tracing setup in RAG Management App
- Added visual tracing indicator in UI
Related: US-RAG-004, US-SWARM-002, Sprint 61 parent 62ccecb commit dee5af0
File tree
77 files changed
+6974
-458
lines changed- agents
- rag
- workflow
- apps
- context
- docs
- agile
- catalogs
- planning
- sprints
- sprint_6
- completion_summaries
- daily_standups
- user_stories
- prompts/langsmith_cache
- metadata
- scripts
- tests
- mcp
- workflow
- utils
- mcp
- prompt_management
- rag
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
77 files changed
+6974
-458
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
| 153 | + | |
153 | 154 | | |
154 | 155 | | |
155 | 156 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
201 | 186 | | |
202 | 187 | | |
203 | 188 | | |
| |||
0 commit comments