Ojaswi Barotia's Work | ContraWork by Ojaswi Barotia
Ojaswi Barotia

Ojaswi Barotia

AI & Full Stack Developer | Building Smarter Digital Product

    4
    Followers
Cover image for Zero-maintenance web scraping: Engineering self-healing
Zero-maintenance web scraping: Engineering self-healing crawlers that adapt to dynamic DOM shifts 🕷️⚡ Most enterprise data collection breaks within weeks because target sites deploy subtle UI redesigns, change class identifiers, or trigger aggressive Cloudflare Turnstile blocks. Currently building an autonomous, resilient data harvesting pipeline designed for continuous 24/7 ingestion: Dynamic DOM Adaptation: Integrated headless heuristics and visual AST parsing to detect when target selectors shift, automatically falling back to parent node relationships without human intervention. Distributed Headless Browser Pool: Engineered a lightweight containerized cluster using Playwright and Chromium instances managed via Redis queues, handling concurrent rendering without memory bloat. Fingerprint Randomization & Smart Routing: Configured granular browser fingerprint masking (Canvas, WebGL, AudioContext, and User-Agent cycling) backed by residential proxy pools with automated back-off logic. Stream Ingestion & Schema Validation: Validates incoming payloads on the fly with Pydantic and pushes normalized JSON directly to PostgreSQL and S3 data lakes. Scaled to extract over 500,000 structured e-commerce product records per day with a 99.4% uptime and zero CAPTCHA lockouts. Pipeline architecture and memory footprint benchmarks below! 👇 #DataEngineering #WebScraping #Playwright #Python #DistributedSystems #Redis #BuildInPublic
1
93
Cover image for Sub-400ms voice agent: Eliminating audio
Sub-400ms voice agent: Eliminating audio lag in conversational AI 🎙️⚡ Most voice AI bots feel robotic not because of the LLM's intelligence, but because of the latency penalty from traditional HTTP chaining: Audio In ➔ Whisper API ➔ LLM API ➔ ElevenLabs API ➔ Audio Out. That round-trip easily takes 2.5 to 4 seconds, killing natural conversational flow. Currently building an ultra-low-latency real-time voice pipeline using direct audio streaming: Bidirectional WebRTC Data Channels: Replaced standard REST request-response cycles with duplex WebRTC streams, piping raw PCM audio chunks continuously. Streaming VAD (Voice Activity Detection): Implemented Silero VAD at the edge to catch user interruptions instantly, immediately sending cancellation tokens to abort in-flight LLM token generation. Token-to-Speech Streaming: Connected streaming LLM token generation directly to a streaming TTS synthesizer, firing synthetic phonemes while the sentence is still being composed. Context Preservation: Managing conversational state via low-latency Redis cache so context remains intact even across frequent back-and-forth interruptions. Achieving natural, fluid interruptions and dropping perceived latency down to human conversational speeds (~380ms). Architecture flow and latency breakdown below! 👇 #VoiceAI #WebRTC #Python #FastAPI #AudioEngineering #GenerativeAI #BuildInPublic
1
2
229
Cover image for Automating viral shorts: Turning 60-minute
Automating viral shorts: Turning 60-minute raw video feeds into cut-and-captioned reels programmatically 🎬⚡ Most content agencies still spend 4+ hours per video manually scrubbing timelines, finding hooks, and syncing subtitle keyframes. Currently deploying an automated multi-modal clipping engine combining computer vision, audio processing, and programmatic rendering: Audio-Visual Hook Detection: Runs Whisper for high-precision word-level timestamps and audio frequency analysis to pinpoint emotional peaks, loud reactions, and punchlines. Auto-Reframing (Face Tracking): Uses OpenCV / MediaPipe face tracking to dynamically crop 16:9 widescreen video into vertical 9:16, keeping speakers centered across active camera cuts. Programmatic FFmpeg Rendering: Bypasses sluggish UI video editors by chaining headless FFmpeg commands for seamless transitions, auto-zooms, and b-roll overlays. Dynamic Kinetic Captions: Generates styled, word-by-word animated subtitles directly baked into video layers at 60 FPS. Turning raw customer webinars and podcasts into 10 ready-to-post short-form clips in under 3 minutes per run. Pipeline architecture and rendering speed benchmarks below! 👇 #VideoAutomation #FFmpeg #Python #ComputerVision #ContentOps #GenerativeAI #BuildInPublic
1
93
Cover image for Turning natural language into production-safe
Turning natural language into production-safe SQL with zero unindexed table scans 🗄️⚡ Text-to-SQL agents fail miserably in enterprise setups because raw LLMs generate unoptimized queries that cause full-table locks or expose sensitive schema tables. Currently developing a deterministic, safety-guarded database co-pilot: AST & Schema Sandboxing: Parses user questions into strict Abstract Syntax Trees (AST) before generating SQL, completely preventing destructive DROP or unauthorized mutation commands. Cost-Based Query Plan Analysis: Analyzes the generated query using EXPLAIN ANALYZE before execution. If an unindexed sequential scan or query cost exceeds predefined thresholds, execution halts automatically. Auto-Index Recommendation: Detects frequent high-latency query patterns and auto-drafts optimized migration index scripts for DBAs to review. Strict Role-Based Context: Maps enterprise RBAC schemas directly to the vector memory, ensuring junior staff queries never expose payroll or executive tables. Democratizing data warehouse access without risking production database crashes. Preview of the execution safety pipeline below! 👇 #DatabaseEngineering #TextToSQL #AIAgents #Python #PostgreSQL #DataInfrastructure #BuildInPublic
1
75