What the map shows
An embedding represents an ingredient as a list of numbers. Epicure-Cooc learned those numbers from patterns of ingredients appearing together in recipes. Its training used a graph of recipe co-occurrences. The links you see here are different: they connect a selected ingredient to its closest results in the resulting embedding.
Take a walk
Start at beef, choose onion, then choose one of onion's neighbors. Each click uses that ingredient as the new search query. The list ranks results by cosine similarity, which measures how closely two vectors point in the same direction. The small numbers on the map match the rank in the list. The first two principal components make the map drawable, but the layout can distort distances and overlap points. Trust the scores to compare neighbors.
This is an interactive walk through nearest-neighbor results. It does not show how a chatbot generates text, and it is not the graph Epicure used for training.
Ask a different question
What could replace beef? keeps the beef vector and all the dots in place. It ranks only ingredients allowed in VeganSwap's protein pool. Onion was close, but it is not in the pool. Mushroom is the highest-scoring candidate left. This isolates the candidate filter; it doesn't show every rule VeganSwap uses or replace a recipe-specific recommendation.
Read the lasagna story or open directly to beef's replacement candidates.
Data and credit
Based on Epicure-Cooc from Epicure: Navigating the Emergent Geometry of Food Ingredient Embeddings, Jakub Radzikowski and Josef Chen, KAIKAKU.AI (CC BY 4.0). This demo uses the vectors from VeganSwap, normalized and reduced to a 2D display. It publishes the projected coordinates and precomputed cosine rankings, not the training recipes or full vectors.