rag_agent/ ├── app.py # Main Gradio application entry point ├── config.py # Configuration hub (models, chunk sizes, providers) ├── util.py # PDF to markdown conversion ├── core/ # Core RAG components orchestration │ ├── chat_interface.py │ ├── document_manager.py │ └── rag_system.py ├── knowledge_base/ # for create chromadb ├── chroma_data/ # chroma vectorstore data ├── agent_logic/ # LangGraph agent workflow │ ├── edges.py # Conditional routing logic │ ├── graph.py # Graph construction and compilation │ ├── graph_state.py # State definitions │ ├── nodes.py # Processing nodes (summarize, rewrite, agent) │ ├── prompts.py # System prompts │ ├── schemas.py # Pydantic data models │ └── tools.py # Retrieval tools └── ui/ # User interface └── gradio_app.py # Gradio interface components