<?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: Sukanthan S</title>
    <description>The latest articles on DEV Community by Sukanthan S (@cbscu4aie24056).</description>
    <link>https://dev.to/cbscu4aie24056</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F99mvlsfu5tfj9m7ku25d.png</url>
      <title>DEV Community: Sukanthan S</title>
      <link>https://dev.to/cbscu4aie24056</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/cbscu4aie24056"/>
    <language>en</language>
    <item>
      <title>ClaimPilot: Building an AI Evidence Intelligence System with Gemma 4</title>
      <dc:creator>Sukanthan S</dc:creator>
      <pubDate>Thu, 08 Oct 2026 10:43:22 +0000</pubDate>
      <link>https://dev.to/cbscu4aie24056/claimpilot-building-an-ai-evidence-intelligence-system-with-gemma-4-4flc</link>
      <guid>https://dev.to/cbscu4aie24056/claimpilot-building-an-ai-evidence-intelligence-system-with-gemma-4-4flc</guid>
      <description>&lt;p&gt;What if an AI system could take a pile of unstructured claim documents and turn them into a traceable map of &lt;strong&gt;claims, evidence, and events&lt;/strong&gt;?&lt;/p&gt;

&lt;p&gt;That was the idea behind &lt;strong&gt;ClaimPilot&lt;/strong&gt;, our AI-powered evidence intelligence system built for the &lt;strong&gt;Hacktoberfest Hack Day Coimbatore × INIT Club &amp;amp; IDEA Club&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Instead of simply asking an LLM to summarize a document, ClaimPilot focuses on something more useful for investigation: &lt;strong&gt;connecting pieces of evidence and preserving where they came from.&lt;/strong&gt;&lt;/p&gt;

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

&lt;p&gt;ClaimPilot takes unstructured claim-related documents and transforms them into structured case intelligence.&lt;/p&gt;

&lt;p&gt;The pipeline looks like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Claim Documents
       ↓
Document Processing
       ↓
Gemma 4 31B IT
       ↓
Claims + Evidence + Events
       ↓
Evidence Graph
       ↓
Timeline
       ↓
Hugging Face Embeddings
       ↓
Pinecone
       ↓
Semantic Evidence Retrieval
       ↓
Contradiction Analysis
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The goal is to make a complex case easier to investigate by connecting:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Documents → Claims → Evidence → Events&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;For example, instead of just producing a summary such as:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"The device stopped working and was inspected."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;ClaimPilot can represent the information as structured intelligence:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Claim:
Device stopped functioning

Evidence:
User reported device failure

Event:
Consumer reported failure
Date: August 2

Evidence:
Internal diagnostics indicated a power surge

Event:
Power surge detected
Date: August 2, 14:30 UTC

Claim:
Device may require replacement

Evidence:
Inspection report recommended power board replacement
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This structure makes the information much more useful for downstream reasoning.&lt;/p&gt;




&lt;h2&gt;
  
  
  🧠 Why Gemma 4?
&lt;/h2&gt;

&lt;p&gt;The core intelligence layer of ClaimPilot uses &lt;strong&gt;Gemma 4 31B IT&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;We use Gemma to process the document and extract three important types of information:&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Claims
&lt;/h3&gt;

&lt;p&gt;Claims are substantive assertions made in the document.&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;"The device stopped functioning."

"No external physical damage was found."

"The internal diagnostics indicate a power surge."
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We deliberately distinguish these from document metadata such as document IDs or document dates.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Evidence
&lt;/h3&gt;

&lt;p&gt;Evidence represents information that can support a claim.&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;Evidence:
Internal diagnostic logging indicates a power surge.

Supports:
Claim → Device failure may have been caused by an electrical event.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  3. Events
&lt;/h3&gt;

&lt;p&gt;Events represent things that happened at a particular point in time.&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;2026-08-02
Consumer reported that the device stopped working.

2026-08-05
Technician inspected the device.

2026-08-02 14:30 UTC
Power surge was detected.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This gives us both a &lt;strong&gt;semantic view&lt;/strong&gt; of the case and a &lt;strong&gt;chronological view&lt;/strong&gt;.&lt;/p&gt;




&lt;h1&gt;
  
  
  🔗 Building the Evidence Graph
&lt;/h1&gt;

&lt;p&gt;One of the most important parts of ClaimPilot is the evidence graph.&lt;/p&gt;

&lt;p&gt;We don't want the AI output to become a black-box paragraph that nobody can trace.&lt;/p&gt;

&lt;p&gt;Instead, we represent relationships explicitly:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Document
   │
   ├── contains → Claim
   │                │
   │                └── supported by → Evidence
   │
   ├── contains → Evidence
   │                │
   │                └── associated with → Event
   │
   └── contains → Event
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&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;Claim_001
   ↓ supported by
