How celestialgeeks/ip-sakti-sahayak works
IP-SAKTI Sahayak combines citation-grounded Ayush IP research with a founder-facing commercialization workflow: research and compliance checks, deterministic formulation simulation, registration guidance, and business enablement. The chat path is supported by sampled frontend and backend code; several additional product branches are documented in the README and represented by their exact route and page paths, but their internal wiring is not detailed here.
Main entry points: main.py FastAPI application · rag_pipeline.py RAG orchestration · chat.py Chat endpoint · page.tsx Chat interface
Components 24
User Experience
- Chat interface
frontend/src/app/chat/page.tsx - Chat streaming
frontend/src/hooks/useChat.ts - Ayurvedic library
frontend/src/app/ayurveda/page.tsx - Formulation Lab
frontend/src/app/formulation-lab/page.tsx - Compliance wizard
frontend/src/app/wizard/page.tsx - Business tools
frontend/src/app/business/page.tsx
API Surface
- FastAPI application
backend/app/main.py - Chat endpoint
backend/app/api/routes/chat.py - Classification endpoint
backend/app/api/routes/classify.py - ABS checker
backend/app/api/routes/abs_check.py - Formulation endpoint
backend/app/api/routes/formulation_lab.py - Wizard endpoint
backend/app/api/routes/wizard.py - Business endpoint
backend/app/api/routes/business.py - Library endpoint
backend/app/api/routes/ayurveda.py
IP Research
- RAG orchestration
backend/app/core/rag_pipeline.py - Citation verification
backend/app/core/citation_engine.py
Founder Tools
- Simulation engine
backend/app/core/formulation/engine.py - Curated library
backend/app/services/ayurveda_service.py - Business catalogs
backend/app/services/business_service.py
Data And Integrations
- NVIDIA NIM
backend/app/services/nvidia_nim.py - Vector search
backend/app/services/qdrant_service.py - Indic translation
backend/app/services/sarvam.py - Session storage
backend/app/services/supabase_service.py
Other components
- Ayush founder
Connections 23
- Ayush founder → Chat interface: asks research
- Ayush founder → Ayurvedic library: browses knowledge
- Ayush founder → Formulation Lab: tests formulation
- Ayush founder → Compliance wizard: seeks registration
- Ayush founder → Business tools: seeks support
- Chat interface → Chat streaming: submits query
- Chat streaming → Chat endpoint: POST chat
- FastAPI application → Chat endpoint: mounts route
- FastAPI application → Classification endpoint: mounts route
- FastAPI application → ABS checker: mounts route
- FastAPI application → Formulation endpoint: mounts route
- FastAPI application → Wizard endpoint: mounts route
- FastAPI application → Business endpoint: mounts route
- FastAPI application → Library endpoint: mounts route
- Chat endpoint → RAG orchestration: runs research
- RAG orchestration → NVIDIA NIM: generates and embeds
- RAG orchestration → Vector search: retrieves documents
- RAG orchestration → Indic translation: translates query
- RAG orchestration → Session storage: saves sessions
- RAG orchestration → Citation verification: extracts citations
- Formulation endpoint → Simulation engine: simulates formulation
- Library endpoint → Curated library: serves library
- Business endpoint → Business catalogs: uses catalogs