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!

RecruitMyself – AI job search copilot for resumes and applications

https://recruitmyself.com
1•RahulAa•1m ago•0 comments

AI coding agents and the erosion of system understanding

https://www.thesignalist.io/s/the-frictionless-trap/
1•kodesko•2m ago•0 comments

The 'Resting' Generation and South Korea's Youth Recession

https://thediplomat.com/2026/02/the-resting-generation-and-south-koreas-youth-recession/
1•palerdot•3m ago•1 comments

A 1B humanizer that matches human writing on an AI detector

https://mlx-optiq.com/blog/humanizer-stacked-lora
1•codelion•6m ago•0 comments

AMD Computex 2026: 10 Years of AM4, AM5 Support Through 2029

https://www.amd.com/en/blogs/2026/amd-computex-2026-10-years-of-am4-am5-support-through.html
1•ankitg12•8m ago•0 comments

Docker Networking Explained

https://sanyamserver.online/posts/docker-networking/
1•theanonymousone•9m ago•0 comments

Textbooks in Tokenland

https://systemsapproach.org/2026/06/01/textbooks-in-tokenland/
1•ankitg12•9m ago•0 comments

Key Chemistry Question Answered, No Quantum Computer Required

https://www.quantamagazine.org/key-chemistry-question-answered-no-quantum-computer-required-20260...
1•isaacfrond•11m ago•0 comments

Gifts For Retrocomputing Fans – remix yesterday's tech with a modern spin

https://spectrum.ieee.org/retrocomputing-gift-guide
1•asdefghyk•17m ago•1 comments

Miscellany № 49: introducing the quasiquote – Shady Characters

https://shadycharacters.co.uk/2014/06/miscellany-49-quasiquote/
1•rcarmo•20m ago•0 comments

Amazon Thinks the Future of Data Centers Is a Technical Problem It Just Solved

https://www.wired.com/story/amazon-thinks-the-future-of-data-centers-depends-on-a-technical-probl...
2•gozzoo•20m ago•0 comments

Why does ASTC use ISE when almost nothing else does?

https://fgiesen.wordpress.com/2026/05/29/why-does-astc-use-ise-when-almost-nothing-else-does/
1•croottree•21m ago•0 comments

A brief history of the UUID (2017)

https://www.twilio.com/en-us/blog/developers/a-brief-history-of-the-uuid
1•downbad_•21m ago•0 comments

Flying High Unpressurized (2016)

https://planeandpilotmag.com/flying-high-unpressurized/
1•downbad_•22m ago•0 comments

Five Years of Trying to Add Recursion to Lychee

https://endler.dev/2026/lychee-recursion/
1•croottree•22m ago•0 comments

How British comfort food won over the French

https://www.ft.com/content/74710f54-358d-49c9-81b1-2b49f63ed383
2•helsinkiandrew•23m ago•0 comments

Blorp Language

https://blorp-lang.org/
1•croottree•26m ago•0 comments

Decache – you might have the internet's lost media in your PC's cache folders

https://sindexmon.github.io/decache/
2•notRobot•26m ago•0 comments

Criminal Activities and Migration

https://www.michelecoscia.com/?p=2545
1•mikk14•28m ago•0 comments

A free, open-source library of DESIGN.md files for AI-generated UIs

https://design-md-web.pages.dev/
1•albemala•28m ago•1 comments

Dune's Butlerian Jihad and the Future of AI

https://technology.inquirer.net/147084/dunes-butlerian-jihad-and-the-future-of-ai
5•SVI•30m ago•0 comments

MiniMax M3

https://xcancel.com/MiniMax_AI/status/2061266317815296322
2•44za12•31m ago•0 comments

People are apparently farming citations on ResearchGate – Chuniversiteit

https://chuniversiteit.nl/papers/citation-farming-on-researchgate
1•rhazn•31m ago•0 comments

The DOJ Wants to Know Who on Reddit and X Is Criticizing ICE's Tactics

https://www.bloomberg.com/news/articles/2026-05-28/trump-s-doj-ramps-up-probes-of-anonymous-ice-c...
2•petethomas•34m ago•0 comments

How Elon Musk Killed Hundreds of Thousands of People

https://www.currentaffairs.org/news/how-elon-musk-killed-hundreds-of-thousands-of-people
2•tastyface•37m ago•0 comments

Basketeer – a typed TS SDK for your Tesco account, with nutrition data

https://github.com/tobyandrews1985/basketeer
1•tobyandrews1985•38m ago•0 comments

'Penguin' decays from CERN's Large Hadron Collider experiment hint new physics

https://www.scientificamerican.com/article/these-exotic-particles-could-break-physics/
2•thunderbong•44m ago•0 comments

Emergence World: A Laboratory for Evaluating Long-Horizon Agent Autonomy

https://www.emergence.ai/blog/emergence-world-a-laboratory-for-evaluating-long-horizon-agent-auto...
2•mnky9800n•46m ago•0 comments

Homebrew lead Mike McQuaid: Sandboxes and Worktrees - My Secure Agentic AI Setup

https://mikemcquaid.com/sandboxed-agent-worktrees-my-coding-and-ai-setup-in-2026/
2•benwen•48m ago•0 comments

Lean, Not Backpressure

https://entropicthoughts.com/lean-not-backpressure
3•kqr•50m ago•0 comments