CodeRAG

•
12
•

Performs lightning-fast hybrid code search utilizing TF-IDF and vector embeddings, optimized for RAG-ready AI assistants.

CodeRAG provides a robust solution for semantic code search, making codebases RAG-ready for integration with AI assistants. It leverages vector embeddings for semantic search alongside TF-IDF for fallback, ensuring comprehensive and accurate results. The tool features AST-based chunking for intelligent code splitting, rapid indexing at thousands of files per second, and real-time updates through file watching. With persistent storage, it boasts instant startup times and supports incremental updates, significantly enhancing developer productivity and the capabilities of AI-powered code understanding tools like Claude Desktop.

主要功能

01Semantic Search with vector embeddings and TF-IDF fallback
02AST-based Chunking for intelligent code splitting
03Fast Indexing (1000-2000 files/second) with SQLite persistence
04Real-time File Watching for automatic index updates
05MCP Integration for out-of-the-box compatibility with Claude Desktop
061 GitHub stars

使用案例

01Integrating semantic code search into AI assistants to enhance RAG capabilities
02Rapidly locating specific code logic or functionalities within large project repositories
03Providing real-time, context-aware code information to AI development tools