bhavnicksm / chonkie

🦛 CHONK your texts with Chonkie ✨ - The no-nonsense RAG chunking library
https://pypi.org/project/chonkie/
MIT License
1.55k stars 57 forks source link

Use `__slots__` instead of `slots=True` for python3.9 support #34

Closed bhavnicksm closed 5 days ago

bhavnicksm commented 5 days ago

This pull request includes changes to various dataclasses to improve performance by using __slots__ and adding detailed docstrings for better documentation. The most important changes include modifications to the Chunk, SemanticSentence, SemanticChunk, Sentence, and SentenceChunk classes.

Changes to dataclasses for performance and documentation: