How kamalesh-k05/sih-bis-portal works
BIS Smart Portal guides businesses from product descriptions to applicable standards and certification preparation, and helps consumers check BIS product details. Its offline-first browser experience also provides standards browsing, a multilingual assistant, document search, and a judge demo; an optional FastAPI backend exposes a parallel RAG pipeline. The graph reflects documented routes and sampled calls; some feature links are based on README descriptions because their implementation was not sampled, and verification uses prototype data rather than the official BIS database.
Main entry points: App.tsx Web app routes · StandardsPage.tsx Standards browser · AssistantChat.tsx Chat widget · BusinessJourney.tsx Business journey
Components 27
User journeys
- Web app routes
src/App.tsx - Portal home
src/pages/Home.tsx - Business journey
src/pages/BusinessJourney.tsx - Consumer journey
src/pages/ConsumerJourney.tsx - Document checklist
src/components/DocumentChecklist.tsx - Judge demo
src/components/JudgeDemo.tsx
Standards and assistant
- Standards browser
src/pages/StandardsPage.tsx - Assistant page
src/pages/Assistant.tsx - Chat widget
src/components/AssistantChat.tsx - Verified standards
src/data/standards.ts - Hybrid search
src/utils/searchEngine.ts - Standards whitelist
src/utils/antiHallucination.ts - Response generation
src/utils/responseGenerator.ts - Translations
src/data/translations.ts
Verification and documents
- Product verification
src/utils/verificationEngine.ts - Product scanner
src/components/ProductScanner.tsx - Document search
src/utils/documentSearch.ts - BIS PDF parser
src/utils/pdfParser.ts - Live standard lookup
src/utils/bisLive.ts
State and backend
- Shared app state
src/store/appStore.ts - FastAPI endpoints
backend/main.py - Backend search
backend/search_engine.py - Backend whitelist
backend/anti_hallucination.py - Backend responses
backend/response_generator.py - Backend standards
backend/standards_data.py
Other components
- Portal user
- Official BIS services
Connections 38
- Portal user → Web app routes: uses
- Web app routes → Portal home: routes to
src/App.tsx - Web app routes → Business journey: routes to
src/App.tsx - Web app routes → Consumer journey: routes to
src/App.tsx - Web app routes → Standards browser: routes to
src/App.tsx - Web app routes → Assistant page: routes to
src/App.tsx - Web app routes → Judge demo: routes to
src/App.tsx - Web app routes → Chat widget: renders
src/App.tsx - Portal home → Business journey: links to
src/pages/Home.tsx - Portal home → Consumer journey: links to
src/pages/Home.tsx - Business journey → Hybrid search: searches
src/pages/BusinessJourney.tsx - Hybrid search → Verified standards: ranks
src/utils/searchEngine.ts - Business journey → Document checklist: renders
src/pages/BusinessJourney.tsx - Business journey → Shared app state: updates
src/pages/BusinessJourney.tsx - Consumer journey → Product scanner: offers scanning
src/pages/ConsumerJourney.tsx - Consumer journey → Product verification: verifies with
src/pages/ConsumerJourney.tsx - Consumer journey → Shared app state: stores result
src/pages/ConsumerJourney.tsx - Chat widget → Hybrid search: searches
src/components/AssistantChat.tsx - Chat widget → Standards whitelist: validates codes
src/components/AssistantChat.tsx - Chat widget → Response generation: generates reply
src/components/AssistantChat.tsx - Chat widget → Shared app state: stores messages
src/components/AssistantChat.tsx - Assistant page → Hybrid search: searches
src/pages/Assistant.tsx - Assistant page → Standards whitelist: validates codes
src/pages/Assistant.tsx - Assistant page → Response generation: generates reply
src/pages/Assistant.tsx - Standards browser → Document search: searches documents
src/pages/StandardsPage.tsx - Standards browser → BIS PDF parser: parses uploads
src/pages/StandardsPage.tsx - Standards browser → Live standard lookup: looks up standards
src/pages/StandardsPage.tsx - Standards browser → Verified standards: browses
src/pages/StandardsPage.tsx - Judge demo → Hybrid search: measures retrieval
src/components/JudgeDemo.tsx - Judge demo → Standards whitelist: checks whitelist
src/components/JudgeDemo.tsx - Live standard lookup → Official BIS services: fetches details
- FastAPI endpoints → Backend search: calls
backend/main.py - FastAPI endpoints → Backend whitelist: validates with
backend/main.py - FastAPI endpoints → Backend responses: generates with
backend/main.py - Backend search → Backend standards: ranks
backend/search_engine.py - Backend responses → Backend search: uses results
backend/response_generator.py - Backend responses → Backend standards: uses data
backend/response_generator.py - Backend whitelist → Backend standards: checks codes
backend/anti_hallucination.py