liveBook · Manning

Embedding

As explained in Data Storytelling with Altair and AI

An embedding is a numerical vector representation that captures semantic or structural properties of an object such as text, enabling comparison and computation in a continuous vector space.

An embedding is a numerical representation of data that makes text easier to index and retrieve. In a retrieval workflow, text is converted into vector embeddings before storage in a vector database. section 7.4.2

Product descriptions in Chroma

A product page for the New SmartX 2023 is loaded, split into chunks, converted with OpenAIEmbeddings, and persisted in a Chroma collection. A retrieval query then supplies relevant product details for a concise answer.

How Data Storytelling with Altair and AI covers it

How deep it goes
Defines numerical representations and demonstrates conversion, storage, indexing, and retrieval without explaining vector-generation internals.
Examples
Uses an HTML product description, overlapping text chunks, a Chroma collection, and a SmartX 2023 retrieval query.
What it assumes
Assumes textual data and a configured OpenAI API key for the demonstrated embedding and retrieval workflow.
What you can do after
Apply embeddings via LangChain, OpenAIEmbeddings, and Chroma to build a searchable retrieval pipeline.
How it connects
Connects embeddings to text chunking, vector databases, retrieval-augmented generation, and prompt templates.

Also explained in

Compare how 47 books explain embedding →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Data Storytelling with Altair and AI. The section links point to the parts of the book it draws on.