How yugeshkaran/indic_research_scholar works
Indic Research Assistant lets researchers upload academic papers, then ask grounded questions in Indic languages and receive spoken answers. The main workflow is protected frontend upload → Flask OCR and ingestion → Pinecone-backed retrieval and answer generation → translated response and optional speech; Node maintains scholar accounts and the document library, with Flask registering successful ingests through Node’s internal API. The graph also preserves authentication, document management, voice input/output, and the internal embedding/vector-search layer. Some voice and OCR integrations are documented but their runtime wiring was not sampled.
Main entry points: App.jsx Web application · Retrieval.jsx Research interface · retrieval.py Answer retrieval · app.py Flask API
Components 30
Research interface
- Web application
indic_research_assistant_frontend/src/App.jsx - Auth screens
indic_research_assistant_frontend/src/auth - Auth state
indic_research_assistant_frontend/src/AuthContext.jsx - Upload interface
indic_research_assistant_frontend/src/components/Ingest.jsx - Research interface
indic_research_assistant_frontend/src/components/Retrieval.jsx - Voice controls
indic_research_assistant_frontend/src/components/VoiceInput.jsx - Speaker selection
indic_research_assistant_frontend/src/components/SpeakerSelect.jsx - HTTP client
indic_research_assistant_frontend/src/instances/axiosInstance.jsx
Application services
- Flask API
indic_research_assistant_backend/flask_service/app.py - Document processing
indic_research_assistant_backend/flask_service/pipeline/document_service.py - Chunk ingestion
indic_research_assistant_backend/flask_service/pipeline/ingestion.py - Answer retrieval
indic_research_assistant_backend/flask_service/pipeline/retrieval.py - Speech recognition
indic_research_assistant_backend/flask_service/pipeline/stt_service.py - Speech synthesis
indic_research_assistant_backend/flask_service/pipeline/tts_service.py - Node API
indic_research_assistant_backend/nodejs_service/index.js - Scholar routes
indic_research_assistant_backend/nodejs_service/routes/scholar.Route.js - Scholar accounts
indic_research_assistant_backend/nodejs_service/controllers/scholar.Controller.js - Document routes
indic_research_assistant_backend/nodejs_service/routes/doc.Route.js - Document library
indic_research_assistant_backend/nodejs_service/controllers/doc.Controller.js - JWT authentication
indic_research_assistant_backend/nodejs_service/middleware/authMiddleware.js - Internal auth
indic_research_assistant_backend/nodejs_service/middleware/flaskAuth.js - Scholar records
indic_research_assistant_backend/nodejs_service/models/scholarSchema.js - Node registration client
indic_research_assistant_backend/flask_service/utils/node_client.py
AI and document data
- Embedding and chunks
indic_research_assistant_backend/flask_service/utils/embeder.py - Vector index
indic_research_assistant_backend/flask_service/utils/pinecone_client.py - Answer prompting
indic_research_assistant_backend/flask_service/utils/prompt.py
Other components
- Researcher
- Sarvam AI
- MongoDB
- Pinecone
Connections 37
- Researcher → Web application: uses
indic_research_assistant_frontend/src/App.jsx - Web application → Auth screens: routes to
indic_research_assistant_frontend/src/App.jsx - Web application → Upload interface: routes to
indic_research_assistant_frontend/src/App.jsx - Web application → Research interface: routes to
indic_research_assistant_frontend/src/App.jsx - Web application → Auth state: provides
indic_research_assistant_frontend/src/App.jsx - Auth screens → Auth state: uses
indic_research_assistant_frontend/src/auth/Login.jsx - Auth state → HTTP client: calls
indic_research_assistant_frontend/src/AuthContext.jsx - Upload interface → Flask API: uploads to
- Research interface → HTTP client: fetches library
indic_research_assistant_frontend/src/components/Retrieval.jsx - Research interface → Flask API: asks
- Research interface → Voice controls: uses
indic_research_assistant_frontend/src/components/Retrieval.jsx - Research interface → Speaker selection: uses
indic_research_assistant_frontend/src/components/Retrieval.jsx - Flask API → Document processing: handles uploads
indic_research_assistant_backend/flask_service/app.py - Flask API → Answer retrieval: handles questions
indic_research_assistant_backend/flask_service/app.py - Flask API → Speech synthesis: handles speech
indic_research_assistant_backend/flask_service/app.py - Document processing → Chunk ingestion: ingests text
indic_research_assistant_backend/flask_service/pipeline/document_service.py - Document processing → Node registration client: registers document
indic_research_assistant_backend/flask_service/pipeline/document_service.py - Chunk ingestion → Embedding and chunks: chunks and embeds
indic_research_assistant_backend/flask_service/pipeline/ingestion.py - Chunk ingestion → Vector index: upserts vectors
indic_research_assistant_backend/flask_service/pipeline/ingestion.py - Answer retrieval → Embedding and chunks: embeds query
indic_research_assistant_backend/flask_service/pipeline/retrieval.py - Answer retrieval → Vector index: searches chunks
indic_research_assistant_backend/flask_service/pipeline/retrieval.py - Answer retrieval → Answer prompting: builds answer prompt
indic_research_assistant_backend/flask_service/pipeline/retrieval.py - Answer retrieval → Sarvam AI: generates and translates
- Speech synthesis → Sarvam AI: synthesizes speech
- Speech recognition → Sarvam AI: transcribes audio
- Node API → Scholar routes: mounts
indic_research_assistant_backend/nodejs_service/index.js - Node API → Document routes: mounts
indic_research_assistant_backend/nodejs_service/index.js - Scholar routes → Scholar accounts: routes requests
indic_research_assistant_backend/nodejs_service/routes/scholar.Route.js - Scholar routes → JWT authentication: protects routes
indic_research_assistant_backend/nodejs_service/routes/scholar.Route.js - Document routes → Document library: routes requests
indic_research_assistant_backend/nodejs_service/routes/doc.Route.js - Document routes → JWT authentication: authenticates users
indic_research_assistant_backend/nodejs_service/routes/doc.Route.js - Document routes → Internal auth: authenticates service
indic_research_assistant_backend/nodejs_service/routes/doc.Route.js - Scholar accounts → Scholar records: reads and writes
indic_research_assistant_backend/nodejs_service/controllers/scholar.Controller.js - Scholar accounts → MongoDB: persists accounts
- Document library → Scholar records: uses scholar records
indic_research_assistant_backend/nodejs_service/controllers/doc.Controller.js - Node registration client → Node API: registers via HTTP
- Vector index → Pinecone: stores vectors