How menawang/agentic-rag-with-llamaindex works
Project type and purpose
• This is a tutorial/demo project that showcases how to build “agentic RAG” (Retrieval-Augmented Generation) workflows on top of LlamaIndex.
• It consists of four Jupyter notebooks (L1–L4) which each demonstrate a lesson:
• L1: Router engine that dispatches queries to either a vector-search Q&A tool or a summarization tool.
• L2: Tool-calling where the LLM infers parameters for downstream tools.
• L3: A multi-step agent using AgentRunner/AgentWorker with human-in-the-loop steering.
• L4: “RAG over tools” where a retriever selects a subset of document-specific tools to feed into the agent.
File structure
• Top level:
• .gitignore
• requirements_py311.txt — dependency list (e.g. llamaindex, openai, faiss, etc.).
• helper.py, utils.py — library modules that encapsulate core functions:
– get_router_query_engine()
– get_doc_tools()
– helpers to build retrievers, agent runners/workers.
• Four Jupyter notebooks (L1_…–L4_…) as the orchestration layer.
README for architectural hints
• AgentRunner ↔ AgentWorker
• RAG over tools
• It mentions components: router engine, vector store Q&A, summary tool, retriever, AgentRunner, AgentWorker, human-in-loop.
Don’t overthink—capture every major component and its connections. The goal is
• How queries flow
• How tools and retrievers are invoked
• Where human oversight fits
• Which libraries/APIs are in play