ONLINE

codebase-graph-rag

Codebase understanding with AST parsing and graph-based retrieval. Explore code structure, relationships, and dependencies through natural language queries.

// architecture
START → classify_intent → [code/graph/direct]
                          ↓
              code_search / graph_query
                          ↓
           grade_results → [sufficient] → generate_response → END
                     [insufficient] → transform_query → retry

AST Parsing

Structure-aware chunking by functions, classes, and methods

Knowledge Graph

NetworkX graph of calls, imports, inheritance relationships

Graph Queries

"What does X call?" "What functions use Y?" traversal

Self-Correcting

Grades results, rewrites queries, retries for accuracy

// interactive demo
$ agent

Ask me about code structure, relationships, or specific functions. Try: "What does classify_intent do?" or "What does it call?"

>
connecting... codebase-graph-rag
// stack
langgraph langsmith fastapi networkx ast pinecone