Zia AI - Intelligent Coding Assistant for VS Code
📌 OverviewZia AI is an intelligent coding assistant designed to work completely inside Visual Studio Code. Instead of simply chatting with an LLM, Zia AI understands your entire workspace using Retrieval-Augmented Generation (RAG), semantic embeddings, and tool execution. The assistant can:
✨ Features🤖 AI Chat
📂 Workspace Awareness (RAG)Zia AI understands your workspace before answering. Pipeline: Workspace → Read Files → Chunk Documents → Generate Embeddings → Store in LanceDB → Semantic Retrieval → Build Context → LLM Response Instead of answering only from model knowledge, the assistant retrieves relevant project files and injects them into the prompt. 🔎 Semantic Code SearchUses vector embeddings instead of keyword matching. Example:
🧠 Retrieval-Augmented GenerationImplemented from scratch. Workflow:
🗂 LanceDB Vector StorageEmbeddings are stored inside LanceDB. Stored metadata:
Benefits:
📖 Read Files ToolReads one or multiple project files. Example:
🌳 File Tree ToolGenerates the complete workspace hierarchy. Useful for:
🔍 Semantic Search ToolSearches code using natural language. Unlike grep or keyword search, it retrieves semantically similar code. ✍️ Write File ToolCreates or updates workspace files. Example:
🔄 Search & Replace ToolAST-aware search and replacement. Supports:
💻 Run Command ToolExecutes terminal commands directly from the assistant. Example:
🧠 RAG Architecture
📦 Project Structure
⚙️ Technologies Used
🚀 How It WorksStep 1User asks a question.
Step 2Relevant project chunks are retrieved from LanceDB. Step 3Retrieved context is injected into the system prompt. Step 4Ollama generates an answer using project-specific context. Step 5The response streams directly inside VS Code. 📈 Performance Optimizations✔ Concurrent workspace indexing ✔ Chunk-based embeddings ✔ File size filtering ✔ Supported extension filtering ✔ Ignored generated files ✔ Persistent vector database ✔ Streaming AI responses 🔒 Runs Completely LocallyNo cloud APIs are required. Everything runs locally:
Your code never leaves your machine. 🎯 Future Enhancements
👨💻 Developed ByMohith Kumar S B.Tech Information Technology Zoho Summer Intern — AI Coding Assistant Project GitHub: https://github.com/mohith182 |