Freelance Data Engineers in LahoreFreelance Data Engineers in Lahore
ML AI | Backend | Computer Vision | GenAI | LLM Agents
New to Contra
ML AI | Backend | Computer Vision | GenAI | LLM Agents
Cover image for AI Vision for Retail, Industrial
AI Vision for Retail, Industrial & Monitoring Workflows Overview I have built and deployed multiple real-world computer vision systems for industrial inspection, retail automation, and monitoring workflows. My responsibilities covered: 🔹 Dataset preparation and labeling 🔹 Object detection model training 🔹 Segmentation model training 🔹 YOLO-based detection and tracking 🔹 Image/video inference pipeline development 🔹 Model evaluation and threshold tuning 🔹 Production deployment support 🔹 Cloud server management and optimization 🔹 Building practical AI workflows for real-world operational environments Fish Quality Inspection System - lythium.cl (http://lythium.cl) I led the development of an advanced fish quality inspection solution for an industrial workflow. The system used image analysis to monitor fish quality and support automated fish sorting based on AI predictions. 🔹 Led the development of an advanced AI-powered fish quality inspection system for an industrial workflow. 🔹 Built an image analysis pipeline to monitor fish quality from production-line images. 🔹 Trained object detection models to identify fish and relevant visual quality indicators. 🔹 Trained segmentation models to support more detailed visual inspection of fish regions. 🔹 Designed the AI workflow to support automated fish sorting based on model predictions. 🔹 Worked on inspection logic that could classify or route fish based on quality-related outputs. 🔹 Designed the system for conveyor-belt usage, where images need to be processed consistently and reliably. 🔹 Focused on production issues such as image quality, camera consistency, lighting variation, and model reliability. 🔹 Helped convert visual inspection from a manual/rule-based workflow into an AI-supported inspection pipeline. 🔹 Built the system to reduce manual inspection effort and improve production workflow efficiency. Shelfr.ai (http://Shelfr.ai) - Retail Automation Platform I developed AI image solutions for retail automation and execution. The system handled large-scale product detection across 10,575+ SKUs, price tag detection, shelf and display type detection, and gap detection for empty shelf spaces. 🔹 Developed large-scale AI image solutions for retail automation and execution. 🔹 Worked on product detection across 10,575+ SKUs, where each SKU represented a unique product. 🔹 Built object detection workflows to identify products from retail shelf images. 🔹 Developed price tag detection to locate and extract price label areas from store images. 🔹 Worked on shelf and display type detection to understand the retail environment layout. 🔹 Built gap detection logic to identify empty shelf spaces and out-of-stock areas. 🔹 Supported computer vision workflows for retail compliance, shelf monitoring, and store execution. 🔹 Worked with high-volume image data and production-level inference requirements. 🔹 Managed high-load production servers on Google Cloud Platform. 🔹 Implemented load balancing and autoscaling to improve system stability under production traffic. 🔹 Focused on scalable AI infrastructure capable of handling real-world retail image workloads. 🔹 Helped create AI systems for inventory visibility, shelf condition monitoring, and retail execution analytics. lake-shield.com (http://lake-shield.com) - USA LAKES - Boat Detection & Inspection System 🔹 Worked on a YOLO-based boat detection, tracking, and monitoring system. 🔹 Labeled datasets for boat detection and inspection model training. 🔹 Prepared image/video data for object detection training workflows. 🔹 Trained YOLO object detection models to detect boats in monitoring footage. 🔹 Built a detection pipeline capable of identifying boats from visual data. 🔹 Worked on boat tracking logic to monitor boat movement across frames. 🔹 Supported inspection and monitoring workflows using computer vision predictions. 🔹 Developed an end-to-end pipeline from labeled data to trained model and inference output. 🔹 Focused on practical model performance in outdoor environments where lighting, distance, angle, and background can vary. 🔹 Helped build a monitoring system that could support automated detection and review instead of fully manual observation. My Responsibilities Across These Projects 🔹 Led AI/computer vision system development 🔹 Designed labeling and dataset preparation workflows 🔹 Trained YOLO/object detection models 🔹 Trained segmentation models where needed 🔹 Built image and video inference pipelines 🔹 Evaluated models using practical production metrics 🔹 Improved model performance through dataset cleanup, retraining, and threshold tuning 🔹 Integrated AI models into backend or operational workflows 🔹 Supported production deployment and infrastructure optimization 🔹 Worked with real-world constraints such as lighting, camera angle, image quality, latency, and false detection rates Technologies Used 🔹 Python 🔹 YOLO / YOLOv8 🔹 Object Detection 🔹 Image Segmentation 🔹 OpenCV 🔹 PyTorch 🔹 FastAPI 🔹 Google Cloud Platform 🔹 Linux Servers 🔹 Load Balancing 🔹 Autoscaling 🔹 Custom Data Labeling Workflows 🔹 Model Training 🔹 Model Evaluation 🔹 Inference Pipeline Development 🔹 Production AI Deployment
1
47
Cover image for French Legal AI Assistant &
French Legal AI Assistant & Agentic RAG System Overview I designed, built, and deployed a specialized Legal AI Assistant for French lawyers using agentic RAG, legal data pipelines, vector search, reranking, open-source LLMs, and citation-grounded answer generation. The system allowed lawyers to ask legal questions and receive answers grounded in French law articles, legal references, and relevant judicial cases. Problem / Challenge Legal data is very different from normal document data. A generic RAG pipeline using fixed-size chunks often breaks legal meaning, misses important context, or retrieves incomplete references. The main challenges were: 🔹 Legal documents had different structures and lengths 🔹 Articles and laws could not be randomly split into fixed-size chunks 🔹 Each answer needed traceable legal references 🔹 Retrieval had to understand legal scope, not just semantic similarity 🔹 The system needed to reduce hallucinations for legal users 🔹 Deployment had to respect privacy and regulatory requirements My Expertise I worked as the Lead AI Engineer / Agentic RAG Developer responsible for the complete system design and implementation. My responsibilities included: 🔹 Legal data pipeline architecture 🔹 Document parsing and preprocessing 🔹 Custom legal chunking strategy 🔹 Vector database design 🔹 Agentic RAG workflow development 🔹 Retrieval optimization and reranking 🔹 Open-source LLM deployment 🔹 Backend API development with FastAPI 🔹 Secure Azure cloud deployment 🔹 Multi-tenant system support French Legal Data Engineering Pipeline I built an automated ETL pipeline to process thousands of French legal documents, articles, and judicial cases. The pipeline handled: 🔹 Raw legal document ingestion 🔹 Text cleaning and normalization 🔹 Legal article extraction 🔹 Section-aware document structuring 🔹 Custom chunk generation 🔹 Metadata extraction for article number, article title, section, source, and reference 🔹 Embedding generation 🔹 Vector database ingestion 🔹 Repeatable updates for future legal data expansion The chunking strategy was designed so legal articles were not cut in the middle or separated from their meaning. Agentic RAG Workflow Instead of using a simple one-step vector search, I built a LangGraph-based agentic RAG workflow. The workflow included: 🔹 User query understanding 🔹 Legal intent detection 🔹 Legal domain and scope identification 🔹 Generation of 2–5 targeted legal search queries 🔹 Retrieval of relevant chunks for each query 🔹 Deduplication of repeated results 🔹 Reranking of retrieved legal evidence 🔹 Source-grounded answer generation This improved tested retrieval accuracy from around 50% to 95%+. Retrieval, Citations & Case Law The retrieval system was designed to make answers transparent and verifiable. I implemented: 🔹 Vector search for semantic legal retrieval 🔹 Reranking to improve relevance 🔹 Metadata-based source traceability 🔹 Citation-backed answer generation 🔹 Article-level legal references 🔹 Typesense-based retrieval for French judicial cases 🔹 Supporting case law returned with legal answers This allowed lawyers to verify the exact legal source behind each generated response. Open-Source LLM & Cloud Deployment I evaluated and deployed open-source LLM infrastructure for private legal AI usage. The deployment included: 🔹 Qwen2.5:14B for French legal reasoning 🔹 Ollama and vLLM for model serving 🔹 Embedding and reranker models on a private Azure GPU VM 🔹 NVIDIA T4 16GB GPU optimization 🔹 Python/FastAPI backend APIs 🔹 Secure Azure deployment in the France region 🔹 Multi-tenant isolated access 🔹 GitHub CI/CD and Linux server management The system was designed for privacy, reliability, and regulatory compliance. Technologies Used 🔹 Python 🔹 FastAPI 🔹 LangChain 🔹 LangGraph 🔹 LangSmith 🔹 Ollama 🔹 vLLM 🔹 Qwen2.5:14B 🔹 ChromaDB 🔹 Typesense 🔹 Vector Databases 🔹 Reranking Models 🔹 Embedding Models 🔹 Azure Cloud 🔹 Linux 🔹 GitHub CI/CD Impact 🔹 Built a production-ready legal AI assistant for lawyers 🔹 Improved retrieval accuracy from ~50% to 95%+ in tested scenarios 🔹 Reduced hallucinations through citation-grounded generation 🔹 Enabled lawyers to verify answers using article and case references 🔹 Created a scalable legal data pipeline for thousands of documents 🔹 Deployed private open-source LLM infrastructure for legal compliance 🔹 Delivered a strong foundation for future legal AI workflows
0
54
I build offline AI tools that make documents talk.
New to Contra
I build offline AI tools that make documents talk.
Full Stack Dev | ASP.NET, Angular, SQL Server
Full Stack Dev | ASP.NET, Angular, SQL Server
Low-Code, High Impact: Blazing-Fast, Top-Tier Internal Tools
$10k+
Earned
8x
Hired
5.0
Rating
13
Followers
Low-Code, High Impact: Blazing-Fast, Top-Tier Internal Tools
AI/ML & Data Solutions Engineer
New to Contra
AI/ML & Data Solutions Engineer