Understand the Octocode Architecture and Core Components
masterOctocode uses a modular architecture designed for AI agents, separating code parsing, embedding generation, storage, and retrieval.
Key components include:
- Indexer Engine: Uses Tree-sitter for multi-language AST extraction and symbol detection.
- Embedding System: A multi-provider system (Jina, Voyage, Google, OpenAI, etc.) supporting both cloud and local (FastEmbed, HuggingFace) providers.
- Vector Database: Powered by Lance with RaBitQ quantization for high-speed, compressed similarity search.
- GraphRAG Builder: Extracts AI-powered relationships (imports, calls, dependencies) to build a knowledge graph.
- MCP Server: Implements the Model Context Protocol to expose tools like semantic search, GraphRAG, and LSP integration to AI agents.
- Search Engine: Provides semantic, hybrid, and reranked search capabilities.