rag on a page

RAG Architecure

Boring part

End to End flow

  1. User sends a query -> Orchestrator receives via API
  2. Input guardrails validate and sanitize the query
  3. Receiver searches knowledge base (BM25 + Vector) and returns Top-K chunks
  4. Augmented prompt is built using query + retrieved context + history + instructions
  5. LLM Generate a response
  6. Output guardrails validate, redact and ensure compliance
  7. Response is returned to the user via FastAPI

Save to list