Vectors that know what a product is — and how it connects.
Most retrieval stacks embed a product name and description once and hope nearest-neighbour search does the rest. Ours can embed enriched records, keeps separate vector spaces per kind of thing, and never lets similarity alone decide: the knowledge graph constrains and re-ranks every result. The point cloud below is a sample layout so you can see the idea; the section after it says exactly what runs today and what we would build and measure with you. Drag to orbit · scroll to zoom · click a point to pin.
Naive RAG vs. how the platform retrieves
Running in our agent today Built — being wired Next, with you- Embed the product name and description, once.
- One vector per item, one undifferentiated index.
- Return the top-k nearest neighbours.
- Hope the nearest is also allowed, in stock, and right for this shopper.
- Enrich first — nutrition, health and allergen attributes are merged into the record before embedding, so the vector can carry them.
- Separate vector spaces per entity — products, ingredients, brands, recipes — and per aspect of a product.
- Vector search proposes; the knowledge graph disposes — dietary edges filter, relationships re-rank.
- Results are written back as attributes, so the next embedding starts richer.
Vector + graph, in one query
Memgraph holds cosine vector indexes (768-dim) for products, ingredients, brands and recipes, next to the relationships between them. The shopping agent's product search runs vector top-k inside the graph, then:
- Filters on dietary-label edges, so a "gluten-free" need is a graph constraint, not a hope about text similarity.
- Re-ranks with graph signals added to the similarity: brand match (+0.15), department (+0.10), co-purchase (+0.05).
- Substitutes add co-occurrence (up to +0.15) and explicit substitute edges (+0.10) — how out-of-stock swaps stay sensible.
Enrichment that compounds
- The data-match stage merges nutrition, health and allergen attributes from authoritative sources into the product record, and those fields can be embedded with it.
- PIM can store three vectors per product — identity, nutrition, description — and the agent can search one aspect at a time ("something like this, nutritionally").
- The semantic stage writes similar products and recipe similarity back onto the product as attributes — each pass leaves the catalog denser for the next.
What makes the vectors deeper next
Vespa for ranking at catalog scale
The platform carries a Vespa ranking schema: keyword (BM25) relevance plus a vector field, with a second-phase blend of relevance, a shopper vector, popularity and margin. It is not deployed today; it is the option we'd bring in when Sprouts' search needs ranking control at full-catalog scale, fed by the same enriched vectors.
Where the vectors are used
| Semantic product search | today |
| Substitutes & recipe-to-cart | today |
| RAG over documents (keyword + vector hybrid) | today |
| Personalised ranking | being wired |
| ML training features & segments | next |
Prove it on Sprouts' catalog — don't take our word for it
We have not published a benchmark of enriched versus raw embeddings, and we won't quote one we didn't measure on your data. In Phase 0–1 we would:
- Embed the same Sprouts items twice: as they arrive today, and enriched (attributes, category path, standards codes, graph context).
- Score retrieval on a query set your merchants write (recall and nDCG@10), plus how often neighbours agree on dietary and allergen attributes.
- Report both views, including the queries where enrichment does not help — that tells us where to invest next.