Skip to content

Python: v0.1.0 - Initial Python Binding Release

Compare
Choose a tag to compare
@benbrandt benbrandt released this 08 Jun 20:48
· 568 commits to main since this release

What's Changed

  • Initial Python Bindings by @benbrandt in #13
  • Currently only includes a CharacterTextSplitter to test the release process.
from text_splitter import CharacterTextSplitter

# Maximum number of characters in a chunk
max_characters = 1000
# Optionally can also have the splitter trim whitespace for you
splitter = CharacterTextSplitter(trim_chunks=True)

chunks = splitter.chunks("your document text", max_characters)