How srijan-mukherjee/sih works
IP-SAKTI Sahayak is a web platform for Ayurveda-related IP and regulatory decision support. Users manage products and versioned ingredient, formulation, claim, evidence, and market details; the backend can then produce claim and product analyses, preliminary IP-route and patent screens, and change-impact reviews. A separate knowledge-assistant workflow ingests source documents and supports source-backed retrieval. The sampled files confirm app/router registration, content integrity handling, analysis orchestration, and RAG ingestion and retrieval; some router-to-service and assistant-generation wiring is not shown, so those links are omitted.
Main entry points: main.py FastAPI application · database.py Application database · retrieval.py Hybrid retrieval · analysis_service.py Analysis orchestration
Components 28
User interface
- Web application
OneDrive/Desktop/sih/IP-SHAKTI/FRONTEND/src/App.jsx
API and identity
- FastAPI application
OneDrive/Desktop/sih/IP-SHAKTI/BACKEND/app/main.py - Authentication routes
OneDrive/Desktop/sih/IP-SHAKTI/BACKEND/app/routers/auth.py - Authentication service
OneDrive/Desktop/sih/IP-SHAKTI/BACKEND/app/services/auth_service.py - JWT handling
OneDrive/Desktop/sih/IP-SHAKTI/BACKEND/app/utils/jwt_handler.py
Product review
- Product routes
OneDrive/Desktop/sih/IP-SHAKTI/BACKEND/app/routers/products.py - Product service
OneDrive/Desktop/sih/IP-SHAKTI/BACKEND/app/services/product_service.py - Version content routes
OneDrive/Desktop/sih/IP-SHAKTI/BACKEND/app/routers/version_content.py - Version content service
OneDrive/Desktop/sih/IP-SHAKTI/BACKEND/app/services/version_content_service.py - Analysis routes
OneDrive/Desktop/sih/IP-SHAKTI/BACKEND/app/routers/analysis.py - Analysis orchestration
OneDrive/Desktop/sih/IP-SHAKTI/BACKEND/app/services/analysis_service.py - Claim and classification analysis
OneDrive/Desktop/sih/IP-SHAKTI/BACKEND/app/analysis - IP screening routes
OneDrive/Desktop/sih/IP-SHAKTI/BACKEND/app/routers/ip.py - IP route screening
OneDrive/Desktop/sih/IP-SHAKTI/BACKEND/app/analysis/ip_routes.py - Change-impact routes
OneDrive/Desktop/sih/IP-SHAKTI/BACKEND/app/routers/change_impact.py - Change-impact review
OneDrive/Desktop/sih/IP-SHAKTI/BACKEND/app/services/change_impact_service.py
Knowledge assistant
- Knowledge routes
OneDrive/Desktop/sih/IP-SHAKTI/BACKEND/app/routers/knowledge.py - Document ingestion
OneDrive/Desktop/sih/IP-SHAKTI/BACKEND/app/rag/ingestion.py - Hybrid retrieval
OneDrive/Desktop/sih/IP-SHAKTI/BACKEND/app/rag/retrieval.py - Answer generation
OneDrive/Desktop/sih/IP-SHAKTI/BACKEND/app/rag/generation.py - Vector search
OneDrive/Desktop/sih/IP-SHAKTI/BACKEND/app/rag/vector_search.py - Keyword search
OneDrive/Desktop/sih/IP-SHAKTI/BACKEND/app/rag/keyword_search.py - Result reranking
OneDrive/Desktop/sih/IP-SHAKTI/BACKEND/app/rag/reranker.py
Persistence and providers
- Application database
OneDrive/Desktop/sih/IP-SHAKTI/BACKEND/app/database.py - Corpus document and chunk records
OneDrive/Desktop/sih/IP-SHAKTI/BACKEND/app/models/rag_models.py - Embedding provider
OneDrive/Desktop/sih/IP-SHAKTI/BACKEND/app/embeddings/provider.py - Language model provider
OneDrive/Desktop/sih/IP-SHAKTI/BACKEND/app/llm/provider.py
Other components
- Product user
Connections 33
- Product user → Web application: uses
- Web application → FastAPI application: API requests
- FastAPI application → Authentication routes: registers
- FastAPI application → Product routes: registers
- FastAPI application → Version content routes: registers
- FastAPI application → Analysis routes: registers
- FastAPI application → IP screening routes: registers
- FastAPI application → Change-impact routes: registers
- FastAPI application → Knowledge routes: registers
- Authentication routes → Authentication service: delegates
- Authentication service → Application database: queries and writes
- Authentication service → JWT handling: creates tokens
- Product routes → Product service: delegates
- Product service → Application database: reads and writes
- Version content routes → Version content service: delegates
- Version content service → Application database: reads and writes
- Analysis routes → Analysis orchestration: delegates
- Analysis orchestration → Application database: reads and writes
- Analysis orchestration → Claim and classification analysis: runs analysis
- Analysis orchestration → IP route screening: builds route map
- IP screening routes → IP route screening: requests screening
- Change-impact routes → Change-impact review: delegates
- Change-impact review → Application database: reads and writes
- Knowledge routes → Document ingestion: starts ingestion
- Document ingestion → Embedding provider: embeds chunks
- Document ingestion → Application database: stores chunks
- Application database → Corpus document and chunk records: stores records
- Hybrid retrieval → Embedding provider: embeds query
- Hybrid retrieval → Vector search: runs vector search
- Hybrid retrieval → Keyword search: runs keyword search
- Hybrid retrieval → Result reranking: reranks results
- Vector search → Application database: searches vectors
- Keyword search → Application database: searches text