Mastra
Look for workflow mode adapter and the five typed agents in this page.
SchemeSeva is a TypeScript-native civic AI app built on Mastra-style orchestration, Qdrant retrieval and memory, Gemini embeddings, Featherless AI reasoning, OpenAI/OpenRouter fallback, Enkrypt validation, Langfuse tracing, and Upstash rate limiting. The core report path is simple: Qdrant retrieves, Featherless reasons, and Enkrypt validates before display.
Look for workflow mode adapter and the five typed agents in this page.
Run the Farmer demo and confirm Retrieval: qdrant-vector.
Confirm Reasoning: featherless when Featherless is configured.
Confirm Memory: qdrant and Memory write: success after a report.
Confirm Safety: enkrypt on reports and Vigilance alerts.
schemeseva_schemes, citizen_sessions, and pending_alerts.
Open /debug/integrations for live provider status without secrets.
Structure citizen details
Retrieve candidate schemes
Check rules
Explain likely matches
Validate output
Watch for new matches
TanStack Start (React 19) + Tailwind v4
Landing page, agent runner, report view, scheme catalog, and alert banner.
Mastra-style TypeScript workflow
Chains five agents through typed server functions that are testable in isolation.
Featherless AI + OpenAI/OpenRouter fallback
Featherless powers open-source model reasoning for reports and Vigilance alert reasons; OpenAI, OpenRouter, and local grounded logic remain fallbacks.
Google Gemini embeddings
Semantic vectors for Qdrant retrieval when GEMINI_API_KEY is configured.
Qdrant + local catalog fallback
Verified schemes indexed with eligibility rules, keywords, and metadata.
Qdrant citizen_sessions + local fallback
Citizen profile and found schemes persisted by browser-generated session key.
Enkrypt AI + fallback validator
Citizen-facing reports and Vigilance alerts checked before display.
Langfuse + Upstash + Vercel
Tracing, rate limiting, and deployed hackathon runtime.
| Layer | Technology | Purpose |
|---|---|---|
| Frontend | TanStack Start (React 19) + Tailwind v4 | Landing page, agent runner, report view, scheme catalog, and alert banner. |
| Orchestration | Mastra-style TypeScript workflow | Chains five agents through typed server functions that are testable in isolation. |
| Reasoning | Featherless AI + OpenAI/OpenRouter fallback | Featherless powers open-source model reasoning for reports and Vigilance alert reasons; OpenAI, OpenRouter, and local grounded logic remain fallbacks. |
| Embeddings | Google Gemini embeddings | Semantic vectors for Qdrant retrieval when GEMINI_API_KEY is configured. |
| Retrieval | Qdrant + local catalog fallback | Verified schemes indexed with eligibility rules, keywords, and metadata. |
| Memory | Qdrant citizen_sessions + local fallback | Citizen profile and found schemes persisted by browser-generated session key. |
| Safety | Enkrypt AI + fallback validator | Citizen-facing reports and Vigilance alerts checked before display. |
| Operations | Langfuse + Upstash + Vercel | Tracing, rate limiting, and deployed hackathon runtime. |
Extracts state, age, gender, category, income, occupation, land, disability, and other profile facts from guided or plain-language input.
Searches the 28-scheme Central + Telangana catalog through Qdrant retrieval or local fallback.
Checks deterministic rules such as age, gender, category, income cap, occupation, state, Aadhaar status, and bank account status.
Creates a simple source-grounded report that uses likely eligible language and includes documents, steps, sourceUrl, and lastVerified.
Scans saved profiles against unseen schemes and creates proactive alerts when a new likely match appears.
Qdrant is primary; local catalog fallback keeps the demo runnable.
Qdrant memory is primary; local session fallback is visible in badges.
Enkrypt validates outputs; fallback status stays honest when needed.
Langfuse and Upstash signals are inspectable on the debug page.