liveBook · Manning

Embedding

A numerical vector representation of an item or input that encodes features or relationships useful for computational tasks.

How 47 Manning books explain it

Natural Language Processing in Action, Second Edition

A vector representation is a numerical vector that encodes the properties or meaning of a text, statement, word, or document.

How it is used
Enables semantic search, word comparison, analogies, and question matching when exact word overlap is insufficient.
How deep it goes
Defines word embeddings, demonstrates nearest neighbors and vector arithmetic, and outlines nearby-word training without detailing the training algorithm.
Examples
Uses job-title nearest neighbors, word analogies, and a FAQ bot matching differently worded questions.
What you can do after
Apply it via a word-vector index to inspect semantic neighbors or use vector arithmetic to query analogies.

Read how Natural Language Processing in Action, Second Edition explains embedding →

Build a Text-to-Image Generator (from Scratch)

An embedding is a numerical vector representation of an input or discrete item in a learned feature space.

How it is used
Supplies numerical inputs for transformers and shared representations for text–image matching and conditional image generation.
How deep it goes
Works through lookup dimensions, positional addition, image-patch projection, and retrieval; distinguishes token-level vectors from whole-input summaries.
Examples
Uses a four-token German phrase, CIFAR-10 image patches, and a Flickr 8k prompt-to-image search.
What you can do after
Build it from scratch for transformer inputs and image patches, or apply it via CLIP to rank images against a prompt.

Read how Build a Text-to-Image Generator (from Scratch) explains embedding →

AI-Powered Search

A vector representation is a data structure or encoding used to store and work with the components of a vector.

How it is used
Represents content meaning as vectors for similarity-based query interpretation, ranking, and personalized search.
How deep it goes
Defines vectors and embeddings, works through query–document cosine scores, and shows model encoding; defers the model-training mechanics.
Examples
Uses house attributes, an “apple juice” query and documents, food-item similarity, and Python-generated product vectors.
What you can do after
Apply it via SentenceTransformer to encode product text, or evaluate/understand query–document similarity and embedding-based personalization.

Read how AI-Powered Search explains embedding →

Math and Architectures of Deep Learning

An ordered mathematical object representing a point or direction in a coordinate space.

How it is used
Represents inputs, outputs, parameters, and documents as ordered numeric objects for machine-learning computation and comparison.
How deep it goes
Defines vectors geometrically and computationally, then develops norms, dot products, matrix transformations, sparse representations, and PyTorch operations.
Examples
Uses hardness–sharpness inputs, image-class probability outputs, word-frequency documents, and PyTorch tensor creation and slicing.
What you can do after
Apply it via PyTorch to create, index, slice, compare, and transform vector representations.

Read how Math and Architectures of Deep Learning explains embedding →

Graph Neural Networks in Action

A node embedding is a numerical vector representation of a graph node that captures information about the node and its graph context.

How it is used
Uses compact node vectors for graph visualization and as features for classification or other predictive tasks.
How deep it goes
Works through Node2Vec generation, GCN message-passing outputs, preprocessing, and training, with intuitive rather than rigorous mathematical treatment.
Examples
Uses Political Books co-purchases, retrieved Node2Vec vectors, GCN outputs, and a labeled-subset classification comparison.
What you can do after
Build it from scratch with Node2Vec or PyTorch Geometric, then align, inspect, and use node vectors for prediction.

Read how Graph Neural Networks in Action explains embedding →

Deep Learning with Python, Third Edition

An ordered numeric representation used here to encode source tokens and target tokens for attention computations.

How it is used
Maps token IDs to learned vectors for text classification and language modeling.
How deep it goes
Explains vector geometry, lookup shapes, training, and pretraining through worked Keras models, without deriving embedding optimization mathematically.
Examples
Uses “movie” versus “film,” IMDb sentiment models, missing-word prediction, and a character-level language model.
What you can do after
Apply it via Keras Embedding layers, including task-specific training or initialization from pretrained Continuous Bag of Words weights.

Read how Deep Learning with Python, Third Edition explains embedding →

Advanced Algorithms and Data Structures

A vector is a mathematical quantity with magnitude and direction that can represent a displacement or directed geometric segment.