Evidence_001
   ↓ associated with
Event_001
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This allows us to answer questions such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;What evidence supports this claim?&lt;/li&gt;
&lt;li&gt;Which document did the evidence come from?&lt;/li&gt;
&lt;li&gt;Which events are related to the claim?&lt;/li&gt;
&lt;li&gt;What happened before or after the event?&lt;/li&gt;
&lt;li&gt;Which pieces of evidence should be compared?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This traceability is one of the main design principles of ClaimPilot.&lt;/p&gt;




&lt;h1&gt;
  
  
  ⏱️ Building a Case Timeline
&lt;/h1&gt;

&lt;p&gt;The same extracted events are used to construct a chronological timeline.&lt;/p&gt;

&lt;p&gt;Instead of having important dates buried inside multiple documents, ClaimPilot organizes them into a single sequence.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Aug 02
│
├── Consumer reports device failure
│
└── 14:30 UTC
    Power surge detected

Aug 05
│
└── Technician inspection

Aug 07
│
└── Inspection report filed
    Replacement recommended
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We also preserve precise timestamps when they are available instead of unnecessarily reducing everything to a date.&lt;/p&gt;

&lt;p&gt;This becomes important when the order of events affects the interpretation of evidence.&lt;/p&gt;




&lt;h1&gt;
  
  
  🔎 Semantic Evidence Retrieval
&lt;/h1&gt;

&lt;p&gt;Another layer of ClaimPilot uses embeddings.&lt;/p&gt;

&lt;p&gt;We use a &lt;strong&gt;Hugging Face-hosted embedding model&lt;/strong&gt; to convert evidence and document text into vectors.&lt;/p&gt;

&lt;p&gt;The architecture is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ClaimPilot Backend
       ↓
Hugging Face Inference API
       ↓
1024-dimensional embedding
       ↓
Pinecone
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The embedding model runs through Hugging Face's hosted inference rather than being downloaded and executed locally.&lt;/p&gt;

&lt;p&gt;The resulting vectors are stored in &lt;strong&gt;Pinecone&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;This gives ClaimPilot semantic retrieval capabilities.&lt;/p&gt;

&lt;p&gt;For example, if the system needs evidence related to:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;"electrical damage"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;it can retrieve semantically related evidence even when the document uses different wording such as:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;"power surge"
"voltage event"
"electrical fault"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is particularly useful when investigating evidence across multiple documents.&lt;/p&gt;




&lt;h1&gt;
  
  
  ⚙️ How We Built It
&lt;/h1&gt;

&lt;p&gt;We built ClaimPilot as a modular backend pipeline.&lt;/p&gt;

&lt;p&gt;The major services are separated by responsibility:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;document_service.py
    ↓
gemma_service.py
    ↓
vector_service.py
    ↓
evidence_service.py
    ↓
timeline_service.py
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Document Service
&lt;/h3&gt;

&lt;p&gt;Responsible for extracting usable text from uploaded documents.&lt;/p&gt;

&lt;h3&gt;
  
  
  Gemma Service
&lt;/h3&gt;

&lt;p&gt;Responsible for structured extraction:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Document
   ↓
Gemma 4
   ↓
Claims
Evidence
Events
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Vector Service
&lt;/h3&gt;

&lt;p&gt;Responsible for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;generating embeddings through Hugging Face&lt;/li&gt;
&lt;li&gt;storing document embeddings&lt;/li&gt;
&lt;li&gt;storing evidence embeddings&lt;/li&gt;
&lt;li&gt;querying Pinecone for semantic retrieval&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Evidence Service
&lt;/h3&gt;

&lt;p&gt;Responsible for constructing meaningful relationships between:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;documents&lt;/li&gt;
&lt;li&gt;claims&lt;/li&gt;
&lt;li&gt;evidence&lt;/li&gt;
&lt;li&gt;events&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Timeline Service
&lt;/h3&gt;

&lt;p&gt;Responsible for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;ordering events chronologically&lt;/li&gt;
&lt;li&gt;preserving timestamps&lt;/li&gt;
&lt;li&gt;associating events with their source information&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Keeping these responsibilities separate makes it easier to extend the system with additional reasoning capabilities.&lt;/p&gt;




&lt;h1&gt;
  
  
  🛠️ Development with Antigravity
&lt;/h1&gt;

&lt;p&gt;We built the project iteratively using &lt;strong&gt;Antigravity as our AI-assisted development environment&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Instead of trying to generate the entire application in one step, we broke the system into smaller services and milestones.&lt;/p&gt;

&lt;p&gt;The development process was roughly:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;1. Define the evidence intelligence architecture
                  ↓
2. Build document processing
                  ↓
3. Integrate Gemma 4
                  ↓
4. Implement structured extraction
                  ↓
5. Build embeddings pipeline
                  ↓
