<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Rimsha kanwal on Medium]]></title>
        <description><![CDATA[Stories by Rimsha kanwal on Medium]]></description>
        <link>https://medium.com/@rimshakanwal7110?source=rss-0da7a4a02891------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*P8N6WYynG2i4e7rzw4nUvA.jpeg</url>
            <title>Stories by Rimsha kanwal on Medium</title>
            <link>https://medium.com/@rimshakanwal7110?source=rss-0da7a4a02891------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 01:07:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rimshakanwal7110/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Can AI Agents Organize Their Own Memory?]]></title>
            <link>https://medium.com/@rimshakanwal7110/can-ai-agents-organize-their-own-memory-53e49459539f?source=rss-0da7a4a02891------2</link>
            <guid isPermaLink="false">https://medium.com/p/53e49459539f</guid>
            <category><![CDATA[genrative-ai]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[agent-memory]]></category>
            <dc:creator><![CDATA[Rimsha kanwal]]></dc:creator>
            <pubDate>Fri, 13 Nov 2026 07:41:35 GMT</pubDate>
            <atom:updated>2026-11-13T07:41:35.009Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vxDVOoMl23j0DNg-IsoQPQ.png" /><figcaption>Own Memory</figcaption></figure><h3>A look at SoMem — and the questions that matter beyond remembering</h3><p>An AI agent can remember what you said last month and still give you the wrong answer today.</p><p>Maybe your preferences changed. Maybe an earlier conversation contained a misunderstanding. Maybe the information is accurate but belongs to a different context.</p><p>Storing information is only part of the problem. The harder part is maintaining a useful understanding as new information arrives.</p><p>That is why the paper <strong>“Can LLM Agents Organize Their Own Memory?”</strong> caught my attention.</p><p>The authors introduce <strong>Self-Organized Memory (SoMem)</strong>, a framework that lets an agent organize its persistent memory through linked documents.</p><h3>From fixed records to linked documents</h3><p>Many memory systems begin with decisions made by developers: what a memory record looks like, which categories exist, and how information should be grouped.</p><p>That structure can be useful. But conversations rarely follow a stable structure.</p><p>A discussion about a project might include technical decisions, personal preferences, unfinished tasks, and corrections to earlier assumptions. These details overlap.</p><p>SoMem gives the agent ordinary linked documents and lets it decide what to summarize, how to group related information, and when existing topics need revision.</p><p>Each summary remains linked to the original interactions as evidence.</p><p>That last detail matters. A summary is an interpretation. Keeping the original source accessible gives the agent a way to check what was actually said.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gvOt2nHYCCTQYcFj0iANKQ.png" /></figure><h3>Memory organization affects the answer</h3><p>At question time, the agent chooses what to search and read. It can follow document links and inspect the original evidence when necessary.</p><p>The runtime also derives temporal, relational, and recent-memory views from the organized content.</p><p>This makes memory organization part of the reasoning process. What the agent saves — and how it connects those memories — affects what evidence it can find later.</p><p>The authors report gains over the strongest baseline of <strong>2.66 percentage points on LoCoMo, 3.10 on BEAM-100K, and 2.00 on LongMemEval-S</strong>. They also report that memory constructed by one model can be reused by another.</p><p>These results are encouraging, although benchmark gains alone do not answer every question about long-term reliability.</p><h3>What happens when the memory is wrong?</h3><p>This is the question I find most interesting.</p><p>Suppose an agent misunderstands an interaction and saves an inaccurate summary. Later, it uses that summary to interpret another conversation.</p><p>Could the original mistake become more established with every update?</p><p>Links to source evidence make correction possible. But the agent still needs a reason to revisit that evidence.</p><p>A related problem appears when information changes.</p><p>If someone previously preferred evening meetings but now prefers mornings, both statements belong in the historical record. Only one should guide a new scheduling decision.</p><p>For practical systems, I would want to evaluate three things closely:</p><ul><li>Can the agent distinguish current facts from historical ones?</li><li>Does conflicting information trigger a review of the original evidence?</li><li>Can a mistaken summary be corrected without losing its history?</li></ul><p>These are evaluation questions, rather than claims about what SoMem does or does not support.</p><h3>Where A-MEM fits</h3><p>A related paper, <strong>A-MEM: Agentic Memory for LLM Agents</strong>, explores interconnected notes inspired by the Zettelkasten method.</p><p>It creates notes, links them to relevant memories, and allows new information to update existing memory representations.</p><p>Both approaches point toward an interesting direction: agents that actively maintain their external knowledge.</p><p>For developers, the useful experiment is to give an agent a small collection of linked notes and test how well it maintains them across changing conversations.</p><p>Measure whether it remembers facts. Then test whether it recognizes corrections, resolves contradictions, and knows when to check the source.</p><p><strong>Remembering an earlier statement is useful. Understanding whether it should still influence today’s answer is the harder test.</strong></p><p><strong>Further reading</strong></p><ul><li><a href="https://arxiv.org/abs/2611.11929">Can LLM Agents Organize Their Own Memory?</a></li><li><a href="https://arxiv.org/abs/2502.12110">A-MEM: Agentic Memory for LLM Agents</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=53e49459539f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[When More AI Agents Make the Answer Worse]]></title>
            <link>https://medium.com/@rimshakanwal7110/when-more-ai-agents-make-the-answer-worse-b2e97f215c60?source=rss-0da7a4a02891------2</link>
            <guid isPermaLink="false">https://medium.com/p/b2e97f215c60</guid>
            <category><![CDATA[multi-agent-systems]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[ai-engineering]]></category>
            <category><![CDATA[llm-agent]]></category>
            <dc:creator><![CDATA[Rimsha kanwal]]></dc:creator>
            <pubDate>Thu, 12 Nov 2026 15:53:19 GMT</pubDate>
            <atom:updated>2026-11-12T15:53:19.042Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8KXEzBHVE19UcU15YToOcQ.png" /></figure><p><em>Can adding more AI agents actually make a system less reliable?</em></p><p>A planner breaks down the task. A researcher gathers information. An analyst examines the findings. A reviewer checks the answer.</p><p>On paper, this sounds like a sensible way to solve a difficult problem.</p><p><em>But what happens when the researcher misunderstands the assignment? Or the analyst receives a summary that leaves out an important condition? What if the reviewer checks whether the response sounds reasonable without checking whether it answers the original question?</em></p><p>Each agent might complete its assignment while the system as a whole produces the wrong result.</p><p>That is a difficult problem in <strong>multi-agent AI: making several capable components work together reliably.</strong></p><h3>More agents mean more handoffs</h3><p>Consider a research assistant comparing three software platforms.</p><p>It assigns one agent to each platform, then asks another to combine their findings.</p><p>The first agent reports monthly prices. The second reports annual prices. The third includes enterprise features available only through a separate agreement.</p><p>The final comparison looks polished, but the information is inconsistent.</p><p>Giving each agent a <strong>narrower responsibility</strong> did not establish shared assumptions. Someone still needed to define the <em>billing period, required features, and conditions for a fair comparison.</em></p><p><strong>Every handoff creates another opportunity for those details to become unclear.</strong></p><h3>What failure research shows</h3><p>The paper <em>Why Do Multi-Agent LLM Systems Fail?</em> investigates these breakdowns using MAST-Data, a dataset containing more than 1,600 annotated execution traces from seven multi-agent frameworks.</p><p>The researchers identify <strong>14 failure modes</strong> across three broad categories:</p><ul><li>System design issues.</li><li>Misalignment between agents.</li><li>Task verification failures.</li></ul><p>Their taxonomy provides a way to examine failures beyond the quality of an <strong>individual model</strong>. The arrangement of responsibilities, interactions, and verification also deserves attention.</p><p>For engineers, a useful implication is to inspect the transitions between agents. If information disappears during a handoff, improving the final agent’s prompt may leave the original problem untouched.</p><h3>The task determines whether collaboration helps</h3><p>Some tasks divide naturally.</p><p>Separate agents can investigate different companies, search independent document collections, or explore alternative explanations.</p><p>Other tasks involve a sequence of decisions in which each result changes what should happen next. Splitting that sequence may introduce frequent updates and dependencies.</p><p><em>Towards a Science of Scaling Agent Systems</em> examines this relationship. <strong>Version 3, revised on April 8, 2026</strong>, evaluates 260 configurations across six benchmarks, comparing a single-agent architecture with four multi-agent architectures.</p><p>The study reports gains on decomposable financial reasoning and declines on sequential planning. It also identifies overhead in tool-heavy tasks and greater error propagation in architectures without centralized verification.</p><p>These findings describe the evaluated settings; they do not establish that one architecture wins across every application.</p><p>The practical question is whether the work can proceed independently.</p><p><em>If each agent repeatedly needs another agent’s latest decision, the coordination may become a substantial part of the task itself.</em></p><h3>Collaboration has a measurable cost</h3><p>Anthropic’s production account describes a lead research agent coordinating subagents that investigate different aspects of a question.</p><p>The company reports that, in its usage data, multi-agent systems consumed approximately <strong>15 times as many tokens as ordinary chat interactions</strong>.</p><p>This compares different interaction types; it does not isolate coordination overhead or show that multi-agent research costs 15 times more than equivalent single-agent research.</p><p>That distinction matters. A broad research task may justify substantially more computation than a short conversation.</p><p><strong>The engineering decision is whether the resulting improvement is valuable enough for the application’s cost and latency requirements.</strong></p><h3>Where information gets lost</h3><p>Imagine a user requests software recommendations for a small business. They specify a strict budget and require customer data to remain within a particular region.</p><p>A research agent finds several options. Its summary includes features and prices but omits the data-location requirement.</p><p>The next agent selects the cheapest option.</p><p>The final recommendation may be accurate about price while failing an essential requirement.</p><p>This is an illustrative example, but it exposes a useful design question: <em>which details must survive every stage?</em></p><p>A practical approach is to use structured handoffs containing:</p><ul><li>The original task constraints.</li><li>Findings and supporting evidence.</li><li>Source references.</li><li>Unresolved questions.</li><li>Completion status.</li></ul><p>This is an engineering recommendation, rather than a proven universal solution. Its purpose is to make omissions easier to detect and downstream decisions easier to inspect.</p><p>For larger outputs, passing references to stored artifacts may also help. Anthropic describes allowing subagents to persist their work and return lightweight references, reducing repeated transmission through the coordinator.</p><h3>A reviewer needs something specific to verify</h3><p>Adding a reviewer agent raises another question: what exactly counts as a successful review?</p><p>For the software comparison, useful checks might include:</p><ul><li>Are prices expressed on the same billing basis?</li><li>Does every recommended option meet the data-location requirement?</li><li>Do the sources support the important claims?</li><li>Does the answer address every stated constraint?</li><li>Is any unresolved uncertainty visible?</li></ul><p>These checks give verification a concrete purpose.</p><p>A general instruction to “check the answer” leaves the reviewer to decide what matters. Explicit criteria make it easier to understand both the review and any failure it misses.</p><p>Where possible, some criteria can also be checked through ordinary code. For example, whether required fields exist or a quoted price exceeds the budget.</p><h3>How to test whether more agents help</h3><p>A useful evaluation would compare the same tasks across three designs:</p><p>DesignWhat it helps testA single agent with appropriate toolsThe baseline capability.A fixed workflow with explicit stepsWhether predictable processing is sufficient.A coordinated multi-agent systemThe added value of delegation and parallel work.</p><p>This is a proposed evaluation plan, not a reported experiment.</p><p>The comparison should measure:</p><ul><li>Task success.</li><li>Missed constraints.</li><li>Unsupported claims.</li><li>Completion time.</li><li>Total cost.</li></ul><p>Model choice, tools, and resource budgets should be controlled where practical. Where they differ, those differences should be reported so that an apparent architectural gain is not confused with additional computation.</p><p>Repeated runs are also useful. A successful demonstration shows that a system can complete a task once. It says much less about consistency.</p><h3>Choosing an architecture with a reason</h3><p>The research supports a careful approach to multi-agent design: <strong>examine the task’s structure, then test whether collaboration improves the outcome.</strong></p><p>There may be a clear reason to delegate. Independent research could take too long, separate investigations may require substantial context, or specialized tools may benefit from focused handling.</p><p>There may also be a simpler way to organize the work.</p><p><em>Before adding another agent, define the limitation it is meant to address and the evidence that would show an improvement.</em></p><p>A convincing multi-agent system should be able to do more than produce a good-looking answer. Its architecture should make a measurable contribution to getting the task right.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b2e97f215c60" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[RAG vs Long-Context LLMs: Why Bigger Context Windows Do Not Solve Retrieval]]></title>
            <link>https://medium.com/@rimshakanwal7110/rag-vs-long-context-llms-why-bigger-context-windows-do-not-solve-retrieval-1941eeb1f33c?source=rss-0da7a4a02891------2</link>
            <guid isPermaLink="false">https://medium.com/p/1941eeb1f33c</guid>
            <category><![CDATA[rags]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[nlp]]></category>
            <dc:creator><![CDATA[Rimsha kanwal]]></dc:creator>
            <pubDate>Sun, 27 Sep 2026 20:37:36 GMT</pubDate>
            <atom:updated>2026-09-27T20:37:36.233Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NgEK-CM-A-VefRrZZ3BTaw.png" /><figcaption>Why Bigger Context Windows Do Not Solve Retrieval</figcaption></figure><p>Large Language Models can now process hundreds of thousands, and sometimes even millions, of tokens.</p><p>So a natural question is:</p><p><strong>If an LLM can read an entire knowledge base in one prompt, do we still need RAG?</strong></p><p>At first, long-context LLMs seem like they could replace Retrieval-Augmented Generation completely.</p><p>Instead of building embeddings, vector databases, retrievers, rerankers, and chunking pipelines, we could simply give the model all available documents.</p><h3>A Bigger Context Window Does Not Mean Better Retrieval</h3><p>A context window tells us how much text a model can technically accept.</p><p>It does not guarantee that the model can reliably find the right information inside that context.</p><p>The model still has to:</p><ul><li>identify relevant evidence</li><li>ignore distracting information</li><li>connect information across documents</li><li>resolve conflicting sources</li><li>reason over multiple pieces of evidence</li></ul><p>As context grows, these tasks can become harder.</p><p>Having the answer somewhere in the prompt is not the same as successfully retrieving it.</p><p>The LaRA benchmark (ICML 2025) found that neither RAG nor long-context LLMs are always better. Performance depends on the model, task, context length, and retrieval setup.</p><p>So the real question is not RAG or long context? It is when should we use each one?</p><p>Another 2025 study showed that long-context models perform well with clean documents but struggle when realistic distractors are added.</p><p>In production, knowledge bases often contain duplicate, outdated, or similar documents. The real challenge is finding the correct evidence among many relevant-looking results.</p><h3>Why RAG Still Matters</h3><p>Traditional RAG retrieves relevant chunks from a vector database and sends them to the LLM.</p><p>Modern RAG goes further with hybrid search, BM25, metadata filtering, reranking, query rewriting, and agentic retrieval.</p><p>Why? Because semantic similarity does not always mean answer relevance.</p><p>A retrieved document may look related to the query but still miss the actual answer. Reranking helps by selecting the most useful passages before they reach the LLM.</p><h3>Long Context Has Its Own Problems</h3><p>One of the most interesting findings from EMNLP 2025 showed that long-context LLMs can fail even on relatively basic retrieval tasks when sufficient reasoning is not performed.</p><p>This becomes especially important for multi-hop questions.</p><p>Imagine a question where one document identifies a company, another document provides its jurisdiction, and a third document contains the regulation that applies to that jurisdiction.</p><p>No single chunk contains the complete answer.</p><p>The system must retrieve information, reason over it, then retrieve additional information.</p><p>This is where agentic RAG becomes interesting.</p><p>Instead of retrieving once, the system can repeatedly:</p><ul><li>retrieve,reason,refine the query,retrieve again and then generate the final answer.</li></ul><h3>RAG vs Long Context Is the Wrong Question</h3><p>I think the future will not be purely RAG or purely long-context LLMs.</p><p>It will likely be a combination of both.For a small number of documents, long-context prompting may be simpler and effective.</p><p>For millions of enterprise documents, retrieval becomes necessary.</p><p>For complex questions, the system may need hybrid retrieval, reranking, long-context reasoning, and multiple retrieval steps.</p><p>That leads to a more useful engineering question:</p><p><strong>How can the system decide what information the model actually needs before generating an answer?</strong></p><h3>Final Thoughts</h3><p>Long-context LLMs are powerful, but larger context windows do not solve retrieval by themselves.</p><p>Models still need to find the right <strong>evidence, ignore noise</strong>, and <strong>reason</strong> across documents. That is why RAG is evolving toward hybrid retrieval, reranking, adaptive retrieval, and agentic RAG.</p><p>The future may not be about giving LLMs more information, but giving them the right information at the right time.</p><h3>Research Papers</h3><p><a href="https://proceedings.mlr.press/v267/li25dv.html">https://proceedings.mlr.press/v267/li25dv.html</a></p><p><a href="https://aclanthology.org/2025.findings-acl.165/">https://aclanthology.org/2025.findings-acl.165/</a></p><p><a href="https://aclanthology.org/2025.findings-emnlp.301/">https://aclanthology.org/2025.findings-emnlp.301/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1941eeb1f33c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OLTP vs OLAP: A Data Engineer’s Guide with AWS Architecture]]></title>
            <link>https://medium.com/@rimshakanwal7110/oltp-vs-olap-a-data-engineers-guide-with-aws-architecture-cfbd2567e496?source=rss-0da7a4a02891------2</link>
            <guid isPermaLink="false">https://medium.com/p/cfbd2567e496</guid>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[multi-hop-retrieval]]></category>
            <category><![CDATA[knowledge-graph-rag]]></category>
            <category><![CDATA[rags]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Rimsha kanwal]]></dc:creator>
            <pubDate>Sat, 11 Oct 2025 19:18:24 GMT</pubDate>
            <atom:updated>2026-09-30T16:31:12.182Z</atom:updated>
            <content:encoded><![CDATA[<h3>When Vector Search Is Not Enough: Engineering RAG for Multi-Hop Questions</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jQrFGASFqm7guFkYFWRSAg.png" /><figcaption>Designing Reliable Multi-Hop Retrieval</figcaption></figure><p><em>A practical look at connecting evidence across documents, choosing the right retrieval architecture, and measuring whether the extra complexity helps.</em></p><p>A RAG system can retrieve relevant documents and still miss the answer.</p><blockquote><em>Which customer-facing services could be affected by the vulnerability in our authentication library, and who owns those services?</em></blockquote><p>The answer might require three sources:</p><ul><li>A security advisory identifying the affected library version.</li><li>A dependency inventory showing which services use that version.</li><li>A service catalog listing customer exposure and ownership.</li></ul><p>Each document contains part of the answer. No single document contains the whole thing.</p><p>A similarity search against the original question may return several useful passages about authentication and vulnerabilities. But unless it retrieves the dependency and ownership evidence too, the model has an incomplete basis for answering.</p><p>This is where multi-hop retrieval becomes an engineering problem.</p><p>The system needs to discover a fact, use that fact to find the next piece of evidence, and preserve the connection between them.</p><p><strong>Why one retrieval call can fall short</strong></p><p>A typical RAG pipeline embeds a question, retrieves the top matching chunks, and passes them to a language model.</p><p>That is a reasonable starting point. For questions such as “What is our password rotation policy?”, the required evidence may sit in one passage.</p><p>The vulnerability question has a different structure.</p><p>Before searching for affected services, the system needs the library name and affected version range. Before looking up owners, it needs the service identifiers.</p><p>Some useful search terms only become available after the first retrieval step.</p><p>Increasing top_k may recover the missing evidence, but it can also return more near-duplicate passages about the advisory. The additional documents may be relevant to the topic without covering the relationships needed to answer.</p><p>Reranking improves the ordering of retrieved candidates. It cannot recover a dependency record that never entered the candidate set.</p><p>My first diagnostic question would therefore be:</p><blockquote><em>Did we retrieve evidence for every required relationship?</em></blockquote><p>That is more useful here than asking whether the retrieved chunks look relevant.</p><p><strong>Model the question as evidence dependencies</strong></p><p>For our example, the answer depends on a small sequence:</p><ol><li>Identify the vulnerable library and version range.</li><li>Find services with matching deployed dependencies.</li><li>Determine which of those services are customer-facing.</li><li>Resolve the owner of each service.</li></ol><p>There is also an important qualification: a matching dependency establishes potential exposure. It does not automatically prove exploitability. Configuration, reachable code paths, and deployed versions may require additional checks.</p><p>The retrieval design should preserve that distinction.</p><p>A helpful evidence record might look like this:</p><p>ClaimSupporting sourceRemaining uncertaintyLibrary version 2.4.1 falls within the affected rangeSecurity advisoryNone for the version-range comparisonCheckout uses version 2.4.1Deployment dependency inventoryInventory freshnessCheckout is customer-facingService catalogWhether the relevant endpoint is exposedPayments Platform owns CheckoutOwnership registryWhether ownership has changed</p><p>This structure makes missing evidence visible before the model writes a polished answer.</p><p><strong>Start with iterative retrieval</strong></p><p>I would usually test iterative retrieval before introducing a knowledge graph.</p><p>The first search finds the advisory. The system extracts the library identifier and version constraints, then uses those values to query the dependency inventory. Retrieved service identifiers become inputs to the ownership lookup.</p><p>The retrieval tools do not all need to be vector searches.</p><p>If dependencies live in a database, a structured query is often a better fit for matching package names and versions. If ownership lives behind an internal API, call that API. Use semantic retrieval where the evidence is actually unstructured.</p><p>The important architectural change is that each step can use information discovered by earlier steps.</p><p>I would keep intermediate results explicit:</p><ul><li>Confirmed facts and their sources.</li><li>Unresolved questions.</li><li>Searches already attempted.</li><li>Conflicting records.</li><li>Remaining retrieval budget.</li></ul><p>Without this state, an iterative workflow can repeatedly search the same terms or quietly treat a tentative inference as a confirmed fact.</p><p><strong>Put limits around the search loop</strong></p><p>An instruction such as “keep searching until you have enough information” leaves too much undefined.</p><p>For a production implementation, I would set limits on retrieval rounds, tool calls, execution time, and accumulated context. I would also stop when a search produces no new evidence.</p><p>Those limits should lead to a useful response.</p><p>If the system finds the affected services but cannot verify ownership, it can return the supported findings and clearly identify the missing owner records.</p><p>That is preferable to guessing, and it gives the user a specific next action.</p><p><strong>When a graph becomes useful</strong></p><p>A graph is worth considering when the same relationships support many recurring questions.</p><p>In this example, the useful connections include:</p><ul><li>A service depends on a package version.</li><li>A service is owned by a team.</li><li>A service exposes a customer-facing endpoint.</li><li>An advisory affects a package version range.</li></ul><p>Once those relationships are represented explicitly, the system can traverse them instead of rediscovering them from text on every request.</p><p>But graph-based RAG covers several different approaches.</p><p>Microsoft’s GraphRAG paper focuses on answering global questions over document collections through entity graphs and community summaries. That is particularly relevant to questions such as “What are the recurring risks across our incident reports?” Its design should not be assumed to be the best fit for every dependency lookup.</p><p>HippoRAG 2 is more directly relevant to associative retrieval across connected evidence. It builds on Personalized PageRank and integrates passages into its retrieval structure, targeting factual retrieval, sense-making, and multi-hop associations.</p><p>For a service dependency system, I would first examine the authoritative structured data already available. Extracting a graph from prose adds little value if a reliable dependency database already contains the necessary edges.</p><p><strong>The graph introduces its own failure modes</strong></p><p>A graph does not make evidence trustworthy by itself.</p><p>Incorrect entity resolution can merge two different services. An outdated ownership edge can point to the wrong team. A relationship extracted from a proposal can be mistaken for a deployed dependency.</p><p>I would attach source references and relevant timestamps to relationships, preserve environment information, and distinguish observed facts from inferred connections.</p><p>Access control also needs to apply during retrieval and traversal. A user’s permission to view one service should not automatically grant access to every connected incident or customer record.</p><p>These concerns affect the answer as directly as retrieval quality does.</p><p><strong>Route questions according to what they need</strong></p><p>I would avoid sending every question through the most expensive workflow.</p><p>A direct policy lookup may need one retrieval call. A dependency question may require several structured lookups. A question about patterns across hundreds of incidents may benefit from broader graph-based retrieval.</p><p>Adaptive-RAG provides a useful research reference for this decision: it learns to select between no retrieval, single-step retrieval, and iterative retrieval based on question complexity.</p><p>In an internal assistant, routing should also reflect the evidence source. A simple question about private company data still needs an authoritative lookup, even if the model thinks it knows the answer.</p><p><strong>Measure complete evidence, not just convincing answers</strong></p><p>To compare architectures, I would keep the corpus, questions, and generation model consistent, then test:</p><p>ApproachWhat the comparison testsHybrid retrieval with rerankingWhether a strong single-pass baseline is sufficientIterative retrievalWhether discovering intermediate facts improves evidence coverageGraph-assisted retrievalWhether explicit relationships justify their indexing and maintenance cost</p><p>For multi-hop questions, I would measure whether the system retrieved <strong>all required supporting facts</strong>, alongside final answer correctness.</p><p>I would also track citation support, correct abstention, tool calls, latency, and cost. The evaluation set should include missing records, conflicting owners, outdated inventories, and ambiguous service names.</p><p>A correct answer on a clean example is useful. Reliable behavior when the evidence is incomplete is what makes the system deployable.</p><p><strong>Where I would begin</strong></p><p>My starting point would be a strong retrieval baseline and a small set of questions with known evidence dependencies.</p><p>If the failures consistently involve missing intermediate facts, I would add bounded iterative retrieval. If the workload repeatedly depends on the same relationships, I would evaluate a graph.</p><p>The architecture should earn its complexity through better evidence coverage and acceptable operational cost.</p><p>For multi-hop RAG, the key design question is straightforward:</p><p><strong>Can the system establish every connection required for the answer — and show the evidence behind each one?</strong></p><p>Further reading:</p><ul><li><a href="https://arxiv.org/abs/2403.14403">Adaptive-RAG</a></li><li><a href="https://arxiv.org/abs/2404.16130">From Local to Global: A Graph RAG Approach to Query-Focused Summarization</a></li><li><a href="https://arxiv.org/abs/2502.14802">HippoRAG 2: From RAG to Memory</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cfbd2567e496" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Beyond the Hype: Why Apache Kafka is the Unbeatable Heart of Modern Data Architectures]]></title>
            <link>https://medium.com/@rimshakanwal7110/beyond-the-hype-why-apache-kafka-is-the-unbeatable-heart-of-modern-data-architectures-1cf4684bd06a?source=rss-0da7a4a02891------2</link>
            <guid isPermaLink="false">https://medium.com/p/1cf4684bd06a</guid>
            <category><![CDATA[realtime-data-streaming]]></category>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[apache-kafka]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[event-driven-architecture]]></category>
            <dc:creator><![CDATA[Rimsha kanwal]]></dc:creator>
            <pubDate>Thu, 02 Oct 2025 20:50:19 GMT</pubDate>
            <atom:updated>2025-10-02T20:50:19.752Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Subtitle:</strong> From real-time fraud detection to event-driven microservices, we break down why this distributed log reigns supreme — and how to master it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/770/1*myktSOFxUtwxM_YjmtnvJQ.jpeg" /><figcaption><strong>APACHE KAFKA</strong></figcaption></figure><p>In the era of the always-on customer, batch processing is no longer enough. The competitive edge belongs to those who can act on data <em>as it happens</em>. And at the core of this real-time revolution, you’ll find one name: <strong><em>Apache Kafka</em></strong>.</p><p>Kafka was born at LinkedIn in <strong>2010</strong> to handle the firehose of user activity data, but it didn’t remain just a simple messaging queue for long. Over time, it evolved into the backbone of real-time data streaming. Today, it’s the silent engine behind experiences we take for granted — from Netflix recommending your next binge to Uber showing your driver’s location in real time.</p><blockquote>But with so many tools in the data landscape, why does Kafka consistently dominate? Let’s architect the answer.</blockquote><h3>Why Kafka Beats Traditional Brokers?</h3><p>Forget comparing Kafka to simple message queues like <strong>RabbitMQ</strong>. We’ve moved past that. <strong>Kafka</strong> is a <em>distributed</em>, <em>durable</em>, and <em>highly-scalable</em> commit log. This fundamental architectural difference is why it wins.</p><ul><li><strong>Persistence as a Feature:</strong> Unlike brokers that delete messages post-delivery, Kafka stores events durably. This allows for replayability — a superpower for debugging, testing new consumers, and recovering from failures.</li><li><strong>Horizontal Scalability:</strong> Need more throughput? Simply add more Brokers to your cluster. Kafka is designed to scale out seamlessly across hundreds of nodes.</li><li><strong>High Throughput with Low Latency:</strong> It delivers millions of messages per second with millisecond-level latency, a non-negotiable for use cases like real-time fraud detection.</li></ul><h3>Architecting with Kafka: Core Concepts for Your Data Pipeline</h3><p>To wield Kafka effectively, you must internalize its core components. Think of it as building a highly organized, fault-tolerant highway system for your data.</p><ul><li><strong>Producers &amp; Consumers:</strong> Applications that publish (Producers) and subscribe to (Consumers) data streams.</li><li><strong>Topics &amp; Partitions:</strong> Data is organized into Topics (categories). Each Topic is split into Partitions for parallel processing, which is the secret to Kafka’s scalability and throughput.</li><li><strong>The Log &amp; Offsets:</strong> Each partition is an ordered, immutable sequence of records. A simple Offset number uniquely identifies each record within a partition, enabling fault-tolerant consumption.</li><li><strong>Brokers &amp; Clusters:</strong> The Kafka servers that form the resilient storage layer.</li></ul><blockquote>Kafka turns streaming data from a backend challenge into a real-world business advantage.</blockquote><h3>The Other Side of the Coin: Navigating Kafka’s Complexity</h3><p>Adopting Kafka is a strategic commitment. Here, I must highlight the operational challenges:</p><ul><li><strong>Operational Overhead:</strong> Managing a Kafka cluster — balancing leaders, handling disk I/O, and ensuring uptime — is a dedicated role. Pro Tip: Seriously consider a managed service like Confluent Cloud or AWS MSK to offload this burden, especially when starting.</li><li><strong>The Partitioning Puzzle:</strong> While partitions enable parallelism, they also complicate things. Global ordering is impossible; you only get ordering <em>within</em> a partition. Your data model must be designed around this.</li><li><strong>Consumer Lag is Your North Star:</strong> If consumers fall behind producers, you have latency. Monitoring consumer lag is not optional; it’s critical for health.</li></ul><h3>Conclusion: The Future is Event-Driven</h3><p><em>Kafka isn’t just a tool </em>— it’s a shift in how we think about data. Instead of static records in a database, data becomes a continuous stream of events, powering agile, event-driven systems. Yes, it brings operational complexity, but the payoff is huge: by mastering Kafka’s core concepts, you’re building the central nervous system of your organization, able to react in real time and innovate ahead of the curve. The leaders of tomorrow will be those who can truly <em>listen</em> to their data. Kafka is the microphone.</p><blockquote>What’s your biggest Kafka challenge? Is it tuning for performance, managing consumer lag, or perhaps convincing your team to adopt an event-driven mindset? Share your stories..</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1cf4684bd06a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Forget the Hype: Data Engineering Is Built on Trust, Not Just Tables]]></title>
            <link>https://medium.com/@rimshakanwal7110/forget-the-hype-data-engineering-is-built-on-trust-not-just-tables-cca3d25fb957?source=rss-0da7a4a02891------2</link>
            <guid isPermaLink="false">https://medium.com/p/cca3d25fb957</guid>
            <category><![CDATA[business-intelligence]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[data-quality]]></category>
            <category><![CDATA[data-pipeline]]></category>
            <category><![CDATA[data-reliability]]></category>
            <dc:creator><![CDATA[Rimsha kanwal]]></dc:creator>
            <pubDate>Fri, 05 Sep 2025 21:32:56 GMT</pubDate>
            <atom:updated>2025-09-05T21:37:11.713Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7pSqPBHdCQQuViviWYfuyQ.jpeg" /><figcaption><strong>Photo by </strong><a href="https://unsplash.com/@fabioha?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash"><strong>fabio</strong></a><strong> on </strong><a href="https://unsplash.com/photos/geometric-shape-digital-wallpaper-oyXis2kALVg?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash"><strong>Unsplash</strong></a></figcaption></figure><p>When you hear the term “<strong>Data Engineer</strong>” what’s the first thing that comes to mind?</p><p>For many, it’s a whirlwind of tech jargon: Spark. SQL. Airflow. Snowflake. Kubernetes, etc.</p><p><em>It’s easy to get lost in the tools. The industry certainly talks about them enough. But here’s a secret that every seasoned data professional knows:</em></p><p>data engineering is not defined by its toolkit.</p><blockquote><em>You see, our job is often mistakenly simplified to “</em><strong><em>moving data from point A to point B.</em></strong><em>”</em></blockquote><blockquote><em>But that’s like saying an architect’s job is to just draw lines. The reality is far more profound.</em></blockquote><p>We are the builders of <em>invisible infrastructure</em>. We are the quiet force that powers the <strong>critical decisions</strong>, the groundbreaking products, and the strategic direction of <strong>entire organizations</strong>. Our work is the foundation, and when it’s done right, it fades seamlessly into the <strong>background, enabling</strong> everyone else to shine.</p><p>So, if it’s not about the tools, what <em>is</em> data engineering really about?</p><h4>The True Pillars of Data Engineering</h4><p>As data engineers, our daily focus extends far beyond writing code. We are architects of trust, and our blueprints are built on a few core principles:</p><blockquote><strong>We Start with the “Why,” Not the “What.”</strong></blockquote><p>“Before a single line of code is written, we engage with the business. Why does this dashboard need to exist?</p><p>What decision will this pipeline empower?</p><p>Understanding the underlying business need is what transforms a mere task into a valuable asset.”</p><blockquote><strong>We Design for Scale and Resilience.</strong></blockquote><p>“A dashboard crashing during a quarterly business review isn’t just a technical hiccup — it’s a tangible business risk. We build systems that are not only performant under load but are also robust and fault-tolerant. We think about what happens when things go wrong, because eventually, they will.”</p><blockquote><strong>We Lay Strong, Unshakable Foundations.</strong></blockquote><p>“Data is only as valuable as it is trustworthy. We obsess over data quality, consistency, and governance. We build so that our colleagues in analytics, data science, and business intelligence can make smarter, faster decisions without ever having to second-guess the numbers they’re seeing.”</p><blockquote><strong>We Champion Clarity and Reliability.</strong></blockquote><p>“Our pipelines are more than just efficient; they are transparent, well-documented, and built to recover gracefully from failure. We ensure that data lineage is clear, so everyone knows where data came from and how it was transformed.”</p><blockquote><strong>We Deliver the Right Data, to the Right People, at the Right Time.</strong></blockquote><p>“This is our ultimate mission. We ensure that critical data is accessible, secure, and delivered predictably to those who need it to drive the business forward.”</p><h3>How Do You Measure Real Impact?</h3><p><em>Let’s be clear:</em> a data engineer’s value is not measured by the number of tables they build or the complexity of their code.</p><blockquote><em>Our success is measured by the business outcomes we enable.</em></blockquote><p>It’s answered in the quiet confidence of the teams that rely on our work:</p><ul><li>Can the Finance team close the books with absolute confidence in the numbers?</li><li>Can a Product Manager identify a brand-new market trend because our data platform made it discoverable?</li><li>Can the entire business pivot its strategy overnight, confident that our data infrastructure is flexible enough to support the change?</li></ul><p>When the answer to these questions is “<strong>yes,</strong>” that’s when we’ve done our job.</p><h3>The Bottom Line</h3><blockquote><em>Data engineering is a </em><strong><em>discipline rooted in trust</em></strong><em>, </em><strong><em>reliability</em></strong><em>, and </em><strong><em>impact</em></strong><em>. It’s about building the silent, humming engine that powers every important conversation in the </em><strong><em>boardroom</em></strong><em> and every clever feature in the product.</em></blockquote><p>We don’t just build pipelines; we build confidence. We ensure that every <em>data point</em>, <em>every query</em>, and <em>every decision</em> is supported by a <strong>foundation of integrity.</strong></p><blockquote><em>And that, truly, is so much bigger than any single tool.</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cca3d25fb957" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Confidence Code: How 4 Books Quietly Transformed My Mindset]]></title>
            <link>https://medium.com/@rimshakanwal7110/the-confidence-code-how-4-books-quietly-transformed-my-mindset-107b5b03c1c3?source=rss-0da7a4a02891------2</link>
            <guid isPermaLink="false">https://medium.com/p/107b5b03c1c3</guid>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[personal-growth]]></category>
            <category><![CDATA[medium]]></category>
            <category><![CDATA[storytelling]]></category>
            <category><![CDATA[books]]></category>
            <dc:creator><![CDATA[Rimsha kanwal]]></dc:creator>
            <pubDate>Fri, 01 Aug 2025 22:33:36 GMT</pubDate>
            <atom:updated>2025-08-01T22:49:07.024Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Uioaft4nHUQ2sIEpkKGhOw.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@olenkasergienko"><strong>Olena Bohovyk</strong></a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral"><strong>Unsplash</strong></a></figcaption></figure><p>At the beginning of this year, I made a simple but powerful decision: to start reading <em>intentionally</em>.</p><p>Not just headlines.<br> Not just content summaries.<br> <strong>Real books. Cover to cover.</strong></p><blockquote>Not perfect — just <strong>1% wiser</strong> each day. I finished four.<br> And no exaggeration — they quietly shifted how <em>I think</em>, how<em> I work</em>, and how <em>I carry </em>myself through life.</blockquote><h3><strong>Books didn’t fix my life — but they flipped a switch.</strong></h3><h3>1. Deep Work — Cal Newport</h3><p><strong>Theme:</strong> <em>Focus Like a Monk</em><br> Before this book, I didn’t realize how fragmented my attention had become. It taught me that <strong>productivity</strong> isn’t about doing more — it’s about doing deep, meaningful work without distraction.</p><blockquote>“Clarity about what matters provides clarity about what does not.”</blockquote><h3>2. The 7 Habits of Highly Effective People — Stephen R. Covey</h3><p><strong>Theme:</strong> <em>Lead with Intention</em><br> This felt more like mentorship than a book. “Begin with the end in mind” made me pause and ask:<br> <strong>What kind of life am I building?</strong><br> It helped me define <em>who</em> I want to become — not just <em>what</em> I want to achieve.</p><blockquote>“The key is not to prioritize what’s on your schedule, but to schedule your priorities.”</blockquote><h3>3. Master Your Emotions — Thibaut Meurisse</h3><p><strong>Theme:</strong> <em>Emotional Resilience</em><br> This one hit deeper than expected.<br> It helped me recognize reactive patterns and reminded me that emotions aren’t facts — they’re <strong>signals</strong>.<br> Now, I pause more. I journal more.<br> I don’t try to control every emotion — I try to understand them.</p><blockquote>“You are not your emotions. You are the awareness behind them.”</blockquote><h3>4. The Laws of Human Nature — Robert Greene</h3><p><strong>Theme:</strong> <em>Understand People, Protect Your Energy</em><br> This gave me a new lens for understanding human behavior — especially in complex or high-stakes situations.<br> It taught me the value of observation, silence, and emotional intelligence — in work and in life.</p><blockquote>“Mastering yourself is the first step to understanding others.”</blockquote><h3>Self-help books aren’t magic — but they are mirrors.</h3><h3><strong>My Key Takeaways:</strong></h3><p><strong>Start small:</strong> 15 focused minutes a day beats waiting for the perfect moment.<br> <strong>Know your priorities:</strong> Not everything needs your attention. Focus on your “why.”<br> <strong>Own your story:</strong> Vulnerability connects more than perfection ever will.<br> <strong>Push your edge:</strong> Growth begins where comfort ends.</p><h3><strong>Final Thought</strong></h3><p>These books didn’t make me <strong>perfect</strong>.<br> They reminded me I don’t need to be.</p><p>“They helped me shift from <strong>self-doubt</strong> to <strong>self-trust..”</strong></p><blockquote>You’re writing your story too.<br> Maybe it’s time to turn the page.</blockquote><p><strong>What’s one book that changed your perspective?</strong><br> Let’s share and grow together.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=107b5b03c1c3" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>