AiMi: Complete AI Recommendation System
Welcome to the Complete AI Recommendation System! π
You now have everything you need to run your own AI-powered anime recommendation system.
π¦ What's Included
β Complete Source Code
- RAG Pipeline (`robust_rag_pipeline_rars.py`)
- FastAPI Backend (`api_recommendation_backend.py`)
- Streamlit Frontend (`streamlit_recommendation_frontend.py`)
- Configuration Files (`.env`, requirements.txt, etc.)
β Complete Dataset (8,248 anime)
- Parquet format with all metadata
- Pre-processed for RAG system
- Ready to load and use
β 8,248 Anime Images
- Poster Images (vertical format, optimized)
- Backdrop Images (horizontal format for slider view)
- High-quality files
- Total size: ~2.2GB
β Pre-Built FAISS Index
- Vector embeddings already computed
- No need to generate embeddings yourself
- Instant deployment - just load and run
- Saves hours of processing time
β Documentation
- Setup guides (Windows, Mac, Linux)
- API documentation
- Troubleshooting guide
π» System Requirements
Minimum Specs (Lightweight Mode):
- RAM: 4GB+
- CPU: 4+ Cores
- Storage: 5GB+ (for models, dataset, and images)
- OS: Windows 10/11, macOS (M1/M2 supported), or Linux (Ubuntu 20.04+)
- Python: 3.10 or higher
Recommended Specs (Full AI Power):
- RAM: 8GB+
- GPU: NVIDIA GPU (4GB+ VRAM) or Apple Silicon (M1/M2/M3)
- Storage: 8GB+ (to store the generative LLM)
β οΈ Note on Performance:
The system automatically detects your hardware:
- With GPU: Enables HyDE (Generative AI) for smarter intent translation (e.g., understanding "No ecchi" logic).
- CPU Only: Automatically switches to Lightweight Mode (Vector Search + Keyword Boosting) to ensure fast performance without lag.
π― Why Tier 2 is Worth It
β‘ Save 20+ Hours of Development
- No need to build RAG pipeline from scratch
- No need to scrape anime data
- No need to find and optimize images
- No need to design UI/UX
- Pre-configured and tested system
π° Save Hundreds in Costs
- No API costs for embeddings (~$50-100)
- No need to hire developers (~$500-2000)
- No design costs for UI (~$200-500)
- Ready-to-deploy solution
π Production-Ready Code
- Clean, documented, maintainable
- Error handling and logging
- Security best practices
- Scalable architecture
πΈ Screenshots
πΌοΈ Beautiful UI Design
π¨ Grid View - Apple-Inspired Cards
- Gorgeous card design with smooth animations
- Color-coded similarity badges
- Hover for instant info overlay
- 18+ content warnings
π¬ Slider View - Immersive Experience
- Full-screen backdrop images
- Glassmorphism design
- Thumbnail navigation strip
- Keyboard shortcuts (β β)
π― Smart Filters & Controls
- Dynamic filter updates (no re-search needed!)
- Year range: 1917-2025
- Rating threshold: 0-10
- Anime type selector
- Real-time API statistics
π Similar Anime Discovery
- Find anime like your favorites
- Recursive exploration
- Color-coded match percentages
- Instant results (<0.1s)
π Quick Start Guide
1οΈβ£ Install Dependencies
# Create virtual environment
python -m venv testenv
source testenv/bin/activate # On Windows: testenv\Scripts\Activate
# Install packages
pip install -r requirements.txt2οΈβ£ Start Backend API
uvicorn AiMi_Recommendation_System:app --reload --port 8000 <- PORT_ADDRESS3οΈβ£ Start Frontend
streamlit run AiMi_Recommendation_System/frontend/streamlit_recommendation_frontend.py4οΈβ£ Open Browser
Navigate to: http://localhost:8501
That's it! Your AI anime recommendation system is live! π
π‘ Features Breakdown
π Semantic Search
- Natural language queries ("dark fantasy with strong female lead")
- 768-dimensional vector embeddings
- FAISS-powered similarity search
- Sub-2 second response times
π² Similar Anime Discovery
- Find anime similar to any title
- Pre-computed embeddings for instant results
- Recursive exploration (find similar to similar)
- 85-95% similarity accuracy
β‘ Smart Caching
- 6-hour query cache
- 60%+ cache hit rate
- <0.5s for repeat queries
- Automatic cache management
π¨ Dual View Modes
- Grid View: Quick browsing, 3-column layout
- Slider View: Immersive experience with arrow keys
- Switch anytime with one click
- Fully responsive (mobile-friendly)
π― Dynamic Filters
- Year range (1917-2025)
- Minimum rating (0-10)
- Anime type (TV/Movie/OVA/and more...)
- Results update automatically when filters change
π Real-Time Stats
- Total searches processed
- Cache hit rate percentage
- Average response time
- API health status
π οΈ Tech Stack
Backend
- FastAPI - Modern async Python API
- Sentence Transformers - Nomic v1.5 embeddings
- FAISS - Vector similarity search
- Pandas - Data processing
- DiskCache - Query caching
Frontend
- Streamlit - Beautiful Python web framework
- Custom CSS - Apple-inspired design
- Responsive Layout - Works on all devices
- Interactive Components - Sliders, dropdowns, cards
AI/ML
- Nomic v1.5 - 768-dimensional embeddings
- RAG Architecture - Retrieval-Augmented Generation
- Cosine Similarity - Matching algorithm
- Semantic Search - Meaning-based queries
π Project Structure
aimi-rag-system
βββ AiMi_Recommendation_System/
β βββ backend/
β β βββ __init__.py # Marks AiMi_Recommendation_System as a Python package and exposes core app objects.
β β βββ api_recommendation_backend.py # FastAPI server
β β βββ robust_rag_pipeline_rars.py # RAG pipeline
β βββ frontend/
β β βββ streamlit_recommendation_frontend.py # UI
β β βββ splash_screen_loading.html # Intro animation
β βββ __init__.py # Backend package for AiMi. Contains FastAPI API and RAG pipeline modules.
β βββ.env # config file
βββ assets/
β βββ fonts/
β β βββ Macondo # font family
β β βββ Nunito # font family
β β βββ Poppins # font family
β β βββ Roboto # font family
β β βββ Syne # font family
β βββ screenshots/
β β βββ screenshot1.png # png image
β β βββ screenshot2.png # png image
β β βββ screenshot3.png # png image
β β βββ screenshot4.png # png image
β β βββ and so on... # png image
β βββ static/
β β βββ 404_page.html # 404 html file
β β βββ image1.png # png image
β β βββ image2.png # png image
β β βββ image3.png # png image
βββ Dataset/
β βββ anime_index/
β β βββ anime_dataset_nomic.parquet # Complete parquet dataset file
β β βββ faiss_nomic.index # faiss index
β β βββ metadata_nomic.json # model metadata
β βββ Backdrop Images/
β β βββ image1.png # png image
β β βββ image2.png # png image
β β βββ image3.png # png image
β β βββ and so on... # png image
β βββ Logo Images/
β β βββ image1.png # png image
β β βββ image2.png # png image
β β βββ image3.png # png image
β β βββ and so on... # png image
β βββ Poster Images/
β β βββ image1.png # png image
β β βββ image2.png # png image
β β βββ image3.png # png image
β β βββ and so on... # png image
βββ AiMi_UI_Demo/ # directory including demo UI videos and .webp files
β βββ intro.mp4 # loading screen
β βββ UI_clip1.mp4 # AiMi UI Demo
β βββ UI_clip2.mp4 # AiMi UI Demo
β βββ intro_output.webp # loading screen
β βββ UI_clip1_output.webp # AiMi UI Demo
β βββ UI_clip2_output.webp # AiMi UI Demo
βββ INSTALLATION_GUIDE.md # Comprehensive Guide
βββ license.md # Must read license
βββ thank_you_card1_tier2.png # Token of appreciation (Thank You Card)
βββ thank_you_card2_tier2.png # Token of appreciation (Thank You Card)
βββ requirements.txt # Containing all important librariesπ Quick Troubleshooting
| Issue | Solution |
|-------|----------|
| Port already in use | Change port number in command |
| FAISS index not found | Ensure full Tier 2/3 package extracted |
| Streamlit not starting | Run `pip install streamlit --upgrade` |
| Model download fails | Check internet connection |π Deployment Options
Local Development
- Perfect for testing and customization
- Runs on Windows, Mac, Linux
- No cloud costs
Cloud Deployment
- Heroku - Free tier available
- Railway - Easy deployment
- AWS/GCP/Azure - Production-scale
- Vercel - Frontend hosting
π Upgrade to Ultimate (Tier 3)
Want the Anime Receipts Generator too?
Front Side (Receipts):
Back Side (Receipts):
π Tier 3 - Ultimate ($149.99)
Everything in Tier 2, PLUS:
β Anime Receipts Generator (full application)
β Create Unlimited Anime Receipts with your imagination.
β Commercial use license (sell receipts!)
Save $50 by upgrading now!
Upgrade to Tier 3
π¬ Resources
π Documentation
- Complete setup guides for all platforms
- API reference with examples
- Deployment tutorials
- Troubleshooting FAQ
π License
π License & Rights
β What You CAN Do (Make Money):
- Build a SaaS: Deploy a recommendation site/app and charge users.
- Freelance: Build projects for clients (deploy the app for them).
- Sell Outputs: Sell the receipts, API access, or recommendations.
- White-label: Remove AiMi branding and use your own logos.
- Deploy: Host on any server (AWS, Vercel, DigitalOcean).
β What You CANNOT Do (Piracy):
- Resell the Code: You cannot sell the raw source code/zip file itself.
- Open Source: You cannot upload the code to public GitHub/Kaggle.
- Redistribute Data: You cannot sell the raw parquet/index files separately.
See license.md for specific details on Client Work and Asset Usage.
Contact
For licensing questions, commercial usage inquiries, or copyright notices:
[aimi.anime.system@gmail.com](mailto:aimi.anime.system@gmail.com)
Note: For installation help or technical issues, please refer to the documentation and troubleshooting guides included in your download package.
π Thank You
You now have a robust production-ready AI recommendation system.
What's Next?
- β Complete the 5-minute setup
- π¨ Customize the UI to match your brand
- π Deploy to the cloud
- π’ Share your version with the world!
I can't wait to see what you build! π
π¬ Made with β€οΈ
Created by Divyanshu Singh - Passionate Programmer & Die Hard Anime Fan
Version 1.0 | Last Updated: 2025
Your success is my success. Now go build something amazing! π
"Whatever you can do, or dream you can, begin it. Boldness has genius, power and magic in it." β Johann Wolfgang von Goethe
Launch your own high-performance anime discovery platform in minutes with the AiMi Complete Recommendation System. This package includes the full production-ready source code (FastAPI Backend + Streamlit Frontend), the proprietary RAG pipeline powered by Nomic v1.5 embeddings, and the complete 2.3GB asset library of posters and backdrops. It is a fully functional, self-hosted engine capable of semantic search, similar anime discovery, and smart filtering optimized for both CPU and GPU environments. Perfect for developers, students, and startups looking to save 100+ hours of engineering time.