A production-ready AI learning platform built with Next.js 15, TypeScript, and OpenAI GPT-4. Features RAG (Retrieval-Augmented Generation), multi-format document processing, and a marketplace for sharing AI tutors with the community.
Visit Live Site View on GitHub
AI Knowledge Companion is a comprehensive, production-ready platform that transforms your documents, audio, video, and images into interactive AI tutors powered by advanced Retrieval-Augmented Generation (RAG). Built with Next.js 15, TypeScript, and Supabase, it features intelligent document processing with vector embeddings, automated transcription for audio/video files, and OCR capabilities for image analysis.
AI Knowledge Companion leverages Retrieval-Augmented Generation (RAG) to create intelligent tutors that answer questions based on your uploaded materials. The system automatically chunks documents, generates vector embeddings using OpenAI's text-embedding-3-small model, and performs semantic similarity search to retrieve the most relevant context for each query. Users can fine-tune RAG parameters including similarity threshold (0.0-1.0), maximum context chunks, and AI temperature to optimize responses for their specific use case.
The platform features advanced multimedia processing capabilities that transform any content type into searchable knowledge. Audio and video files are automatically transcribed using OpenAI Whisper API, images are analyzed with GPT-4 Vision for OCR and content extraction, and all processed content is chunked and embedded for optimal RAG retrieval. The system supports 10+ document formats and handles files up to 50MB with automatic cost calculation and quota management.
Share your AI tutors with the community through the integrated Marketplace. Users can publish tutors with different visibility levels (private, public, unlisted, marketplace), set pricing for premium tutors, and track downloads, ratings, and reviews. The marketplace features advanced search and filtering, tutor forking capabilities, and detailed analytics for tutor creators.
Built with comprehensive cost tracking for all OpenAI API operations. The system automatically logs tokens used and estimated costs for chat completions, embeddings, transcriptions, and vision API calls. Users can monitor their usage in real-time through detailed dashboards showing API calls, tokens consumed, and costs per operation type. Admins have access to system-wide usage statistics and can manage user quotas based on subscription plans.
Integrated Stripe subscription system with multiple plans (Pro €19/month, Enterprise €49/month) supporting both monthly and yearly billing cycles. The platform includes a complete billing portal for subscription management, automated webhook handling for real-time updates, and secure payment processing with restricted API keys following the principle of least privilege.
Built with Privacy by Design principles, AI Knowledge Companion achieves 100% GDPR compliance through:
Full internationalization (i18n) support with next-intl providing seamless language switching between English and Italian. The platform follows WCAG 2.1 Level AA guidelines with proper semantic HTML, ARIA labels, keyboard navigation, and screen reader support. A comprehensive Help Center with FAQ and user manual is available in both languages, along with a contact form for user support.