liveBook · Manning

Chunking

As explained in The Art of AI Product Development

Fixed-size chunking is the division of documents into segments containing a predetermined number of tokens or other units.

Fixed-size chunking splits documents into segments with a predetermined length. For semantic search, similar-length chunks help balance two risks: short segments may lack enough meaning to match queries, while long segments may mix topics and produce noisy embeddings. section 7.2.2

Chunking lengthy documents

A collection of detailed reports and unstructured notes is split into 300-token chunks. The chunks are then embedded with MiniLM and stored in Weaviate for semantic search. section 7.2.2

How The Art of AI Product Development covers it

How deep it goes
Explains the length trade-off and gives a 300-token example, but does not detail chunk-boundary strategies.
Examples
Uses lengthy notes and reports split into 300-token chunks before MiniLM embedding and storage in Weaviate.
What you can do after
Apply it by splitting documents into similarly sized segments before embedding them for semantic search.
How it connects
Connects chunking to semantic embeddings, semantic search, and embedding databases.

Also explained in

Compare how 5 books explain chunking →

Related concepts

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