Skip to main content
The Visualizer helps you visualize your chunks properly and compare different chunkers and settings with ease, either on the terminal or via HTML. Visualizer Example

Installation

To make use of the Visualizer, you’ll need to install the viz optional install.

Usage

To use the Visualizer, you’ll need to import it from chonkie.utils.
The Visualizer has two main methods: print and save. The print method will print the chunks to the terminal. It accepts a list of Chunk objects or plain strings.
The save method will save the chunks to a HTML file. Like print, it accepts Chunk objects or strings.
Visualizer Example