Find similar images from large collections. Vector Panda auto-tunes its indexing strategy on a sample of your real vectors and serves queries from in-memory storage on the hot tier.
Public-domain Met holdings, one CLIP model, runnable as-is
import json, pathlib, tarfile, urllib.request
from PIL import Image
from sentence_transformers import SentenceTransformer
from veep import Client
urllib.request.urlretrieve(
"https://next.vectorpanda.com/data/example-met-famous.tar.gz",
"met-famous.tar.gz",
)
with tarfile.open("met-famous.tar.gz") as tf:
tf.extractall(".")
model = SentenceTransformer("clip-ViT-B-32") # text and images share one space
vp = Client.login()
meta = json.loads(pathlib.Path("met-famous/metadata.json").read_text())
vp.collections.create("artworks", tier="hot")
vp.vectors.upsert("artworks", vectors=[
{"id": str(row["object_id"]),
"vector": model.encode(Image.open(f"met-famous/{row['image_file']}")).tolist(),
"metadata": {"title": row["title"], "artist": row["artist"]}}
for row in meta
])
q = model.encode("a swirling night sky over a quiet village").tolist()
for r in vp.vectors.query("artworks", q, top_k=3):
print(f"{r.metadata['title']} — {r.metadata['artist']} score={r.score:.3f}")The full walkthrough — every code block tested against the live service — is the Visual search tutorial.
Visual search powers modern experiences
Let shoppers find products by uploading photos. "Find similar" buttons that actually work at scale.
Content moderation, duplicate detection, and visual trend analysis across your whole image library.
Quality control and defect detection. Compare products against reference images in real-time.
Medical image analysis and similar case retrieval. Find relevant cases from vast medical databases.
Find properties by visual preferences. Match interior design styles and architectural features.
Manage large media libraries. Find stock photos, detect copyright infringement, organize collections.
One collection on the standard Cohere 1M dataset, measured end to end through the public API with VectorDBBench. Real numbers, not projections — methodology and raw results here.
Start with the bundled public-domain sample set; the same pattern carries unchanged to your production image library.
Get Started Free →