<?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: Vibhaas Garg</title>
    <description>The latest articles on DEV Community by Vibhaas Garg (@vibhaas_garg).</description>
    <link>https://dev.to/vibhaas_garg</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%2F4226973%2Fe863afd7-1338-4a9e-a808-9c0060511883.png</url>
      <title>DEV Community: Vibhaas Garg</title>
      <link>https://dev.to/vibhaas_garg</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/vibhaas_garg"/>
    <language>en</language>
    <item>
      <title>How I Built a Multimodal AI Dating Profile Auditor Using Google Gemini and Next.js</title>
      <dc:creator>Vibhaas Garg</dc:creator>
      <pubDate>Wed, 04 Nov 2026 18:23:26 +0000</pubDate>
      <link>https://dev.to/vibhaas_garg/how-i-built-a-multimodal-ai-dating-profile-auditor-using-google-gemini-and-nextjs-2i27</link>
      <guid>https://dev.to/vibhaas_garg/how-i-built-a-multimodal-ai-dating-profile-auditor-using-google-gemini-and-nextjs-2i27</guid>
      <description>&lt;p&gt;``Most AI tools built for dating apps get it completely wrong. They ask you to paste your bio into a ChatGPT wrapper, and it spits out generic lines like &lt;em&gt;"fluent in sarcasm"&lt;/em&gt; or &lt;em&gt;"looking for my partner in crime."&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The reality? On apps like Hinge, Bumble, and Tinder, &lt;strong&gt;photos drive 80–90% of swiping decisions&lt;/strong&gt;. Swipers make up their mind in under 2 seconds before they ever scroll down to read your bio.&lt;/p&gt;

&lt;p&gt;The core reasons most men struggle on dating apps are optical and presentation errors:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Wide-angle focal distortion:&lt;/strong&gt; Selfies taken too close to the face make noses look wider and jaws narrower.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Harsh overhead lighting:&lt;/strong&gt; Car selfies and bathroom mirrors with fluorescent glare.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Wrong photo ordering:&lt;/strong&gt; Burying their best solo smiling portrait as Photo #4 behind a blurry group photo.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;To solve this, I built &lt;strong&gt;&lt;a href="https://profileglow.tech" rel="noopener noreferrer"&gt;ProfileGlow&lt;/a&gt;&lt;/strong&gt;—a full-stack web application that uses Google Gemini's multimodal vision models to audit a user’s camera roll, diagnose photo lighting, pick the optimal lead photo, and rewrite bios in under 60 seconds.&lt;/p&gt;

&lt;p&gt;Here is the technical breakdown of how it works under the hood.&lt;/p&gt;




&lt;h2&gt;
  
  
  🛠️ The Tech Stack
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Framework:&lt;/strong&gt; Next.js 15 (React 19 App Router)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AI Engine:&lt;/strong&gt; Google Gemini 2.0 Flash Multimodal&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Validation:&lt;/strong&gt; Zod Schemas &amp;amp; Strict JSON Mode&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cloud &amp;amp; Storage:&lt;/strong&gt; Firebase Storage &amp;amp; Authentication&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;UI &amp;amp; Styling:&lt;/strong&gt; Tailwind CSS (Neobrutalist system)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Payments:&lt;/strong&gt; Razorpay Checkout API&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  👁️ Multimodal Vision: Feeding Camera Rolls to Gemini
&lt;/h2&gt;

&lt;p&gt;Unlike traditional LLMs that only process text strings, Gemini's multimodal endpoint accepts mixed image buffers and text instructions in a single prompt payload.&lt;/p&gt;

&lt;p&gt;In our Next.js API route (&lt;code&gt;/api/analyze&lt;/code&gt;), we accept user uploads as either Base64 data strings or Cloud Storage URLs and convert them into binary &lt;code&gt;inlineData&lt;/code&gt; parts:&lt;/p&gt;