6. Integrate Pinecone
                  ↓
7. Build evidence graph
                  ↓
8. Build chronological timeline
                  ↓
9. Validate the complete pipeline
                  ↓
10. Prepare contradiction reasoning
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;One important lesson from this process was that integrating AI models is only one part of building an AI application.&lt;/p&gt;

&lt;p&gt;The difficult part is making sure that the output is:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;structured&lt;/li&gt;
&lt;li&gt;traceable&lt;/li&gt;
&lt;li&gt;retrievable&lt;/li&gt;
&lt;li&gt;consistent&lt;/li&gt;
&lt;li&gt;useful for downstream reasoning&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That's why ClaimPilot isn't designed as simply:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Document → LLM → Summary
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Instead, we're building:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Document
   ↓
Structured Intelligence
   ↓
Relationships
   ↓
Semantic Retrieval
   ↓
Reasoning
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h1&gt;
  
  
  🔮 What's Next?
&lt;/h1&gt;

&lt;p&gt;The next major component we're working toward is the &lt;strong&gt;Contradiction Engine&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The idea is to combine the evidence graph with semantic retrieval.&lt;/p&gt;

&lt;p&gt;For a particular claim, the system can retrieve relevant evidence and compare the evidence across documents.&lt;/p&gt;

&lt;p&gt;Conceptually:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Claim
  ↓
Find supporting evidence
  ↓
Find related evidence
  ↓
Compare evidence
  ↓
Identify:
   ├── Supporting
   ├── Contradicting
   └── Uncertain
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This could allow ClaimPilot to identify situations such as:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Document A:
"No physical damage was observed."

Document B:
"External damage was visible on the device."

                    ↓

Potential contradiction
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The goal is not simply to make the AI produce an answer, but to make the reasoning &lt;strong&gt;traceable back to the underlying evidence&lt;/strong&gt;.&lt;/p&gt;




&lt;h1&gt;
  
  
  🧩 Technology Stack
&lt;/h1&gt;

&lt;p&gt;&lt;strong&gt;AI / Models&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Gemma 4 31B IT&lt;/li&gt;
&lt;li&gt;Google Gemini API&lt;/li&gt;
&lt;li&gt;Hugging Face hosted inference&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Data / Retrieval&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Pinecone&lt;/li&gt;
&lt;li&gt;Vector embeddings&lt;/li&gt;
&lt;li&gt;Evidence graph&lt;/li&gt;
&lt;li&gt;Timeline construction&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Backend&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Python&lt;/li&gt;
&lt;li&gt;FastAPI&lt;/li&gt;
&lt;li&gt;Modular service architecture&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Development&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Antigravity&lt;/li&gt;
&lt;li&gt;GitHub&lt;/li&gt;
&lt;/ul&gt;




&lt;h1&gt;
  
  
  🎯 Why We Built ClaimPilot
&lt;/h1&gt;

&lt;p&gt;The larger idea behind ClaimPilot is simple:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;AI should not just tell you what a document says. It should help you understand how the pieces of evidence connect.&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Large document-heavy investigations contain claims, statements, dates, reports, and supporting evidence scattered across many sources.&lt;/p&gt;

&lt;p&gt;ClaimPilot tries to turn that unstructured information into something investigators can actually reason over.&lt;/p&gt;

&lt;p&gt;From:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Hundreds of pages of documents
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;to:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Claims
   +
Evidence
   +
Events
   +
Relationships
   +
Semantic Retrieval
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And eventually:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Traceable AI-assisted investigation
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  🔗 Project Links
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;GitHub:&lt;/strong&gt; [&lt;a href="https://github.com/djivites/HTF044_ZERO_LATENCY_CLAIM_PILOT" rel="noopener noreferrer"&gt;https://github.com/djivites/HTF044_ZERO_LATENCY_CLAIM_PILOT&lt;/a&gt;]&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Demo Video:&lt;/strong&gt; [&lt;a href="https://github.com/djivites/HTF044_ZERO_LATENCY_CLAIM_PILOT" rel="noopener noreferrer"&gt;https://github.com/djivites/HTF044_ZERO_LATENCY_CLAIM_PILOT&lt;/a&gt;]&lt;/p&gt;




&lt;p&gt;If you're interested in AI systems that combine &lt;strong&gt;LLMs + structured data + retrieval + reasoning&lt;/strong&gt;, we'd love to hear your thoughts.&lt;/p&gt;

&lt;h1&gt;
  
  
  AI #Gemma #Gemma4 #OpenSourceAI #HuggingFace #Pinecone #LLM #ArtificialIntelligence #MachineLearning #Hackathon #Hacktoberfest
&lt;/h1&gt;

</description>
      <category>mlh</category>
      <category>hacktoberfest</category>
      <category>gemma</category>
    </item>
  </channel>
</rss>
