Section 01
Two-way-RAG: Local Voice-Interactive Document Knowledge Base System (Main Guide)
Two-way-RAG is a local voice-interactive Retrieval-Augmented Generation (RAG) system built with FastAPI, LangChain, and Ollama. Its core features include:
- Privacy-first design: All data stays local (uses Ollama for local Llama3.2 model and FAISS for semantic search).
- Voice interaction: Supports voice input (via Web Speech API) and voice output (via gTTS).
- Private document Q&A: Enables natural dialogue with personal documents without data leakage. This system addresses the need for secure, local AI-powered document knowledge bases.