How it is used
Turns abstract graphs into assessable drawings and images into feature vectors for similarity search.
How deep it goes
Develops graph-layout validation and crossing checks with pseudocode, while treating image feature extraction as a black box.
Examples
Uses circuit layouts, randomly sampled graph drawings, and catalog-image feature vectors as concrete cases.
What you can do after
Build it from scratch by assigning graph coordinates, validating the drawing, and comparing candidates by edge crossings.

Read how Advanced Algorithms and Data Structures explains embedding →

LLMs in Production

A vector is an ordered numerical representation of values in a mathematical space.

How it is used
Supports token representation, similarity-based retrieval, and organization of text or multimodal data.
How deep it goes
Explains context-learned meaning and distance comparison, then demonstrates encoding and nearest-neighbor search without deriving embedding mathematics.
Examples
Uses a word-vector analogy, a context-window prediction, and a SentenceTransformer dataset indexed with FAISS.
What you can do after
Apply it via SentenceTransformer and FAISS to encode text and retrieve nearby examples, while checking that vectors share a model and space.

Read how LLMs in Production explains embedding →

Grokking AI Applications

An embedding is a numerical vector representation of a text unit that encodes information used for model computations.

How it is used
Supports token computation for generation and semantic retrieval of document chunks in RAG.
How deep it goes
Defines embeddings through visual examples and RAG steps, while deferring where embedding coordinates originate.
Examples
Uses clustered city-word coordinates and pet-related document chunks positioned in a two-dimensional embedding space.
What you can do after
Apply it via Langflow components to embed document text, store vectors, and retrieve relevant chunks for an LLM.

Read how Grokking AI Applications explains embedding →

Outlier Detection in Python

An embedding is a numerical representation of an item in a continuous vector space that preserves selected properties or relationships of the original data.

How it is used
Represents complex inputs as numeric features for prediction, transfer learning, and outlier detection.
How deep it goes
Defines vector representations and explains autoencoder and proxy-task creation, then examines why direct outlier detection on them can fail.
Examples
Uses mug-image vectors, rotation prediction, and feature subsets of table rows to illustrate different representations.
What you can do after
Evaluate/understand whether an embedding is suitable for outlier detection rather than assuming a prediction-oriented vector will work.

Read how Outlier Detection in Python explains embedding →

Learn Generative AI with PyTorch

A continuous numeric encoding that captures the meaning of an input sentence for downstream decoding.

How it is used
Supplies compact numerical inputs for LSTM and Transformer models used in text generation, translation, and music generation.
How deep it goes
Explains semantic proximity, one-hot tradeoffs, vector dimensions, and a trainable PyTorch lookup table; does not derive an embedding-learning objective.
Examples
Uses a five-word phrase, an LSTM embedding layer, English-to-French token vocabularies, and musical-event tokens.
What you can do after
Build it from scratch with PyTorch’s `nn.Embedding` to turn token indexes into model-ready vectors.

Read how Learn Generative AI with PyTorch explains embedding →

Knowledge Graphs and LLMs in Action

A feature vector is a numerical vector whose components represent measurable characteristics of an input for machine learning.

How it is used
Deploys numerical feature vectors to make graph data usable by conventional machine-learning and downstream prediction algorithms.
How deep it goes
Explains vector design, binary encoding, identifier alignment, and path-based scoring, while deferring automated representation learning to later treatment.
Examples
Uses binary movie-genre tensors, user–movie rating graphs, and metapath-based drug–disease scores as concrete vector representations.
What you can do after
Build it from scratch by encoding domain properties into numerical components and preparing them for graph-based prediction pipelines.

Read how Knowledge Graphs and LLMs in Action explains embedding →

Inside Deep Learning: Math, Algorithms, Models

A one-dimensional array treated as a tensor and used as a model input or feature representation.

How it is used
Represents one datapoint or a collection of features supplied as input to tensor-based computations and models.
How deep it goes
Defines vectors by dimensionality and shape, then connects feature vectors to matrix-vector multiplication without deriving implementation internals.
Examples
Uses a four-value PyTorch vector, tensor shape output, and a feature vector passed to nn.Linear(d, C).
What you can do after
Apply it via PyTorch by constructing a one-dimensional tensor and matching its feature count to a linear layer's inputs.

