# Leveling the Playing Field: Building a 100% Offline Kubernetes Docs RAG Exam Assistant with WebAI

DevFeed: [Leveling the Playing Field: Building a 100% Offline Kubernetes Docs RAG Exam Assistant with WebAI](<https://devfeed.tech/articles/leveling-the-playing-field-building-a-100-offline-kubernetes-docs-rag-exam-assistant-with-webai-118018.md>)

Original publisher: [Read original article](<https://medium.com/google-developer-experts/leveling-the-playing-field-building-a-100-offline-kubernetes-docs-rag-exam-assistant-with-webai-566efc066b6f?source=rss----a67bd6fa7d58---4>)

Author: Cyrus Wong

Published: 2026-11-04T14:26:55Z

Content type: article

Language: en

Sources: [Google Developer Experts](<https://devfeed.tech/sources/google-developer-experts-medium.md>)

Topics: [AI Chat](<https://devfeed.tech/topics/ai-chat.md>), [Local-First](<https://devfeed.tech/topics/local-first.md>), [Web](<https://devfeed.tech/topics/web.md>), [Learning](<https://devfeed.tech/topics/learning.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [ai-web](<https://devfeed.tech/tags/ai-web.md>), [architecture](<https://devfeed.tech/tags/architecture.md>), [browser](<https://devfeed.tech/tags/browser.md>), [classroom](<https://devfeed.tech/tags/classroom.md>), [cloud-native](<https://devfeed.tech/tags/cloud-native.md>), [data-privacy](<https://devfeed.tech/tags/data-privacy.md>), [devops](<https://devfeed.tech/tags/devops.md>), [embeddinggemma](<https://devfeed.tech/tags/embeddinggemma.md>), [exam](<https://devfeed.tech/tags/exam.md>), [gemma-4](<https://devfeed.tech/tags/gemma-4.md>), [integrity](<https://devfeed.tech/tags/integrity.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>), [like](<https://devfeed.tech/tags/like.md>), [litert](<https://devfeed.tech/tags/litert.md>), [litertjs](<https://devfeed.tech/tags/litertjs.md>), [offline](<https://devfeed.tech/tags/offline.md>), [rag](<https://devfeed.tech/tags/rag.md>), [rags](<https://devfeed.tech/tags/rags.md>), [webai](<https://devfeed.tech/tags/webai.md>), [webgpu](<https://devfeed.tech/tags/webgpu.md>)

## AI overview

The article describes Kubernetes WebAI RAG, an offline browser assistant intended to give students consistent AI support during technical assessments without cloud access or inference fees. A maintainer prepares and distributes 16,483 documentation chunks with precomputed embeddings and a BM25 keyword index; students search them locally using semantic and keyword retrieval combined with reciprocal rank fusion, then receive streamed answers from Gemma 4 E2B with citations to a bundled Kubernetes documentation mirror. The Windows 11 setup uses a fixed localhost origin so the roughly 2 GB model can persist in browser OPFS storage. The article specifies Chromium with hardware WebGPU, about 8 GiB of free disk space, and memory limits designed for integrated GPUs. It also describes citation verification, YAML copying, and security measures including a restrictive content policy and inert Markdown rendering. The text presents a detailed implementation and its claimed classroom benefits, but provides no independent performance evaluation.

## Source excerpt

Leveling the Playing Field: Building a 100% Offline Kubernetes Docs RAG Exam Assistant with Web AI, Gemma 4, and WebGPU How to enable fair, zero-cost, air-gapped AI assistance in technical classrooms and assessments -- running entirely in the browser on everyday student hardware. The Classroom & Exam Dilemma: How Can We Use AI Fairly? As educators teaching cloud-native technologies like Kubernetes, we want our assessments to reflect real-world DevOps workflows. In production, engineers don't memorize every nested field of a Kubernetes YAML manifest -- they consult official documentation and use AI assistants to troubleshoot and scaffold configurations. However, allowing AI in a live classroom test or practical exam immediately introduces three critical pain points: The "Pay-to-Win" Equity Gap: Students with paid subscriptions to frontier cloud models (ChatGPT Plus, Claude Pro, Gemini Advanced) gain a massive speed and reasoning advantage over peers relying on free tiers with strict rate limits. Internet Access & Academic Integrity: Opening internet access so students can reach cloud AI APIs also opens the door to messaging apps, file-sharing sites, and unauthorized collaboration. Cloud API Costs & Data Privacy: Provisioning a centralized school-hosted LLM proxy for hundreds of concurrent exam-takers is expensive, vulnerable to rate-limit bottlenecks when everyone hits "Submit" at the same minute, and raises student privacy concerns. What if every student's computer could run an identical, pinned, official-documentation-grounded AI assistant completely offline? In this article, we'll walk through the architecture and implementation of Kubernetes WebAI RAG -- an open-source, 100% offline Retrieval-Augmented Generation (RAG) system running entirely inside the browser using Gemma 4 E2B, EmbeddingGemma, LiteRT-LM, TensorFlow.js, and WebGPU. https://medium.com/media/20d1c5f68aadab894d27095275f8dae3/hrefhttps://medium.com/media/74a7213c2a5fb8e8d7bae9fe600461e8/hrefEvolving fr