4 ms·
Show HN: Data Bonsai: a Python package to clean your data with LLMs
I've been doing some data cleaning for my fine tuning projects using LLMs, and decided to just build a package for it as a side project. Check it out here: https://github.com/databonsai/databonsai https://github.com/databonsai/databonsai
Some features:
- categorization (labelling), transformation and decomposition (text into structured format)
- validates llm outputs
- batch mode batches up the inputs/outputs so you don't send the prompt (schema, fewshot examples) for every row of data, saving a significant amount of tokens
There are some similarities to the Instructor repo, but this is simpler and made for datasets. Would love any feedback/suggestions (and a star if you like it!)
- ShamelessC 2y agoLooks handy. How reliable would you say it is?
- msp26 2y agoOh I'm interested to see how your batch prompt works. I've used the idea for a while and feel that it's very underrated.
- PaulaFox 2y ago[dead]
- 2024throwaway 2y agoExtractTransformer looks like it has a lot of potential. Going to try this out tomorrow at $DAYJOB.
- flyingwheels01 2y agoExcellent, thanks for sharing! will definitely give it a shot!