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!

Musicians must embrace 'unstoppable force' of AI, Eurythmics' Dave Stewart urges

https://www.theguardian.com/music/2025/dec/05/musicians-must-embrace-unstoppable-force-of-ai-eury...
1•binning•3m ago•0 comments

Supercomputer Creates One of the Most Realistic Virtual Brains Ever Seen

https://www.sciencealert.com/supercomputer-creates-one-of-the-most-realistic-virtual-brains-ever-...
1•wjSgoWPm5bWAhXB•3m ago•0 comments

Why do so many girls in Blackpool want to become boys?

https://juliebindel.substack.com/p/why-do-so-many-girls-in-blackpool-a6a
1•binning•5m ago•0 comments

Internet became 'enshittified' – and how to fix it

https://www.rnz.co.nz/news/on-the-inside/581142/how-internet-became-enshittified-and-how-to-fix-it
3•billybuckwheat•5m ago•0 comments

Show HN: Honest Reviews Club – Deep, transparent digital product reviews

https://honest-reviews.club/
1•launchzilla•9m ago•0 comments

Rape victims will no longer be depicted as serial liars in England and Wales

https://www.theguardian.com/society/2025/dec/02/rape-victims-england-wales-protected-serial-liar-...
4•binning•12m ago•0 comments

A series of tricks and techniques I learned doing tiny GLSL demos

https://blog.pkh.me/p/48-a-series-of-tricks-and-techniques-i-learned-doing-tiny-glsl-demos.html
1•ux•15m ago•0 comments

Who Invented ClassPass?

https://twitter.com/JonasBrandon/status/1997694250692293069
1•metricmissions•16m ago•0 comments

"They're not designed for that": An ocean robot's lucky Antarctic discoveries

https://reportearth.substack.com/p/one-of-my-best-stories-was-about
1•MaysonL•18m ago•0 comments

Key (Programming) Language Features – Does Yours Qualify?

https://wiki.c2.com/?KeyLanguageFeature
1•gurjeet•21m ago•0 comments

Future of Vancouver's repair cafés uncertain after city cuts funding for 2026

https://www.cbc.ca/news/canada/british-columbia/city-of-vancouver-cuts-funding-repair-cafe-9.7006210
2•cf100clunk•23m ago•0 comments

Did Asteroids Invent Gum Billions of Years Ago?

https://www.universetoday.com/articles/did-asteroids-invent-gum-billions-of-years-ago
3•fcpguru•26m ago•0 comments

Thoughts on AI progress (Dec 2025)

https://www.dwarkesh.com/p/thoughts-on-ai-progress-dec-2025
2•paulpauper•31m ago•0 comments

How Much Are US Firms Using AI Tools?

https://conversableeconomist.com/2025/12/02/how-much-are-us-firms-using-ai-tools/
1•paulpauper•31m ago•0 comments

Pyramids to Columns

https://blog.andrewyang.com/p/pyramids-to-columns
1•paulpauper•31m ago•0 comments

One week left to wean Australian kids off social media platforms

https://www.themandarin.com.au/304293-one-week-left-to-wean-australian-kids-off-social-media-plat...
1•mooreds•32m ago•0 comments

High-quality, ubiquitous, and portable telemetry for effective observability

https://opentelemetry.io/
1•mooreds•35m ago•0 comments

Could a Gut Hormone Be Holding the Key to Switching on Human Fat Burning?

https://comuniq.xyz/post?t=593
2•01-_-•35m ago•0 comments

Yahoo Terms of Service

https://legal.yahoo.com/us/en/yahoo/terms/otos/index.html
1•mooreds•37m ago•1 comments

X blocks EU Commission's advertising account after €120M fine

https://www.euractiv.com/news/x-blocks-eu-commissions-advertising-account-after-e120-million-fine/
3•giuliomagnifico•37m ago•3 comments

Preparing your repo for AI development

https://www.speakeasy.com/blog/making-gram-ai-friendly
1•subomi•38m ago•0 comments

The Inverted Triangle Architecture: how to manage large CSS Projects (2017)

https://www.freecodecamp.org/news/managing-large-s-css-projects-using-the-inverted-triangle-archi...
1•ciconia•40m ago•0 comments

Is There Any Hope for Asynchronous Design? (2024)

https://semiengineering.com/is-there-any-hope-for-asynchronous-design/
3•DustinEchoes•44m ago•0 comments

Solar Saved Pakistan's Economy [video]

https://www.youtube.com/watch?v=zEL1vcA6VuI
3•thelastgallon•44m ago•0 comments

I Tried and Failed to Rebuild the 1996 Space Jam Website with Claude

https://j0nah.com/i-failed-to-recreate-the-1996-space-jam-website-with-claude/
14•thecr0w•47m ago•8 comments

India's Biggest Airline Falls into Chaos, Canceling More Than 1k Flights

https://www.nytimes.com/2025/12/05/business/india-indigo-airline-cancelations.html
2•bookofjoe•49m ago•1 comments

Prosopometamorphopsia and Facial Hallucinations [pdf]

https://www.thelancet.com/journals/lancet/article/PIIS0140-6736(14)61690-1/fulltext
1•thunderbong•49m ago•0 comments

Sega Dreamcast port of Star Fox 64

https://github.com/jnmartin84/sf64-dc
1•Venn1•51m ago•0 comments

Endangered bottlenose whale population begins to recover off Canada's east coast

https://news.mongabay.com/2025/12/a-rare-bright-spot-for-whales-decades-of-conservation-pay-off-f...
5•randycupertino•52m ago•0 comments

The Quest to Replace Passwords: a comparative evaluation of Web authn schemes

https://www.cl.cam.ac.uk/techreports/UCAM-CL-TR-817.html
2•BinaryIgor•56m ago•0 comments