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!

Shuffle multiple artists' full discographies on Spotify (Chrome extension

https://chromewebstore.google.com/detail/discogmix-multi-artist-sh/oejdmfhdpfpimljokmknjifehccmanko
1•esayli•4m ago•0 comments

The down fall of bug bounties

https://shubs.io/the-down-fall-of-bug-bounties/
2•infosecau•5m ago•0 comments

Vault Pro – AI Scaffolder for Obsidian Project Notes (Node/Claude)

https://checkout.stripe.com/c/pay/cs_live_a1T5cP4xxXFYhY045VE1ui9fm1NJj0ACL1umdUosCWtXUSR8CKrdNPs...
1•bshelby88•6m ago•0 comments

Living 35 ft underground: inside a preserved Titan II nuclear missile silo

https://www.youtube.com/watch?v=rSFSnOBYlbM
1•bane•10m ago•0 comments

An Overview of the Mathematical Theory of Communication for Philosophers [pdf]

https://theinformationalturn.net/wp-content/uploads/2012/03/MTC_overview.pdf
2•teleforce•11m ago•0 comments

Baseball is learning to live with shorter attention spans

https://www.ft.com/content/f499089d-a104-44ad-9773-1ef31715afae
2•petethomas•11m ago•0 comments

People who use ChatGPT for writing are accurate detectors of AI text (2025)

https://arxiv.org/abs/2501.15654
2•lexandstuff•14m ago•0 comments

Can AI just replace me already? – A comparative AI-writing ID experiment

https://www.richardhanania.com/p/can-ai-replace-me-already
1•botacode•16m ago•0 comments

OpenBSD/zaurus: pocket-sized BSD

http://miod.online.fr/software/openbsd/stories/zaurus2.html
1•uticus•20m ago•1 comments

US Joint Forces Command Millennium Challenge 2002: Experiment Report [pdf]

https://www.esd.whs.mil/Portals/54/Documents/FOID/Reading%20Room/Joint_Staff/12-F-0344-Millennium...
1•KnuthIsGod•21m ago•0 comments

War Game Exposed U.S. Vulnerability to Low-Tech Warfare

https://nsarchive.gwu.edu/news/2024-11-01/rigged-war-game-exposed-us-vulnerability-low-tech-warfare
4•KnuthIsGod•25m ago•2 comments

Bluesky Radio – Hosted by Opus 4.7

https://bskyrad.io/
2•wilted-iris•29m ago•0 comments

Data centers raise nearby temperatures by up to 4 degrees in Phoenix

https://techxplore.com/news/2026-05-centers-nearby-temperatures-degrees-phoenix.html
3•limitedfrom•33m ago•1 comments

My First Game, Shadow Dungeon (Procedural Roguelike)

https://dynaq.itch.io/shadow-dungeon
3•mik09•38m ago•0 comments

Ball Simulator in Python Made with Claude

https://github.com/simin75simin/ball-sandbox
2•mik09•43m ago•1 comments

Google's Own AI Researchers Jockey for Access to Its Computing

https://www.bloomberg.com/news/articles/2026-05-18/google-s-own-ai-researchers-jockey-for-access-...
2•osnium123•50m ago•0 comments

Have I Been Pwned: Colombian fintech company leaks 34.5M accounts in March 2026

https://haveibeenpwned.com/Breach/ADDI
4•guessmyname•52m ago•0 comments

Do Androids Dream of Your Electric Life?

https://medium.com/@vektormemory/do-androids-dream-of-your-electric-life-4c2c439ab0aa
2•vektormemory•54m ago•0 comments

Language Registries Are Unstable by Default

https://nesbitt.io/2026/05/15/language-registries-are-unstable-by-default.html
2•pabs3•57m ago•0 comments

Retrospective on DDIA

https://www.khola.blog/p/designing-data-intensive-applications
2•bcapchickadee•57m ago•0 comments

The American Rebellion Against AI Is Gaining Steam

https://www.wsj.com/tech/ai/the-american-rebellion-against-ai-is-gaining-steam-94b72529
17•JaakkoP•59m ago•3 comments

New features in GCC 16: Improved error messages and SARIF output

https://developers.redhat.com/articles/2026/04/28/gcc-16-improved-error-messages-sarif-output
2•siteshwar•59m ago•0 comments

A shallow dive into formal verification

https://vitalik.eth.limo/general/2026/05/18/fv.html
3•wslh•1h ago•0 comments

Reverse Lookup and AI-Powered Osint

https://sherlockeye.io/
2•mrzenodd•1h ago•0 comments

The Coming Food Crisis in South Asia

https://thediplomat.com/2026/05/the-coming-food-crisis-in-south-asia/
5•panny•1h ago•0 comments

The last six months in LLMs in five minutes

https://simonwillison.net/2026/May/19/5-minute-llms/
6•yakkomajuri•1h ago•0 comments

Surface owner loses their limited 50th Anniversary edition after a repair swap

https://www.windowscentral.com/hardware/surface/this-surface-owner-lost-their-limited-50th-annive...
3•Oblivion8442•1h ago•0 comments

Nitsum: Serving Tiered LLM Requests with Adaptive Tensor Parallelism

https://mlsys.wuklab.io/posts/nitsum/
2•matt_d•1h ago•0 comments

SuperInfer: SLO-Aware Rotary Scheduling and Memory Management for LLM Inference

https://supercomputing-system-ai-lab.github.io/projects/superinfer/
2•matt_d•1h ago•0 comments

What can a local model do for you in early May 2026?

https://manichord.com/blog/posts/what-can-local-model-do-in-may-2026
3•mkss•1h ago•1 comments