Deepskilling — Learn. Build. Research.

Home / Case studies / Production RAG pipeline for enterprise knowledge

Deepskilling Case studies

Production RAG pipeline for enterprise knowledge

Workshop-shaped capstone: retrieval, evaluation, and guardrails on AWS

Industry: Enterprise knowledge / ML platform

Challenge

A professional services team needed accurate answers over internal playbooks and tickets. Prompt-only chatbots hallucinated policy details and could not cite sources for auditors.

Approach

  1. Scoped a single workflow: policy Q&A with mandatory citations and refusal when retrieval confidence is low.
  2. Built hybrid retrieval (metadata filters + embeddings) over chunked playbooks with ownership tags.
  3. Added an evaluation harness for faithfulness and relevance on a golden question set.
  4. Deployed behind IAM-controlled endpoints with prompt/retrieval logging for incident review.

Outcomes

  • Groundedness scores rose above the team’s acceptance threshold on the golden set before wider rollout.
  • Average answer latency stayed within the agreed p95 budget for internal users.
  • Support escalations for “wrong policy” answers dropped after refusal behaviour shipped.

Stack

AWS Bedrock · OpenSearch / vector index · Python · Evaluation harness · CloudWatch

Lessons

  • Chunking and metadata beat model swaps for early quality gains.
  • Ship refusals and eval gates before expanding to more document types.
  • Treat retrieval logs as production telemetry, not debug leftovers.

Related guides

What is retrieval-augmented generation (RAG)?

What is AWS Bedrock?

Research citations

  1. Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks
    Lewis, P. et al. (2020). NeurIPS. Foundational RAG formulation pairing parametric models with non-parametric memory.

Related Deepskilling courses