Muhammad Haseeb (@Haseebai_tech) header
Muhammad Haseeb (@Haseebai_tech) profile picture

AI Engineer. Production RAG systems for legal, energy & government teams. Agentic RAG · LLM orchestration · Voice AI

Islamabad, Pakistan
Joined November 2019
Photo by Muhammad Haseeb (@Haseebai_tech)Photo by Muhammad Haseeb (@Haseebai_tech)Photo by Muhammad Haseeb (@Haseebai_tech)Photo by Muhammad Haseeb (@Haseebai_tech)Photo by Muhammad Haseeb (@Haseebai_tech)Photo by Muhammad Haseeb (@Haseebai_tech)Photo by Muhammad Haseeb (@Haseebai_tech)Photo by Muhammad Haseeb (@Haseebai_tech)Photo by Muhammad Haseeb (@Haseebai_tech)Photo by Muhammad Haseeb (@Haseebai_tech)
Your Vector DB can retrieve semantically relevant documents that are completely wrong for the user's actual context. This is particularly dangerous in legal, financial, and regulatory RAG systems. The problem isn't always embedding quality Sometimes it's retrieval architecture
1
1
41
Each indexed document segment carried structured metadata: • Domain • Subject grouping • Scope classification Agent inferred the relevant domain from query intent and applied metadata filters. For multi-domain questions, separate retrieval calls searched the relevant subsets
1
12
The results: • Recall@10: 68–72% → 97–98% • Cross-domain contamination: 20–25% → below 5% The lesson: Don't ask vector search to solve a problem that should be handled by your data model and retrieval architecture.
5
One of the biggest risks in legal RAG isn't hallucination It's retrieving an outdated regulation with complete confidence I saw this while building a legal AI system The answer looked right, the citation existed, but the law had been superseded Here's why it happens
5
3
433
On a bilingual legal QA evaluation set, measured with automated scoring and legal-domain review Cross-domain contamination: 20-25% to below 5% recall@10: 97-98% Answer correctness: 95-98%
1
12
The takeaway: In regulated AI, retrieving information that sounds relevant is not enough You need to retrieve information that is legally valid Semantic similarity is a starting point, not a guarantee of authority
12
– at Riyadh, Kingdom of Saudi Arabia
100
Coding is seriously addictive! 🚀 When you're in the zone, with no distractions, tackling a big problem – stopping is the last thing on your mind. Even when you finally take a break, your fingers rest, but your mind keeps on coding! 💻 #CodingLife #InTheZone #addiction
2
7
270
Start your #ML in 7 steps: 1. #Python basics 🐍 2. Learn Kaggle/Colab 🚀 3. #numpy & #Pandas exploration 📊 4. #Matplotlib & #seaborn artistry 🎨 5. Begin with Regression 🌳 6. Kaggle's "Intro to ML" 🏆 7. Tackle one problem – you got this! 💡 #MachineLearning #DataScience 🤖
7
224
Hey, #CodeNewbies, ready for a coding adventure? Today, let's dive into the magical world of variables! 🌟 Ever wondered how computers remember stuff? That's where variables come in! Let's break it down. 💻🔍 #Programming101 #programminghelp #100DaysOfCode #Coding
1
6
166
Accessing Values! 🚪 The magic moment! Now we want to check what's inside our variable jars. We use 'printf' to peek inside and see what our variables are holding. It's like opening a surprise gift! 🎁👀 #CodeCuriosity
1
3
72
Recap and Challenge! 🌟 Variables are like coding buddies, storing and sharing info. Your challenge: create a variable, give it a cool name, store a value, and peek inside. Share your coding joy with us! 💻🎉 #CodeChallenge #HappyCoding #programminghelp
3
60