agentic-rag · service and data flow

Request-local ReAct controller chooses vector or graph tools, observes results, and emits a trace

agentic-rag service and data flowAn agent controller selects vector and graph retrieval tools during each request and keeps observations only in the current message history. ATLAS COMPOSE STACK · RAG PLUGIN + RETRIEVAL SERVICESCONTROL PATH · ONE REQUEST-LOCAL MESSAGE HISTORY TOOL EXECUTION · SELECTED AT QUERY TIME 7 · finish → final answer + trace6 · tool observations append to current request history; repeat until finish or MAX_STEPS=4 CallerOpen WebUI / API LiteLLMmodel: agentic-rag Agentic pluginschemas · loop · trace ReAct controller LLMchoose tool or finish OpenAI responseanswer · sources · trace 1request2dispatch3tools + prompt search_vectorsquery · vector_top_k Embedding modelnomic-embed-text Weaviatehybrid vector search query_graphquestion · graph_mode LightRAGgraph/vector retrieval Tool observationsresults or failure text MESSAGE CONTRACT, STATE, AND FAILURE SEMANTICS 1–3 · INITIAL DECISIONquestion + tool schemas → controller modelTool selection happens at query time.No cross-request memory is persisted. 4 · VECTOR TOOLquestion → embed → Weaviate hybrid searchReturns source-bearing chunk observations.Uses the existing RagBase index. 5 · GRAPH TOOLquestion → LightRAG query serviceUses the persistent LightRAG workspace.Tool failures become observations, not crashes. 6–7 · LOOP + RETURNObservations feed the next controller turn.Loop stops at finish or MAX_STEPS.Response includes the request execution trace.