Read how Inside Deep Learning: Math, Algorithms, Models explains embedding →

Deep Learning with R, Third Edition

An embedding is a learned numerical vector representation of an object, token, or other data item.

How it is used
Turns token IDs into learned vectors for text models and supplies representations for segmentation and document retrieval.
How deep it goes
Explains word-vector geometry, lookup shapes, and backpropagation, then implements CBOW pretraining without a formal mathematical derivation.
Examples
Uses movie-review classification, nearby-word prediction, and transfer of pretrained embedding weights into an LSTM.
What you can do after
Apply it via Keras Embedding layers to train token vectors or initialize an LSTM with pretrained CBOW weights.

Read how Deep Learning with R, Third Edition explains embedding →

Build AI-Enhanced Web Apps

A vector is an ordered collection of numerical values representing a point, direction, or feature set in a mathematical space.

How it is used
Enables semantic search, recommendations, and retrieval of document context for AI-powered web applications.
How deep it goes
Works through SDK embedding calls and a manual cosine-similarity search, then outlines vector-store retrieval without deriving the embedding model.
Examples
Uses restaurant recommendations, an IT support question-and-answer search, and uploaded-document chat to make retrieval concrete.
What you can do after
Build it from scratch with JavaScript and the Vercel AI SDK to embed support questions, compare a query, and return an answer.

Read how Build AI-Enhanced Web Apps explains embedding →

Sutskever's List

A vector is a one-dimensional ordered collection of numerical values.

How it is used
Turns token IDs into learned numerical inputs for a Transformer and represents words in a space where contextual similarities can emerge.
How deep it goes
Defines vector lookup, dimensions, and the resulting token matrix; illustrates word-vector arithmetic without deriving embedding training.
Examples
Uses a token-ID lookup and the Paris − France + Italy ≈ Rome analogy to make learned coordinates concrete.
What you can do after
Evaluate/understand how learned vectors supply model inputs and why one fixed-length vector can become a sequence bottleneck.

Read how Sutskever's List explains embedding →

MongoDB 8.0 in Action, Third Edition

A text embedding is a vector representation of text that captures semantic relationships and contextual nuances.

How it is used
Enables semantic retrieval of stored content for vector search and retrieval-augmented generation.
How deep it goes
Explains numerical representation and same-model query requirements without deriving embedding-model internals.
Examples
Uses an OpenAI API request and a “village life” search over embedded movie plots.
What you can do after
Apply it via Atlas Vector Search to index stored embeddings and retrieve documents using an embedded query.

Read how MongoDB 8.0 in Action, Third Edition explains embedding →

Transformers in Action

A fixed-length vector is an ordered numerical representation with a predetermined number of components.

How it is used
Supports semantic comparison and retrieval, including document selection for retrieval-augmented generation and alignment across modalities.
How deep it goes
Defines vector representations, contrasts static and contextual embeddings, and demonstrates encoding and similarity; does not derive embedding-model training.
Examples
Uses ambiguous “bank” contexts, a two-sentence embedding array, query–document similarity scores, and projected image patches.
What you can do after
Apply it via SentenceTransformer to encode sentences and compare query and document vectors with cosine similarity.

Read how Transformers in Action explains embedding →

Build a Large Language Model (From Scratch)

A numerical representation used to encode text or other objects for neural computation.

How it is used
Converts categorical text and other nonnumeric data into representations usable by neural-network operations.
How deep it goes
Defines continuous vector representations and briefly explains Word2Vec, stopping short of implementation details.
Examples
Uses a three-dimensional numerical vector, Word2Vec, and a scatterplot grouping birds separately from countries and cities.
What you can do after
Apply it via embedding models to encode nonnumeric data for neural-network processing.

Read how Build a Large Language Model (From Scratch) explains embedding →

How Large Language Models Work

A vector is an ordered numerical quantity that represents magnitude and direction or encodes data in a multidimensional space.

