frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: Fast and Quality Code Chunking with Chonkie

1•snyy•1y 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!

Is MCP Good Yet?

https://ismcpgoodyet.com
1•handfuloflight•1m ago•0 comments

I was sick of $99 directory scams, so I built a fair 10-min rotation launchpad

https://spotmy.app/
1•ricotouring•1m ago•0 comments

Not Becoming a Cyborg

https://nolanlawson.com/2026/08/31/on-not-becoming-a-cyborg/
1•Refreeze5224•2m ago•0 comments

PokeVS – Guess the taller Pokémon, battle stats

https://poke-vs.com
1•AdamRichic•2m ago•0 comments

Retiring from the Project (Vv221)

https://lists.debian.org/debian-devel/2026/08/msg00318.html
1•OsrsNeedsf2P•3m ago•0 comments

Fastpotify

https://fastpotify.rocks/
1•nreece•5m ago•0 comments

GTA 6's Relationship Mechanic Is 'Cheating' on Your Real-Life Partner and Break

https://www.ign.com/articles/gta-6s-relationship-mechanic-is-cheating-on-your-real-life-partner-a...
1•FannyJoeStyles•5m ago•0 comments

Astronomers detect fastest known star in Milky Way

https://www.theguardian.com/science/2026/aug/19/astronomers-detect-fastest-known-star-in-milky-wa...
1•gmays•5m ago•0 comments

Ask HN: Why does HN hide the best comments and promote the worst?

1•RepResetNow•6m ago•0 comments

Tailcat: Tailscale Without Tailscale, by Tailscale

https://tailscale.com/blog/tailcat
1•ricochet11•9m ago•0 comments

FTC, States Sue Amazon over Secret Ad Surcharge Scheme

https://www.ftc.gov/news-events/news/press-releases/2026/08/ftc-states-sue-amazon-over-secret-ad-...
2•js2•13m ago•0 comments

Why Cargo's Yank Warning Became the Attack

https://medium.com/@chinmayshringi4/why-cargos-yank-warning-became-the-attack-74ec06042e8a
1•syumei•13m ago•0 comments

Ex-Crips leader found guilty in 1996 murder of rapper Tupac Shakur

https://www.bbc.com/news/articles/c24j5192j7jo
23•1659447091•17m ago•6 comments

China's CXMT Begins Production of Its HBM3E Memory

https://www.reuters.com/world/asia-pacific/chinas-cxmt-makes-breakthrough-advanced-memory-chips-i...
1•yogthos•19m ago•0 comments

Show HN: A Curated Library of Hero Sections from Fast-Growing Startups

https://www.herotxt.page/
1•lynn_xx•20m ago•0 comments

How My Students Think About AI

https://www.lesswrong.com/posts/ySXuvJcqRindQwAk7/how-my-students-think-about-ai
4•pella•21m ago•0 comments

Tell HN: Remember to Change Your Filters

1•surprisetalk•22m ago•0 comments

Mortal AGI via ICA/PCA Rep-Grids Replacing Currency with Local Infrastructure

http://ingridx.dynu.net/Substack/Mortal-AGI.html
1•jimekus•25m ago•0 comments

Logic and the 2-Simplicial Transformer (2019)

https://arxiv.org/abs/1909.00668
1•wslh•27m ago•0 comments

RotaryCell: Making an unmodified rotary phone work over LTE with an ESP32-S3

https://github.com/fregacmols/RotaryCell
2•jombib•27m ago•1 comments

A composer published a paper on theoretical physics

https://retractionwatch.com/2026/08/05/a-composer-published-a-paper-on-theoretical-physics-his-la...
2•thunderbong•28m ago•0 comments

Why Google Stores Billions of Lines of Code in a Single Repository (2016)

https://dl.acm.org/doi/fullHtml/10.1145/2854146
1•diwash007•32m ago•1 comments

Curl Performance Tests

https://curl.se/perf/
2•theanonymousone•34m ago•0 comments

US Army secretary resigns after months of tension

https://www.bbc.com/news/articles/czjz31dk1xmo
1•tartoran•36m ago•0 comments

Tim Cook's full memo to Apple employees on his last day as CEO

https://9to5mac.com/2026/08/31/read-tim-cooks-full-memo-to-apple-employees-on-his-last-day-as-ceo/
2•soheilpro•37m ago•0 comments

Apple's New CEO Has One Job

https://www.durableadvantage.com/p/apples-new-ceo-has-one-job
1•techdemic•43m ago•0 comments

Ex-Congressman George Santos Receives Kalshi's First-Ever Lifetime Ban

https://www.wsj.com/business/ex-congressman-george-santos-receives-kalshis-first-ever-lifetime-ba...
3•higginsniggins•49m ago•0 comments

Show HN: Deslop, a skill that turns legalese and AI slop into plain English

https://github.com/fayerman-source/deslop/
1•fayerman•53m ago•0 comments

"Dagon" by H. P. Lovecraft

https://www.hplovecraft.com/writings/texts/fiction/d.aspx
5•thunderbong•58m ago•0 comments

Sony brings free TV to the PS5

https://www.theverge.com/games/987000/sony-brings-free-tv-to-the-ps5
3•ramn7•1h ago•0 comments