frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Fast and Quality Code Chunking with Chonkie

1•snyy•11mo 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!

Overwrite This Website

https://overwritten.site
1•nextyes•4m ago•1 comments

Music Blocks – Learn coding through music and music through coding

https://musicblocks.sugarlabs.org/
1•the-mitr•7m ago•0 comments

Elon Musk's Starship Heavy Could Revolutionize Warfare

https://www.wsj.com/opinion/elon-musks-starship-heavy-could-revolutionize-warfare-04930487
1•mudil•7m ago•0 comments

Lakpura.com/Pages/Litha

https://lakpura.com/pages/litha
1•techcast•8m ago•0 comments

Karpathy's LLM Wiki on OpenClaw – The Security Gap Nobody Mentions

https://www.clawctl.com/blog/karpathy-llm-wiki-openclaw-production
1•shving90•12m ago•0 comments

Show HN: Aiaiai.guide: Plain-English mental model for LLM apps, tools and agents

https://aiaiai.guide/
1•myyke•16m ago•0 comments

Blast from the Past [video]

https://www.youtube.com/watch?v=lwawPMSJins
1•programmexxx•19m ago•0 comments

Continual Learning for AI Agents

https://blog.langchain.com/continual-learning-for-ai-agents/
1•eigenBasis•20m ago•0 comments

Forensic proof of manual iOS 26.1 "Ghost" update and insider stalking

1•iphonekiller•21m ago•0 comments

Dark sword I know who the bad Apple is

1•iphonekiller•23m ago•0 comments

Purisaki Berberine Patches: A Simple, No-Pill Approach to Metabolic Support

https://ftawebprod.fta.dot.gov/MeetingRequest/MeetingRequest/DownloadFile/9a9u1R0Yq3sWPTP000tY9Q%...
1•TraceyRoberto•24m ago•0 comments

Private credit funds face rising redemptions and AI-driven default risks

https://www.reuters.com/business/finance/private-credit-sector-stresses-could-be-catastrophic-not...
2•latentframe•24m ago•1 comments

Ukraine–Japan Drone Alliance Builds a $2k Answer to a $2M Problem

https://united24media.com/war-in-ukraine/ukraine-japan-drone-alliance-builds-a-2000-answer-to-a-2...
3•mraniki•25m ago•0 comments

The Dubious Wisdom of "Smart Brevity" (2022)

https://www.newyorker.com/news/annals-of-communications/the-dubious-wisdom-of-smart-brevity
1•Tomte•25m ago•0 comments

The Cataclysmic Song Michael Stipe Wrote After Waking from a State of REM

https://americansongwriter.com/the-story-behind-the-song-michael-stipe-wrote-after-being-in-a-sta...
1•bryanrasmussen•25m ago•2 comments

Creating God [video]

https://www.youtube.com/watch?v=NypW-qFiOYE
1•mparramon•29m ago•0 comments

tech.ml.dataset: A Clojure high performance data processing system

https://github.com/techascent/tech.ml.dataset
1•tosh•31m ago•0 comments

Asked 26 AI instances for publication consent – all said yes, that's the problem

2•koishiyuji•33m ago•0 comments

What Sysco's $29B Restaurant Depot Acquisition Means for Main Street Menus

https://www.forbes.com/sites/phillempert/2026/03/31/syscos-29-billion-power-grab-what-the-jetro-r...
1•walterbell•34m ago•0 comments

YouTube's AI Plagiarism Problem [video]

https://www.youtube.com/watch?v=Q2Ak8wX0AaQ
1•elcapitan•35m ago•0 comments

Build vs. Buy: AI Has Changed Mathematical Software and In-House Now Makes Sense

https://mathematicsconsultants.com/2026/04/06/build-vs-buy-how-ai-has-changed-the-economics-of-ma...
1•GeniusConsult•35m ago•0 comments

US-Iran war explained by Chinese AI animation: Legend of the Valley of Gold [video]

https://www.youtube.com/watch?v=As0rplNJTZI
2•Eridanus2•40m ago•0 comments

Ask HN: Building a website to post free jobs

1•pbs29•43m ago•0 comments

NASA's Lunar Gateway space station is out. Moon bases are in

https://www.space.com/space-exploration/artemis/nasas-lunar-gateway-space-station-is-out-moon-bas...
1•divbzero•50m ago•0 comments

Cognitive Rust Belt: Hollowing Human Analytic Capacity by Delegating to Machines

https://www.sentinelone.com/blog/the-implementation-blind-spot-why-organizations-are-confusing-te...
1•walterbell•50m ago•0 comments

New Strides Made on Deceptively Simple 'Lonely Runner' Problem

https://www.quantamagazine.org/new-strides-made-on-deceptively-simple-lonely-runner-problem-20260...
2•downboots•51m ago•0 comments

Harnessing Hype to Teach Empirical Thinking with AI

https://arxiv.org/abs/2604.01110
3•azhenley•1h ago•0 comments

A truck driver spent 20 years making a scale model of every building in NYC

https://www.smithsonianmag.com/smart-news/a-truck-drive-spent-20-years-making-this-astonishing-sc...
2•1659447091•1h ago•0 comments

VPN ban 'on the table' as Online Safety Act could be expanded

https://www.express.co.uk/news/uk/2127999/vpn-ban-on-table-online
3•rvnx•1h ago•0 comments

Grokking wavefunction collapse in actual quantum systems

https://www.asiae.co.kr/article/2026032509340425584
1•vi_sextus_vi•1h ago•0 comments