A comprehensive learning roadmap generator that transforms PDF content into structured learning paths using AI.
- PDF Content Analysis: Extract and analyze PDF content to create learning roadmaps
- AI-Powered Generation: Uses Gemini AI to create comprehensive, multi-level learning paths
- Interactive Visualizations: Beautiful flow diagrams with React Flow
- Progress Tracking: Track completion status and bookmark important nodes
- Resource Integration: Include relevant articles, videos, and educational resources
- Image Integration: AI suggests relevant diagrams, schemas, and visual aids
- Export Options: Export roadmaps as PDF or PNG images
- User Management: Save and manage multiple roadmaps with Supabase
The AI can now include relevant images, diagrams, and schemas in roadmaps. When the AI generates a roadmap, it can suggest image resources that will be automatically fetched and displayed in the node details.
To enable image search functionality, you need to set up Google Custom Search API:
-
Create a Google Custom Search Engine:
- Go to Google Programmable Search Engine
- Create a new search engine
- Enable "Image Search" in the settings
- Note your Search Engine ID (cx)
-
Get Google API Key:
- Go to Google Cloud Console
- Enable the Custom Search API
- Create credentials (API Key)
-
Add Environment Variables:
GOOGLE_CSE_API_KEY=your_google_api_key_here GOOGLE_CSE_ID=your_search_engine_id_here
-
AI Suggestion: The AI analyzes content and suggests relevant images using the format:
{ "type": "image", "title": "Machine Learning Workflow Diagram", "url": "search: machine learning workflow diagram process flow", "alt": "Flowchart showing ML process steps", "caption": "Complete ML workflow from data preprocessing to model evaluation" } -
Image Fetching: The system automatically searches for actual images using the keywords
-
Display: Images are displayed in the node details with proper alt text and captions
-
Fallback: If image search fails, the system gracefully continues without images
- Clone the repository
git clone https://github.com/yourusername/PathPdf.git
cd PathPdf- Install dependencies
npm install- Set up environment variables
Create a
.envfile in the root directory and add your Supabase credentials:
VITE_SUPABASE_URL=your_supabase_url
VITE_SUPABASE_ANON_KEY=your_supabase_anon_key
- Start the development server
npm run devContributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.