Skip to content

Instantly share code, notes, and snippets.

View Atakan97's full-sized avatar

Atakan Arda Celik Atakan97

View GitHub Profile
---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).