ISRO Knowledge Graph RAG is an interactive system that allows users to explore ISRO missions, satellites, launch vehicles, and centers using natural language queries. It uses GraphRAG, Cypher-based retrieval, and semantic search to generate accurate, graph-grounded answers.
- 🧠 Retrieval-Augmented Generation over structured ISRO knowledge
- 🔍 Semantic Search using ChromaDB instead of keyword matching
- 🕸️ Graph-based reasoning using Cypher queries (via Neo4j)
- ⚡ Fast responses by retrieving only relevant triplets / subgraphs
- 💬 Clean Gradio chatbot UI for interacting with the graph
- 🔌 Fully local - no external APIs or cloud databases required
git clone https://github.com/Anjali-Mittal/KnwoledgeGraph_RAG.git
cd KnwoledgeGraph_RAGUse a virtual environment (recommended):
python -m venv venv
source venv/bin/activate # or venv\Scripts\activate on Windows
pip install -r requirements.txtCreate a .env (DO NOT upload this to GitHub):
NEO4J_USER=neo4j
NEO4J_PASSWORD=your_password
OPENROUTER_API_KEY=your_keyFor HuggingFace deployment, add these to HF Spaces → Settings → Secrets.
Make sure Neo4j Desktop or Memgraph Light is running.bash python app.py
The Gradio UI will open you can now ask any ISRO-related question.
ISRO_KnowledgeGraph_RAG/
├── app.py # Main Gradio application
├── backend.py # Retrieval + LLM logic
├── cypher_generator.py # Natural language → Cypher conversion
├── fallback_llm.py # Fallback logic when no context is found
├── get_response.py # Final answer generation
├── data/
│ └── triplets.csv # ISRO Knowledge Graph dataset
├── embedding/
│ ├── chroma_utils.py # ChromaDB operations
│ └── models/ # (Optional) stored embedding models
├── ingest/
│ └── main_ingest.py # Ingestion pipeline for embeddings
├── config/
│ └── settings.py # Central config
├── static/
│ └── graph.js # Visualization logic
├── .env # Not stored in repo
├── requirements.txt
└── README.md
- What missions did ISRO launch in 2019?
- Show me the relationship between PSLV and Chandrayaan.
- Which centers handle satellite integration?
- Explain the structure of ISRO launch vehicles.
- Dataset coverage
- Graph consistency
- Model performance
- UI/UX
Made with ❤️ by Anjali Mittal