How it is used
Represents tokens as manipulable numerical inputs for neural networks and transformer text generation.
How deep it goes
Explains multidimensional representations, semantic relationships, and positional additions, but stops short of mathematical derivations.
Examples
Uses stock, capital, rare, and debt to show why one-number representations cannot capture varied word relationships.
What you can do after
Evaluate how language models turn tokens into multidimensional numerical representations and why positional information is necessary.

Read how How Large Language Models Work explains embedding →

Optimization Algorithms: AI techniques for design, planning, and control problems

A function that maps input entities or features into numerical representations used by a model.

How it is used
Provides lower-dimensional graph representations for node classification, link prediction, community detection, and optimization pipelines.
How deep it goes
Defines the encoder and similarity objective, distinguishes transductive from inductive methods, and illustrates a GCN implementation; full TSP training is deferred.
Examples
Uses a soccer-player relationship graph, Cora node embeddings with PyTorch Geometric, and a traveling-salesperson solution pipeline.
What you can do after
Apply it via PyTorch Geometric to generate node representations with a GCN, then distinguish those representations from downstream predictions or solutions.

Read how Optimization Algorithms: AI techniques for design, planning, and control problems explains embedding →

Grokking AI Algorithms, Second Edition

An input vector is an ordered one-dimensional array of values supplied to a computational layer.

How it is used
Turns token IDs or text labels into numeric vectors that neural networks can process.
How deep it goes
Works through matrix lookup and positional addition, then shows embedding injection; stops short of deriving how training updates each value.
Examples
Traces a four-value token embedding through positional addition and uses a happy-face label to illustrate image-generation guidance.
What you can do after
Build it from scratch: map toy token IDs to vectors and add positional encodings to form Transformer inputs.

Read how Grokking AI Algorithms, Second Edition explains embedding →

Graph Algorithms for Data Science

Node embedding is a technique that represents graph nodes as numerical vectors so that selected structural or relational similarities are preserved.

How it is used
Transforms graph structure into features for node classification and role-oriented analysis.
How deep it goes
Explains node2vec through skip-gram, random walks, configuration, and similarity checks, while deferring hyperparameter optimization.
Examples
Uses friendship interests, coauthorship bridges, routers, and weighted shared-audience stream graphs.
What you can do after
Apply it via Neo4j Graph Data Science node2vec and evaluate vectors before training a stream-language classifier.

Read how Graph Algorithms for Data Science explains embedding →

AI Agents in Action, Second Edition

A dense vector is a numerical vector in which the representation generally assigns a value to every dimension.

How it is used
Uses dense vectors to retrieve relevant document chunks or memories as context for agent answers.
How deep it goes
Explains vector size, semantic proximity, and retrieval steps; sketches model training without deriving neural-network internals.
Examples
Uses vehicle-versus-car matching, document-vector visualization, and exercises comparing TF-IDF rankings with OpenAI embeddings.
What you can do after
Apply it via OpenAI embeddings and Chroma DB to compare similarities, persist vectors, and retrieve context for a RAG agent.

Read how AI Agents in Action, Second Edition explains embedding →

AI Agents and Applications

A vector type is a database data type that represents numerical vector values as stored fields.

How it is used
Indexes document chunks and questions for semantic retrieval in RAG, and enables similarity search over selected SQL fields.
How deep it goes
Defines embeddings as numerical vectors and walks through ingestion, retrieval, storage, and dimension compatibility without deriving the embedding model.
Examples
Uses a “feline animals” search, a Chroma ingestion setup, and a PostgreSQL VECTOR column for first names.
What you can do after
Build it from scratch with LangChain embedding components and a vector store, or operate/configure a pgvector column for semantic search.

Read how AI Agents and Applications explains embedding →

Deep Learning with PyTorch, Second Edition

A one-dimensional numeric data structure used here as a mathematical object on which sums and dot products can be computed.

How it is used
Represents words, characters, images, or numeric inputs as vectors usable by downstream models.
How deep it goes
Explains compact vectors and learned lookup rows, then visualizes trained character vectors; it does not detail every embedding method.
Examples
Uses a PyTorch character lookup, a three-dimensional character plot, image captioning, and diffusion-model inputs.
What you can do after
Apply it via PyTorch nn.Embedding to replace character indices with trainable vectors for a sequence model.

