Internal RAG Assistant
A question-answering assistant over Google Drive documents, built to stay grounded in what the documents say.
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.
Role and responsibilities
A personal build. I scoped it, built it and evaluated it end to end.
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.
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.
Outcomes and metrics
Completed, and evaluated on a 50-question test set. The code is on GitHub.
Retrospective and learning
A fixed test set turns “it seems to work” into something I can run again after every change.