Problem
A geo-service search built on morphology, a directory of organizations, geolocation and popularity handles typical queries. It fails when people describe a wish in free form ("a bar for noisy parties"), search by mood or occasion, or want a place that looks like a photo they like. Users then have to assemble the right combination of filters by hand.
2GIS addressed three tasks: mood-based "vibe" filters, similar-place search by photo, and search by meaning.
Example from the article: a user types "pasta with chanterelles". The system has to treat it as a specific dish and not as a directory category, and return venues that serve it.
Solution in brief
Each task rests on embeddings. An LLM labels vibes from cards, reviews, menus and photos. Photos become vectors in a pgvector index, and similar places are the nearest neighbours by cosine distance. A semantic layer encodes queries and organizations into the same vector space, then ranks nearest candidates by geolocation and popularity.
Questions this case answers
- How to add semantic search over a catalog of entities when keyword search over structured attributes misses free-form, mood-based or image-based queries
- How to pick an image embedding model and a vector store for similarity search under a memory limit, and recover recall that approximate indexes lose
- How to let users find places by mood or occasion instead of a stack of manual filters?
- How to find venues that look similar to a chosen photo of a dish or an interior?
Tools and methods
- SigLIP (Siglip2giant) — image embedding model, best on the team's benchmark
- pgvector on PostgreSQL — vector storage and HNSW search, chosen over Qdrant to bound memory
- HNSW index — approximate nearest-neighbour search; per-city indexes and a greedier fallback query
- LLM labeling with a second LLM as cross-check — vibe attributes from text and photos
- Crowdsourced ranking benchmark — compares embedding models
Google or a one-time email code. No password.