How saiphanindar2007/is-recoengine works
IS-RecoEngine is a role-based procurement standards platform. Officers submit typed queries or tender files, receive explainable hybrid-search recommendations and related standards, then save specification packages or flag outdated records. Admins manage standards, users and change requests; auditors inspect usage analytics and the append-only audit trail. The graph emphasizes documented routes and search composition; some router and dashboard internals are unsampled, so those capabilities are shown without speculative implementation links.
Main entry points: main.py FastAPI application · database.py Relational store · recommend_router.py Recommendation routes · models.py Domain records
Components 28
Role-based interface
- Route application
frontend/src/App.jsx - Session context
frontend/src/context/AuthContext.jsx - API client
frontend/src/api/client.js - Officer workspace
frontend/src/pages/officer/SearchPage.jsx - Saved specifications
frontend/src/pages/officer/MySpecifications.jsx - Admin workspace
frontend/src/pages/admin/ManageStandards.jsx - Auditor analytics
frontend/src/pages/auditor/AuditorDashboard.jsx
API workflows
- FastAPI application
backend/app/main.py - Recommendation routes
backend/app/routers/recommend_router.py - Standards routes
backend/app/routers/standards_router.py - Specification routes
backend/app/routers/specs_router.py - Change-request routes
backend/app/routers/change_requests_router.py - User administration
backend/app/routers/users_router.py - Analytics routes
backend/app/routers/analytics_router.py - Audit-log routes
backend/app/routers/audit_router.py
Recommendation engine
- Search facade
backend/app/matching_engine.py - Search orchestration
backend/app/search/engine.py - Query normalization
backend/app/search/preprocessing.py - Explainable ranking
backend/app/search/ranking.py - Reference traversal
backend/app/search/graph.py - IS identifiers
backend/app/search/identifiers.py - Match evaluation
backend/app/evaluation.py
Standards and governance
- Domain records
backend/app/models.py - API contracts
backend/app/schemas.py
Identity and persistence
- Relational store
backend/app/database.py - Authentication services
backend/app/auth.py - Rate limiting
backend/app/rate_limit.py
Other components
- Platform users
Connections 44
- Platform users → Route application: uses
frontend/src/App.jsx - Route application → Session context: checks session
frontend/src/App.jsx - Session context → API client: sends requests
frontend/src/context/AuthContext.jsx - Officer workspace → API client: requests matches
frontend/src/pages/officer/SearchPage.jsx - Saved specifications → API client: manages packages
frontend/src/pages/officer/MySpecifications.jsx - Admin workspace → API client: manages catalogue
frontend/src/pages/admin/ManageStandards.jsx - Auditor analytics → API client: loads analytics
frontend/src/pages/auditor/AuditorDashboard.jsx - API client → FastAPI application: calls API
- FastAPI application → Recommendation routes: registers routes
backend/app/main.py - FastAPI application → Standards routes: registers routes
backend/app/main.py - FastAPI application → Specification routes: registers routes
backend/app/main.py - FastAPI application → Change-request routes: registers routes
backend/app/main.py - FastAPI application → User administration: registers routes
backend/app/main.py - FastAPI application → Analytics routes: registers routes
backend/app/main.py - FastAPI application → Audit-log routes: registers routes
backend/app/main.py - Recommendation routes → Search facade: runs search
backend/app/routers/recommend_router.py - Recommendation routes → Domain records: logs queries
backend/app/routers/recommend_router.py - Recommendation routes → API contracts: returns matches
backend/app/routers/recommend_router.py - Search facade → Search orchestration: delegates
backend/app/matching_engine.py - Search orchestration → Query normalization: normalizes query
backend/app/search/engine.py - Search orchestration → Explainable ranking: reranks candidates
backend/app/matching_engine.py - Search orchestration → Reference traversal: expands references
backend/app/search/engine.py - Search orchestration → IS identifiers: uses identifiers
backend/app/search/engine.py - Standards routes → Search facade: rebuilds index
backend/app/routers/standards_router.py - Standards routes → Domain records: reads and writes
backend/app/routers/standards_router.py - Standards routes → API contracts: validates records
backend/app/routers/standards_router.py - Specification routes → Domain records: stores packages
backend/app/routers/specs_router.py - Specification routes → API contracts: validates packages
backend/app/routers/specs_router.py - Change-request routes → Domain records: handles requests
backend/app/routers/change_requests_router.py - User administration → Domain records: manages accounts
backend/app/routers/users_router.py - Analytics routes → Match evaluation: exposes metrics
- Audit-log routes → Domain records: reads audit records
backend/app/routers/audit_router.py - Relational store → Domain records: maps records
backend/app/models.py - Authentication services → Domain records: checks revoked tokens
backend/app/auth.py - Authentication services → Relational store: uses sessions
backend/app/auth.py - Recommendation routes → Authentication services: authenticates requests
backend/app/routers/recommend_router.py - Recommendation routes → Rate limiting: limits requests
backend/app/routers/recommend_router.py - Recommendation routes → Relational store: uses sessions
backend/app/routers/recommend_router.py - Standards routes → Relational store: uses sessions
backend/app/routers/standards_router.py - Specification routes → Relational store: uses sessions
backend/app/routers/specs_router.py - Change-request routes → Relational store: uses sessions
backend/app/routers/change_requests_router.py - User administration → Relational store: uses sessions
backend/app/routers/users_router.py - Analytics routes → Relational store: uses sessions
- Audit-log routes → Relational store: uses sessions
backend/app/routers/audit_router.py