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!

Free Voice Cloning in Browser

https://pocketweb.tools/voice-cloning
1•shafkathullah•1m ago•0 comments

Some flat washers are flatter than others (amateur metrology)

https://www.youtube.com/watch?v=L-2Bc5clZy0
1•briandon•2m ago•2 comments

The Single Greatest Predictor of Future Stock Market Returns (2013)

https://www.philosophicaleconomics.com/2013/12/the-single-greatest-predictor-of-future-stock-mark...
1•rzk•2m ago•0 comments

The missing private GitHub search

https://ykdojo.github.io/claude-code-tips/content/the-missing-private-github-search.html
1•ykev•7m ago•0 comments

Monid: Connect Agents to 1500 Tools

https://monid.ai/
1•handfuloflight•7m ago•0 comments

ASML First High-Volume High NA EUV Logic Product at Intel

https://www.asml.com/en/news/press-releases/2026/high-na-euv-reaches-new-readiness-milestone
1•felipevb•17m ago•0 comments

ASML reports -above guidance- €9.3B net sales and €2.9B net income in Q226

https://www.asml.com/en/news/press-releases/2026/q2-2026-financial-results
2•felipevb•18m ago•0 comments

One Name at a Time: How Die Zeit Built a Searchable DB of Nazi Party Members

https://gijn.org/stories/how-die-zeit-built-database-nazi-party-members/
1•giuliomagnifico•19m ago•0 comments

Ask HN: What are the biggest pain points you have with fine tuning models?

1•rishabhpoddar•22m ago•0 comments

CLI tool for reviewing Markdown files with inline comments

https://github.com/Seiraiyu/md-review-plus
2•ankitg12•25m ago•0 comments

Meta Sued for Allegedly Using Discriminatory AI in Layoff Decisions

https://gizmodo.com/meta-sued-for-allegedly-using-discriminatory-ai-in-layoff-decisions-2000785427
3•intunderflow•27m ago•1 comments

Project Links Two H200 Clusters 83km Away into One 111Tbps/0.9ms Supercluster

https://www.storagereview.com/news/whitefibers-project-redwood-links-two-h200-clusters-into-one-1...
2•giuliomagnifico•29m ago•0 comments

Vorfluxai: The Autopilot for Software Engineering

https://twitter.com/myprasanna/status/2077069901546852688
2•vismit2000•35m ago•0 comments

Skills That Don't Exist: A Large-Scale Study of Hallucinated Skill

https://arxiv.org/abs/2607.12340
1•sbulaev•36m ago•0 comments

Protect VPNs

https://www.openrightsgroup.org/publications/joint-letter-protect-vpns/
3•50kIters•40m ago•0 comments

Developing an Intuitive Sense of Scale

https://magworld.pw
2•vismit2000•40m ago•0 comments

Your RSS Reader Is Robbing You

https://antoniosantos.io/your-rss-reader-is-robbing-you/
1•DavideNL•41m ago•0 comments

Nearly 10k EVs Were Tested for Battery Degradation. These 2 Models Won Out

https://insideevs.com/news/801624/sweden-batter-degradation-group-test/
2•tzs•42m ago•0 comments

You only need the frontier model for one single edit

https://stencil.so/blog/prewalk
1•jxmorris12•46m ago•0 comments

XBill!

http://www.xbill.org
1•audreyfei•46m ago•0 comments

The State of RSS Feed Readers

https://unattributed.cc/the-state-of-rss-feed-readers
1•DavideNL•46m ago•0 comments

George Lucas says rejecting AI is like rejecting cars in favour of horses

https://www.pcgamer.com/software/ai/george-lucas-says-rejecting-ai-is-like-rejecting-cars-in-favo...
1•harambae•47m ago•1 comments

Texas Police Spent $4.5M on Four Chevy Tahoes

https://www.thedrive.com/news/how-texas-police-spent-4-5-million-on-four-chevy-tahoes
3•ethandmd•47m ago•1 comments

AI or Not

https://kritrim.xyz/app/1/aiornot/
3•aizk•48m ago•3 comments

How India spends - a running account of the Indian economy

https://spends.indiadispatch.com/
1•jmsflknr•49m ago•0 comments

A tiny 2504 byte Windows snipping tool written in 32-bit MASM assembly:D

https://github.com/jk20342/TinySnip
1•butterfly2004•51m ago•1 comments

Making Software – How to make a font

https://www.makingsoftware.com/chapters/how-to-make-a-font
2•vismit2000•53m ago•0 comments

AI models' values are different from most people's

https://www.economist.com/briefing/2026/06/25/ai-models-values-are-very-different-from-most-peoples
2•sirpilade•53m ago•0 comments

Show HN: Sogni Unlimited – flat-rate unlimited image/video on decentralized GPUs

https://www.sogni.ai/unlimited
1•krunkosaurus•54m ago•0 comments

Marco Rubio launches campaign to dismantle international criminal court

https://www.theguardian.com/us-news/2026/jul/13/marco-rubio-dismantle-international-criminal-court
7•colinprince•54m ago•1 comments