@@ -9,7 +9,7 @@ CodeGraph indexes your source code to a graph database, creates semantic embeddi
99- 🔍 Semantic code search across your entire codebase
1010- 🧠 LLM-powered code intelligence and analysis
1111- 📊 Automatic dependency graphs and code relationships
12- - ⚡ Fast vector search with FAISS or cloud SurrealDB HNSW (2-5ms query latency)
12+ - ⚡ Fast vector search backed by SurrealDB HNSW (2-5ms query latency)
1313- 🔌 MCP server for AI tool integration (stdio and streamable HTTP)
1414- ⚙️ Easy-to-use CLI interface
1515- ☁️ ** NEW:** Jina AI cloud embeddings with modifiable models and dimensions and reranking
@@ -32,7 +32,7 @@ export CODEGRAPH_EMBEDDING_DIMENSION=1024 # 384, 768, 1024, 1536,
3232export CODEGRAPH_RERANKING_PROVIDER=lmstudio
3333```
3434
35- We automatically route embeddings to ` embedding_384 ` , ` embedding_768 ` , ` embedding_1024 ` , ` embedding_2048 ` , or ` embedding_4096 ` and keep reranking disabled unless a provider is configured. No FAISS/RocksDB plumbing is needed for MCP anymore .
35+ We automatically route embeddings to ` embedding_384 ` , ` embedding_768 ` , ` embedding_1024 ` , ` embedding_2048 ` , ` embedding_2056 ` , or ` embedding_4096 ` and keep reranking disabled unless a provider is configured.
3636
3737---
3838
@@ -42,7 +42,7 @@ We automatically route embeddings to `embedding_384`, `embedding_768`, `embeddin
4242
4343### What Changed:
4444- ❌ ** MCP server** no longer uses FAISS vector search or RocksDB graph storage
45- - ✅ ** CLI and SDK** continue to support FAISS/RocksDB for local operations
45+ - ❌ ** CLI and SDK** no longer support FAISS/RocksDB for local operations
4646- ✅ ** NAPI bindings** still provide TypeScript access to all features
4747- 🆕 ** MCP code-agent tools** now require SurrealDB for graph analysis
4848
@@ -96,15 +96,15 @@ CodeGraph now supports the **AutoAgents framework** for agentic orchestration as
9696make build-mcp-autoagents
9797
9898# Or directly with cargo
99- cargo build --release -p codegraph-mcp --features " ai-enhanced,autoagents-experimental,faiss, ollama"
99+ cargo build --release -p codegraph-mcp --features " ai-enhanced,autoagents-experimental,ollama"
100100
101101# HTTP server with AutoAgents
102- cargo build --release -p codegraph-mcp --features " ai-enhanced,autoagents-experimental,faiss, embeddings-ollama,server-http"
102+ cargo build --release -p codegraph-mcp --features " ai-enhanced,autoagents-experimental,embeddings-ollama,server-http"
103103```
104104
105105** Without AutoAgents (default):**
106106``` bash
107- cargo build --release -p codegraph-mcp --features " ai-enhanced,faiss, ollama"
107+ cargo build --release -p codegraph-mcp --features " ai-enhanced,ollama"
108108```
109109
110110### Status
@@ -200,16 +200,6 @@ Pick the setup that matches your needs:
200200``` bash
201201# 1. Install Rust
202202curl --proto ' =https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
203-
204- # 2. Install FAISS (vector search library)
205- # macOS:
206- brew install faiss
207-
208- # Ubuntu/Debian:
209- sudo apt-get install libfaiss-dev
210-
211- # Arch Linux:
212- sudo pacman -S faiss
213203```
214204
215205---
@@ -240,7 +230,7 @@ ollama pull qwen2.5-coder:14b
240230cd codegraph-rust
241231
242232# Build with ONNX embeddings and Ollama support
243- cargo build --release --features " onnx,ollama,faiss "
233+ cargo build --release --features " onnx,ollama"
244234```
245235
246236** Step 4: Configure**
@@ -291,7 +281,7 @@ ollama_url = "http://localhost:11434"
291281cd codegraph-rust
292282
293283# Build with OpenAI-compatible support (for LM Studio)
294- cargo build --release --features " openai-compatible,faiss "
284+ cargo build --release --features " openai-compatible"
295285```
296286
297287** Step 5: Configure**
@@ -338,13 +328,13 @@ lmstudio_url = "http://localhost:1234"
338328cd codegraph-rust
339329
340330# Build with all cloud providers
341- cargo build --release --features " anthropic,openai-llm,openai,faiss "
331+ cargo build --release --features " anthropic,openai-llm,openai"
342332
343333# Or with Jina AI cloud embeddings (Matryoska dimensions + reranking)
344- cargo build --release --features " cloud-jina,anthropic,faiss "
334+ cargo build --release --features " cloud-jina,anthropic"
345335
346336# Or with SurrealDB HNSW cloud/local vector backend
347- cargo build --release --features " cloud-surrealdb,openai,faiss "
337+ cargo build --release --features " cloud-surrealdb,openai"
348338```
349339
350340** Step 3: Run setup wizard (easiest)**
@@ -436,7 +426,7 @@ openai_api_key = "sk-..."
436426dimension = 2048
437427
438428[vector_store ]
439- backend = " surrealdb" # Instead of "faiss"
429+ backend = " surrealdb"
440430surrealdb_url = " ws://localhost:8000" # or cloud instance
441431surrealdb_namespace = " codegraph"
442432surrealdb_database = " production"
@@ -481,7 +471,7 @@ anthropic_api_key = "sk-ant-..."
481471
482472Build with required features:
483473``` bash
484- cargo build --release --features " onnx,anthropic,faiss "
474+ cargo build --release --features " onnx,anthropic"
485475```
486476
487477---
@@ -746,7 +736,6 @@ CodeGraph uses feature flags to enable only the components you need. Build with
746736
747737| Feature | Description | Use Case |
748738| ---------| -------------| ----------|
749- | ` faiss ` | FAISS vector search + RocksDB | Local vector search with persistent graph storage |
750739| ` ai-enhanced ` | Agentic MCP tools | Enables 7 agentic workflows with multi-step reasoning |
751740| ` server-http ` | HTTP/SSE transport | Experimental HTTP server (use STDIO for production) |
752741| ` autoagents-experimental ` | AutoAgents framework | ReAct orchestration (experimental, replaces custom orchestrator) |
@@ -779,28 +768,28 @@ CodeGraph uses feature flags to enable only the components you need. Build with
779768
780769``` bash
781770# Local only (ONNX + Ollama)
782- cargo build --release --features " onnx,ollama,faiss "
771+ cargo build --release --features " onnx,ollama"
783772
784773# LM Studio
785- cargo build --release --features " openai-compatible,faiss "
774+ cargo build --release --features " openai-compatible"
786775
787776# Cloud only (Anthropic + OpenAI)
788- cargo build --release --features " anthropic,openai-llm,openai,faiss "
777+ cargo build --release --features " anthropic,openai-llm,openai"
789778
790- # Jina AI cloud embeddings + local FAISS
791- cargo build --release --features " cloud-jina,faiss "
779+ # Jina AI cloud embeddings + local surrealDB
780+ cargo build --release --features " cloud-jina"
792781
793782# SurrealDB cloud vector backend
794- cargo build --release --features " cloud-surrealdb,openai,faiss "
783+ cargo build --release --features " cloud-surrealdb,openai"
795784
796785# Full cloud (Jina + SurrealDB + Anthropic)
797- cargo build --release --features " cloud,anthropic,faiss "
786+ cargo build --release --features " cloud,anthropic"
798787
799788# Everything (local + cloud)
800- cargo build --release --features " all-cloud-providers,onnx,ollama,cloud,faiss "
789+ cargo build --release --features " all-cloud-providers,onnx,ollama,cloud"
801790
802791# HTTP server with AutoAgents (experimental)
803- cargo build --release -p codegraph-mcp --features " ai-enhanced,autoagents-experimental,faiss, embeddings-ollama,server-http"
792+ cargo build --release -p codegraph-mcp --features " ai-enhanced,autoagents-experimental,embeddings-ollama,server-http"
804793```
805794
806795---
@@ -812,7 +801,7 @@ cargo build --release -p codegraph-mcp --features "ai-enhanced,autoagents-experi
812801| Operation | Performance | Notes |
813802| -----------| ------------| -------|
814803| ** Embedding generation** | 120 embeddings/sec | LM Studio with MLX |
815- | ** Vector search (local)** | 2-5ms latency | FAISS with index caching |
804+ | ** Vector search (local)** | 2-5ms latency | SurrealDB HNSW |
816805| ** Vector search (cloud)** | 2-5ms latency | SurrealDB HNSW |
817806| ** Jina AI embeddings** | 50-150ms per query | Cloud API call overhead |
818807| ** Jina reranking** | 80-200ms for top-K | Two-stage retrieval |
@@ -822,7 +811,6 @@ cargo build --release -p codegraph-mcp --features "ai-enhanced,autoagents-experi
822811
823812| Optimization | Speedup | Memory Cost |
824813| -------------| ---------| -------------|
825- | FAISS index cache | 10-50× | 300-600 MB |
826814| Embedding cache | 10-100× | ~ 90 MB |
827815| Query cache | 100× | ~ 10 MB |
828816| Parallel search | 2-3× | Minimal |
@@ -831,19 +819,6 @@ cargo build --release -p codegraph-mcp --features "ai-enhanced,autoagents-experi
831819
832820## 🔧 Troubleshooting
833821
834- ### Build Issues
835-
836- ** "Could not find library faiss"**
837- ``` bash
838- # Install FAISS first
839- brew install faiss # macOS
840- sudo apt-get install libfaiss-dev # Ubuntu
841- ```
842-
843- ** "Feature X is not enabled"**
844- - Make sure you included the feature flag when building
845- - Example: ` cargo build --release --features "anthropic,faiss" `
846-
847822### Runtime Issues
848823
849824** "API key not found"**
@@ -879,7 +854,6 @@ CodeGraph provides native Node.js bindings through NAPI-RS for seamless TypeScri
879854- 📘 ** Auto-Generated Types** : TypeScript definitions generated directly from Rust code
880855- ⚡ ** Async Runtime** : Full tokio async support integrated with Node.js event loop
881856- 🔄 ** Hot-Reload Config** : Update configuration without restarting your Node.js process
882- - 🌐 ** Dual-Mode Search** : Automatic routing between local FAISS and cloud SurrealDB
883857
884858### Installation
885859
@@ -966,10 +940,10 @@ console.log(`Nodes: ${stats.node_count}, Edges: ${stats.edge_count}`);
966940
967941** Feature flags for selective compilation:**
968942``` bash
969- # Local-only (FAISS , no cloud)
943+ # Local-only (local surrealDB , no cloud)
970944npm run build # Uses default = ["local"]
971945
972- # Cloud-only (no FAISS)
946+ # Cloud-only (no local surrealDB
973947npm run build -- --features cloud
974948
975949# Full build (local + cloud)
0 commit comments