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