How mridula222/ai-helpbot-kg works
AI Help Bot is a MOSDAC/ISRO knowledge assistant with a React chat UI, a FastAPI service, entity extraction, and a local JSON-backed knowledge graph. The main user workflow sends a chat message to the API, extracts entities, then resolves them against canned answers or the graph; file uploads follow a separate extraction-and-summary route. Documented ingestion and FAQ entity-processing capabilities are also shown. The README describes a broader LangChain RAG and Neo4j design, but the sampled runtime implements the JSON graph path; unsampled integration details are not inferred.
Main entry points: main.py FastAPI routes · process_all_data.py FAQ and document parsing · App.jsx Chat application · ChatWindow.jsx Chat and upload
Components 16
Chat interface
- Chat application
frontend/chat-bot/src/App.jsx - Chat and upload
frontend/chat-bot/src/components/ChatWindow.jsx - Chat sidebar
frontend/chat-bot/src/components/Sidebar.jsx
API service
- FastAPI routes
backend/app/main.py - Fallback replies
backend/app/main.py
Knowledge processing
- Entity extraction
nlp_processing/backend_interface.py - Graph answer interface
knowledge_graph/backend_interface.py - Entity lookup
knowledge_graph/kg_query.py - Knowledge graph data
knowledge_graph/kg_data.json - FAQ entity extraction
nlp_processing/process_faq_entities.py - FAQ entity output
nlp_processing/faq_entities.json
Content ingestion
- FAQ and document parsing
data_ingestion/process_all_data.py - FAQ and source documents
data_ingestion/mosdac_faqs.json - Parsed text corpus
data_ingestion/parsed_output/master_dataset.txt
Other components
- User
- MOSDAC portal
Connections 15
- User → Chat and upload: enters query
frontend/chat-bot/src/components/ChatWindow.jsx - Chat application → Chat and upload: renders
frontend/chat-bot/src/App.jsx - Chat application → Chat sidebar: renders
frontend/chat-bot/src/App.jsx - Chat sidebar → Chat application: starts chat
frontend/chat-bot/src/App.jsx - Chat and upload → FastAPI routes: posts chat or file
frontend/chat-bot/src/components/ChatWindow.jsx - FastAPI routes → Fallback replies: checks fallback
backend/app/main.py - FastAPI routes → Entity extraction: extracts entities
backend/app/main.py - FastAPI routes → Graph answer interface: requests graph answer
backend/app/main.py - Graph answer interface → Entity lookup: looks up entities
knowledge_graph/backend_interface.py - Entity lookup → Knowledge graph data: reads
knowledge_graph/kg_query.py - MOSDAC portal → FAQ and document parsing: supplies FAQs
- FAQ and document parsing → FAQ and source documents: writes FAQ data
data_ingestion/process_all_data.py - FAQ and document parsing → Parsed text corpus: writes parsed corpus
data_ingestion/process_all_data.py - FAQ and source documents → FAQ entity extraction: provides FAQ input
nlp_processing/process_faq_entities.py - FAQ entity extraction → FAQ entity output: writes entities
nlp_processing/process_faq_entities.py