---
title: "Hybrid search over California embeddings with Modal, MongoDB, and Clay"
description: "A hybrid search app over California combines timestamps, geolocation and satellite image embeddings using Modal, MongoDB Atlas and Clay's foundation model."
url: "https://swe.quest/articles/hybrid-search-over-california-embeddings-with-modal-mongodb-and-clay-59ebc96e9326e33e"
canonical: "https://modal.com/blog/mongodb-search-california"
source: "Modal"
published: "2024-09-24"
difficulty: "easy"
kind: "How-to"
reading_minutes: 3
tags: ["vector-search","geospatial","serverless","search","inference"]
---

# Hybrid search over California embeddings with Modal, MongoDB, and Clay

A post on [Modal](https://swe.quest/sources/modal.md), published 2024-09-24, 3 min read, How-to. Original: [https://modal.com/blog/mongodb-search-california](https://modal.com/blog/mongodb-search-california)

## Summary

A hybrid search app over California combines timestamps, geolocation and satellite image embeddings using Modal, MongoDB Atlas and Clay's foundation model. Daily jobs pull new Sentinel imagery metadata for a GeoJSON area-of-interest into Atlas. A serverless GPU service on A10s embeds unembedded entries with Clay v1, merging hundreds of sub-region forward passes into one embedding via custom PyTorch, and writes them back. An Alpine JS frontend served by FastAPI issues combined geo, vector and time queries to Atlas. The rest of the post promotes the pairing's versatility, scalability and AI capabilities.

Written by swe.quest, not by the author.

**Difficulty:** Easy: no special background needed; explains what something is and why it matters

## Topics

- [Vector search](https://swe.quest/tags/vector-search.md) (Data & databases)
- [Maps & geospatial](https://swe.quest/tags/geospatial.md) (Domains)
- [Serverless](https://swe.quest/tags/serverless.md) (Backend & APIs)
- [Search](https://swe.quest/tags/search.md) (Backend & APIs)
- [Inference & serving](https://swe.quest/tags/inference.md) (AI & ML)

## Prerequisites

- vector embeddings ([easy posts on RAG & retrieval](https://swe.quest/tags/rag.md?difficulty=easy))
- document databases ([easy posts on Databases](https://swe.quest/tags/databases.md?difficulty=easy))

## Keywords

Modal, MongoDB Atlas, Clay, Sentinel, FastAPI, Alpine.js, PyTorch, GeoJSON

## Related posts

- [Introducing OlmoEarth embeddings: Custom embedding exports from OlmoEarth Studio for downstream analysis](https://swe.quest/articles/introducing-olmoearth-embeddings-custom-embedding-exports-from-olmoearth-studio-6f049054a6151c9d.md): Hugging Face · 2026-08-12 · Medium · 8 min read · Maps & geospatial, Machine learning, Computer vision, Python
  OlmoEarth Studio can now compute on-demand embedding exports from Ai2's open OlmoEarth Earth-observation foundation models, configurable by area, 1-12 monthly periods, encoder size (Nano 128-dim, Tiny 192-dim, Base 768-dim), 10-80 m resolution, and Sentinel-2/Sentinel-1 inputs.
- [Implementing semantic image search with Amazon Titan and Supabase Vector](https://swe.quest/articles/implementing-semantic-image-search-with-amazon-titan-and-supabase-vector-07c13eba94b53a82.md): Supabase · 2024-03-26 · Medium · 5 min read · Vector search, PostgreSQL, Python, Computer vision, Cloud platforms
  Semantic image search can be built in Python by generating 1024-dimensional embeddings for images with the Amazon Titan multimodal embedding model (amazon.titan-embed-image-v1) via Amazon Bedrock, then storing and querying them in Supabase Vector (Postgres with pgvector) using the vecs client.
- [Image search with 🤗 datasets](https://swe.quest/articles/image-search-with-datasets-7a6fd7ae6c6c63ce.md): Hugging Face · 2022-03-16 · Medium · 12 min read · Vector search, Computer vision, Python, Search
  A text-to-image search over 10,000 British Library book embellishments can be built by loading the images with the 🤗 datasets ImageFolder loader and embedding them with the CLIP ViT-B/32 model via sentence\_transformers.
- [Building a searchable photo library on the Neon backend with TanStack](https://swe.quest/articles/building-a-searchable-photo-library-on-the-neon-backend-with-tanstack-f091ade391b04611.md): Neon · 2026-10-05 · Medium · 9 min read · PostgreSQL, Vector search, Identity & auth, Storage systems, Deployment
  Atlas is a TanStack Start app on Vercel that stores private photos in Neon Object Storage, metadata and vectors in Lakebase Postgres, identity in Managed Better Auth, and ranks CLIP embeddings with the Lakebase Search \`lakebase\_ann\` index.
- [In-Browser Semantic AI Search with PGlite and Transformers.js](https://swe.quest/articles/in-browser-semantic-ai-search-with-pglite-and-transformers-js-f90228d6e99e01b6.md): Supabase · 2024-08-29 · Medium · 7 min read · Vector search, PostgreSQL, Browsers, JavaScript, React
  A fully local, in-browser semantic search can be built by combining PGlite (Postgres compiled to run in the browser, persisted to IndexedDB) with the pgvector extension and Transformers.js running the Supabase/gte-small embedding model.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
