惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

MongoDB | Blog
MongoDB | Blog
宝玉的分享
宝玉的分享
博客园 - 三生石上(FineUI控件)
小众软件
小众软件
罗磊的独立博客
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
S
SegmentFault 最新的问题
Last Week in AI
Last Week in AI
人人都是产品经理
人人都是产品经理
博客园 - 聂微东
博客园 - 司徒正美
博客园 - 叶小钗
T
Tailwind CSS Blog
博客园 - Franky
V
V2EX
有赞技术团队
有赞技术团队
美团技术团队
雷峰网
雷峰网
爱范儿
爱范儿
Jina AI
Jina AI
D
DataBreaches.Net
H
Help Net Security
酷 壳 – CoolShell
酷 壳 – CoolShell

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Bondmap: AI-Powered Relationship Network That Maps How Yo...
Manglesh · 2026-05-25 · via DEV Community

This is a submission for the Gemma 4 Challenge:
Build with Gemma 4

What I Built

Bondmap is a social relationship network where anyone
can map their real-world connections — family, friends,
colleagues, romantic partners, long-distance relationships
— as a beautiful interactive visual graph.

The core idea: you add people and define how you know them.
Bondmap's AI (powered by Gemma 4) then reasons across your
entire network to explain hidden connections, trace
relationship paths, and suggest people you may know through
others.

The problem it solves: Most people have no clear picture
of how everyone in their life is actually connected.
LinkedIn shows work connections. WhatsApp shows contacts.
But nobody shows you that your college friend's brother
works with your current colleague — until now.

Key Features:

  • Interactive D3.js network map with color-coded connections (purple = family, green = friends, blue = work, pink = romantic)
  • Add people and define relationship types and labels (brother, mentor, childhood friend, long-distance etc)
  • Ask Gemma 4 in plain English: "How am I connected to Rahul?"
  • Upload a group photo — Gemma 4 vision analyzes who might be in it and suggests relationship types from context
  • 1st, 2nd, and 3rd degree connection discovery
  • Spring Boot backend + React frontend

Demo

[🔗 Live App — bondmap.web.app]

[📹 Video Walkthrough — paste your video link here]

Key demo moments:

  1. Adding people with different relationship types
  2. Asking "How am I connected to [person]?" and getting a warm natural language answer from Gemma 4
  3. Uploading a group photo and watching Gemma 4 analyze the context

Code

[🐙 GitHub Repository — github.com/MangleshKumar1/bondmap]

Tech Stack:

  • Frontend: React + Vite + D3.js
  • Backend: Java Spring Boot
  • Database: Firebase Firestore
  • AI: Gemma 4 via Google AI Studio API
  • Hosting: Firebase Hosting + Railway (backend)

How I Used Gemma 4

Model chosen: gemma-4-31b-it

I specifically chose the Gemma 4 31B Dense model for
three reasons:

1. Relationship Path Reasoning
When a user asks "How am I connected to Anjali?", Gemma 4
receives the entire relationship network as context and
traces the path across multiple hops — A knows B who knows C
— in a single inference call. This multi-hop graph reasoning
in natural language is exactly where the 31B model's
reasoning depth matters. A smaller model gave vague answers;
31B gave precise, warm, human-readable explanations every time.

2. The 128K Context Window
The entire relationship network — every person, every
connection, every label — is loaded into Gemma 4's context
window in one shot. No RAG, no chunking, no vector database.
Gemma 4 holds the whole graph in memory and reasons across
it holistically. For a social graph with dozens of people
and relationships, this is only possible with a large
context window.

3. Multimodal Vision for Photo Analysis
When a user uploads a group photo, Gemma 4 analyzes the
image — reads the occasion, body language, and positioning
— and suggests who these people might be and what
relationship types they have. This multimodal capability
is native to Gemma 4 and required no additional models.

Why not a smaller Gemma 4 model?
I tested gemma-4-e4b-it (4B) for the connection reasoning
task. The responses were correct but shallow — it couldn't
reliably trace 2nd and 3rd degree connections across a
larger network. The 31B model handled complex multi-hop
paths accurately every time, which is the core AI feature
of the app.

Architecture:
User asks question

React frontend → Spring Boot API

AIService.java builds prompt:
systemInstruction = rules + full network graph
user message = the question only

Gemma 4 31B reasons across entire graph

Clean natural language response

Displayed in UI

Gemma 4 is not a wrapper here — it IS the relationship
intelligence engine. Every insight, every path explanation,
every photo analysis runs through Gemma 4.