Multimodal AI Agent
CORE ARCHITECTURE
Layered Technology Stack
A robust, scalable architecture with four distinct layers.
React + Three.js
Interactive 3D graph frontend for visualising data relationships
FastAPI Backend
FastAPI backend + ADK Runner for agent orchestration
Vertex AI
Vertex AI Agent Engine + Memory Bank for intelligence
Cloud Spanner
Cloud Spanner Graph + Gemini embeddings for data storage
AI Powered Embeddings in Spanner
The Problem with Keyword Search
Implementing Embeddings in Spanner
Create Embedding Model
Define a remote model in Spanner that points to a pre-trained text embedding service, like Google's text-embedding-004.
Add Embedding Column
Add a new column to your table to store the generated embeddings as an array of FLOAT32 values.
Generate Embeddings
Use ML.PREDICT to populate the embedding column for existing data, generating vector representations for record.
Test Semantic Search
Perform similarity searches using cosine distance to find the most semantically relevant items based on a query embedding.

Graph RAG Agent
Semantic (RAG)
Use for conceptual queries, cosine distance on 768 dim vectors.
Keyword
Use for filters and exact matches via SQL LIKE clauses.
Hybrid (RRF)
Combine ranks with Reciprocal Rank Fusion to merge keyword + semantic results.
Multimodal Pipeline & Agents
Sequential Agent Flow
- Upload Agent → GCS URI
- Extraction Agent → Gemini Vision → JSON entities
- Spanner Agent → persist nodes & edges
- Summary Agent → user-friendly report
- Interactive error handling and LLM-driven next steps.

Memory Bank & Personalisation
Short Term
In Memory Session Service for current optional conversation context.
Long Term
Vertex Ai Memory Bank Service stores user preferences and recurring needs.
Memory Topics
Search_preferences, urgent_needs_context for targeted personalisation.
IMPLEMENTATION
How It Works
A smooth, three-phase process to get your multimodal AI up and running.
Data Integration
Connect all your data sources into a unified multimodal pipeline.
Model Training
Customise the AI to understand your specific domain and use cases.
Deployment
Launch your multimodal AI solution with enterprise grade security.
Ready to Experience the Future?
Let's discuss how WhatsOn Multimodal AI Agent can transform your data analysis and content creation.
Digital Agency by WhatsOn © All rights reserved 2026


