The dominant narrative of generative AI has centered on ever-larger foundation models housed in centralized hyperscaler data centers. While frontier models excel at complex code generation and multi-disciplinary synthesis, routing every daily interaction through remote servers creates profound vulnerabilities:
- Egress Latency: Transmitting prompt context, waiting in cloud inference queues, and streaming responses typically takes 800ms to 2.5 seconds.
- Economic Inefficiency: Paying per-token API taxes for simple conversational triage or reminder generation destroys product unit economics.
- Total Loss of Privacy: Sending personal emails, schedule conflicts, and family chats across third-party cloud infrastructure is fundamentally incompatible with personal data sovereignty.
When building Brinn (Opstin's personal everyday AI), we pioneered an architecture where intelligence runs directly on the user's hardware.
The Localized Orchestration Stack
Our client architecture deploys a multi-tiered pipeline that executes tasks at the closest possible boundary to the user.
User Query (Voice / Text)
│
▼
[Edge Intent Classifier] (1.2M param distilled MobileNet) ◄── < 5ms
│
┌────┴───────────────────────────┐
▼ ▼
[Local Execution Engine] [Secure Cloud Escalation]
(On-Device Small Model 3B) (Deep Reasoning Model)
- SQLite-vec Local RAG - Zero-log API Pipe
- Neural Engine Execution - Anonymized Prompt
- Sub-50ms Response - Complex multi-step reasoning
Latency and Memory Profile Benchmarks
We measured response times across varying hardware tiers running our distilled conversational model:
| Runtime Target | Quantization | First Token Latency (TTFT) | Sustained Speed | Memory Footprint |
|---|---|---|---|---|
| Apple M3 / M4 (Metal) | 4-bit AWQ | 18 ms | 74 tokens/sec | 2.1 GB RAM |
| Snapdragon 8 Gen 3 (NPU) | 4-bit INT4 | 26 ms | 48 tokens/sec | 1.8 GB RAM |
| Intel Core Ultra 7 (OpenVINO) | 4-bit GGUF | 35 ms | 38 tokens/sec | 2.4 GB RAM |
| Cloud API Baseline | FP16 Hosted | 420 ms | 62 tokens/sec | N/A (Cloud) |
Vector Search Without Cloud Infrastructure: SQLite-vec
Traditional RAG architectures force engineers to deploy Pinecone, Qdrant, or Weaviate clusters. For a private personal assistant, storing embeddings on a remote server defeats the purpose of local privacy.
Instead, Brinn utilizes SQLite with embedded vector extensions (sqlite-vec) compiled directly into the application runtime:
-- Schema for local personal episodic memory
CREATE VIRTUAL TABLE IF NOT EXISTS memory_embeddings USING vec0(
memory_id TEXT PRIMARY KEY,
embedding float[384] distance_metric=cosine
);
CREATE TABLE IF NOT EXISTS memory_entities (
id TEXT PRIMARY KEY,
raw_content TEXT NOT NULL,
timestamp INTEGER NOT NULL,
category TEXT NOT NULL,
confidence REAL NOT NULL
);
-- Querying local vector similarity under 2ms
SELECT
e.id,
e.raw_content,
e.category,
v.distance
FROM memory_embeddings v
JOIN memory_entities e ON e.id = v.memory_id
WHERE v.embedding MATCH ?
ORDER BY v.distance ASC
LIMIT 5;
Because this database resides entirely within the sandboxed application storage on the user's local filesystem, vector indexing operations require zero network bandwidth and operate with sub-millisecond query execution.
Hybrid Routing: The Escalation State Machine
Local models excel at intent recognition, time parsing, list mutation, and memory retrieval. When a query requires multi-hop logical deductions (e.g., "Analyze the legal liabilities in this 60-page PDF and contrast with California labor statutes"), our orchestrator executes a transparent escalation:
- Local Anonymization Pass: Identifiable private markers (names, addresses, phone numbers) are redacted client-side into synthetic UUIDs.
- Encrypted Egress Pipeline: The redacted query is dispatched via TLS 1.3 to our stateless inference cluster.
- Local Re-inflation: Returned responses are reconciled against the local entity map before display.
The result is a system that feels instantaneous for 90% of daily tasks while keeping the user's life private, sovereign, and resilient against cloud outages.


