<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Arya Chandravanshi</title>
    <description>The latest articles on DEV Community by Arya Chandravanshi (@arya_chandravanshi_533f73).</description>
    <link>https://dev.to/arya_chandravanshi_533f73</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4141566%2Fdd920572-cd06-4b59-8a93-07bc124dc42e.png</url>
      <title>DEV Community: Arya Chandravanshi</title>
      <link>https://dev.to/arya_chandravanshi_533f73</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/arya_chandravanshi_533f73"/>
    <language>en</language>
    <item>
      <title>Building an Explainable Fraud Investigation Platform with TigerGraph</title>
      <dc:creator>Arya Chandravanshi</dc:creator>
      <pubDate>Thu, 24 Sep 2026 17:00:27 +0000</pubDate>
      <link>https://dev.to/arya_chandravanshi_533f73/building-an-explainable-fraud-investigation-platform-with-tigergraph-o05</link>
      <guid>https://dev.to/arya_chandravanshi_533f73/building-an-explainable-fraud-investigation-platform-with-tigergraph-o05</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;Fraud rarely happens through a single transaction. A suspicious transaction can be connected to multiple accounts, devices, IP addresses, and previous fraud cases.&lt;/p&gt;

&lt;p&gt;The challenge is not just detecting suspicious activity, but understanding:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;What happened, what is connected, and what evidence supports the investigation?&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;For the TigerGraph Hackathon, we built a &lt;strong&gt;multi-agent fraud investigation platform&lt;/strong&gt; combining graph analytics, historical case retrieval, MCP tools, evidence validation, and an optional LLM narrative layer.&lt;/p&gt;

&lt;h2&gt;
  
  
  What We Built
&lt;/h2&gt;

&lt;p&gt;The platform takes a flagged transaction and runs it through an automated investigation workflow:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Suspicious Transaction
        ↓
Multi-Agent Investigation
        ↓
TigerGraph + Historical Cases
        ↓
Evidence &amp;amp; Rule Validation
        ↓
Explainable Investigation
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Instead of returning only a risk score, the system provides supporting evidence that an investigator can inspect.&lt;/p&gt;

&lt;p&gt;The repository includes &lt;strong&gt;20 structured investigation cases&lt;/strong&gt;, from &lt;code&gt;HHG-001&lt;/code&gt; to &lt;code&gt;HHG-020&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Architecture
&lt;/h2&gt;

&lt;p&gt;The system is built with a FastAPI backend, investigation coordinator, agent workflow, MCP tools, TigerGraph, vector retrieval, and case data.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;              Web Interface
                    ↓
                FastAPI
                    ↓
          Investigation Coordinator
                    ↓
       ┌────────────┼────────────┐
       ↓            ↓            ↓
    Agents       MCP Tools   Validation
       └────────────┼────────────┘
                    ↓
          ┌─────────┴─────────┐
          ↓                   ↓
     TigerGraph          Vector Store
          ↓                   ↓
  Relationship Data    Historical Cases
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This separation makes the system easier to test and extend.&lt;/p&gt;

&lt;h2&gt;
  
  
  How TigerGraph Is Used
&lt;/h2&gt;

&lt;p&gt;Fraud investigation is fundamentally a &lt;strong&gt;relationship problem&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;An account can be connected to transactions, other accounts, devices, IPs, and previous fraud cases.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Account A
    ↓
Transaction
    ↓
Account B
    ↓
Shared Device
    ↓
Previous Fraud Case
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;TigerGraph allows us to represent and investigate these relationships as a graph.&lt;/p&gt;

&lt;p&gt;We also added a deployment script for schema installation, loading jobs, GSQL queries, CSV streaming, and backend activation.&lt;/p&gt;

&lt;h2&gt;
  
  
  Graph + Historical Case Retrieval
&lt;/h2&gt;

&lt;p&gt;TigerGraph helps answer:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;“What is connected?”&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Our vector retrieval system helps answer:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;“Have we seen something similar before?”&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;We indexed &lt;strong&gt;5,565 closed cases&lt;/strong&gt; and use cosine similarity to retrieve relevant historical cases.&lt;/p&gt;

