Skip to content

RAG using MongoDB

Shows how to build a RAG system using MongoDB as a data backend.

  • Upstream notebook: third_party/MongoDB/rag_using_mongodb.ipynb

What to focus on

  • Data modeling for retrieval
  • Query patterns and ranking
  • Deployment considerations (indexes, throughput)

Run locally

make test-notebooks NOTEBOOK=third_party/MongoDB/rag_using_mongodb.ipynb