How piruthivip/radix works
Scope and Active Deliverable
RADIX is a company-intelligence and placement-analytics platform: it researches company and interview data, validates/consolidates it, persists structured intelligence, and exposes search, analytics, chatbot, and administrative workflows. The repository also preserves earlier activity artifacts and prototype iterations; the most complete deployable implementation is under Final/.
Key entry points: backend service startup and API surfaces in Final/backend/main.py and Final/backend/api.py; Next.js application routing begins at Final/frontend/src/app/page.tsx; container composition is Final/docker-compose.yml.
User Application and Access Boundary
The frontend is a Next.js/TypeScript portal with public company, hiring-process, skill, InnovX, analytics, semantic-search, and chatbot routes, plus an admin area. Representative route roots are Final/frontend/src/app/companies/page.tsx, Final/frontend/src/app/semantic-search/page.tsx, and Final/frontend/src/app/admin/page.tsx.
Authentication is handled through frontend API routes and session utilities, while administrative access is separated by UI guards. Paths: Final/frontend/src/app/api/auth/login/route.ts, Final/frontend/src/lib/auth-session.ts, Final/frontend/src/components/AdminGuard.tsx. The frontend/backend contract boundary is centralized in Final/frontend/src/lib/api.ts.
API, Audit, and Authorization Layer
The Python backend exposes service APIs and an application UI/API entry layer through Final/backend/api.py and Final/backend/app_ui.py, launched from Final/backend/main.py. Request handling is protected and observed through Final/backend/auth_guards.py and Final/backend/audit_middleware.py.
This layer is the boundary between browser clients and privileged intelligence operations: it should own authentication/role enforcement, audit emission, request validation, and invocation of the pipeline or retrieval services rather than embedding those concerns in UI routes.
Intelligence Generation Pipeline
Company intelligence is generated as a staged agent workflow. Research agents collect or derive candidate information; a consolidation agent produces a unified record; validation determines quality; failed or incomplete results can enter a regeneration loop. Core stages are represented by Final/backend/research_agents.py, Final/backend/consolidation_agent.py, Final/backend/validator.py, and Final/backend/regeneration_loop.py.
Final/backend/pipeline.py is the imperative pipeline coordinator, while Final/backend/graph_pipeline.py and Final/backend/langgraph.json define the graph-oriented orchestration form. Shared record contracts live in Final/backend/schemas.py; these schemas are the main boundary between LLM-produced content, validation, persistence, and API responses.
Persistence, Retrieval, and Analytics
Structured intelligence is written through the database client/writer boundary: Final/backend/db_client.py, Final/backend/db_writer.py, and the database bootstrap schema Final/backend/database_setup.sql. The repository’s prior activities document the broader normalized placement/company data model, but Final/ is the operational integration point.
Semantic capabilities are layered separately: Final/backend/embedder.py creates embeddings and Final/backend/vector_store.py manages vector retrieval. Final/backend/ml_analytics.py supplies analytical or predictive processing. Thus, query flows split into structured database reads versus semantic vector retrieval, both ultimately consumed by API endpoints and frontend search/analytics pages.
Runtime and Delivery Topology
The deployable system consists of a Python backend container and a Node/Next.js frontend container, defined by Final/backend/Dockerfile, Final/frontend/Dockerfile, and Final/docker-compose.yml. Final/nginx.conf provides the reverse-proxy/web-serving boundary. Jenkins automation is represented by Final/Jenkinsfile and the root Jenkinsfile.
Supabase is a material external persistence service indicated by the historical agent implementation (Activity/zagent-001-v2/app/supabase_storage.py) and schema (Activity/zagent-001-v2/supabase_schema.sql); the final backend instead abstracts database access behind its client/writer modules. LLM provider selection/configuration is architecturally implied by the agent pipeline and is explicitly isolated in the earlier implementation at Activity/zagent-001-v2/app/providers.py.
Main entry points: api.py Service API · page.tsx Portal routes · pipeline.py Pipeline coordinator · db_client.py Structured intelligence DB
Components 18
Next.js Portal
- Portal routes · Public, search, analytics, chatbot, and admin pages.
Final/frontend/src/app/page.tsx - Session authentication
Final/frontend/src/lib/auth-session.ts - Admin guard
Final/frontend/src/components/AdminGuard.tsx - Backend API client
Final/frontend/src/lib/api.ts
Backend Intelligence Service
- Backend startup
Final/backend/main.py - Service API · Validates requests and invokes intelligence or retrieval operations.
Final/backend/api.py - Guards and audit · Authentication, role enforcement, and audit emission.
Final/backend/auth_guards.py - Pipeline coordinator
Final/backend/pipeline.py - Research and consolidation
Final/backend/consolidation_agent.py - Validation and regeneration · Invalid or incomplete records are regenerated.
Final/backend/validator.py - Intelligence schemas · Contract between generated content, validation, storage, and API responses.
Final/backend/schemas.py
Data and Retrieval
- Embedding generation
Final/backend/embedder.py - Vector retrieval
Final/backend/vector_store.py - Structured intelligence DB
Final/backend/db_client.py - ML analytics
Final/backend/ml_analytics.py
Runtime and Delivery
- Reverse proxy
Final/nginx.conf - Container composition · Runs the Python backend and Node/Next.js frontend containers.
Final/docker-compose.yml - Jenkins pipeline
Final/Jenkinsfile
Connections 21
- Reverse proxy → Portal routes: serves
- Portal routes → Session authentication: uses
- Portal routes → Admin guard: protects admin
- Portal routes → Backend API client: calls
- Backend API client → Service API: HTTP contract
- Backend startup → Service API: starts
- Service API → Guards and audit: enforces and audits
- Service API → Pipeline coordinator: runs generation
- Pipeline coordinator → Research and consolidation: researches and consolidates
- Research and consolidation → Intelligence schemas: produces records
- Pipeline coordinator → Validation and regeneration: validates
- Validation and regeneration → Pipeline coordinator: regenerate on failure
- Validation and regeneration → Structured intelligence DB: approved records
- Intelligence schemas → Structured intelligence DB: structured contract
- Structured intelligence DB → Embedding generation: source records
- Embedding generation → Vector retrieval: indexes
- Service API → Structured intelligence DB: structured queries
- Service API → Vector retrieval: semantic search
- Service API → ML analytics: analytics requests
- Container composition → Reverse proxy: deploys topology
- Jenkins pipeline → Container composition: builds and deploys