Vector
A vector is an ordered collection of components representing an element of a vector space.
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.
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.
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
- Geometry for Programmers
- Hidden InfluencesIn early access (MEAP)
- Graph Algorithms for Data Science
- Inside AI
- Julia as a Second Language
- Vibe EngineeringIn early access (MEAP)
- Effective Conversational AI
- Tiny CSS Projects
- Understanding AIIn early access (MEAP)
- Data Without Labels
- Financial AI in Practice
- Data Analysis with LLMs
What to know first
- arrayAn array is an ordered collection of elements organized in one or more dimensions and accessible by position or index.
- distanceA distance function assigns a numerical measure of separation or dissimilarity to pairs of points or objects in a defined space.
- language modelA language model is a computational model that represents patterns in linguistic sequences to assign probabilities, predict, generate, or evaluate language.
- pointA point is a zero-dimensional location in a geometric or coordinate space, commonly represented by an ordered set of coordinate values.
Related concepts
- pointcontrasts with · A point is a zero-dimensional location in a geometric or coordinate space, commonly represented by an ordered set of coordinate values.
- Math.atan2uses · Math.atan2 is a two-argument inverse tangent function that returns the angle, typically in radians, of a point from its signed coordinates while distinguishing quadrants.
- vector-to-vector productincludes · A vector-to-vector product is an operation combining two vectors according to a defined rule to produce a scalar or another vector.
- embeddingincludes · An embedding is a numerical vector representation of an item in a feature space, encoding selected properties or relationships for computational tasks such as comparison or retrieval.
- similarity searchused by · Similarity search is a retrieval technique that finds or ranks items by their similarity to a query, often by comparing feature or vector representations under a similarity or distance measure.
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.


