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!

Words of Type

https://wiki.wordsoftype.com/
1•tobr•41s ago•0 comments

Typeface Specimens of Houston Mono

https://arslan.io/2026/05/31/typeface-specimens-of-houston-monotm/
1•farslan•4m ago•0 comments

Creatine for the Treatment of Depression (2019)

https://pmc.ncbi.nlm.nih.gov/articles/PMC6769464/
1•bookofjoe•5m ago•0 comments

Open-source spectre haunts the AI feast

https://www.reuters.com/commentary/breakingviews/open-source-spectre-haunts-ai-feast-2026-05-28/
1•1vuio0pswjnm7•6m ago•0 comments

The math world is losing its mind over the new AI solution to an Erdős problem

https://www.wsj.com/tech/ai/ai-math-solves-erdos-problem-openai-c4029e84
1•fortran77•6m ago•1 comments

Going to Dinner

https://medium.com/@royrapoport/going-to-dinner-78c76a635719
1•mooreds•8m ago•0 comments

How to Tell If You're Being Manipulated – 6 Tactics Used on You Every Day

https://stvrrll1ght.substack.com/p/how-to-tell-if-youre-being-manipulated
1•maheenahmed•9m ago•0 comments

Skip-Level One-on-Ones

https://mgrebler.substack.com/p/the-secret-to-skip-level-one-on-ones
1•mooreds•9m ago•0 comments

Google SOTA

https://imgur.com/gallery/llDaUDr
1•johnbarron•11m ago•1 comments

Poor Sleep Linked to Rising Cancer Risk in Under-50s

https://www.theguardian.com/society/2026/may/30/poor-sleep-linked-rising-cancer-risk-under-50s
1•karakoram•12m ago•0 comments

Piwapp: A WhatsApp client and MCP purely written in Python

https://github.com/n-92/piwapp
1•anycastubuntu•14m ago•0 comments

MTuner 5.0 – C/C++ memory profiler, major update just released

https://github.com/RudjiGames/MTuner
2•rudji_games•16m ago•0 comments

Mockdown – ASCII Wireframe Editor

https://www.mockdown.design
1•eustoria•16m ago•0 comments

First Fusion Plant Applies to Join the Grid [video]

https://www.youtube.com/watch?v=isqK8RyTnCs
1•mpweiher•17m ago•0 comments

GatherOS: The Mac app for design inspiration

https://www.gatheros.co/
2•eustoria•17m ago•0 comments

Unknown Unknowns

https://questionsconsidered.blog/2026/05/31/unknown-unknowns/
2•njrc•17m ago•0 comments

At the Epicenter of A.I., Pope Leo's Warnings Are Dismissed

https://www.nytimes.com/2026/05/26/technology/pope-leo-ai-religion.html
2•1vuio0pswjnm7•19m ago•0 comments

I'm Sorry Dave, This Request Triggered Restrictions on Violative Cyber Content

https://grahamhelton.com/blog/sorry-dave
2•eustoria•19m ago•0 comments

Open Source Model Predicts Shape of 1B Proteins

https://www.nature.com/articles/d41586-026-01686-3
2•karakoram•20m ago•1 comments

Could Trump's Iran 'excursion' be a bigger global turning point than Vietnam?

https://www.theguardian.com/world/ng-interactive/2026/may/31/donald-trump-iran-excursion-vietnam-war
2•hebelehubele•21m ago•0 comments

Doc Searls: 'How DuckDuckGo Can Be a Hero'

https://doc.searls.com/2026/05/30/how-duckduckgo-can-be-a-hero/
2•MilnerRoute•22m ago•0 comments

CP/M-86 & MS-DOS Cross Development Environment

https://github.com/tsupplis/cpm86-crossdev
1•elvis70•23m ago•0 comments

What it is like to read Proust

https://www.commonreader.co.uk/p/what-it-is-like-to-read-proust
2•jger15•27m ago•0 comments

New Software Developers in 2026

https://initacademy.org/blog/new-software-developers-in-2026
2•zooboole•27m ago•0 comments

Writing Portable ARM64 Assembly

https://ariadne.space/2023/04/12/writing-portable-arm-assembly.html
1•luu•29m ago•0 comments

Re: [PATCH] OOM_pardon, a.k.a. don't kill my xlock

https://lwn.net/Articles/104185/
2•luu•31m ago•0 comments

Fork My Code, Please (2014)

https://www.skeeve.com/fork-my-code.html
1•Tomte•31m ago•0 comments

Millennials spend $252 on an average date, BMO finds

https://www.cnbc.com/2026/05/23/date-flation-average-millennial-date-costs-252.html
1•mooreds•33m 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•anujbans•37m ago•0 comments

"Save Our Bacon" provision substantial setback for animal rights

https://www.nytimes.com/2026/05/30/opinion/pigs-farm-bill-meat-industry.html
2•marojejian•43m ago•1 comments