liveBook · Manning

Vector

A vector is an ordered collection of components representing an element of a vector space.

How 3 Manning books explain it

Math for Web Design

A vector is a quantity representing magnitude and direction, often visualized as an arrow between points.

How it is used
Describes direction and distance for positioning, pointer interaction, and UI animation.
How deep it goes
Defines 2D components and magnitude, then works through vector operations in pointer-driven animations.
Examples
Uses a mouse follower, a click-target animation, and a draggable rotary control.
What you can do after
Apply it via JavaScript vector operations and CSS transforms to position and animate elements in response to pointer input.

Read how Math for Web Design explains vector →

AI Recommender Systems

An ordered collection of numerical components representing a point, direction, or quantity in a multidimensional space.

How it is used
Represents items, users, and preferences for similarity search and rating prediction.
How deep it goes
Defines dense representations and explains similarity measures, embedding generation, and latent-factor rating estimates.
Examples
Uses movie-description embeddings and Peter’s user and movie vectors to illustrate representation and rating prediction.
What you can do after
Apply cosine similarity or dot products to compare embeddings or estimate user-item ratings.

Read how AI Recommender Systems explains vector →

Retrieval Augmented Generation, The Foundational Ideas

A vector is an ordered list of numbers representing a position or direction in a mathematical space.

How it is used
Represents documents or queries for semantic search and retrieval.
How deep it goes
Defines vector geometry and cosine similarity, but stops short of embedding training details.
Examples
Uses numeric vectors, document-direction comparisons, and normalized vectors with equal cosine scores.
What you can do after
Evaluate vector direction, magnitude effects, and cosine-similarity scores in semantic retrieval.

Read how Retrieval Augmented Generation, The Foundational Ideas explains vector →

Also covered in

What to know first

Related concepts

Questions about vector

What is vector?

A vector is an ordered collection of components representing an element of a vector space.

Which Manning books explain vector?

Math for Web Design, AI Recommender Systems and Retrieval Augmented Generation, The Foundational Ideas.

What should I know before learning vector?

Manning books that teach vector usually introduce array, distance, language model and point first.

What is the difference between vector and point?

A vector is an ordered collection of components representing an element of a vector space. A point is a zero-dimensional location in a geometric or coordinate space, commonly represented by an ordered set of coordinate values.

What kinds of vector are there?

Kinds of vector include vector-to-vector product, one-hot vector and embedding.

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.