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!

A dock that wakes up reliably

https://fabiensanglard.net/tb4/index.html
2•ingve•4m ago•0 comments

WLV-01, a monochrome digital photography camera built from scratch

https://camerahacksbymalcolmjay.com/
1•car•4m ago•0 comments

The biggest steam locomotive is whistle-stopping across the U.S.

https://www.npr.org/2026/07/11/nx-s1-5872656/big-boy-locomotive-steam
1•ghtbircshotbe•12m ago•0 comments

Autopsy Study Finds Replicating SARS-CoV-2 in the Hearts of Long Covid

https://my.uscap.org/uscap/program/S0tc675/index.cfm?pgid=5167&sid=14770&abid=51228
1•thenerdhead•14m ago•0 comments

I made a horror game that's IMPOSSIBLE to SCREENSHOT [video]

https://www.youtube.com/watch?v=RNhiT-SmR1Q
1•goodmythical•15m ago•1 comments

Social.Wiki is a wiki for editing social web pages

https://social.wiki/
1•raybb•17m ago•0 comments

Long Covid May Physically Damage the Nerves That Control the Stomach

https://www.ijidonline.com/article/S1201-9712(26)00608-9/fulltext
1•thenerdhead•17m ago•0 comments

Search for isRecord on any open source codebase

https://old.reddit.com/r/PrincipalAi/comments/1utzh5w/added_the_ability_to_search_for_isrecord_in...
1•fernando-ram•18m ago•0 comments

Martha Lillard, last US polio patient using iron lung, dies at 78 in Oklahoma

https://abcnews.com/US/wireStory/martha-lillard-us-polio-patient-iron-lung-dies-134668491
1•daniel_iversen•20m ago•0 comments

We built a free CVE and threat-Intel command center – no login, no paywall

https://community.resilientx.com/
1•R3dxpl0it•21m ago•0 comments

What happens between entering the prompt and seeing the first word appear

https://shbhmrzd.github.io/ai/ml-foundations/llm-training/2026/07/11/using-the-trained-model.html
2•shbhmrzd•24m ago•1 comments

GC shape stenciling in Go generics

https://rednafi.com/go/gc-shape-stenciling/
1•ingve•24m ago•0 comments

Old Icons

https://leancrew.com/all-this/2026/07/old-icons/
1•zdw•28m ago•0 comments

Hello

1•cogs132•28m ago•0 comments

El Nino forms, expected to strengthen, say NOAA forecasters

https://www.noaa.gov/news-release/el-nino-forms-expected-to-strengthen-say-noaa-forecasters
2•andsoitis•29m ago•0 comments

A Visual Catalog of Retro Macintosh Software

https://www.marciot.com/mac68k-visual-catalog/
1•zdw•30m ago•0 comments

How the Chinese use wires to catch rocket boosters

https://old.reddit.com/r/interestingasfuck/comments/1utyo87/how_the_chinese_use_wires_to_catch_ro...
2•jonbaer•40m ago•0 comments

Bring seamless PQC encryption into every messenger you already use

2•kvasilev•42m ago•0 comments

How to enforce bare-metal Rust constraints on an unaligned GAI?

https://github.com/osjc/CRITICAL-SURVIVAL-Sovereign-Core-Hypervisor-Alignment-GAI-Patch--Project-...
1•osjc•48m ago•0 comments

The Population Bust Is Coming Sooner Than Anyone Is Prepared For

https://www.nytimes.com/2026/07/11/opinion/population-forecast-birth-rate.html
4•toomuchtodo•49m ago•1 comments

A public ledger of cloud outages and the SLA credits they trigger

https://slacreditwatch.com
3•devd1976•50m ago•1 comments

The Future of Digital Money: The Race Between Tortoise, Hare and Rhino

https://sites.duke.edu/thefinregblog/2026/07/09/the-future-of-digital-money-the-race-between-the-...
2•zaik•50m ago•0 comments

3.5M Developers. Then Microsoft Pulled the Plug [video]

https://www.youtube.com/watch?v=CPhAkzb4kUo
1•BiraIgnacio•54m ago•0 comments

Patriotism in the US, Europe and Canada, Charted

https://www.politico.com/news/2026/07/11/poll-politics-patriotism-us-europe-canada-00993636
1•koolba•54m ago•0 comments

First images of Quest wreck reveal Shackleton's last ship

https://canadiangeographic.ca/articles/first-images-of-quest-wreck-reveal-shackletons-last-ship-d...
1•pseudolus•57m ago•0 comments

Odyssey Linux

https://odysseylinux.org
9•Gualdrapo•58m ago•10 comments

Chaoshan's qiaopi remittance system built wealth on trust, not contracts

https://www.sixthtone.com/news/1018709
3•whiteblossom•1h ago•0 comments

Pokémon Soul Society – Zanka No Tachi ( Bleach X Hoenn)

https://pokejumpermanga.blogspot.com/2026/07/pokemon-soul-society-zanka-no-tachi.html
2•MyBoyGreen•1h ago•0 comments

2026 Hardrock 100 Results: Ludo Pommeret and Courtney Dauwalter Set Records

https://www.irunfar.com/2026-hardrock-100-results
2•BiraIgnacio•1h ago•0 comments

Pokejumper.org/manga community-driven platform for honest manga critiques

https://pokejumpermanga.blogspot.com/
1•MyBoyGreen•1h ago•0 comments