liveBook · Manning

Vectorization

As explained in Generative AI in Action

Vectorization is the transformation of data into numerical vectors suitable for computation, comparison, or model input.

Vectorization prepares data as numerical representations for use in generative AI applications. In a grounding layer, it helps make data from varied sources and formats compatible with LLMs. section 10.4

For text, the process involves embedding and vector database management. Choose embedding techniques and vector storage with data size, origin, change rate, and scalability in mind. section 10.4.2

Account for factors that affect how text is prepared for embedding and retrieval:

  • Match chunking to content length, the embedding model, query complexity, and how the application uses results. section 7.7.2
  • Balance retrieval accuracy against performance and cost when selecting a chunking approach. section 7.7.2

How Generative AI in Action covers it

How deep it goes
Defines text conversion through embedding and vector management, without detailing implementation or mathematical derivation.
What you can do after
Evaluate embedding and vector-storage choices against data size, origin, change rate, and scalability needs.
How it connects
Connects vectorization to data preprocessing, embeddings, vector databases, chunking, and retrieval-augmented generation.

Also explained in

Compare how 18 books explain vectorization →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Generative AI in Action. The section links point to the parts of the book it draws on.