<?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 Devasena on Medium]]></title>
        <description><![CDATA[Stories by Devasena on Medium]]></description>
        <link>https://medium.com/@vdevasena1997?source=rss-43ea7ac1a1ec------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*MFQzYsLtLPTFQq3AEtWXVw.png</url>
            <title>Stories by Devasena on Medium</title>
            <link>https://medium.com/@vdevasena1997?source=rss-43ea7ac1a1ec------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 06:50:29 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vdevasena1997/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[Using LLM as a Judge for Company 360 and How Agentic AI Takes It Further]]></title>
            <link>https://medium.com/@vdevasena1997/using-llm-as-a-judge-for-company-360-and-how-agentic-ai-takes-it-further-358d37c3cc9e?source=rss-43ea7ac1a1ec------2</link>
            <guid isPermaLink="false">https://medium.com/p/358d37c3cc9e</guid>
            <category><![CDATA[entity-resolution]]></category>
            <category><![CDATA[company-360]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[vector-database]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <dc:creator><![CDATA[Devasena]]></dc:creator>
            <pubDate>Sat, 21 Mar 2026 00:46:00 GMT</pubDate>
            <atom:updated>2026-03-21T00:46:00.549Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WYmeJj4mZ1AX65YrbXHXrg.png" /><figcaption><em>Generated Image by GPT</em></figcaption></figure><p>Entity resolution sounds simple on paper: identify whether two records refer to the same real-world entity.</p><p>In practice, it’s one of the most complex problems in data systems. (especially in the B2B world).</p><p>While working on a large-scale entity matching system (~1M+ company records) covered in Part I, I realized that traditional approaches fall apart quickly when faced with:</p><ul><li>Variations in company names (<em>“BNY Mellon” vs “Bank of New York Mellon”</em>)</li><li>Missing or inconsistent attributes (city, country, address)</li><li>Data coming from multiple external sources</li></ul><p>To solve this, I built a hybrid system: <strong>Embeddings + Vector Search + Clustering + Prompt Model + LLM as a Judge</strong></p><p>But the biggest challenge wasn’t generating matches — it was evaluating them.</p><p><em>How do we know our matches are actually correct at scale?</em></p><p>This blog walks through:</p><ul><li>How I used <strong>LLMs as a judge to evaluate entity matches</strong></li><li>Why does using the <strong>same model and prompt work effectively</strong></li><li>How <strong>Agentic AI can significantly improve accuracy and robustness</strong></li></ul><p>Instead of relying purely on similarity scores, I introduced an LLM to validate matches.</p><p><strong>Prompt Design</strong></p><p>Are these two companies the same entity?</p><p>Company A: Name: {name1}, City: {city1}, Country: {country1},</p><p>Company B: Name: {name2}, City: {city2}, Country: {country2}</p><p>Respond with: - Yes or No, along with Score and Reason</p><p>You don’t always need a separate evaluation system.</p><p>I used the <strong>same LLM </strong>to evaluate outputs.</p><p><strong>Why this works</strong></p><ul><li>Ensures consistency in reasoning</li><li>Eliminates the need for large labeled datasets</li><li>Scales easily across millions of comparisons</li></ul><p>It essentially becomes a <strong>self-evaluating system</strong>. To make this reliable, I designed a structured evaluation approach.</p><ol><li>Self-Consistency Check</li><li>Symmetry Check</li><li>Confidence-Based Routing</li><li>Cluster-Level Validation</li></ol><p><strong>How Agentic AI Improves Entity Matching</strong></p><p>Instead of a single LLM decision, I introduced <strong>multiple reasoning agents</strong>.</p><p><strong>1. Generator Agent: </strong>Retrieves candidate matches (embedding + vector search)</p><p><strong>2. Critic Agent: </strong>Challenges the decision, Identifies mismatches or weak signals</p><p><strong>3. Improver Agent: </strong>Resolves disagreements and refines the final decision</p><p><strong>4. Memory Agent (Optional): </strong>Stores past decisions, improves consistency over time</p><p><strong>Why Agentic AI Works Better</strong></p><p><strong>1. Multi-Step Reasoning: </strong>Reduces false positives and false negatives</p><p><strong>2. Better Handling of Edge Cases: </strong>Complex scenarios are evaluated more thoroughly</p><p><strong>3. Explainability: </strong>Each agent provides reasoning → easier to trust</p><p><strong>4. Continuous Learning: </strong>Memory agent improves future decisions</p><p><strong>Updated Architecture:</strong></p><p><strong>Before:</strong><br> Embedding → Vector Search → LLM Judge → Output</p><p><strong>After:</strong><br> Embedding → Vector Search → Multi-Agent System → Output</p><p><strong>Real Impact</strong></p><p>With this approach:</p><ul><li>Improved accuracy for edge cases</li><li>Better cluster consistency</li></ul><p><strong><em>Final Thoughts….</em></strong>Entity matching is not just about similarity — it’s about <strong>understanding context</strong>.</p><p><em>Let’s Connect !!!!!. </em>If you’re working on similar problems in entity resolution, GenAI, or large-scale data systems, I’d love to connect and exchange ideas.</p><p>Feel free to connect with me on <a href="https://www.linkedin.com/in/devasenavangavolu">LinkedIn</a> if you’d like to understand more about this approach, discuss real-world use cases, or explore how this can be applied in your organization.</p><p><em>Thanks for reading!!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=358d37c3cc9e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Company 360 Entity Matching System with Embeddings, LLMs, and Vector Databases]]></title>
            <link>https://medium.com/@vdevasena1997/building-a-scalable-company-entity-matching-system-with-embeddings-llms-and-vector-databases-50f5fcc86bcd?source=rss-43ea7ac1a1ec------2</link>
            <guid isPermaLink="false">https://medium.com/p/50f5fcc86bcd</guid>
            <dc:creator><![CDATA[Devasena]]></dc:creator>
            <pubDate>Wed, 17 Sep 2025 02:46:18 GMT</pubDate>
            <atom:updated>2026-03-21T00:22:55.329Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>Entity/Company matching is one of the most critical challenges in business data management (especially B2B). For companies working with millions of client records, duplicates, inconsistencies, and slight variations in names make it difficult to maintain clean and reliable data.</p><p>Ex:</p><ol><li>BOFA, Bank of America</li><li>Chase, J.P Chase, Morgan Chase</li></ol><p>At my organization, we faced this challenge with <strong>1M+ company records</strong>. Our goal: <strong>build a scalable entity matching pipeline</strong> that can accurately identify duplicates, consolidate variations, and continuously improve over time.</p><p>This post walks through the approaches I tested (with limited resources), challenges faced.</p><h3>The Challenge</h3><ul><li><strong>Volume:</strong> 1M+ company names in the database</li><li><strong>Variations:</strong> Spelling differences, abbreviations, multilingual entries</li><li><strong>Accuracy needs:</strong> High precision (avoid false matches) while maintaining recall</li><li><strong>Scalability:</strong> The system must handle incremental updates and grow with new records</li></ul><h3>Methods Explored</h3><h4>1. Embeddings + Clustering (DBSCAN)</h4><ul><li>Used <strong>embedding models (embed v4.0, embed multilingual v4)</strong></li><li>Applied <strong>DBSCAN clustering</strong> (tuned parameters like epsilon, min_samples)</li><li>Verified results manually + with <strong>Cohere Command R chat model</strong></li></ul><p>Strengths: Handles multilingual &amp; semantic similarity well</p><p>Limitations: Sensitive to clustering parameters, needs scale-up strategy</p><h4>2. Prompting with LLMs (Cohere Command A, Command R 08 2024)</h4><ul><li>Tested direct <strong>prompt-based matching</strong> with LLMs</li><li>Verified on 100 companies, extended to a few unseen companies</li><li>Manual + LLM-based evaluation</li></ul><p>Strengths: Flexible, context-aware</p><p>Limitations: Higher latency + cost at scale</p><h4>3. Token Blocking + Similarity Search</h4><ul><li>Converted company names into <strong>token arrays</strong></li><li>Clustered within blocks to reduce pairwise comparisons</li><li>Follow Method 1</li></ul><p>Strengths: Efficient for large datasets</p><p>Limitations: Misses matches when names fall into different blocks</p><h3>Conclusion</h3><p>Embed-multilingual-v4 outperforms standard embeddings in handling company name variations across languages, delivering stronger clustering performance. Meanwhile, <strong>Cohere Command-A</strong> showed the highest <strong>accuracy and interpretability</strong> for prompt-based entity verification, making it a reliable choice for validation and edge cases. By combining these methods (hybrid approach) within a scalable pipeline, I have achieved both <strong>broad coverage</strong> (via embeddings) and <strong>high-precision verification</strong> (via Command-A).</p><p><em>We’ll dive deeper into sample code and accuracy scores in Part II.</em></p><p><em>Thanks for reading!!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=50f5fcc86bcd" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>