🐦 Twitter Post Details

Viewing enriched Twitter post

@akshay_pachaar

RAG vs. Graph RAG vs. Agentic RAG, clearly explained! Standard RAG embeds documents into vectors and retrieves the most similar chunks via similarity search. For direct factual lookups, this works well. But it breaks down when a query needs to connect facts spread across multiple documents. Similarity search retrieves individual chunks, not the relationships between them. Graph RAG adds a knowledge graph layer on top. → During indexing, an LLM extracts entities and relationships from the documents. → During retrieval, the system traverses these connections instead of relying on embedding similarity alone. This is what enables multi-hop queries. Say a vector DB stores three facts about internal services: ↳ "The checkout service uses payments API." ↳ "The payments API runs on cluster-3." ↳ "Cluster-3 is scheduled for maintenance on Friday." Someone asks: "Will the checkout service be affected by Friday's maintenance?" Vector search can likely retrieve facts 1 and 3 because the query mentions "checkout service" and "Friday maintenance." But it will miss fact 2, which connects the payments API to cluster-3. That middle fact sits too far from the query in embedding space. It mentions neither "checkout" nor "maintenance," so it never makes it into the retrieved context. A knowledge graph connects these as linked entities, and graph traversal finds the full path in one query. Agentic RAG takes a different approach entirely. Instead of a fixed retrieval pipeline, an LLM agent decides at query time which tools to invoke, which sources to query, and in what order. Check the visual below to understand the three architectures thoroughly. One thing to note here is that these three aren't levels of sophistication that you need to graduate through. Instead, they solve different query types. ↳ Single-hop factual lookups → standard RAG ↳ Multi-hop relationship queries → Graph RAG ↳ Dynamic multi-source tasks with tool use → Agentic RAG ---- Each of these architectures gets better when the underlying retrieval layer is efficient. I recently wrote about a new RAG approach that cuts corpus size by 40x, reduces tokens per query by 3x, and improves vector search relevance by 2.3x. The article is quoted below.

Media 1

šŸ“Š Media Metadata

{
  "media": [
    {
      "url": "https://crmoxkoizveukayfjuyo.supabase.co/storage/v1/object/public/media/posts/2072767459908796782/media_0.jpg",
      "media_url": "https://crmoxkoizveukayfjuyo.supabase.co/storage/v1/object/public/media/posts/2072767459908796782/media_0.jpg",
      "type": "photo",
      "filename": "media_0.jpg"
    }
  ],
  "processed_at": "2026-07-03T16:02:37.525894",
  "pipeline_version": "2.0"
}

šŸ”§ Raw API Response

