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!

AI Is a Race Car, Not Autopilot

https://ryansouthgate.com/ai-is-a-racecar/
1•ry8806•2m ago•0 comments

AI slop blocked a real $200K macOS flaw

https://the-decoder.com/a-real-macos-flaw-worth-200k-went-unreported-because-apples-bug-bounty-in...
1•BlueBerry2001•3m ago•0 comments

The Java Story – The Official Documentary [video]

https://www.youtube.com/watch?v=ZqGSg4b_cZA
1•chillax•15m ago•0 comments

CodeBot: Full details on our New AI for Delphi

https://blogs.remobjects.com/2026/07/30/codebot-the-story/
4•vintagedave•17m ago•0 comments

Most Australian teens on social media three months after under-16 ban began

https://www.japantimes.co.jp/news/2026/07/31/asia-pacific/australia-teens-social-media-ban/
1•01-_-•17m ago•0 comments

1 in 4 people in Japan believes AI could replace friends and family: poll

https://www.japantimes.co.jp/news/2026/08/02/japan/poll-ai-replace-friends-family/
4•01-_-•19m ago•0 comments

GLP-1s and their unknown impacts on human creativity

https://hereisyourbrain.substack.com/p/should-we-all-take-glp1
1•prdgl_daughter•19m ago•0 comments

Faster floating point math with Rust's new API

https://pythonspeed.com/articles/faster-float-math-rust/
1•birdculture•19m ago•0 comments

Don't Take the Black Pill (Text Adaptation)

https://andrewkelley.me/post/dont-take-black-pill.html
2•gabrielgio•20m ago•0 comments

Octane – React's programming model, compiled

https://octanejs.dev
2•nnx•23m ago•0 comments

Can Animals Be Right- or Left-Pawed?

https://www.discovermagazine.com/the-animal-kingdom-is-full-of-righties-and-lefties-42164
1•thunderbong•24m ago•0 comments

Travel

https://www.google.com/
1•BrentLakin•24m ago•0 comments

How to Switch from Windows to Linux

https://sprune.com/blog/how-to-switch-from-windows-to-linux/
1•nreece•26m ago•0 comments

Show HN: Daily Math Puzzle

https://dozenal.game
1•sarreph•29m ago•0 comments

Police Surveillance Technology: Last Week Tonight with John Oliver (HBO) [video]

https://www.youtube.com/watch?v=lnBPhelCdWE
3•jhonovich•36m ago•0 comments

Pipe – A runtime where AI operations are language primitives

https://pipe-lang.com
1•harrymachura•36m ago•0 comments

A C++ toolchain from 357 bytes, in Bazel

https://fzakaria.com/2026/08/01/a-c++-toolchain-from-357-bytes-in-bazel
1•ingve•39m ago•0 comments

Napoleon (1926)

https://gutenberg.org/cache/epub/79253/pg79253-images.html
1•petethomas•41m ago•0 comments

Show HN: Eight: a symbolic, indentation-based programming language

https://git.disroot.org/EightLang/Eight/src/branch/alpha
1•Vextoly•42m ago•1 comments

How rogue officers turned a nationwide camera network into a tool for stalking

https://www.washingtonpost.com/technology/2026/08/02/how-police-officers-used-vast-network-camera...
3•baranul•47m ago•0 comments

Sony BMG copy protection rootkit scandal from 2005

https://en.wikipedia.org/wiki/Sony_BMG_copy_protection_rootkit_scandal
2•thinkingemote•50m ago•0 comments

Fastmail offers EU data region

https://www.fastmail.com/blog/fastmail-offers-eu-data-region/
4•jamesog•55m ago•1 comments

Show HN: ssh paint.dn.ht

1•dhotson•1h ago•0 comments

The Shape of Things to Come

https://yegge.ai/essays/the-shape-of-things-to-come/
3•tosh•1h ago•1 comments

What the Bliss Taught Us

https://daniel.haxx.se/blog/2026/08/03/what-the-bliss-taught-us/
2•robin_reala•1h ago•0 comments

I stopped trusting USB-C cable labels and started testing them

https://www.makeuseof.com/i-stopped-trusting-usb-c-cable-labels-started-testing-with-meter-instead/
2•baranul•1h ago•0 comments

Giggity – Conference Schedule Viewer

https://wilmer.gaa.st/main.php/giggity.html
1•n_plus_1_acc•1h ago•0 comments

The AI Productivity Gap

https://bjorg.bjornroche.com/management/ai-productivity-gap/
2•kiyanwang•1h ago•0 comments

Language Models Agree with Each Other, Not with Readers

https://arxiv.org/abs/2607.29274
1•sbulaev•1h ago•0 comments

Practical Memory Safety

https://ohadravid.github.io/posts/2026-08-unsafe-water/
1•jandeboevrie•1h ago•0 comments