<?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: Divy Pareek</title>
    <description>The latest articles on DEV Community by Divy Pareek (@divy_pareek_69700e0cca1fd).</description>
    <link>https://dev.to/divy_pareek_69700e0cca1fd</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%2F4190553%2F8724d724-cbb4-48e0-b061-29bd1adaff2e.png</url>
      <title>DEV Community: Divy Pareek</title>
      <link>https://dev.to/divy_pareek_69700e0cca1fd</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/divy_pareek_69700e0cca1fd"/>
    <language>en</language>
    <item>
      <title># Invoice AI: Turn Invoice Photos into Business Intelligence with an AI-Powered Business Analyst</title>
      <dc:creator>Divy Pareek</dc:creator>
      <pubDate>Mon, 19 Oct 2026 03:44:17 +0000</pubDate>
      <link>https://dev.to/divy_pareek_69700e0cca1fd/-invoice-ai-turn-invoice-photos-into-business-intelligence-with-an-ai-powered-business-analyst-nae</link>
      <guid>https://dev.to/divy_pareek_69700e0cca1fd/-invoice-ai-turn-invoice-photos-into-business-intelligence-with-an-ai-powered-business-analyst-nae</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/hacktoberfest-week2-2026-10-12"&gt;Hacktoberfest Open-Source AI Challenge Week 2: Side Hustle&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

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

&lt;p&gt;&lt;strong&gt;Invoice AI — Your Personal Business Analyst for Your Small Business! 🧾📊&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;For small shopkeepers and business owners: just click photos of your invoices on your phone, upload them, select whether each is a &lt;strong&gt;sales invoice or a purchase invoice&lt;/strong&gt;, and DONE!!&lt;/p&gt;

&lt;p&gt;Your personal business dashboard and AI-powered business analyst are ready to help you understand your business better.&lt;/p&gt;

&lt;p&gt;Want to know which vendor accounts for most of your spending? Curious about your monthly sales trends? Have a question or just a thought in mind? Simply ask the interactive chatbot, powered by the open-weight &lt;strong&gt;Gemma 4 model&lt;/strong&gt;, and get answers tailored to your business data in seconds.&lt;/p&gt;

&lt;p&gt;But wait, I know what you might be thinking!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What about data accuracy?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;After all, even a tiny digit mix-up — like 310 becoming 103 — can completely distort your business analysis. When it comes to business decisions, garbage in means garbage out!&lt;/p&gt;

&lt;p&gt;That's why Invoice AI doesn't blindly trust extracted data. It validates invoice totals against subtotals and taxes, flags ambiguous or inconsistent extractions for review, and lets users verify uncertain information before it is confirmed and included in analytics.&lt;/p&gt;

&lt;p&gt;The result? A smarter way for small businesses to turn everyday invoices into meaningful business insights, without manually maintaining complicated spreadsheets.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Your invoices. Your data. Your business insights. All in one place.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Video Demo:&lt;/strong&gt;   &lt;iframe src="https://www.youtube.com/embed/j3OKn_s7Kzk" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;br&gt;
&lt;strong&gt;Live Demo:&lt;/strong&gt; &lt;br&gt;
&lt;/p&gt;
&lt;div class="crayons-card c-embed text-styles text-styles--secondary"&gt;
    &lt;div class="c-embed__content"&gt;
      &lt;div class="c-embed__body flex items-center justify-between"&gt;
        &lt;a href="https://invoice-ai-v1-frontend.onrender.com/" rel="noopener noreferrer" class="c-link fw-bold flex items-center"&gt;
          &lt;span class="mr-2"&gt;invoice-ai-v1-frontend.onrender.com&lt;/span&gt;
          

        &lt;/a&gt;
      &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;
&lt;br&gt;
&lt;div class="crayons-card c-embed text-styles text-styles--secondary"&gt;
    &lt;div class="c-embed__content"&gt;
      &lt;div class="c-embed__body flex items-center justify-between"&gt;
        &lt;a href="https://invoice-ai-v1-backend.onrender.com/" rel="noopener noreferrer" class="c-link fw-bold flex items-center"&gt;
          &lt;span class="mr-2"&gt;invoice-ai-v1-backend.onrender.com&lt;/span&gt;
          

        &lt;/a&gt;
      &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;


&lt;h2&gt;
  
  
  Code
&lt;/h2&gt;

&lt;p&gt;💻 &lt;strong&gt;GitHub Repository:&lt;/strong&gt; &lt;a href="https://github.com/dotsource123/invoice-ai-v1.git" rel="noopener noreferrer"&gt;https://github.com/dotsource123/invoice-ai-v1.git&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How I Built It
&lt;/h2&gt;

&lt;p&gt;I built Invoice AI using open-source technologies, OCR, a FastAPI backend, a Streamlit dashboard, and an interactive LLM-powered assistant.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 1: Invoice Images → OCR
&lt;/h3&gt;

&lt;p&gt;Everything starts with an invoice image captured using a phone.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Used &lt;strong&gt;PaddleOCR&lt;/strong&gt; to extract text from invoice images.&lt;/li&gt;
&lt;li&gt;Processed the extracted text to identify important invoice fields, including vendor details, invoice numbers, dates, subtotals, taxes, and totals.&lt;/li&gt;
&lt;li&gt;Converted unstructured invoice images into structured data that can be stored and analyzed.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Step 2: Validation → Reliable Business Data
&lt;/h3&gt;

