Transform your PDFs, text, and YouTube videos into smart study materials with AI-powered note generation, flashcards, quizzes, and mind maps.
- PDF Upload: Extract and process text from PDF documents
- Text Input: Direct text input for study material creation
- YouTube Integration: Extract transcripts from YouTube videos
- Smart Content Analysis: AI-powered content structuring and organization
- Structured Notes: Hierarchical, organized study notes with table of contents
- Flashcards: Three types - Definition, Recall, and Application cards
- Interactive Quizzes: Multiple choice and True/False questions with instant feedback
- Mind Maps: Visual concept mapping with interactive nodes
- Frontend: Next.js, React, TypeScript, Tailwind CSS
- Backend: Next.js API Routes, Prisma ORM
- Database: PostgreSQL
- AI: Google Gemini 2.0 Flash via LangChain
- Authentication: NextAuth.js
- Upload: User uploads PDF, enters text, or provides YouTube URL
- Extraction: System extracts raw text content
- Processing: Content is cleaned, chunked, and analyzed
- AI Generation: Google Gemini creates structured study materials
- Storage: Generated content is saved to database
- Presentation: User accesses formatted study materials
- Smart Structuring: Automatically organizes content into logical sections
- Flashcard Generation: Creates three types of flashcards
- Quiz Creation: Generates relevant questions with explanations
- Mind Map Building: Constructs visual relationship maps
Before sending content to Google Gemini, Adhyan employs sophisticated filtering and organization strategies to ensure optimal AI generation quality:
- Multi-stage Scoring System: Content is scored based on quiz-worthiness
- Definitions: 3x weight (highest priority for quiz questions)
- Examples: 2.5x weight (good for application questions)
- Key points: 2x weight (factual recall questions)
- Quality Thresholds: Filters out sections with insufficient content depth
- Score-based Ranking: Best content is prioritized for Gemini processing
- Content Type Analysis: Automatically identifies definitions, examples, and concepts
- Recall Cards: Extracts factual content, definitions, and key takeaways
- Application Cards: Focuses on examples and conceptual connections
- Definition Cards: Simple extraction of all term-definition pairs
- Comprehensive Processing: Uses complete structured notes
- Hierarchical Preservation: Maintains section-subsection relationships
- Concept Relationship Mapping: Identifies connections between ideas
- Context-Rich Prompts: Includes section context and learning objectives
- Type-Specific Instructions: Tailored prompts for each content type
- Quality Guidelines: Built-in quality standards for AI generation
- JSON Structure Enforcement: Consistent output formatting
- Hierarchical organization with main sections and subsections
- Key points, definitions, examples, and connections
- Table of contents for easy navigation
- Definition Cards: Key terms and their meanings
- Recall Cards: Important facts and concepts
- Application Cards: Examples and practical applications
- Multiple choice questions with 4 options
- True/False statements with explanations
- Immediate feedback and scoring
- Performance tracking and analytics
- Visual representation of concepts
- Interactive nodes with relationships
- Hierarchical structure visualization
- React Flow-based implementation
src/
├── app/ # Next.js App Router
│ ├── api/ # Serverless API endpoints
│ ├── auth/ # Authentication pages
│ ├── dashboard/ # Main user dashboard
│ └── studypack/ # Study material viewer
├── components/ # Reusable React components
│ ├── dashboard/ # Dashboard-specific components
│ ├── landing/ # Landing page components
│ ├── flashcards/ # Flashcard study interface
│ ├── mindmap/ # Mind map visualization components
│ ├── quiz/ # Quiz components
│ └── studyPack/ # Study pack viewer components
│ ├── ui/ # Base UI components (Radix)
├── lib/ # Utility functions and configs
│ ├── auth/ # Authentication helpers
│ ├── contentUpload/ # Content processing utilities
│ ├── flashCards/ # Flashcard generation logic
│ ├── langchain/ # Gemini Calls
│ └── quizzes/ # Quiz generation
├── hooks/ # Custom React hooks
└── contexts/ # React Context providers