Chirag Rohit — AI Engineer
All Projects

Cognirivus Prep

AI-powered study platform for competitive exam preparation.

SvelteKitConvexCloudflare WorkersCloudflare R2OpenRouterAI SDK

Cognirivus Prep is a comprehensive study platform designed specifically for competitive exam preparation (UPSC CSE and similar). It combines AI-powered tools with structured learning workflows to help students systematically prepare for exams.

The platform features a multi-agent AI chat system where different agents specialize in different tasks — content extraction, flashcard generation, synthesis, and more. Users can interact with these agents through a chat interface that tracks token usage and cost per conversation.

Key Features

Multi-Model AI Chat

Chat with multiple AI models through OpenRouter, with configurable temperature, max steps, and tool access per agent. Track token usage and cost per conversation.

Knowledge Base

Structured content organized by subjects, topics, and sources. Full-text search, vector embeddings for semantic search, and R2 storage for large content bodies.

MCQs with Similarity Search

Thousands of MCQs from past exams with vector-based similarity search to find related questions. Track responses and accuracy over time.

Flashcards with Spaced Repetition

Auto-generated flashcards from content with SM-2 spaced repetition algorithm. Track mastery levels and schedule reviews optimally.

Knowledge Pulse

Per-sentence mastery tracking that helps identify knowledge gaps. Users mark sentences as new, vaguely remembered, forgot, or learned.

Study Groups

Create or join study groups with shared content, posts, reactions, comments, and real-time chat. Collaborative learning with invite codes.

Blog & Content Creation

Write and publish blog posts with reactions, comments, and inline highlighting. Share insights with the community.

Image Generation

Generate images for study materials using AI models through OpenRouter integration.

Architecture & Tech Stack

SvelteKitFull-stack framework with server-side rendering and file-based routing
ConvexRealtime database with vector search, aggregations, and serverless functions
OpenRouter + AI SDKMulti-model AI integration with tool calling and streaming responses
Cloudflare R2Object storage for large content bodies, blog posts, and generated images
Better AuthAuthentication system with user management and session handling
Multi-Agent SystemConfigurable agents with different models, tools, and instructions for specialized tasks