How shivanand24/semantrix works
Semantrix ingests text, embeds it, assigns it to evolving semantic clusters, and exposes cluster evidence and lifecycle activity through a dashboard. The central runtime path is the dashboard/API into incremental clustering, with SQLite as authoritative state and Qdrant for vector search. The graph also preserves documented dashboard capabilities and the provider-swappable LLM branch. Some UI-to-endpoint and unsampled subsystem details are documented only at a high level, so those links are not expanded into speculative call chains.
Main entry points: clustering.py Incremental clustering · AppShell.tsx Dashboard shell · main.py Application setup · routes.py REST and SSE API
Components 25
Dashboard
- Dashboard shell
frontend/src/components/AppShell.tsx - Cluster overview
frontend/src/app/page.tsx - Live replay
frontend/src/app/replay/page.tsx - Custom ingestion
frontend/src/app/custom/page.tsx - Cluster details
frontend/src/app/clusters/[id]/page.tsx - Analytics
frontend/src/app/analytics/page.tsx - API client
frontend/src/lib/api.ts
API Service
- REST and SSE API
backend/app/routes.py - API schemas
backend/app/schemas.py - Application setup
backend/app/main.py - Runtime settings
backend/semantrix_core/config.py
Clustering Core
- Text embedding
backend/semantrix_core/embedder.py - Incremental clustering
backend/semantrix_core/clustering.py - Cluster lifecycle
backend/semantrix_core/lifecycle.py - LLM adjudication
backend/semantrix_core/llm_adjudicator.py - Dataset ingestion
backend/semantrix_core/ingestion.py - Similarity baselines
backend/semantrix_core/baselines.py - Index recovery
backend/semantrix_core/recovery.py
State and Search
- Persistent models
backend/semantrix_core/models.py - SQLite access
backend/semantrix_core/db.py - Vector store client
backend/semantrix_core/vector_store.py
External Services
- SQLite WAL
- Qdrant
- Hosted LLM APIs
Other components
- User
Connections 29
- User → Dashboard shell: uses
README.md - Dashboard shell → REST and SSE API: REST / SSE
README.md - Dashboard shell → Cluster overview: renders
- Dashboard shell → Live replay: renders
- Dashboard shell → Custom ingestion: renders
- Dashboard shell → Cluster details: renders
- Dashboard shell → Analytics: renders
- API client → REST and SSE API: requests
- Application setup → REST and SSE API: registers
backend/app/main.py - Application setup → Runtime settings: loads settings
backend/app/main.py - Application setup → SQLite access: creates engine
backend/app/main.py - Application setup → Text embedding: configures
backend/app/main.py - Application setup → Incremental clustering: constructs
backend/app/main.py - Application setup → LLM adjudication: configures
backend/app/main.py - REST and SSE API → API schemas: validates
backend/app/routes.py - REST and SSE API → Text embedding: embeds text
backend/app/routes.py - REST and SSE API → Incremental clustering: ingests record
backend/app/routes.py - Incremental clustering → Cluster lifecycle: checks lifecycle
backend/semantrix_core/clustering.py - Incremental clustering → Text embedding: uses vectors
backend/semantrix_core/clustering.py - Incremental clustering → LLM adjudication: adjudicates
backend/semantrix_core/clustering.py - Incremental clustering → Vector store client: updates index
backend/semantrix_core/clustering.py - Incremental clustering → Persistent models: persists state
backend/semantrix_core/clustering.py - Index recovery → Incremental clustering: rebuilds index
backend/semantrix_core/recovery.py - Index recovery → Vector store client: reads vectors
backend/semantrix_core/recovery.py - Index recovery → Text embedding: embeds records
backend/semantrix_core/recovery.py - SQLite access → SQLite WAL: stores state
README.md - Vector store client → Qdrant: searches vectors
README.md - LLM adjudication → Hosted LLM APIs: calls provider
README.md - Dataset ingestion → Incremental clustering: feeds records