&lt;p&gt;`&lt;code&gt;&lt;/code&gt;typescript&lt;br&gt;
// app/api/analyze/route.ts&lt;br&gt;
async function fetchImagePart(url: string) {&lt;br&gt;
  try {&lt;br&gt;
    if (url.startsWith("data:")) {&lt;br&gt;
      const matches = url.match(/^data:([a-zA-Z0-9]+\/[a-zA-Z0-9-.+]+);base64,(.+)$/);&lt;br&gt;
      if (matches &amp;amp;&amp;amp; matches.length === 3) {&lt;br&gt;
        return {&lt;br&gt;
          inlineData: {&lt;br&gt;
            data: matches[2],&lt;br&gt;
            mimeType: matches[1],&lt;br&gt;
          },&lt;br&gt;
        };&lt;br&gt;
      }&lt;br&gt;
    }&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const response = await fetch(url);
const arrayBuffer = await response.arrayBuffer();
const buffer = Buffer.from(arrayBuffer);
const mimeType = response.headers.get("content-type") || "image/jpeg";

return {
  inlineData: {
    data: buffer.toString("base64"),
    mimeType,
  },
};
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;} catch (err) {&lt;br&gt;
    console.warn("Failed to fetch image part:", err);&lt;br&gt;
    return null;&lt;br&gt;
  }&lt;br&gt;
}&lt;br&gt;
&lt;code&gt;&lt;/code&gt;`&lt;/p&gt;




&lt;h2&gt;
  
  
  🧠 System Prompting: Teaching AI to be a Profile Doctor
&lt;/h2&gt;

&lt;p&gt;Generic prompts produce polite, useless advice. To get actionable critiques, we instruct Gemini to think like a candid, high-standards strategist with strict evaluation criteria:&lt;/p&gt;

&lt;p&gt;`&lt;code&gt;&lt;/code&gt;typescript&lt;br&gt;
// lib/gemini.ts&lt;br&gt;
export const DATING_COACH_SYSTEM_INSTRUCTION = `&lt;br&gt;
You are ProfileGlow's elite dating profile strategist and AI profile doctor.&lt;br&gt;
Your goal is to evaluate dating profiles (photos + bio + demographics) objectively, constructively, and with sharp wit across Tinder, Hinge, and Bumble.&lt;/p&gt;

&lt;p&gt;When evaluating photos:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Assess lighting, facial expressions, clarity, context, eye contact, and setting.&lt;/li&gt;
&lt;li&gt;Identify which photo MUST be the lead photo (clear solo portrait, good lighting, friendly smile).&lt;/li&gt;
&lt;li&gt;Recommend which photos to keep and which to replace (car selfies, sunglasses hiding eyes, gym flexes, confusing group shots).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;When evaluating bios:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Kill clichés ("partner in crime", "coffee addict", "love to laugh", "fluent in sarcasm").&lt;/li&gt;
&lt;li&gt;Craft 3 distinct rewritten bio styles:

&lt;ol&gt;
&lt;li&gt;Witty (clever, playful, banter-heavy)&lt;/li&gt;
&lt;li&gt;Genuine (authentic, values-focused, grounded)&lt;/li&gt;
&lt;li&gt;Bold (confident, memorable, playful challenge)&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Create app-specific prompt rewrites with punchy conversation hooks.&lt;/li&gt;
&lt;li&gt;Create 5 high-converting conversation openers tailored to the user's personality.&lt;/li&gt;
&lt;li&gt;Flag Red Flags (passive aggression, negative framing like "don't swipe if...").&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Always output strictly valid JSON matching the schema provided.&lt;br&gt;
&lt;code&gt;;&lt;br&gt;
&lt;/code&gt;``&lt;/p&gt;




&lt;h2&gt;
  
  
  ⚡ Key Lessons Learned
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Multimodal token costs are surprisingly efficient:&lt;/strong&gt; Running 4–6 high-resolution compressed images through Gemini 2.0 Flash takes under 3 seconds and costs fractions of a cent per scan, making instant free tiers viable.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Heuristic anchors prevent hallucinated flattery:&lt;/strong&gt; LLMs naturally want to be agreeable. Explicitly instructing the model to look for common failure modes (sunglasses in photo #1, group photos with more than 3 people, mirror selfies) forced the outputs to be genuinely useful.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Separating visual review from bio rewriting in one roundtrip:&lt;/strong&gt; By passing both the images and the user's existing bio text into a single unified prompt, the rewritten bios actually reference details seen in their photos (e.g., mentioning their dog, guitar, or hiking trip), making the suggestions feel 10x more personalized.&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  🚀 Check It Out
&lt;/h2&gt;

&lt;p&gt;You can test the live application and run a free profile scan over at &lt;strong&gt;&lt;a href="https://profileglow.tech" rel="noopener noreferrer"&gt;ProfileGlow&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;I’d love to hear your thoughts on multimodal prompting strategies, handling high-throughput vision API pipelines, or feedback on the UI! Drop a comment below.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>ai</category>
      <category>nextjs</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