&lt;p&gt;Extracted numbers aren't automatically treated as correct.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Validated invoice totals against subtotal and tax amounts.&lt;/li&gt;
&lt;li&gt;Flagged ambiguous or inconsistent extractions for user review.&lt;/li&gt;
&lt;li&gt;Kept invoices pending review out of confirmed-invoice analytics until verified.&lt;/li&gt;
&lt;li&gt;Distinguished purchase invoices from sales invoices so spending and sales figures are not mixed up.&lt;/li&gt;
&lt;li&gt;Kept different currencies separate to avoid misleading totals.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Step 3: Backend → FastAPI + SQLAlchemy
&lt;/h3&gt;

&lt;p&gt;Built a FastAPI backend to handle invoice extraction, validation, storage, and dashboard analytics.&lt;/p&gt;

&lt;p&gt;Used SQLAlchemy for database operations and created reusable business analytics functions to calculate invoice summaries, vendor spending, monthly trends, and other useful metrics.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 4: Interactive Dashboard → Streamlit
&lt;/h3&gt;

&lt;p&gt;Built an interactive dashboard that turns confirmed invoice data into useful business information, including:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Total purchase spending and recorded sales.&lt;/li&gt;
&lt;li&gt;Purchase and sales invoice counts.&lt;/li&gt;
&lt;li&gt;Spending by vendor.&lt;/li&gt;
&lt;li&gt;Monthly business trends.&lt;/li&gt;
&lt;li&gt;Invoice-level information for further investigation.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The goal is to make business analytics accessible even to people who don't know SQL, spreadsheets, or programming.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 5: AI Business Analyst → Gemma 4
&lt;/h3&gt;

&lt;p&gt;This is where things get exciting!&lt;/p&gt;

&lt;p&gt;Integrated the open-weight &lt;strong&gt;Gemma 4 model through Ollama Cloud&lt;/strong&gt; to build an interactive, tool-using business assistant.&lt;/p&gt;

&lt;p&gt;Instead of simply generating generic answers, the assistant can select from predefined business tools to retrieve relevant information from the user's saved invoice data.&lt;/p&gt;

&lt;p&gt;For example, users can ask:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;"Which vendor accounts for most of my spending?"&lt;/li&gt;
&lt;li&gt;"How have my monthly purchases changed?"&lt;/li&gt;
&lt;li&gt;"Find invoices from a particular vendor."&lt;/li&gt;
&lt;li&gt;"Summarize my purchase and sales invoices."&lt;/li&gt;
&lt;li&gt;"Which items account for the highest recorded purchase amounts?"&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The assistant uses read-only Python functions backed by SQLAlchemy queries to retrieve relevant information, then generates a natural-language response grounded in those results.&lt;/p&gt;

&lt;p&gt;Importantly, the model does &lt;strong&gt;not&lt;/strong&gt; generate and execute arbitrary SQL queries. Its access to business data is mediated through predefined tools with validated arguments.&lt;/p&gt;

&lt;p&gt;This makes the assistant more than a chatbot: it acts as a business analyst that can retrieve relevant data and explain it conversationally.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Does Open Innovation Matter?
&lt;/h2&gt;

&lt;p&gt;Small businesses often lack access to dedicated business analysts, expensive analytics platforms, or the technical expertise needed to make sense of their financial records.&lt;/p&gt;

&lt;p&gt;Open innovation makes it possible to build practical AI-powered tools that bring these capabilities closer to everyday business owners.&lt;/p&gt;

&lt;p&gt;By building around an open-weight model, open-source OCR, Python frameworks, and a tool-based architecture, I could experiment with a customizable AI assistant without making the entire application dependent on a proprietary, closed-model API.&lt;/p&gt;

&lt;p&gt;Using Ollama Cloud also allowed me to access the model remotely rather than requiring users to run a large language model locally.&lt;/p&gt;

&lt;p&gt;More importantly, the project demonstrates how open technologies can be combined into a complete workflow: extracting information from real-world documents, validating it, analyzing it, and making the results accessible through natural language.&lt;/p&gt;

&lt;p&gt;My goal is simple: &lt;strong&gt;make useful business intelligence accessible to the smallest businesses, not just enterprises with dedicated analytics teams.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  My Agent Session
&lt;/h2&gt;

&lt;p&gt;[Add your DevRelay agent session link here, if available.]&lt;/p&gt;

&lt;h2&gt;
  
  
  Prize Categories
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Best Use of Gemma&lt;/strong&gt;&lt;br&gt;
Gemma powers the AI business assistant, helping interpret business queries and generate context-aware insights from invoice data. It works alongside OCR processing and predefined business tools to turn raw invoices into actionable business intelligence, with controlled data access and validation to support security and privacy.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Best Use of Render&lt;/strong&gt;&lt;br&gt;
Deployed Invoice AI on Render, making the application accessible through the cloud without requiring users to set up a local environment. The deployment brings together the FastAPI backend and interactive dashboard, allowing users to upload invoices, explore business analytics, and interact with the AI business assistant online&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>hf26challenge</category>
      <category>ai</category>
      <category>ocr</category>
    </item>
  </channel>
</rss>
