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!

Prompts for Progress

https://wintercarver.github.io/prompts-for-progress/
1•wintercarver•33s ago•0 comments

Running Zed Editor on ARM Chromebooks (Mali G925 / Crostini)

https://blog.johnozbay.com/running-zed-editor-on-arm-chromebooks-mali-g925-crostini-2.html
1•speckx•1m ago•0 comments

GNU Hurd Makes Progress on AArch64, Writing Translators in Rust

https://www.phoronix.com/news/GNU-Hurd-Q2-2026
1•arto•1m ago•0 comments

How to Handle Data Center Construction

https://market-ticker.org/akcs-www?post=255721
1•black6•2m ago•0 comments

Trial Lawyers Lobby Against Autonomous Vehicles

https://marginalrevolution.com/marginalrevolution/2026/07/trial-lawyers-lobby-against-autonomous-...
1•duringmath•2m ago•0 comments

Is AI Making Engineers Do the Macarena? – Gossip-Glitch News

https://gossip-glitch.considerthebean.xyz/
1•altmanaltman•2m ago•0 comments

Lean – a proof assistant and a functional programming language

https://lean-lang.org/
1•gjvc•4m ago•0 comments

Testing Nuclear Waste Fragments on a Torsion Pendulum [video]

https://www.youtube.com/watch?v=gBhH-iAIIEI
1•noahcharris•5m ago•1 comments

The Voice of Google

https://www.newyorker.com/culture/the-weekend-essay/the-voice-of-google
1•littlexsparkee•7m ago•0 comments

KiviDB: 31x times faster than Redis, built in Rust

https://kividb.io/
1•murtazayusuf•8m ago•0 comments

12 Reasons Users Churn

https://twitter.com/tibo_maker/status/2079136760580235437
1•tosh•9m ago•0 comments

Kimi K3, Qwen 3.8, and Anthropic's (Potential) Unravelling

https://www.emergingtrajectories.com/lh/frontier-lab-economics/
2•cl42•9m ago•0 comments

"Have we seen the last Einstein?"

https://bigthink.com/science-tech/have-we-seen-the-last-einstein/
1•hogwash•9m ago•1 comments

AliExpress hit with record $629M fine for counterfeit and illegal goods

https://www.engadget.com/2218530/aliexpress-hit-with-record-629-million-fine-for-selling-counterf...
3•speckx•11m ago•0 comments

Dave Dawson, Co-Founder of Bespoke Lighting Company Urban Electric, Dies at 53

https://www.nytimes.com/2026/07/20/arts/design/dave-dawson-dead.html
2•donohoe•11m ago•1 comments

The newest AI security threat: token torching

https://www.itbrew.com/stories/meet-the-newest-ai-security-threat-token-torching
1•EmOverAll•12m ago•0 comments

Google Is Censoring Reviews of ICE Detention Centers

https://theintercept.com/2026/07/20/google-maps-reviews-ice-detention-centers/
3•robtherobber•12m ago•1 comments

The Rise and Gruesome Implosion of 'Woke Capital'

https://cityjournal.substack.com/p/the-spectacular-rise-and-gruesome
1•anonymousiam•12m ago•1 comments

Rocket launch costs have dropped 96% since 1960. How low can they go?

https://www.space.com/space-exploration/launches-spacecraft/rocket-launch-costs-have-dropped-96-p...
3•speckx•15m ago•0 comments

Corners Don't Look Like That: Regarding Screenspace Ambient Occlusion

https://nothings.org/gamedev/ssao/
7•firephox•15m ago•0 comments

Apps Marketed to US Troops Are Shipping Chinese and Russian Code

https://www.wired.com/story/apps-marketed-to-us-troops-are-shipping-chinese-and-russian-code/
3•sbulaev•15m ago•0 comments

Netflix Paid $587M for Ben Affleck's AI Startup InterPositive

https://variety.com/2026/film/news/netflix-paid-587-million-ben-affleck-ai-interpositive-1236815111/
1•caseysoftware•17m ago•1 comments

It Might Be Time to Grow Your Own Lettuce

https://nymag.com/strategist/article/cyclosporiasis-grow-your-own-lettuce.html
1•speckx•17m ago•0 comments

Road traffic noise and risk of Parkinson disease

https://jamanetwork.com/journals/jamaneurology/fullarticle/2851756
2•geox•19m ago•0 comments

NYC Apartment Aquaponics

https://erinmurphy.dev/projects/project-2/
1•mm1119•22m ago•0 comments

The Scariest Chart in Electrical Engineering [video]

https://www.youtube.com/watch?v=GK2pZ_oVU1o
1•surprisetalk•22m ago•0 comments

I Tracked 997 Chrome Extensions That Changed Their Titles

https://extensionranker.com/blog/chrome-extension-title-changes-rankings
4•Joseph_Hu•22m ago•0 comments

NYC Subway Signals: A Complete Guide

https://www.nycsubway.org/wiki/Subway_Signals%3A_A_Complete_Guide
3•at1as•22m ago•0 comments

Caffeine and Cardiovascular Disease: Aha Scientific Statement

https://www.ahajournals.org/doi/epub/10.1161/CIR.0000000000001454
3•brandonb•22m ago•0 comments

Capping the price of healthcare is a mistake

https://www.nytimes.com/2026/07/20/opinion/health-care-prices-insurance-caps.html
3•brandonb•22m ago•1 comments