User Guide: BioCoursesGenerator¶
Overview¶
BioCoursesGenerator is a web application that transforms scanned curriculum documents into structured educational course materials using optical character recognition (OCR) and artificial intelligence. This guide walks you through the complete workflow.
Prerequisites¶
System Requirements¶
- Modern web browser (Chrome 90+, Firefox 88+, Safari 14+, Edge 90+)
- Internet connection (for API calls)
- JavaScript enabled
Input Document Requirements¶
- File Formats: PDF, JPEG, PNG
- Maximum Size: 50MB
- Resolution: Minimum 300 DPI recommended for optimal OCR accuracy
- Content: Curricula with clear hierarchical structure (numbered sections preferred)
- Language: Primarily Romanian curriculum content
Getting Started¶
Accessing the Application¶
- Open your web browser
- Navigate to the BioCoursesGenerator URL (typically
http://localhost:8501) - Ensure the backend LLM API is running on
http://127.0.0.1:7998
Complete Workflow¶
Step 1: Upload Your Curriculum Document¶
- Navigate to Upload Section
- Click "Upload" in the main navigation
-
Or use the drag-and-drop zone on the homepage
-
Select Document
- Drag & Drop: Drag your scanned PDF or image file into the upload area
- Browse: Click "Choose File" to open your file browser
-
Multiple Files: Upload one document at a time
-
File Validation
- The system validates file type and size
- Progress indicator shows upload completion
- Clear error messages for unsupported files
Step 2: Optional - OCR Text Preview and Editing¶
Note: This feature is planned for future implementation
If enabled, you can: - Review extracted text from OCR - Edit or correct OCR errors - Remove irrelevant sections - Add missing information - Preview formatted text before LLM processing
Step 3: Process Curriculum with AI¶
- Start Processing
- Click "Start Processing" after successful upload
-
Processing begins immediately
-
Monitor Progress
-
Three Phase Progress:
- OCR Extraction (30-60 seconds)
- LLM Content Structuring (2-5 minutes)
- PDF Generation (1-3 minutes)
-
Real-time Status
- Visual progress bars for each stage
- Current action descriptions
- Estimated time remaining
- Cancel button available during processing
Step 4: Optional - Edit Table of Contents¶
Note: This advanced feature is planned for future implementation
Once TOC is generated, you can: - View hierarchical course structure - Edit section titles and prompts - Add/remove chapters and subsections - Reorganize content order - Preview changes before final PDF generation
Step 5: Download Generated Course Book¶
- Completion Notification
- Success message when PDF is ready
-
Generation metadata (pages, file size, language)
-
Download Options
- Click "📥 Download PDF" for immediate download
-
PDFs automatically named with timestamps
-
File Management
- Downloaded files saved to your browser's default download location
- PDFs remain available in the app's output directory for 30 days
Advanced Usage¶
Custom Context Settings¶
For specialized curricula, you can specify: - Educational level (post-secondary, graduate, etc.) - Subject domain (medicine, nursing, surgery) - Learning objectives - Specific formatting requirements
Batch Processing¶
Currently single-file processing only. For multiple curricula: - Process each document individually - Save output files with descriptive names - Organize downloaded files in your local file system
Troubleshooting Common Issues¶
OCR Quality Issues¶
- Problem: Text extraction contains many errors
- Solution: Ensure high-resolution scans (300+ DPI)
- Alternative: Use digital PDFs instead of scanned images
- Future Fix: Manual text editing feature
Processing Timeout¶
- Problem: "Processing timeout" error
- Solution: Check internet connection and API availability
- Retry: Use the retry function when available
- Reduce Load: Try smaller documents first
Large File Errors¶
- Problem: "File too large" error
- Solution: Compress PDFs or split large documents
- Tip: Maximum 50MB limit, aim for under 20MB
API Connection Issues¶
- Problem: "API unavailable" error
- Solution: Ensure backend server is running (
http://127.0.0.1:7998) - Check: Network connectivity and firewall settings
File Management Best Practices¶
Input Preparation¶
- Scan Settings: 300 DPI, grayscale or color, PDF format preferred
- File Organization: Name files descriptively before upload
- Content Quality: Ensure text is clear, straight, and well-lit
Output Organization¶
- Naming Convention: Include subject, level, date in filenames
- Storage: Create dedicated folders for course materials
- Backup: Important generated courses should be backed up separately
Security and Privacy¶
- Data Handling: Documents processed locally, no persistent storage
- Temporary Files: Automatically cleaned up after processing
- API Communication: Secure HTTPS connections when using external APIs
- File Scanning: Basic malware detection on uploads
Performance Optimization¶
Fast Processing Tips¶
- Use digital PDFs instead of scanned images
- Smaller files process faster (under 10MB ideal)
- Good internet connection for API calls
- Close other applications during processing
Expected Processing Times¶
- Small Documents (< 5 pages): 2-4 minutes total
- Medium Documents (5-20 pages): 4-7 minutes total
- Large Documents (20+ pages): 7-12 minutes total
Integration and Automation¶
API Access¶
For programmatic access, the backend provides REST APIs: - /gpt_generate_book_toc_with_prompts: TOC generation - /gpt_toc_to_pdf: PDF compilation
Custom Scripts¶
Users can develop custom processing scripts using the provided API endpoints.
Support and Help¶
Built-in Help¶
- Tooltips: Hover over interface elements for guidance
- Context Help: Help icons next to complex features
- Progress Feedback: Clear messages throughout the workflow
Common Workflows by Use Case¶
Medical Curriculum Processing¶
- Upload scanned syllabus
- Process with Romanian language setting
- Download structured learning modules
Nursing Course Material¶
- Select patient care curriculum scans
- Specify clinical intervention focus
- Generate organized lesson plans
Surgical Training Content¶
- Upload procedural guidelines
- Process with technical detail emphasis
- Create reference manuals
Future Features Preview¶
Stay tuned for these upcoming enhancements: - TOC Editor: Modify generated course structures - Bulk Processing: Handle multiple documents simultaneously - Preview Mode: View PDF content before download - Export Formats: Additional formats (Word, HTML) - Collaboration: Share editing access to course authors
Contact and Feedback¶
For technical issues or feature requests, please check: - Application logs in the terminal/console - API server availability - Document preparation guidelines above
This guide is updated regularly to reflect new features and improvements.