{
  "type": "tweet",
  "id": "2072767459908796782",
  "url": "https://x.com/akshay_pachaar/status/2072767459908796782",
  "twitterUrl": "https://twitter.com/akshay_pachaar/status/2072767459908796782",
  "text": "RAG vs. Graph RAG vs. Agentic RAG, clearly explained!\n\nStandard RAG embeds documents into vectors and retrieves the most similar chunks via similarity search. For direct factual lookups, this works well.\n\nBut it breaks down when a query needs to connect facts spread across multiple documents. Similarity search retrieves individual chunks, not the relationships between them.\n\nGraph RAG adds a knowledge graph layer on top.\n\n→ During indexing, an LLM extracts entities and relationships from the documents.\n\n→ During retrieval, the system traverses these connections instead of relying on embedding similarity alone.\n\nThis is what enables multi-hop queries.\n\nSay a vector DB stores three facts about internal services:\n\n↳ \"The checkout service uses payments API.\"\n↳ \"The payments API runs on cluster-3.\"\n↳ \"Cluster-3 is scheduled for maintenance on Friday.\"\n\nSomeone asks: \"Will the checkout service be affected by Friday's maintenance?\"\n\nVector search can likely retrieve facts 1 and 3 because the query mentions \"checkout service\" and \"Friday maintenance.\"\n\nBut it will miss fact 2, which connects the payments API to cluster-3.\n\nThat middle fact sits too far from the query in embedding space. It mentions neither \"checkout\" nor \"maintenance,\" so it never makes it into the retrieved context.\n\nA knowledge graph connects these as linked entities, and graph traversal finds the full path in one query.\n\nAgentic RAG takes a different approach entirely.\n\nInstead of a fixed retrieval pipeline, an LLM agent decides at query time which tools to invoke, which sources to query, and in what order.\n\nCheck the visual below to understand the three architectures thoroughly.\n\nOne thing to note here is that these three aren't levels of sophistication that you need to graduate through.\n\nInstead, they solve different query types.\n\n↳ Single-hop factual lookups → standard RAG\n↳ Multi-hop relationship queries → Graph RAG\n↳ Dynamic multi-source tasks with tool use → Agentic RAG\n\n----\n\nEach of these architectures gets better when the underlying retrieval layer is efficient.\n\nI recently wrote about a new RAG approach that cuts corpus size by 40x, reduces tokens per query by 3x, and improves vector search relevance by 2.3x.\n\nThe article is quoted below.",
  "source": "Twitter for iPhone",
  "retweetCount": 84,
  "replyCount": 13,
  "likeCount": 479,
  "quoteCount": 0,
  "viewCount": 52154,
  "createdAt": "Thu Jul 02 19:40:47 +0000 2026",
  "lang": "en",
  "bookmarkCount": 552,
  "isReply": false,
  "inReplyToId": null,
  "conversationId": "2072767459908796782",
  "displayTextRange": [
    0,
    273
  ],
  "inReplyToUserId": null,
  "inReplyToUsername": null,
  "author": {
    "type": "user",
    "userName": "akshay_pachaar",
    "url": "https://x.com/akshay_pachaar",
    "twitterUrl": "https://twitter.com/akshay_pachaar",
    "id": "703601972",
    "name": "Akshay šŸš€",
    "isVerified": false,
    "isBlueVerified": true,
    "verifiedType": null,
    "profilePicture": "https://pbs.twimg.com/profile_images/1578327351544360960/YFpWSWIX_normal.jpg",
    "coverPicture": "https://pbs.twimg.com/profile_banners/703601972/1733646485",
    "description": "",
    "location": "Learn AI Engineering šŸ‘‰",
    "followers": 280078,
    "following": 491,
    "status": "",
    "canDm": true,
    "canMediaTag": true,
    "createdAt": "Wed Jul 18 18:58:39 +0000 2012",
    "entities": {
      "description": {
        "urls": []
      },
      "url": {}
    },
    "fastFollowersCount": 0,
    "favouritesCount": 22717,
    "hasCustomTimelines": true,
    "isTranslator": false,
    "mediaCount": 5170,
    "statusesCount": 21190,
    "withheldInCountries": [],
    "affiliatesHighlightedLabel": {},
    "possiblySensitive": false,
    "pinnedTweetIds": [
      "1724322731376918560"
    ],
    "profile_bio": {
      "description": "Simplifying LLMs, AI Agents, RAG, and Machine Learning for you! • Co-founder @dailydoseofds_• BITS Pilani • 3 Patents • ex-AI Engineer @ LightningAI",
      "entities": {
        "description": {
          "user_mentions": [
            {
              "id_str": "",
              "indices": [
                77,
                92
              ],
              "name": "",
              "screen_name": "dailydoseofds_"
            }
          ]
        },
        "url": {
          "urls": [
            {
              "display_url": "join.dailydoseofds.com",
              "expanded_url": "http://join.dailydoseofds.com",
              "indices": [
                0,
                23
              ],
              "url": "https://t.co/TLsKA1eQsf"
            }
          ]
        }
      }
    },
    "isAutomated": false,
    "automatedBy": null
  },
  "extendedEntities": {
    "media": [
      {
        "display_url": "pic.twitter.com/05HD1PQzdR",
        "expanded_url": "https://twitter.com/akshay_pachaar/status/2072767459908796782/photo/1",
        "ext_master_playlist_only": [],
        "ext_media_availability": {
          "status": "Available"
        },
        "ext_playlists": [],
        "id_str": "2072767448181579776",
        "indices": [
          274,
          297
        ],
        "media_key": "16_2072767448181579776",
        "media_results": {
          "id": "QXBpTWVkaWFSZXN1bHRzOgwAAgoAARzD8wMa2yAACgACHMPzBdXaQW4AAA==",
          "result": {
            "__typename": "ApiMedia",
            "id": "QXBpTWVkaWE6DAACCgABHMPzAxrbIAAKAAIcw/MF1dpBbgAA",
            "media_key": "16_2072767448181579776"
          }
        },
        "media_url_https": "https://pbs.twimg.com/tweet_video_thumb/HMPzAxrbIAAqp7q.jpg",
        "original_info": {
          "focus_rects": [],
          "height": 1400,
          "width": 2000
        },
        "sizes": {
          "large": {
            "h": 1400,
            "w": 2000
          }
        },
        "type": "animated_gif",
        "url": "https://t.co/05HD1PQzdR",
        "video_info": {
          "aspect_ratio": [
            10,
            7
          ],
          "variants": [
            {
              "bitrate": 0,
              "content_type": "video/mp4",
              "url": "https://video.twimg.com/tweet_video/HMPzAxrbIAAqp7q.mp4"
            }
          ]
        }
      }
    ]
  },
  "card": null,
  "place": {},
  "entities": {
    "hashtags": [],
    "symbols": [],
    "urls": [],
    "user_mentions": []
  },
  "quoted_tweet": {
    "type": "tweet",
    "id": "2052743644411765230",
    "url": "https://x.com/akshay_pachaar/status/2052743644411765230",
    "twitterUrl": "https://twitter.com/akshay_pachaar/status/2052743644411765230",
    "text": "https://t.co/De2DxpBoD2",
    "source": "Twitter for iPhone",
    "retweetCount": 71,
    "replyCount": 10,
    "likeCount": 621,
    "quoteCount": 14,
    "viewCount": 1135286,
    "createdAt": "Fri May 08 13:33:17 +0000 2026",
    "lang": "zxx",
    "bookmarkCount": 1404,
    "isReply": false,
    "inReplyToId": null,
    "conversationId": "2052743644411765230",
    "displayTextRange": [
      0,
      23
    ],
    "inReplyToUserId": null,
    "inReplyToUsername": null,
    "author": {
      "type": "user",
      "userName": "akshay_pachaar",
      "url": "https://x.com/akshay_pachaar",
      "twitterUrl": "https://twitter.com/akshay_pachaar",
      "id": "703601972",
      "name": "Akshay šŸš€",
      "isVerified": false,
      "isBlueVerified": true,
      "verifiedType": null,
      "profilePicture": "https://pbs.twimg.com/profile_images/1578327351544360960/YFpWSWIX_normal.jpg",
      "coverPicture": "https://pbs.twimg.com/profile_banners/703601972/1733646485",
      "description": "",
      "location": "Learn AI Engineering šŸ‘‰",
      "followers": 280078,
      "following": 491,
      "status": "",
      "canDm": true,
      "canMediaTag": true,
      "createdAt": "Wed Jul 18 18:58:39 +0000 2012",
      "entities": {
        "description": {
          "urls": []
        },
        "url": {}
      },
      "fastFollowersCount": 0,
      "favouritesCount": 22717,
      "hasCustomTimelines": true,
      "isTranslator": false,
      "mediaCount": 5170,
      "statusesCount": 21190,
      "withheldInCountries": [],
      "affiliatesHighlightedLabel": {},
      "possiblySensitive": false,
      "pinnedTweetIds": [
        "1724322731376918560"
      ],
      "profile_bio": {
        "description": "Simplifying LLMs, AI Agents, RAG, and Machine Learning for you! • Co-founder @dailydoseofds_• BITS Pilani • 3 Patents • ex-AI Engineer @ LightningAI",
        "entities": {
          "description": {
            "user_mentions": [
              {
                "id_str": "",
                "indices": [
                  77,
                  92
                ],
                "name": "",
                "screen_name": "dailydoseofds_"
              }
            ]
          },
          "url": {
            "urls": [
              {
                "display_url": "join.dailydoseofds.com",
                "expanded_url": "http://join.dailydoseofds.com",
                "indices": [
                  0,
                  23
                ],
                "url": "https://t.co/TLsKA1eQsf"
              }
            ]
          }
        }
      },
      "isAutomated": false,
      "automatedBy": null
    },
    "extendedEntities": {},
    "card": null,
    "place": {},
    "entities": {
      "urls": [
        {
          "display_url": "x.com/i/article/2052…",
          "expanded_url": "http://x.com/i/article/2052725748121956352",
          "indices": [
            0,
            23
          ],
          "url": "https://t.co/De2DxpBoD2"
        }
      ]
    },
    "quoted_tweet": null,
    "retweeted_tweet": null,
    "isLimitedReply": false,
    "communityInfo": null,
    "article": {
      "title": "You're doing RAG wrong ",
      "preview_text": "There's a new approach that:\ncuts corpus size by 40x.\nreduces tokens per query by 3x.\nimproves vector search relevance by 2.3x.\nAnd it doesn't touch your retrieval algorithm, your reranker, or your",
      "cover_media_img_url": "https://pbs.twimg.com/media/HHzOinabYAEF8Wo.jpg"
    }
  },
  "retweeted_tweet": null,
  "isLimitedReply": false,
  "communityInfo": null,
  "article": null
}