Read how Deep Learning with PyTorch, Second Edition explains embedding →

The Art of AI Product Development

A numeric vector representation that encodes the semantic or structural properties of an item for computational comparison.

How it is used
Supports meaning-based document retrieval for standalone search and retrieval-augmented generation.
How deep it goes
Explains contextual similarity and document-vector storage conceptually, without a mathematical derivation.
Examples
Uses a misspelled contract, apple–banana–car comparisons, and date-filtered cloud-computing reports.
What you can do after
Evaluate/understand it by recognizing when semantic retrieval needs exact-term matching, metadata filters, or reranking.

Read how The Art of AI Product Development explains embedding →

Build Python Web Apps with Streamlit

A text embedding is a numerical vector representation of text that captures features useful for semantic comparison.

How it is used
Supports similarity search for knowledge-base excerpts relevant to a customer’s question in RAG.
How deep it goes
Defines vectors through a movie-rating analogy and configures text embeddings for retrieval, without explaining embedding-model internals.
Examples
Uses movie ratings as a vector analogy and support-article chunks as a searchable chatbot knowledge base.
What you can do after
Apply it via OpenAIEmbeddings and Pinecone to ingest support articles and retrieve relevant excerpts for a chatbot.

Read how Build Python Web Apps with Streamlit explains embedding →

Introduction to Generative AI, Second Edition

An embedding is a numerical internal representation of data that captures features useful for computational processing.

How it is used
Supports similarity-based text retrieval and explains how language models represent words numerically.
How deep it goes
Defines embeddings through spatial similarity and walks through document retrieval, without detailing how vectors are calculated.
Examples
Uses cucumber–pickle proximity, gender-stereotyped word analogies, and a chatbot retrieving a company travel policy.
What you can do after
Evaluate/understand why embedding-based retrieval may find relevant documents and why its representations warrant scrutiny for bias.

Read how Introduction to Generative AI, Second Edition explains embedding →

Building Reliable AI Systems

An embedding is a numerical representation of content that captures semantic meaning in a form suitable for comparison.

How it is used
Powers semantic retrieval of document passages for grounded RAG answers.
How deep it goes
Defines vector representations and similarity measures, then develops indexing and query workflows; model-generation internals are deferred.
Examples
Uses therapy-coverage questions, differently worded reimbursement queries, and a Pinecone health-care policy assistant.
What you can do after
Apply it via SentenceTransformer and Pinecone to index policy chunks and retrieve matches with metadata filters.

Read how Building Reliable AI Systems explains embedding →

The AI Pocket Book

A vector representation used to encode the meaning of an image, text, or other content.

How it is used
Represents the meaning of tokens, images, text, and other content for comparison, prediction, and retrieval.
How deep it goes
Explains dimensions, meaning-space geometry, dot products, projections, and learned parameters, but not the exact semantics of individual dimensions.
Examples
Uses dog, elephant, anaconda, snake, beetle, and ladybug vectors, plus PyTorch embedding and projection operations.
What you can do after
Understand how numerical representations encode meaning and support similarity comparisons, projections, language models, image models, and retrieval.

Read how The AI Pocket Book explains embedding →

Generative AI in Action

A vector is an ordered sequence of numerical values representing a point or quantity in a multidimensional space.

How it is used
Uses embeddings to compare text by meaning and retrieve relevant proprietary-data chunks for RAG chat.
How deep it goes
Defines vector similarity and demonstrates API creation and indexed retrieval, without deriving the mathematics of embedding models.
Examples
Shows sample word vectors, an OpenAI embedding API call, and Redis retrieval for chat over blog posts.
What you can do after
Apply it via OpenAI’s API and Redis to create embeddings and retrieve relevant chunks for a RAG chat application.

Read how Generative AI in Action explains embedding →

Data Pipelines with Apache Airflow, Second Edition

A vector is an ordered numerical quantity representing a point, direction, or set of measurable attributes in a multidimensional space.

