Case study 02 · Work · Production
A production RAG assistant used by 150+ field engineers, running both in the cloud and air-gapped on-prem, with answers end to end in under 5 seconds.
Context
Field engineers install and configure the platform at hospital sites, often on networks with no internet. They need fast, grounded answers from installation and configuration manuals, release notes and Technical Info (TI) documents.
Problem
Answers had to be quick enough to use mid-install, grounded in the docs rather than guessed, and available even with no internet at all.
Approach
How it works, step by step
Scroll through the steps; the diagram follows. Hover or tap a stage for details.
- Docs ingested and embedded: Installation and configuration manuals, release notes and TI documents are chunked, embedded and stored ahead of time.
- Question retrieved, sub-second: The engineer's question is embedded and matched against the store in under a second.
- Answer or decline: Relevance-score thresholds decide whether there's enough evidence to answer. If not, it declines.
- Grounded answer: Gemini on Vertex AI writes the answer with its sources, under 5 seconds end to end.
- Same pipeline, offline: The same pipeline runs fully air-gapped on-prem, swapping the cloud LLM for local 7B–32B models.
- Docs (manuals · TI): Installation and configuration manuals, release notes and Technical Info (TI) documents.
- Embed (embeddings): Docs are chunked and embedded once, ahead of time.
- Vector store (pgvector·FAISS): pgvector / FAISS / Chroma.
- Engineer (150+ in field): Field engineers installing and configuring the platform at hospital sites.
- Assistant UI (web · installer): Chat UI for field engineers, also built into the on-prem installer.
- Retriever (sub-second): Embeds the question and retrieves passages in under a second.
- Score gate (answer/decline): Relevance-score thresholds decide whether to answer at all.
- Gemini (Vertex AI): Cloud LLM on Vertex AI.
- Answer (with sources): Grounded answer with its sources, end to end in under 5 s.
- Internet (cloud API): Cloud variant calls Vertex AI.
- Docs ingested and embedded: Installation and configuration manuals, release notes and TI documents are chunked, embedded and stored ahead of time.
- Question retrieved, sub-second: The engineer's question is embedded and matched against the store in under a second.
- Answer or decline: Relevance-score thresholds decide whether there's enough evidence to answer. If not, it declines.
- Grounded answer: Gemini on Vertex AI writes the answer with its sources, under 5 seconds end to end.
- Same pipeline, offline: The same pipeline runs fully air-gapped on-prem, swapping the cloud LLM for local 7B–32B models.
- Docs (manuals · TI): Installation and configuration manuals, release notes and Technical Info (TI) documents.
- Embed (embeddings): Docs are chunked and embedded once, ahead of time.
- Vector store (pgvector·FAISS): pgvector / FAISS / Chroma.
- Engineer (150+ in field): Field engineers installing and configuring the platform at hospital sites.
- Assistant UI (web · installer): Chat UI for field engineers, also built into the on-prem installer.
- Retriever (sub-second): Embeds the question and retrieves passages in under a second.
- Score gate (answer/decline): Relevance-score thresholds decide whether to answer at all.
- Gemini (Vertex AI): Cloud LLM on Vertex AI.
- Answer (with sources): Grounded answer with its sources, end to end in under 5 s.
- Internet (cloud API): Cloud variant calls Vertex AI.
Docs ingested and embedded
Installation and configuration manuals, release notes and TI documents are chunked, embedded and stored ahead of time.
Impact
What changed
field engineers in production
end to end
Question to grounded answer
retrieval
Sub-second
fully air-gapped
Same pipeline, local models
Hard partsWhat made this tricky, and how I handled it
No internet on site
The same pipeline runs fully air-gapped, swapping cloud Gemini for local Ollama models (7B–32B).
Knowing when not to answer
Relevance-score thresholds decide whether the assistant answers or declines.
Fast enough to use mid-install
Sub-second retrieval keeps the whole answer under 5 seconds, and the assistant is built right into the installer.
Stack
- Python
- Vertex AI
- Gemini
- Ollama
- pgvector
- FAISS
- Chroma
- Embeddings
- Docker / Kubernetes
My role
Main engineer.
Details generalised for privacy; no proprietary code or UI shown.
Next case studyReal-Time Alert Pipeline