Aayush Bankar
S–05

Air-Gapped Offline Document Query

Edge AI & Pipelines

Complete

Privata

Zero-Cloud RAG Engine with ChromaDB Vector Search

A lightweight, offline-first document ingestion and semantic query tool using Retrieval-Augmented Generation (RAG). Embeds sensitive PDFs, Markdown files, and code repositories into a persistent ChromaDB vector store using local Sentence Transformers, enabling air-gapped private intelligence search without third-party data leaks.

Architectural Plate // PrivataHardware Telemetry & Dataflow
Privata Visual Architectural Plate
01

Hardware-Verified Benchmarks

< 15 ms

Vector Search Latency

ChromaDB cosine similarity retrieval on 10,000+ vector chunks

all-MiniLM-L6-v2

Embedding Model

384-dimensional dense embeddings executed locally in RAM

~120 pages/min

Ingestion Speed

Document chunking, normalization, and embedding rate

Zero Cloud Egress

Privacy Assurance

Raw document bytes never leave the local machine

02

Technical Specification Sheet

ArchitectureChunking -> Local Dense Embeddings -> ChromaDB Retrieval -> LLM Generation
Vector DatabaseChromaDB (local persistent storage)
Embedding FrameworkSentence Transformers (Hugging Face PyTorch runtime)
Document ParsersPyPDF2, python-docx, Markdown & raw text sliding tokenizers
Chunking Strategy500-token sliding window with 50-token overlap and section preservation
Query InterfaceInteractive CLI with color-coded citations and source document offsets
Deployment TargetAir-gapped security research workstations without internet access

ARCArchitectural Overview

Engineering Architecture

Built specifically for handling sensitive security audit reports and proprietary codebase documents that cannot be uploaded to external AI services. Privata executes a complete local Retrieval-Augmented Generation workflow directly on consumer hardware. Documents are segmented into 500-token chunks with 50-token sliding window overlaps, converted into 384-dimensional dense vectors using Hugging Face Sentence Transformers (all-MiniLM-L6-v2), and stored locally in ChromaDB. Queries perform instant cosine nearest-neighbor retrieval, synthesizing answers via local LLM or sandboxed APIs while keeping the document corpus strictly air-gapped.

Key Technical Innovations:

  • ›Air-gapped operation ensures sensitive vulnerability logs never leak to cloud LLMs.
  • ›Sub-15ms semantic vector search across thousands of technical pages.
  • ›Zero monthly cloud infrastructure cost; runs entirely on standard laptop CPUs.

VFDGround-Truth Verification

Empirical Test Record

Verified locally over technical whitepapers and internal engineering documentation.

PythonLangChainChromaDBSentence TransformersHugging FaceCLI