How tejachar121/agentic-ai works
This is an inventory-management application with a browser UI, a Java service/API, and AI-assisted inventory Q&A and tool access. The main user journey is to sign in, inspect dashboard and inventory data, manage products and suppliers, create or review purchase orders, and track stock; the assistant provides a separate question-and-answer path over live business data and inventory guidance. Source excerpts confirm the RAG and chat/MCP orchestration, but most resource-controller and frontend API wiring was not sampled, so those links are left out.
Main entry points: AppRoutes.jsx Routes and access · RagService.java RAG orchestration · repository Repositories · ChatService.java Chat sessions
Components 24
Web client
- App shell
frontend/src/App.jsx - Routes and access
frontend/src/routes/AppRoutes.jsx - Sign-in and registration
frontend/src/pages/auth - Dashboard
frontend/src/pages/dashboard - Product management
frontend/src/pages/products - Supplier management
frontend/src/pages/suppliers - Purchase orders
frontend/src/pages/purchaseOrders - Stock tracking
frontend/src/pages/stock - Assistant screen
frontend/src/pages/rag
Inventory API
- REST controllers
inventory-management/src/main/java/com/wipro/inventory_management/controller - Authentication service
inventory-management/src/main/java/com/wipro/inventory_management/service/AuthService.java - Inventory services
inventory-management/src/main/java/com/wipro/inventory_management/service
Inventory data
- Repositories
inventory-management/src/main/java/com/wipro/inventory_management/repository - Inventory records
inventory-management/src/main/java/com/wipro/inventory_management/entity
AI assistant
- RAG orchestration
inventory-management/src/main/java/com/wipro/inventory_management/service/RagService.java - Chat sessions
inventory-management/src/main/java/com/wipro/inventory_management/chat/ChatService.java - Tool executor
inventory-management/src/main/java/com/wipro/inventory_management/agent/AgentExecutor.java - MCP endpoint
inventory-management/src/main/java/com/wipro/inventory_management/mcp/McpController.java
AI integrations
- Embedding service
inventory-management/src/main/java/com/wipro/inventory_management/service/OllamaEmbeddingService.java - Chroma access
inventory-management/src/main/java/com/wipro/inventory_management/service/ChromaDbService.java
Other components
- Warehouse user
- Ollama model service
- ChromaDB
- Chat language model
Connections 23
- Warehouse user → App shell: uses
- App shell → Routes and access: renders
- Routes and access → Sign-in and registration: routes
- Routes and access → Dashboard: routes
- Routes and access → Product management: routes
- Routes and access → Supplier management: routes
- Routes and access → Purchase orders: routes
- Routes and access → Stock tracking: routes
- Routes and access → Assistant screen: routes
- Assistant screen → REST controllers: asks via API
- REST controllers → RAG orchestration: delegates
- RAG orchestration → Inventory services: reads live data
- RAG orchestration → Embedding service: embeds query
- Embedding service → Ollama model service: requests vectors
- RAG orchestration → Chroma access: retrieves context
- Chroma access → ChromaDB: queries
- RAG orchestration → Chat language model: generates answer
- Chat sessions → Chat language model: prompts
- Chat sessions → Tool executor: dispatches tool
- MCP endpoint → Tool executor: dispatches tool
- Authentication service → Repositories: reads and writes users
- Inventory services → Repositories: accesses records
- Repositories → Inventory records: maps