Case study · GenAI · Retrieval

Internal RAG Assistant

A question-answering assistant over Google Drive documents, built to stay grounded in what the documents say.

Personal build Completed
← All work
Role

Built end to end

Type

Personal build

Built with

Gemini embeddings and ChromaDB

1Drive documentsRead through aservice account2EmbedGeminiembeddings3StoreChromaDBvector store4RetrieveMost relevantpassages5AnswerGrounded in thedocumentsGuardrails, plus a 50-question evaluation setILLUSTRATIVE ARCHITECTURE
Illustrative architecture.
50 question evaluation set
100% grounded answers
01 Understand

Context and problem

Answers that live inside documents are slow to find. You open file after file, or you ask a general chatbot and risk a confident answer that is not in the documents at all.

The aim was an assistant that answers questions over Google Drive documents and stays grounded in what they say.

02

Role and responsibilities

A personal build. I scoped it, built it and evaluated it end to end.

03 Decide

Prioritisation and decisions

  • Grounding first. Answers are generated from retrieved passages, with a guardrail against hallucination.
  • Documents are untrusted input. A guardrail against prompt injection, so that text inside a document cannot steer the assistant.
  • Evaluate before calling it done. A 50-question test set, not a handful of demo questions.
04 Deliver

Delivery and collaboration

Documents are read from Google Drive through a service account, embedded with Gemini embeddings and stored in ChromaDB. A question retrieves the most relevant passages, and the answer is generated from them.

05 Measure

Outcomes and metrics

Completed, and evaluated on a 50-question test set. The code is on GitHub.

06

Retrospective and learning

A fixed test set turns “it seems to work” into something I can run again after every change.

Hiring for a product role? Let’s talk.