frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Fast and Quality Code Chunking with Chonkie

1•snyy•7mo ago
Hi HN,

We’re Chonkie (https://github.com/chonkie-inc/chonkie) — we build open source tools that help split documents into meaningful chunks for use with AI models.

When you use LLMs over large documents or codebases, you often need to break them into smaller parts to fit the model’s context window. Our chunkers do this in a smart way: they preserve structure and meaning, so only the most relevant pieces are passed into the model. This reduces hallucinations, avoids confusion, and improves performance and accuracy.

Today we’re launching our Code Chunker — a fast, structure-aware way to break down source code into high-quality, token-aware chunks.

How it works:

(See the code: https://github.com/chonkie-inc/chonkie/blob/main/src/chonkie...)

Code Chunker uses tree-sitter (https://tree-sitter.github.io/tree-sitter/) to parse your code into an abstract syntax tree (AST). It then recursively merges and groups nodes in a way that respects both code structure and token limits.

It supports all languages that tree-sitter supports, and is designed to preserve formatting and semantics. Large functions or class definitions won’t be split in the middle of a block — instead, we dive recursively into the AST to produce clean, coherent chunks that fit your configured token budget.

What it’s useful for:

  - Embedding-based code search

  - RAG (retrieval-augmented generation) over codebases

  - Long-context analysis of code

  - Preparing repos for fine-tuning or pretraining
Try it out:

  - Open source package: https://docs.chonkie.ai/chunkers/code-chunker

  - Hosted playground (free with account): https://cloud.chonkie.ai
Happy Chonking!

A research workspace that cuts through chaotic paper overload

https://stayacademic.com/
1•eliotbrown•3m ago•2 comments

The Miata Is a Better Sports Car Than the S2000

https://www.roadandtrack.com/reviews/a34192817/miata-better-than-s2000-review/
1•kerim-ca•4m ago•1 comments

Melatonin: More Than You Wanted to Know (2018)

https://slatestarcodex.com/2018/07/10/melatonin-much-more-than-you-wanted-to-know/
1•tosh•4m ago•0 comments

Apple Design Leadership Change: Bad Dye Job

https://daringfireball.net/2025/12/bad_dye_job
2•walterbell•7m ago•1 comments

TidesDB – A fast modern solution for transactional key-value storage

https://tidesdb.com
1•alexpadula•8m ago•0 comments

Impacts of working from home on mental health tracked in study of 16K Aussies

https://www.abc.net.au/news/2025-12-05/australian-working-from-home-mental-health-impacts-tracked...
3•anotherevan•10m ago•0 comments

It's Not Your Codebase

https://www.seangoedecke.com/not-your-codebase/
1•passenger•13m ago•0 comments

Gen Z Loses Faith in America

https://www.axios.com/2025/12/04/gen-z-ai-economic-anxiety-harvard-poll
2•skx001•14m ago•1 comments

Ferrocene 25.11.0 Now Available

https://ferrous-systems.com/blog/ferrocene-25-11-0/
1•birdculture•16m ago•0 comments

Harvard Youth Poll – Gen Z Is Rapidly Losing Faith in America

https://iop.harvard.edu/youth-poll/51st-edition-fall-2025
2•skx001•17m ago•2 comments

Is the iPad Ready to Be a Computer?

https://reviews.ofb.biz/safari/article/1374.html
1•trbutler•17m ago•0 comments

I want to build a chip fab in Canada

https://ontario-chips.vercel.app/
1•collinmanderson•17m ago•1 comments

The Next Robotics Revolution

https://mtmason.com/the-next-robotics-revolution/
1•aerodog•18m ago•0 comments

Year84

https://www.amazon.com/year84-Brennan-Conaway/dp/B0CGX5RJWD
1•sandinmyjoints•18m ago•0 comments

PDF Specification Archive

https://pdfa.org/resource/pdf-specification-archive/
1•gjvc•18m ago•0 comments

Coliss – TypeQuicker Typing App

https://coliss.com/articles/build-websites/operation/work/ai-typing-application-typequicker.html
1•absoluteunit1•21m ago•0 comments

"Drug Wars" Made Narcotics Fun (In the 80s)

https://alexlovendahl.com/2024/06/07/drug-wars/
1•Papazsazsa•21m ago•0 comments

ToddyCat tools steal Outlook emails and Microsoft 365 tokens

1•redmug•21m ago•0 comments

What we learned building production-grade Postgres CDC

https://clickhouse.com/blog/postgres-cdc-year-in-review-2025
1•saisrirampur•22m ago•0 comments

Microsoft is quietly walking back its diversity efforts

https://www.theverge.com/tech/838079/microsoft-diversity-and-inclusion-changes-notepad
1•speckx•23m ago•1 comments

Stephen Lemay '93 Horae

https://www.spshorae.com/fall-2017/2017/11/29/software-designer-stephen-lemay-93
2•tosh•23m ago•0 comments

Osaka Kansai Expo Globe-Shaped Aquaponics "Cradle of Life" [pdf]

https://2025osaka-pavilion.jp/img/outdoor/aquaponics/pdf/aquaponics-web_english_250423.pdf
1•gnabgib•24m ago•0 comments

Integers, fractions, and decimals are different things to kids (2015)

https://mikesmathpage.wordpress.com/2015/03/06/integers-fractions-and-decimals-are-totally-differ...
1•ColinWright•24m ago•0 comments

Jane Street's Trading Haul Juiced by Surging Bet on Anthropic

https://www.bloomberg.com/news/articles/2025-12-04/jane-street-s-trading-haul-juiced-by-surging-b...
2•petethomas•25m ago•0 comments

My Favorite Principle

https://codestyleandtaste.com/my-favorite-principle.html
1•birdculture•28m ago•0 comments

Amazon AI Factories (On-Prem Is Back)

https://www.aboutamazon.com/news/aws/aws-data-centers-ai-factories
1•neehao•30m ago•0 comments

Open Source Config Data Management Tools for Data Teams

https://configmat.com/
1•uzomaemuchay•30m ago•0 comments

SailPoint's Authorization Opportunity

https://strategyofsecurity.com/p/sailpoints-authorization-opportunity
1•mooreds•30m ago•0 comments

Time-blocking tool that creates a daily schedule from your to-dos

1•lvfrm•32m ago•1 comments

The Halo Remake – Balancing the Old and the New

https://relativenostalgia.com/posts/the-halo-remake-balancing-the-old-and-the-new
1•speckx•35m ago•0 comments