Utils
Visualizer
Visualize your chunks and embeddings
The Visualizer
helps you visualize your chunks properly and compare different chunkers and settings with ease, either on the terminal or via HTML.
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.
The save
method will save the chunks to a HTML file.