
CS Valedictorian 🎓 | Teaching Assistant 👨🏫 | AI & Computer Vision specialist 🤖👁️ | Innovator 💡 | Hackathon Winner 🏆
Joined July 2020
- Tweets235
- Following3.6K
- Followers117
- Likes5.9K
Othman Shbeir retweeted
8 RAG architectures for AI Engineers:
(explained with usage)
1) Naive RAG
- Retrieves documents purely based on vector similarity between the query embedding and stored embeddings.
- Works best for simple, fact-based queries where direct semantic matching suffices.
2) Multimodal RAG
- Handles multiple data types (text, images, audio, etc.) by embedding and retrieving across modalities.
- Ideal for cross-modal retrieval tasks like answering a text query with both text and image context.
3) HyDE (Hypothetical Document Embeddings)
- Queries are not semantically similar to documents.
- This technique generates a hypothetical answer document from the query before retrieval.
- Uses this generated document’s embedding to find more relevant real documents.
4) Corrective RAG
- Validates retrieved results by comparing them against trusted sources (e.g., web search).
- Ensures up-to-date and accurate information, filtering or correcting retrieved content before passing to the LLM.
5) Graph RAG
- Converts retrieved content into a knowledge graph to capture relationships and entities.
- Enhances reasoning by providing structured context alongside raw text to the LLM.
6) Hybrid RAG
- Combines dense vector retrieval with graph-based retrieval in a single pipeline.
- Useful when the task requires both unstructured text and structured relational data for richer answers.
7) Adaptive RAG
- Dynamically decides if a query requires a simple direct retrieval or a multi-step reasoning chain.
- Breaks complex queries into smaller sub-queries for better coverage and accuracy.
8) Agentic RAG
- Uses AI agents with planning, reasoning (ReAct, CoT), and memory to orchestrate retrieval from multiple sources.
- Best suited for complex workflows that require tool use, external APIs, or combining multiple RAG techniques.
👉 Over to you: Which RAG architecture do you use the most?
_____
Share this with your network if you found this insightful ♻️
Find me → @akshay_pachaar ✔️
For more insights and tutorials on LLMs, AI Agents, and Machine Learning!
Pretty excited about this book (it just came out!)
A wise person once said, "The only thing better than an AI Agent is a well-architected AI Agent".
This is precisely what this book covers!
By the way, this book is not about building your first chatbot, or theoretical ideas, or an introduction to agents. We have plenty of those books already.
This book is about patterns, architecture, and design decisions.
Authors give me very good vibes:
• Dr. Arsanjani leads Applied AI Engineering at Google Cloud
• Juan Pablo Bustos helps Fortune 50 companies adopt agentic AI
Amazon link: a.co/d/02PnmLsQ
Othman Shbeir retweeted
{إِنَّ اللَّهَ وَمَلَائِكَتَهُ يُصَلُّونَ عَلَى النَّبِيِّ يَا أَيُّهَا الَّذِينَ آَمَنُوا صَلُّوا عَلَيْهِ وَسَلِّمُوا تَسْلِيمًا}
Othman Shbeir retweeted
OpenLLMetry lets you add observability to your LLM apps using OpenTelemetry, so you can track and monitor model performance across popular platforms
Othman Shbeir retweeted
Machine Learning Engineering with Python! #BigData #Analytics #DataScience #IoT #IIoT #Python #RStats #TensorFlow #JavaScript #ReactJS #CloudComputing #Serverless #DataScientist #Linux #Books #Programming #Coding #100DaysofCode
lnkd.in/gPgQG7YA
Othman Shbeir retweeted
you can just teach machines to see, move and think
> this book unlocks the core algorithms of perception and control using Python.
> perfect for roboticists, AI engineers, and anyone curious about building intelligent machines that interact with the real world
Othman Shbeir retweeted
15 ChatGPT prompts for better research
_____________
P.S. Meet Notch, it can research competitors, generate concepts, and create winning ads... all from one dashboard.
usenotch.ai/?utm_source=crea…
Othman Shbeir retweeted
Build agents that can actually do real-world tasks!
Agent Reinforcement Trainer (ART) is a framework to train multi-step LLM agents for real-world tasks using GRPO.
You just need a few lines of code. No manual rewards needed! ✨
100% open-source.
Othman Shbeir retweeted
Google made Gemini 1.5 Pro & Flash available to the public(preview) this week.
A context window of 1 million tokens is insanely useful in many use cases.
This will blow your mind (sharing with examples):
Othman Shbeir retweeted
وفي أول ليله من شهر رمضان
"اللهم أنَت ربِّي، لا يخفى عليك ما في قلبي، فاللهم طمأنينة منك، وغنى بك .. يارب أعوذ بك من ضيقة القلب، وشعور لا يُشكى ولا يفهم .. اللهم أرِح قلبي بما أنت به أعلم، ولا تجعلني أشكي لمن لا يخشى عليّ من حزني .. اللهم إني أُفوض دنياي كلها إليك"
Othman Shbeir retweeted
قول " ٣ " مرات .
"يا جامع الناس ليوم لا ريب فيه، أجمع بيني وبين سعادتي، توفيقي، إرتياحي، إطمئناني، هُداي ، وكل أمر يسرني يا الله."

























