frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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!

MiniDisc, the Forgotten Format (2012)

https://www.theguardian.com/music/musicblog/2012/sep/24/sony-minidisc-20-years
1•alastairr•6m ago•0 comments

Six Steeds of Zhao Mausoleum

https://en.wikipedia.org/wiki/Six_Steeds_of_Zhao_Mausoleum
1•teleforce•9m ago•0 comments

The Tyranny of Structurelessness (1972)

https://www.jofreeman.com/joreen/tyranny.htm
1•downbad_•10m ago•1 comments

NPM Slop and Wonky Software Supply Chains

https://simonramstedt.com/blog/2026-04-09-npm-slop-and-wonky-software-supply-chains/
2•rmst•13m ago•0 comments

Fixing hallucination in LLM prediction with only one 48gib GPU

https://zenodo.org/records/19703218
1•genji970•14m ago•0 comments

Simulating an unrestricted frame

https://win9-5.com/demo
1•keepamovin•14m ago•0 comments

Ask HN: What's your AI assisted dev setup that actually follows instructions?

1•setnone•15m ago•0 comments

I Tested My VPN on Public WiFi and Discovered It Wasn't Protecting Me

https://medium.com/@examineip/i-tested-my-vpn-on-public-wifi-and-discovered-it-wasnt-actually-pro...
1•examineip•16m ago•0 comments

The rhetoric of war has changed. Not for the better

https://www.economist.com/culture/2026/04/23/the-rhetoric-of-war-has-changed-not-for-the-better
1•Michelangelo11•16m ago•0 comments

Pgrx: Build Postgres Extensions with Rust

https://github.com/pgcentralfoundation/pgrx
1•luu•17m ago•0 comments

Yumi – Your all-in-one workspace OS for thinking, ideating, and daily work

https://askyumi.app
1•yumi-dev•18m ago•1 comments

Beneath the Surface

https://press.stripe.com/beneath-the-surface
1•tosh•23m ago•0 comments

Show HN: Unfold – A paper folding puzzle game with worldwide rankings

https://www.dailyunfold.com/
1•astralasia•24m ago•0 comments

Richard Hamming: You and Your Research (1986)

https://paulgraham.com/hamming.html
1•tosh•26m ago•0 comments

OpenClaw vs. Hermes Agent: The race to build AI assistants that never forget

https://thenewstack.io/persistent-ai-agents-compared/
1•thunderbong•32m ago•0 comments

Palimpsest

https://en.wikipedia.org/wiki/Palimpsest
1•tosh•32m ago•0 comments

A catastrophic climate event is upon us. Here is why you've heard so little

https://www.theguardian.com/commentisfree/2026/apr/23/catastrophic-climate-event-scientists-atlan...
2•Michelangelo11•33m ago•0 comments

Residual Malicious Payloads on HackerOne After Vulnerability Fixes

https://hackerone.com/reports/3168691
1•nathan84•39m ago•0 comments

Show HN: NoonFlow – a macOS workspace I built for Claude Code and Codex

https://github.com/heyallencao/NoonFlow/releases
1•AllenCao•40m ago•5 comments

Political Discontent in China Is Associated with Isolating Personality Traits

https://www.journals.uchicago.edu/doi/abs/10.1086/719273
1•xnhbx•43m ago•0 comments

Apple's New CEO Must Launch 5 Product Ecosystems or Miss the Next iPhone Moment

https://greentic-ai.medium.com/apples-next-ceo-must-launch-these-5-product-ecosystems-or-miss-the...
2•mectors•43m ago•0 comments

Show HN: Playing music over movies causes them to sync

1•e1ghtSpace•43m ago•0 comments

Colorado citizens pay with rights, xAI pays nothing, long live democracy

https://aitwerp.com/signals/xai-colorado-discrimination-federal/
3•Inziu•49m ago•1 comments

Hire based on the conversation about code, not the code itself

https://dbarabashh.com/thoughts-and-experience/hire-for-the-conversation-not-the-code
1•birdculture•54m ago•0 comments

LogAct: Enabling agentic reliability via shared logs

https://arxiv.org/abs/2604.07988
1•pramodbiligiri•1h ago•0 comments

Show HN: A faithful offline recreation of the classic MS-DOS Editor

https://pascar.run
2•mysticmode•1h ago•0 comments

Managing the Unmanaged Switch

https://watchmysys.com/blog/2026/03/managing-the-unmanaged-switch/
2•luu•1h ago•0 comments

Show HN: I fixed sleep schedule by tracking solar time, so I built an app for it

https://sun.mikolajmocek.com/
1•mondonno•1h ago•0 comments

Richard Sutton – Father of RL thinks LLMs are a dead end [video]

https://www.youtube.com/watch?v=21EYKqUsPfg
3•mpweiher•1h ago•1 comments

Scaling Camera File Processing at Netflix

https://netflixtechblog.com/scaling-camera-file-processing-at-netflix-6dab2b1e80be
2•redblueflame•1h ago•0 comments