How yashti04choudhary/sih_2026-bis_navigator works
BISNova is a conversational Indian Standards and BIS-services assistant. Its main workflow runs from the frontend through P2’s authenticated chat endpoint, product matching and clarification, then—unless clarification is needed—an HTTP request to the separately running P1 evidence service; P2 combines the result for the user. Other documented capabilities include standards and lab browsing, accounts, chat history, feedback, and knowledge-base updates. The graph includes core modules named in the source index; unsampled subsystem links are shown only where the README documents them.
Main entry points: App.jsx Web app · routers_chat.py Chat endpoint · main.py P2 API · orchestrator.py Request orchestrator
Components 27
User experience
- Web app
frontend/src/App.jsx - Auth context
frontend/src/AuthContext.jsx - API client
frontend/src/api.js - Labs browser
frontend/src/components/TestingLabsPage.jsx
P2 product API
- P2 API
backend/main.py - Chat endpoint
backend/routers_chat.py - Authentication
backend/auth/dependencies.py - Account routes
backend/auth/router.py - Supabase access
backend/database.py - Runtime dependencies
backend/dependencies.py - Standards and labs
backend/routers_catalog.py - Standards list queries
backend/list_query.py - KB update review
backend/kb_updater - Feedback capture
backend/routers_feedback.py - Chat history
backend/routers_chat_history.py
Product intelligence
- Product matching
product_intelligence/src/pipeline.py
P1 integration
- Request orchestrator
integration/orchestrator.py - P1 input adapter
integration/adapter.py - P1 HTTP client
integration/p1_client.py
P1 evidence service
- P1 API
p1_service/api/server.py - Evidence service
p1_service/rag/service/p1_service.py - Evidence pipeline
p1_service/rag/pipeline/evidence_pipeline.py - Evidence retrieval
p1_service/rag/retrieval/retriever.py - Knowledge adapter
p1_service/rag/knowledge/adapter.py - Evidence records
p1_service/rag/schemas/evidence.py
Other components
- User
- Gemini
Connections 30
- User → Web app: asks or browses
README.md - Web app → API client: uses API
frontend/src/App.jsx - API client → P2 API: sends requests
README.md - P2 API → Chat endpoint: routes chat
backend/main.py - P2 API → Standards and labs: routes catalog
backend/main.py - P2 API → Account routes: routes accounts
backend/main.py - Chat endpoint → Authentication: validates user
backend/routers_chat.py - Account routes → Supabase access: reads and writes users
backend/auth/router.py - Authentication → Supabase access: loads active user
backend/auth/dependencies.py - Web app → Auth context: uses auth state
frontend/src/main.jsx - Labs browser → API client: loads lab data
frontend/src/components/TestingLabsPage.jsx - Standards and labs → Runtime dependencies: loads catalog data
backend/routers_catalog.py - Chat endpoint → Standards list queries: handles list intent
backend/routers_chat.py - Chat endpoint → Runtime dependencies: gets pipeline
backend/routers_chat.py - Runtime dependencies → Product matching: provides pipeline
backend/dependencies.py - Chat endpoint → Request orchestrator: runs request
backend/routers_chat.py - Request orchestrator → Product matching: matches product
integration/orchestrator.py - Request orchestrator → P1 input adapter: builds P1 input
integration/orchestrator.py - Request orchestrator → P1 HTTP client: sends P1 request
integration/orchestrator.py - P1 HTTP client → P1 API: posts input
integration/p1_client.py - P1 API → Evidence service: dispatches request
p1_service/api/server.py - Evidence service → Evidence pipeline: runs retrieval
p1_service/rag/service/p1_service.py - Evidence pipeline → Evidence retrieval: retrieves evidence
p1_service/rag/pipeline/evidence_pipeline.py - Evidence pipeline → Knowledge adapter: builds evidence
p1_service/rag/pipeline/evidence_pipeline.py - Evidence pipeline → Gemini: generates answer
p1_service/rag/pipeline/evidence_pipeline.py - Evidence service → Evidence records: returns evidence records
p1_service/rag/service/p1_service.py - Web app → Labs browser: opens lab browser
frontend/src/App.jsx - User → KB update review: reviews updates
README.md - User → Feedback capture: rates answers
README.md - Web app → Chat history: manages conversations
README.md