Automating Movie Q&A on X with Hybrid RAG + Fine-Tuned LLMs
Built a production-ready X (Twitter) bot that answers movie
Problem Statement
The client needed a bot similar to interactive reply bots (e.g.,
Our Approach
Engineered a Python/FastAPI-based bot + AI services architecture with
Hybrid AI Runtime (RAG + Fine-Tuned + Web Search toggle)
Challenges We Solved
X API permissions, rate limits, and non-streaming architecture
The bot needed to respond to mentions, but streaming access was
Implemented periodic mention polling with robust rate-limit handling,
RAG ingestion reliability with change management
Client required vector DB reset/reinsert behavior and later asked for
Built a dedicated ingestion script and ingestion API endpoint
Modular refactor into production FastAPI framework
Initial implementation needed to be merged into a pre-existing FastAPI
Refactored codebase to move AI services out of twitter_bot into a
Fine-tune deployment to Hugging Face + endpoint publishing
Client required a fine-tuned model that could be served via URL; access
Delivered a working Colab fine-tuning notebook, published fine-tuned
Project Timeline
Discovery
Aligned on a bot that monitors X mentions and replies with movie
Build
Delivered RAG API and ingestion pipeline (CSV → embeddings → Qdrant).
Launch
Integrated the bot into the client’s production repo, validated
Screenshots & Visuals
Ready to Build Something Similar?
Let's discuss how we can help transform your business with AI.
Start Your Project
