glossary

Context and retrieval

Embedding

An embedding is a vector a model assigns to a piece of text so that similar meanings land near each other, and it is a coordinate for search, not an answer, a summary, or a fact the agent can quote.

Abracadabra Team Glossary

How it works

An embedding model maps a string to a list of numbers. Queries and documents are mapped with the same model if you expect to compare them. Nearness, usually a cosine or a dot product, is then a stand-in for similar meaning. The vector does not store the sentence in a form a person can read back. You cannot quote it, and you cannot take a price or a torque limit out of it. To answer, something still has to fetch the original text the vector pointed at.

What you embed is the unit you can find later. Embed only the title, and the body is invisible. Embed a huge span, and the vector averages several topics into one point that is near nothing in particular. A model trained on general web text can place two part descriptions together and still miss a catalogue culture full of codes and abbreviations. The index and the query must use the same model. A vector from a different model is a coordinate on another map.

A worked example

A loader coupler that is near, not answered

A tractor dealer embeds each parts-catalogue description with one model and stores the vector beside the SKU. A counter assistant types "hydraulic coupler for the 90 series loader". The nearest vector belongs to a description of a 90 series hydraulic hose kit, with a different SKU and a different fitting. The vector search has done its job: those strings are close in meaning. It has not said whether the coupler fits, what it costs, or which SKU to order. The agent still has to open the catalogue row the vector indicated. If it answers from the neighbour alone, it sells the hose kit.

Illustrative example, not a production trace and not a measured result.

What goes wrong

  • The query is embedded with a newer model than the index, the neighbours are nonsense, and the team treats that as an empty catalogue.
  • A long page is embedded as one vector, so a specific fitting is averaged with unrelated accessories and never appears as a neighbour.
  • The agent treats a small distance as a fact about fitment or price, and quotes the nearest description without opening the row it came from. The neighbour is only a coordinate, and the catalogue row is the fact.

How to measure it

For a sample of real counter queries, record the neighbour SKU and whether a person accepts it as the same part. Note queries where the right SKU exists and is not in the near set, and which model and span were embedded.

After you change the embedding model or the span, rebuild is part of the change. Compare task success for that task and cohort, and read orders the person corrected to a different SKU.

How Abracadabra helps

A correction that swaps the suggested SKU for a similar description is the embedding neighbour being close and still the wrong part. After the model or the span changes, compare task success for that task and cohort.

When context is lost, people restate a fact or repeat the request. Abracadabra pins those corrections and repeated intents to the turn. After a change to what the agent keeps, compare task success for that task and cohort with the previous period.

Request access to read this on your own agent.

See it in your own agent's conversations.

Each task, the step where it stops, and the conversations behind every count. Free during early access.