Commit 8a54afe
committed
fix(rag): clarify web research ingestion failure messages
**Problem:**
When web research fails to ingest content (too small/fragmented), error messages said:
"RECOMMENDATION: Process this content directly without RAG ingestion."
This confused agents because:
- No actual content was provided to process
- Agent received confusing instruction with no actionable data
- Led to hallucination or repeated tool calls
**Solution:**
Replaced both error messages with clear, simple guidance:
"This source did not return useable results... Please skip this source and try another."
**Changes:**
- VectorRAGService.swift line 781: Content too small error
- VectorRAGService.swift line 860: Zero chunks error
**Testing:**
✅ Build: PASS (make build-debug)1 parent 9421342 commit 8a54afe
1 file changed
Lines changed: 6 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
778 | 778 | | |
779 | 779 | | |
780 | 780 | | |
781 | | - | |
782 | | - | |
783 | | - | |
784 | | - | |
785 | | - | |
786 | | - | |
787 | | - | |
788 | | - | |
789 | | - | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
790 | 784 | | |
791 | 785 | | |
792 | 786 | | |
| |||
855 | 849 | | |
856 | 850 | | |
857 | 851 | | |
858 | | - | |
859 | | - | |
860 | | - | |
861 | | - | |
862 | | - | |
863 | | - | |
864 | | - | |
865 | | - | |
866 | | - | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
867 | 855 | | |
868 | 856 | | |
869 | 857 | | |
| |||
0 commit comments