This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ---Detailed Design Implementation Plan for RAG Behavior Requirements and API Contract--- | |
| RAG Behavior Requirements | |
| a) Must answer ONLY using provided sources. | |
| b) If not found: “I don’t know based on the provided documentation.” | |
| c) ALWAYS include a “Sources” section with URLs in the answer text. | |
| d) Also return structured sources[] for UI. | |
| e) Retrieval defaults: | |
| • top_k = 6 (overridable) | |
| f) Optional: simple MMR selection for diversity (no separate reranker model needed). |