Applied AI / LLM

Agentic Graph RAG

PythonFastAPIFalkorDBLangChainStreamlitSSE

An end-to-end agentic GraphRAG stack: ingest almost any file into a FalkorDB knowledge graph, then ask questions in natural language. A tool-calling agent inspects the live graph schema, plans and executes read-only Cypher, self-corrects on errors, and streams its full reasoning trace — grounding every answer in the graph.

Architecture

Agentic Graph RAG architecture A user reaches a Streamlit studio and a React console, which call a FastAPI backend over HTTP and SSE. The backend runs an agent engine, an LLM runtime, ingestion, and session memory. The agent runs read-only Cypher against FalkorDB; ingestion writes nodes and edges to it. The LLM runtime talks to one of several swappable providers. FastAPI Backend · :8000 User GraphRAG Studio Streamlit · :8501 chat · ingest · graph Agent Console React / Vite · :5173 live SSE demo REST + SSE · /query /upload /llm /graphs /graph-schema /sessions Agent Engine tool loop · get_schema · execute_cypher read-only · self-correct JSON fallback LLM Runtime provider / model switchable at runtime (no restart) Ingestion files → typed graph docs → chunk + LLM entity extraction Session Memory recent turns verbatim + rolling LLM summary of older FalkorDB :6380 · multi-graph knowledge graph LLM Providers Ollama (local) OpenAI Anthropic OpenAI-compatible one active · switchable HTTP + SSE uses read-only Cypher nodes + edges 1 active
Two frontends over one streaming FastAPI backend: the agent reads the graph with validated read-only Cypher, ingestion writes it, and the LLM runtime swaps providers at runtime. Ingestion and memory also call the runtime for extraction and summarization.

Highlights

View on GitHub Back to projects