Show HN: Ved AI Voice Assistant
Ved is a resource-constrained, fully offline AI agent designed for Windows, Linux, and macOS, requiring as little as 12 GB VRAM and 32 GB RAM for local operation. The architecture utilizes a LangGraph orchestrator with distinct lanes: a lightweight 3B model for casual chat, and a planner-executor duo (8B/7B planner + 3B executor) for complex tasks involving tools. Key features include a Tkinter desktop UI, an offline voice pipeline using faster-whisper and Piper TTS, per-thread RAG with FIFO evi
Analysis
TL;DR
- Ved is a resource-constrained, fully offline AI agent designed for Windows, Linux, and macOS, requiring as little as 12 GB VRAM and 32 GB RAM for local operation.
- The architecture utilizes a LangGraph orchestrator with distinct lanes: a lightweight 3B model for casual chat, and a planner-executor duo (8B/7B planner + 3B executor) for complex tasks involving tools.
- Key features include a Tkinter desktop UI, an offline voice pipeline using faster-whisper and Piper TTS, per-thread RAG with FIFO eviction, and a script executor for uploaded Python files.
- The system supports deterministic model switching between standard, turbo, coder, and hibernate modes, with an optional fallback to cloud APIs like OpenRouter for lower-end hardware.
- Privacy is prioritized with local-only telemetry and human-in-the-loop approval mechanisms for sensitive filesystem and code execution tool calls.
Why It Matters
This project demonstrates a practical approach to deploying sophisticated AI agents on consumer-grade hardware without relying on expensive cloud infrastructure, making advanced AI capabilities accessible to individuals and small teams with limited resources. By integrating multiple specialized models within a single orchestrator, it showcases how modular design can balance performance and efficiency, offering a blueprint for building robust, offline-first AI applications that respect user privacy and data sovereignty.
Technical Details
- Orchestration: Built on LangGraph, the core
chatbot.pymanages state and routing across different operational lanes, allowing for complex multi-step reasoning and tool use. - Model Configuration: Uses specific quantized models via Ollama, such as
qwen2.5:3b-instructfor execution,qwen2.5:7b-instruct-q4_K_Mfor standard planning, andqwen2.5-coder:7b-instruct-q4_K_Mfor coding tasks, optimized for low VRAM usage. - Interface & API: Provides a dual interface via a Tkinter-based desktop application (
ui/) for direct interaction and a FastAPI server (api/) exposing endpoints via Server-Sent Events for programmatic access. - Voice Pipeline: Implements an end-to-end offline voice system featuring wake-word detection, speech-to-text via faster-whisper, LLM processing, and text-to-speech using Piper, supporting mid-sentence barge-in.
- Memory & Tools: Features per-thread Retrieval-Augmented Generation (RAG) with a vector database and FIFO eviction policy, alongside a secure script executor for running uploaded
.pyfiles with human approval gates.
Industry Insight
Developers should consider modular, multi-model architectures for edge deployments, as separating planning and execution roles allows for better resource management and cost efficiency compared to monolithic large models. The emphasis on local-only telemetry and human-in-the-loop controls highlights a growing market demand for transparent, privacy-centric AI tools that give users explicit control over data handling and automated actions. Additionally, supporting both local inference and cloud fallbacks provides a flexible deployment strategy that accommodates varying hardware capabilities, ensuring broader accessibility for AI agents.
Disclaimer: The above content is generated by AI and is for reference only.