How it is used
Enables vector similarity search over recipes so RAG can retrieve context for a user’s question.
How deep it goes
Explains vectors through a two-dimensional analogy and cosine similarity, but sets embedding-model training details aside.
Examples
Uses flavor coordinates, a poke-bowl-to-sushi comparison, a lasagna question, and Weaviate vectorizer configuration.
What you can do after
Operate/configure it by choosing a recipe embedding model, configuring a Weaviate collection, and embedding questions for retrieval.

Read how Data Pipelines with Apache Airflow, Second Edition explains embedding →

Data Analysis with LLMs

An embedding is a numerical vector representation of an object that is intended to preserve meaningful properties of that object.

How it is used
Turns text into comparable vectors for document clustering, retrieval, and outlier detection.
How deep it goes
Walks through endpoint calls, vector extraction, retries, and comparisons without explaining how models generate the vectors internally.
Examples
Uses clustered emails and poems, a Transformer-related question and document, and a Python embedding API call.
What you can do after
Apply it via OpenAI's embedding endpoint to compare texts, or via LlamaIndex to retrieve question-relevant data.

Read how Data Analysis with LLMs explains embedding →

Build an AI Agent (From Scratch)

A vector is an ordered collection of numerical values representing an object or its properties in a mathematical space.

How it is used
Enables semantic retrieval of relevant document chunks for an agent’s knowledge base or memory.
How deep it goes
Works through embedding generation and similarity comparison, then shows automatic embedding in a vector database; model training is described, not implemented.
Examples
Compares cat, kitten, and dog sentences, then retrieves quantum-related chunks from web results.
What you can do after
Build it from scratch with an embedding API and cosine similarity, or apply it via ChromaDB’s embedding function.

Read how Build an AI Agent (From Scratch) explains embedding →

Effective Conversational AI

A text embedding is a numerical vector representation that encodes semantic or contextual properties of text.

How it is used
Supports RAG search by matching embedded document chunks with semantically related user questions.
How deep it goes
Explains preprocessing, chunking, vector generation, storage, similarity search, and benchmarking without detailing embedding-model internals.
Examples
Uses document chunks, user questions, PharmaBot medical queries, vector databases, and alternative embedding-model configurations.
What you can do after
Evaluate embedding and indexing choices by generating vectors, running queries, and measuring retrieval and operational performance.

Read how Effective Conversational AI explains embedding →

Building LLM Applications with DSPy

A numerical vector representation of an item, such as text, that encodes useful features.

How it is used
Uses embeddings to select similar prompt demonstrations and retrieve article titles relevant to a question.
How deep it goes
Defines embeddings as floating-point vectors and works through retrieval setup, without detailing how an embedding model produces its values.
Examples
Uses airline utterances for demonstration selection and discount-coupon article titles for question-to-document matching.
What you can do after
Apply it via SentenceTransformer and DSPy to select prompt examples or retrieve the k closest titles from a corpus.

Read how Building LLM Applications with DSPy explains embedding →

Deep Learning with JAX

A rank-1 multidimensional array with one axis, used here for model outputs such as class probabilities.

How it is used
Defines vectors for representing model outputs and partitioning data in array computations.
How deep it goes
Explains rank, size, batching, vmap, dot products, and device sharding without developing vector internals.
Examples
Uses class-probability outputs, batched predictions, wide vectors, and two-dimensional mesh partitioning.
What you can do after
Apply it via JAX by distinguishing vector and batch shapes, using vmap, and interpreting sharded dot-product outputs.

Read how Deep Learning with JAX explains embedding →

Data Without Labels

A word embedding maps each word to a numerical vector whose geometry reflects usage-based meaning and relationships.

How it is used
Converts text into compact numerical features for language translation, chatbots, and generalized text models.
How deep it goes
Defines contextual vectors and outlines CBOW, skip-gram, and co-occurrence learning, while deferring deeper technical treatment to the original papers.
Examples
Uses gender, quality, and location analogies to illustrate relationships among embedded words.
What you can do after
Apply Word2Vec or GloVe to understand how corpus context produces word vectors and semantic neighborhoods.

Read how Data Without Labels explains embedding →

Financial AI in Practice