&lt;p&gt;This combines:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Relationship context + Historical precedent&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;within the same investigation.&lt;/p&gt;

&lt;h2&gt;
  
  
  Agentic Capabilities
&lt;/h2&gt;

&lt;p&gt;The investigation is divided into specialized responsibilities instead of relying on one component.&lt;/p&gt;

&lt;p&gt;Agents can use MCP tools for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Transaction lookup&lt;/li&gt;
&lt;li&gt;Graph investigation&lt;/li&gt;
&lt;li&gt;Historical case retrieval&lt;/li&gt;
&lt;li&gt;Evidence retrieval&lt;/li&gt;
&lt;li&gt;Validation&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A coordinator combines these results into the final investigation output.&lt;/p&gt;

&lt;p&gt;We also implemented:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;GET /api/investigate/{txn_id}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;which runs the investigation pipeline on demand for a flagged transaction.&lt;/p&gt;

&lt;h2&gt;
  
  
  Optional LLM Layer
&lt;/h2&gt;

&lt;p&gt;The platform includes an optional LLM-powered narrative agent.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;LLM Enabled  → LLM Narrative
LLM Disabled → Deterministic Narrative
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The deterministic fallback means the core investigation does not depend entirely on an external LLM service.&lt;/p&gt;

&lt;h2&gt;
  
  
  Testing and Reliability
&lt;/h2&gt;

&lt;p&gt;We added automated tests covering data loading, agent coordination, validation, MCP tools, vector retrieval, narrative fallback, deployment, and QA.&lt;/p&gt;

&lt;p&gt;Final verification:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;8/8 tests passing&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;20/20 cases verified&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;100% QA audit&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What We Learned
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Fraud Is a Relationship Problem
&lt;/h3&gt;

&lt;p&gt;A transaction alone provides limited context. Graph relationships can reveal the larger network around it.&lt;/p&gt;

&lt;h3&gt;
  
  
  Historical Cases Add Context
&lt;/h3&gt;

&lt;p&gt;Previous investigations can provide useful precedent for new cases.&lt;/p&gt;

&lt;h3&gt;
  
  
  Agentic Systems Benefit from Separation
&lt;/h3&gt;

&lt;p&gt;Separating graph analysis, case retrieval, validation, and coordination makes the system easier to understand and extend.&lt;/p&gt;

&lt;h3&gt;
  
  
  Explainability Matters
&lt;/h3&gt;

&lt;p&gt;Instead of simply saying &lt;strong&gt;“this transaction is risky,”&lt;/strong&gt; an investigation system should show the relationships and evidence behind the result.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's Next?
&lt;/h2&gt;

&lt;p&gt;Future improvements could include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Production-grade embeddings and vector databases&lt;/li&gt;
&lt;li&gt;Real-time transaction ingestion&lt;/li&gt;
&lt;li&gt;Advanced graph algorithms&lt;/li&gt;
&lt;li&gt;Human-in-the-loop analyst workflows&lt;/li&gt;
&lt;li&gt;More evidence-grounded LLM reasoning&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Our goal was to build more than a fraud detection system.&lt;/p&gt;

&lt;p&gt;We built an &lt;strong&gt;investigation assistant&lt;/strong&gt; that connects transactions, entities, relationships, and historical cases into one explainable workflow.&lt;/p&gt;

&lt;p&gt;By combining &lt;strong&gt;TigerGraph, multi-agent workflows, MCP tools, vector retrieval, and optional LLM capabilities&lt;/strong&gt;, the platform helps move from a suspicious transaction toward a structured investigation.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Don't just flag the transaction. Investigate the network behind it.&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Project Repository
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/ananditaa2/HHGOA_task04?utm_source=chatgpt.com" rel="noopener noreferrer"&gt;GitHub — HHGOA Task 04&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Built for the &lt;strong&gt;TigerGraph Hackat&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxcv2bchxajverqcrzugu.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxcv2bchxajverqcrzugu.jpeg" alt="Architecture diagram showing a FastAPI backend connected to fraud investigation agents, MCP tools, TigerGraph, and a vector store" width="800" height="373"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>agents</category>
      <category>ai</category>
      <category>database</category>
    </item>
  </channel>
</rss>
