DBERT INCUBATION LABS · CHENNAI · DELHI · INDORE
10 SYSTEMS 100% AIR-GAPPED · ZERO DATA EGRESS GitHub Org →
Architectural specification

The Science of Local-First, Air-Gapped Intelligence

How Gayatri AI achieves deterministic accuracy, zero data leakage, and Socratic pedagogy without cloud dependencies.

Design Principle 01

The Two Pillars: Knowledge vs. Behavior

In traditional generative AI applications, the LLM is treated as an all-knowing oracle. This leads directly to hallucinations, non-syllabus derivations, and ungrounded fabrications.

Gayatri AI strictly decouples the two:

1. The Knowledge Layer (Deterministic & Scoped)

Textbooks, lecture notes, hospital tariffs, and loan agreements exist in scoped, version-pinned SQLite databases and hybrid BM25/vector stores. The AI is strictly barred from answering without verified in-domain citations.

2. The Behavior Layer (Neural & Pedagogical)

Fine-tuned small language models (Qwen 2.5) act exclusively as logical reasoners and pedagogical guides — determining whether to offer an analogy, diagnostic hint, or stepped breakdown, without inventing facts.

Cognitive Boundary Isolation
INPUT CONTEXT Sanitized
Student Inquiry / Banking Document Ingestion
↓ Scoped RAG Boundary ↓
KNOWLEDGE GROUNDING Deterministic
Verified Syllabus Chunks · Zero Cloud Reranking · Strict Abstention
↓ 16-Step Orchestrator ↓
BEHAVIOR EXECUTION Socratic Engine
Stepped Hint · Analogical Probing · Answer Leakage Prevention
Design Principle 02

Local Silicon Optimization: Zero Cloud Dependency

Gayatri AI is built to operate continuously inside air-gapped institutions, remote rural colleges, and secure enterprise enclaves without requiring GPU clusters or recurring API fees.

CPU Inference

Runs on < 1GB RAM

Using 4-bit and 5-bit GGUF quantization via llama-cpp-python, the engine runs smoothly on standard Intel Core i3/i5 laptops and entry-level workstations without a dedicated GPU.

No Daemon Overhead

Zero Ollama Dependency

Inference is embedded directly into the application process. We do not require users to install, configure, or maintain background daemons or external runtime managers.

Memory Safety

Dynamic RAM Management

GGUF metadata is inspected at boot to compute memory headroom. LRU model eviction and thread-safe generation locks prevent out-of-memory crashes during multi-user spikes.

Pedagogical Mechanics

The 16-Step Pedagogical Turn Lifecycle

Unlike generic chatbots that provide immediate answers, Gayatri AI enforces cognitive struggle through an automated 16-step turn state machine.

PHASE I: 01–04

Sanitize & Ingest

Ingests learner response, cleans control characters, validates active course boundary, and creates an append-only event record.

PHASE II: 05–08

Symbolic Evaluation

Evaluates answer using deterministic evaluators (numeric tolerance, stoichiometric balance, MCQ) with zero string guessing.

PHASE III: 09–12

Misconception Trap

Checks learner response against curated conceptual traps (e.g., standard enthalpy sign confusion, logic inversion).

PHASE IV: 13–16

Socratic Prompting

Selects pedagogical policy: Socratic question, analogy, or graduated hint. Scans output buffer to prevent solution leakage.

Security Governance

Air-Gapped Security Architecture

In banking and higher education, cloud egress is a compliance violation. Gayatri AI guarantees zero data transmission:

  • Socket-Level Guard: Intercepts OS network calls to enforce loopback binding (127.0.0.1) exclusively.
  • Cryptographic Audit Ledger: Every model invocation and document inspection is logged into a SHA-256 hash-chained ledger.
  • PII Masking: Sensitive identifiers (PAN, Aadhaar, student IDs) are masked before ingestion into retrieval vector stores.
  • Clean Binaries: All distributed Windows desktop executables pass Microsoft Defender with zero heuristic flags.
Verified Architecture

Inspect the Source Code

All architecture components, RAG pipelines, and evaluation scripts are publicly available on GitHub.