An embedding is a numerical vector representation of content that preserves properties useful for similarity comparison and retrieval.

How it is used
Enables semantic news search and matches investor representations with content for personalized discovery.
How deep it goes
Defines semantic proximity and shows a batched API workflow, but does not derive the embedding model’s internals.
Examples
Uses batched news embeddings saved to Parquet and an enriched financial-content feed paired with user vectors.
What you can do after
Apply it via the OpenAI API to embed cleaned news in batches and store vectors for semantic retrieval.

Read how Financial AI in Practice explains embedding →

Machine Learning for Tabular Data: XGBoost, Deep Learning, and AI

An embedding is a learned or constructed representation that maps high-dimensional data into a lower-dimensional space while preserving selected characteristics or relationships.

How it is used
Handles high-cardinality categorical features when deep-learning models are the preferred approach.
How deep it goes
Defines dimensionality reduction and contrasts embeddings with encoding, but defers their detailed implementation.
Examples
Uses categorical embeddings in shallow neural networks and names fastai Tabular, PyTorch Tabular, TabNet, SAINT, and DeepTables.
What you can do after
Choose embeddings for high-cardinality categorical data when applying deep-learning approaches to tabular problems.

Read how Machine Learning for Tabular Data: XGBoost, Deep Learning, and AI explains embedding →

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.

How it is used
Deploys embeddings to index and retrieve textual context for retrieval-augmented generation.
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 you can do after
Apply embeddings via LangChain, OpenAIEmbeddings, and Chroma to build a searchable retrieval pipeline.

Read how Data Storytelling with Altair and AI explains embedding →

Delivering Machine Learning Projects: From design to deployment

An embedding is a numerical vector representation that encodes meaningful properties of an input for comparison or downstream computation.

How it is used
Supports exploratory analysis of unstructured data through visualization and similarity search.
How deep it goes
Defines vector generation and typical dimensionality, but stops short of making raw coordinates directly interpretable.
Examples
Uses EfficientNet, BERT-derived models, Shakespeare’s plays, heat maps, FAISS, and Annoy as concrete exploration artifacts.
What you can do after
Apply it via foundational models and indexing tools to visualize or query structure in an unstructured corpus.

Read how Delivering Machine Learning Projects: From design to deployment explains embedding →

Machine Learning System Design

An embedding is a numerical vector representation of an object that places semantically or structurally similar objects near one another in a representation space.

How it is used
Encodes purchasing behavior patterns for product-related data pipelines.
How deep it goes
Explains transaction aggregation, user-item matrices, and factorization, but does not detail embedding mathematics or model tuning.
Examples
Uses Supermegaretail transactions aggregated into a customer–product matrix as the concrete example.
What you can do after
Build it from scratch by aggregating transactions and factorizing a user-item matrix.

Read how Machine Learning System Design explains embedding →

Machine Learning Algorithms in Depth

A vector is an ordered mathematical object representing magnitude and direction or coordinates in a vector space.

How it is used
Uses vectors to visualize high-dimensional data, represent words, and encode sequences for downstream learning tasks.
How deep it goes
Explains embedding roles through t-SNE, word vectors, and recurrent encoding, but defers detailed embedding mathematics.
Examples
Demonstrates embeddings with MNIST digit clusters, IMDb word vectors, sequence encodings, and RBF-induced infinite-dimensional feature vectors.
What you can do after
Apply it via t-SNE, KD trees, recurrent networks, and trainable embedding layers to visualize or classify structured data.

Read how Machine Learning Algorithms in Depth explains embedding →

Build Applications with Local AI Models on a Mac

An embedding is a numerical vector representation of an item, such as text, positioned to capture aspects of its meaning or features.

How it is used
Enables RAG applications to find relevant documents by comparing question and document vectors rather than matching keywords.
How deep it goes
Defines vectors and embeddings, then explains similarity search in plain language without detailing embedding-model internals.
Examples
Contrasts “dog” and “puppy” to show how similar meanings can be found without matching words.
What you can do after
Evaluate/understand why a RAG search can retrieve relevant documents when the question uses different words.

Read how Build Applications with Local AI Models on a Mac explains embedding →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.