Skip to content

Latest commit

 

History

30 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🗄️ CineVector Vault

Columnar Video Intelligence & Vector Continuity Media Lake

Built for the ClickHouse Track — Google Cloud "Agentic Cinema: The Blockbuster Hackathon"

License ClickHouse MCP Gemini FastAPI


🌟 Overview

CineVector Vault is a multimodal media data lake and vector continuity search engine. The public evaluator runs Gemini 3.7 Flash through Vertex AI and official mcp-clickhouse against managed ClickHouse Cloud 26.2.1.558. A dedicated server-enforced read-only identity protects the live evidence database. It addresses a key challenge in AI filmmaking: detecting character wardrobe, facial, and lighting drift across video takes.


🚀 Key Features

  1. ⚡ Columnar Vector Continuity Search:

    • Executes cosineDistance vector queries over 768-dim video frame embeddings using ClickHouse's vector distance functions.
    • Evaluates character wardrobe and lighting consistency between AI-generated shots.
  2. 🗄️ MergeTree Columnar Schemas:

    • video_frames: Cataloged reference takes, timestamps, and embeddings.
    • script_dialogues: Semantic full-text search across dialogue transcripts.
  3. 🔌 Official mcp-clickhouse Integration:

    • Direct runtime MCP integration using the official Python MCP SDK and mcp-clickhouse server package.
    • Leverages official MCP tools: run_query, list_databases, list_tables.
  4. 🤖 Specialized Gemini 3.7 Agent Crew:

    • ContinuitySentinel Agent: Extracts visual attributes via Gemini 3.7 Flash and verifies vector match consistency.
    • VideoIndexer Agent: Indexes video rush takes into ClickHouse tables.
    • Analytics Agent: Delivers studio KPI reports and SQL performance metrics.

⚙️ Configuration & Connection Settings

ClickHouse Database Ports

  • Port 8123: Standard unencrypted HTTP protocol port.
  • Port 8443: Standard HTTPS/TLS secure port (default for ClickHouse secure connections).

Official MCP Transport Settings

  • The application uses a managed stdio session via the official Python mcp SDK to launch the installed mcp-clickhouse server process.
  • Environment variables (CLICKHOUSE_HOST, CLICKHOUSE_PORT, CLICKHOUSE_USER, CLICKHOUSE_PASSWORD, CLICKHOUSE_SECURE) are passed directly into the stdio session environment.

⚡ Clean Clone Quickstart

# 1. Clone repository & navigate to backend
cd backend

# 2. Install dependencies (includes mcp and mcp-clickhouse)
pip install -r requirements.txt

# 3. Configure environment
cp ../.env.example .env
# Edit .env to set RUNTIME_MODE=demo (local fixture) or RUNTIME_MODE=live (Live ClickHouse cluster + Gemini credentials)

# 4. Start backend server
python run_backend.py
  • Interactive Studio Web UI available at: http://localhost:8001/
  • OpenAPI Swagger docs available at: http://localhost:8001/docs

🧪 Testing

cd backend
python -m pytest -q

📄 License

Licensed under the MIT License.

🚀 Public Deployment (Vercel)

Live judge demo: https://cinevector-vault.vercel.app/
Public source: https://github.com/AtchayamG/cinevector-vault

The stable Vercel judge URL proxies Cloud Run revision cinevector-vault-live-00003-w8l. Public health reports runtime_mode: live; a public SQL request through official mcp-clickhouse returned ClickHouse Cloud version 26.2.1.558 and three stored reference rows. See docs/evidence/PUBLIC_RUNTIME_VERIFICATION_2026-08-30.md.

Judging availability: ClickHouse Support case 00052860 confirmed the organization trial is extended through October 10, 2026, covering the complete judging window through October 8.

  1. Import your project into Vercel.
  2. In the project settings, set the Root Directory to backend.
  3. Vercel will automatically use backend/vercel.json and deploy app.main:app via @vercel/python.

About

CineVector Vault — cinematic continuity search with ClickHouse and Gemini

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages