<?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: Bala Sai Kalepu</title>
    <description>The latest articles on DEV Community by Bala Sai Kalepu (@bala4562).</description>
    <link>https://dev.to/bala4562</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3194199%2F1e137d1c-d57a-4203-910e-b35affc9a3d2.png</url>
      <title>DEV Community: Bala Sai Kalepu</title>
      <link>https://dev.to/bala4562</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/bala4562"/>
    <language>en</language>
    <item>
      <title>SmartMail: Your Intelligent Inbox Assistant</title>
      <dc:creator>Bala Sai Kalepu</dc:creator>
      <pubDate>Mon, 09 Jun 2025 06:49:04 +0000</pubDate>
      <link>https://dev.to/bala4562/smartmail-your-intelligent-inbox-assistant-3m83</link>
      <guid>https://dev.to/bala4562/smartmail-your-intelligent-inbox-assistant-3m83</guid>
      <description>&lt;h1&gt;
  
  
  SmartMail: Intelligent Email Inbox with RAG Search
&lt;/h1&gt;




&lt;h2&gt;
  
  
  📂 Project Structure
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;attachments/&lt;/strong&gt; — Stores email attachments
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;backend/&lt;/strong&gt; — FastAPI backend handling webhook, MongoDB storage, and RAG search
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;frontend/&lt;/strong&gt; — React app for inbox UI and chat interface
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;.gitignore&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;postmark-structure.json&lt;/strong&gt; — Sample email payload structure
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;requirements.txt&lt;/strong&gt; — Python dependencies
&lt;/li&gt;
&lt;/ul&gt;




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

&lt;p&gt;SmartMail is a smart email inbox system that:  &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Receives emails via Postmark inbound webhook
&lt;/li&gt;
&lt;li&gt;Stores emails and attachments with MongoDB integration
&lt;/li&gt;
&lt;li&gt;Auto-classifies emails into categories like inbox, promotions, spam, etc.
&lt;/li&gt;
&lt;li&gt;Enables chat-style querying over emails using Retrieval-Augmented Generation (RAG) with FAISS vector search
&lt;/li&gt;
&lt;li&gt;Provides a React-based UI with an inbox and a conversational chat interface to ask questions about your emails
&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🎬 Demo &amp;amp; Usage
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Clone repo
&lt;/li&gt;
&lt;li&gt;Run backend:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   pip &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-r&lt;/span&gt; requirements.txt
   uvicorn backend.webhook:app &lt;span class="nt"&gt;--reload&lt;/span&gt;
Run frontend:

bash
Copy
Edit
&lt;span class="nb"&gt;cd &lt;/span&gt;frontend
npm &lt;span class="nb"&gt;install
&lt;/span&gt;npm run dev
Configure Postmark inbound webhook to point to your backend /postmark-webhook endpoint.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;🔧 Tech Stack&lt;br&gt;
Backend: FastAPI, Pydantic, MongoDB, FAISS, Sentence Transformers&lt;/p&gt;

&lt;p&gt;Frontend: React&lt;/p&gt;

&lt;p&gt;Email Handling: Postmark inbound webhook, JSON email parsing&lt;/p&gt;

&lt;p&gt;Search: Vector search with FAISS for semantic email content querying&lt;/p&gt;

&lt;p&gt;🧠 Challenges &amp;amp; Learnings&lt;br&gt;
Handling complex email JSON structures and attachments&lt;/p&gt;

&lt;p&gt;Implementing fast and accurate RAG search on email content&lt;/p&gt;

&lt;p&gt;Designing a simple but powerful chat UI for email queries&lt;/p&gt;

&lt;p&gt;Managing local storage for attachments and efficient DB indexing&lt;/p&gt;

&lt;p&gt;📁 Code Repository&lt;br&gt;
&lt;a href="https://github.com/balasaiofficial/Postmark-Challenge.git" rel="noopener noreferrer"&gt;https://github.com/balasaiofficial/Postmark-Challenge.git&lt;/a&gt;&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>postmarkchallenge</category>
      <category>webdev</category>
      <category>api</category>
    </item>
  </channel>
</rss>
