Spaces:
Sleeping
A newer version of the Gradio SDK is available: 6.20.0
title: CineMatch AI (Powered by Modal & Nebius)
emoji: ๐ฌ
colorFrom: blue
colorTo: red
sdk: gradio
sdk_version: 6.0.1
app_file: app.py
pinned: false
license: mit
short_description: Multi-Agent RAG for Semantic Movie Discovery
tags:
- mcp-in-action-track-01
- agents
- rag
- modal
- nebius
- search
๐ฌ CineMatch AI: Semantic Movie Discovery via Multi-Agent RAG
๐ Submission for MCP 1st Birthday Hackathon
Track: MCP in Action Special Category: Modal Innovation Award
๐ Elevator Pitch
Describe your story, find its cinematic soulmates. CineMatch AI is a creative partner for movie discovery. Instead of keywords, users describe their own original story ideas, dreams, or real-life situations (50+ words). A team of 5 Autonomous Agents collaborates to refine this narrative, retrieve semantic matches from a vector database (FAISS running on Modal GPU), and expertly justify why these movies fit the user's concept.
Crucially, the system features a Shadow Evaluation Agent (AgentOps) that runs silently in the background via MCP, auditing recommendations for hallucinations and logical coherence.
๐ ๏ธ Architecture & MCP Integration
The system uses a Hierarchical Multi-Agent Architecture orchestrated on Modal (Serverless GPU) and powered by Llama-3.3-70B (via Nebius AI).
The Agentic Pipeline:
- ๐ฎโโ๏ธ Coordinator Agent: Validates input and manages the conversation state machine. Uses Context Engineering to guide users.
- ๐ Editor & ๐๏ธ Critic Agents: Refine the user's raw text into a professional synopsis optimized for embedding.
- ๐ Retriever Agent (MCP Tool User):
- Acts as a bridge to our Vector Database.
- Calls the semantic search tool (hosted on Modal) which queries a FAISS index of thousands of movies.
- Uses all-MiniLM-L6-v2 for embedding generation.
- ๐ Expert Agent: Performs parallel evaluation of candidates and generates persuasive justifications.
- ๐ต๏ธ Shadow Evaluator (AgentOps):
- Demonstrates the power of MCP for monitoring.
- Runs asynchronously to audit the expert's output against ground truth metadata, detecting hallucinations without disrupting the UX.
๐ Dual-Layer Architecture (MCP Integration)
CineMatch AI features a unique dual-layer approach to balance speed and standardization:
- Direct RPC Layer: Used by the Gradio Web UI for low-latency user interactions. It communicates directly with Modal functions via optimized RPC calls.
- MCP Layer (
tools/): A fully compliant Model Context Protocol implementation. This allows external agents (like Claude Desktop or other MCP clients) to discover and connect to our Movie Search Engine as a standard tool, fulfilling the hackathon's interoperability requirements.
๐๏ธ Technical Stack
- Infrastructure: Modal (Serverless Python, GPU A10G for FAISS/Embeddings).
- LLM: Meta Llama 3.3 70B Instruct (via Nebius AI).
- Protocol: Agents communicate using structured tool calls (MCP pattern).
- Interface: Gradio 6.
๐ฅ Demo Video
๐ Social Media Post
[LINK TO YOUR SOCIAL MEDIA POST HERE]
๐ How to Use
- Enter a detailed description of a story, dream, or life situation (e.g., "A story about a lonely botanist on Mars who learns to communicate with rocks. He was ..." (50+ words)).
- Watch the agents collaborate in real-time.
- Receive 3 highly relevant movie recommendations with expert justifications.
- (Optional) Check the logs to see the Shadow Evaluator's quality audit.