Track 1: Github link: https://github.com/nhegde610/track1-divine-router AI Agent Router is a hybrid inference framework that routes user queries to fine-tuned (using amd rcom notebook) local quantized models (Gemma-4-e2b) or external API fallbacks. Key Operations: Routing: Analyzes prompts using regex to classify them into one of 8 task categories. Inference: Queries the local LLM first to minimize external dependencies and API costs. Double-Gate Validation: Inspects outputs for gibberish and category-specific formatting rules (e.g., Python compiling, math syntax). Fallback & Escalation: If validation fails, it triggers local algorithms (TextRank/TextBlob) or escalates to cloud endpoints (Fireworks API) with a retry loop. Atomic Writing: Ensures result persistence via temporary file-rename operations within a 9-minute budget. Track 2: Github link: https://github.com/nhegde610/track2-amd-hackathon AI Video Captioning Agent that automates descriptive captioning across multiple stylistic tones (Formal, Sarcastic, Humorous Tech, and Humorous Non-Tech). The pipeline operates as follows: Ingests video tasks from an input JSON. Resolves video URL redirections and verifies file container format support. Automatically transcodes unsupported video container formats (e.g., WebM, AVI) to H.264/AAC MP4 via FFmpeg. Uploads media files to the Gemini Files API and polls until the status is ACTIVE. Employs a rate-limiting mechanism (max 10 calls/min) to prevent API quota failures. Queries the gemini-3.1-flash-lite model using styled tone prompts. Employs a three-tier resilient parser (Strict JSON -> Markdown Block Stripping -> Regex Fallback) to clean responses. Writes final outputs to JSON and deletes remote media assets. The agent runs inside a Docker container configured with FFmpeg and the google-genai SDK.
Category tags: