Skip to content

Instantly share code, notes, and snippets.

View danilNil's full-sized avatar

Danil Nikiforov danilNil

View GitHub Profile
@izikeros
izikeros / README.md
Last active March 26, 2024 18:11
[split text fixed tokens] Split text into parts with limited length in tokens #llm #tokens #python

Text Splitter

Code style: black MIT license

A Python script for splitting text into parts with controlled (limited) length in tokens. This script utilizes the tiktoken library for encoding and decoding text.

Table of Contents