| Problem zoom | Realized the bottleneck was not 'prompt wording'—it was mixing queries that need strict document grounding with queries that are harmed by noisy retrieval context. |
|---|
| Options | (1) Keep single RAG pipeline and tune chunk sizes/prompts, (2) Use o1 to generate every full response directly (too slow and hard to constrain tone), (3) Split RAG ON/OFF paths and use o1 strictly as a structured router. |
|---|
| Trade-off | Adding a routing step introduced a small classification hop, but restricting o1 to output only a routing token kept latency controlled while dramatically eliminating retrieval pollution. |
|---|
| Final rules | (1) Never run RAG on queries that do not require document evidence; (2) Router outputs only the path decision and required constraints, never the final customer-facing prose; (3) Score every architecture change against the fixed evaluation set. |
|---|
| Tools | OpenAI API (o1 / GPT-4o), RAG Vector Pipeline, Structured Evaluation Sheets |
|---|
| Frameworks | Evaluation-Driven Development (EDD), Intent & Risk Routing, RAG Pollution Control |