An embedding is a numerical vector representing an item. For memory recall, episodes and queries are projected into the same embedding space; smaller distances indicate greater similarity. Cosine similarity is one common distance measure. section 7.3.2
QdrantMemoryStore uses embeddings to index stored episodes and retrieve those most similar to a query. Qdrant can supply the embedding model, avoiding a separately managed model-service call. Choosing a model remains a design decision that can be evaluated with benchmarks and system-specific datasets. section 7.3.2 section 7.3
Recalling a similar episode
Store episodes for Hailstone sequences starting at 6 and 8, then query for a sequence starting at 6. Similarity search can return the episode for 6, including its recorded result and step count.
Figure 7.5 Recording an Episode as a point in the embedding space and recalling the most similar Episode objects to a given query

The diagram shows episodes and a query represented in one embedding space, with the closest episodes selected for recall. section 7.3.2







































































