frontpage.
newsnewestaskshowjobs

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!

A clean Full Screen Clock Online for any device –PC, laptop, tablet, or mobile

https://citytime.io/fullscreen-clock
1•rajkverma123•2m ago•0 comments

Graduating without a thesis: meet the people getting 'practical' PhDs in China

https://www.nature.com/articles/d41586-026-01242-z
1•sohkamyung•3m ago•0 comments

Fable is SOTA at CIFAR Speedrun: lessons on AI R&D automation

https://fulcrum.inc/2026/07/09/fable-cifar-speedrun.html
2•etherio•5m ago•0 comments

Gates Heir's Shopping App Took Credit for Sales It Didn't Drive

https://www.bloomberg.com/news/articles/2026-07-09/gates-heir-s-shopping-app-took-credit-for-sale...
1•toomuchtodo•6m ago•1 comments

Up the Stack: How AI's Escape from the Commodity Trap Risks Enterprise Lock-In

https://www.normaltech.ai/p/up-the-stack-how-ais-escape-from
1•randomwalker•13m ago•0 comments

What is your Cuck Level?

https://cucklevel.com/
1•pro_methe5•16m ago•0 comments

Orbit, an Open-Source Toolkit for Retrieval-Based Inference

https://github.com/schmitech/orbit
1•schmitech•16m ago•0 comments

When does a CEO get involved? When you're on your fourth Ford Focus

https://old.reddit.com/r/AskReddit/comments/1uru4d7/comment/owjp196/
3•0xWTF•18m ago•0 comments

How to Hide from Killer Drones

https://www.economist.com/science-and-technology/2026/07/08/how-to-hide-from-killer-drones
2•nmstoker•19m ago•0 comments

Ex-Epoch Times CFO pleads guilty in $67M multinational money laundering scheme

https://apnews.com/article/epoch-times-cfo-indictment-money-laundering-a015b35aaeae44284f0026dc10...
9•petethomas•21m ago•1 comments

People Who Will Thrive in the AI Age

https://www.theatlantic.com/ideas/2026/06/ai-open-ai-anthropic/687689/
1•davidklemke•21m ago•0 comments

New York Times says OpenAI hid evidence in ChatGPT copyright trial

https://techcrunch.com/2026/07/09/new-york-times-says-openai-hid-evidence-in-chatgpt-copyright-tr...
5•sbulaev•22m ago•0 comments

And Then the Billionaire Paid Off $550M of Our Debts for $5.5M

https://idiallo.com/blog/billionaire-paid-off-550-million-dollars-of-our-debts
3•firefoxd•22m ago•1 comments

Victor Marx wins Colorado's three-way Republican primary for governor

https://coloradosun.com/2026/07/09/victor-marx-wins-colorados-republican-primary-governor/
1•mooreds•23m ago•0 comments

GeForce Trading Cards: Series 1 Celebrates the Generations of GeForce

https://www.nvidia.com/en-us/geforce/news/geforce-trading-cards-series-1-summer-of-rtx-giveaways/
1•Jhsto•23m ago•0 comments

Show HN: Use Any Agent as an Orchestrator

https://github.com/backnotprop/orchestrator
2•ramoz•24m ago•0 comments

Seekable OCI: Lazy-Loading Container Images via Range-Request Indexing

https://arxiv.org/abs/2607.06868
1•Jimmc414•24m ago•0 comments

Academia and the "AI Brain Drain"

https://www.schneier.com/blog/archives/2026/03/academia-and-the-ai-brain-drain.html
1•JumpCrisscross•25m ago•0 comments

The weirdest things that mess up wi-fi – and how to improve your signal

https://www.bbc.com/future/article/20260708-the-weirdest-things-that-mess-up-your-wifi
5•billybuckwheat•25m ago•0 comments

Nobel-Winning U.S. Chemist Will Move to China to Lead A.I. Institute

https://www.nytimes.com/2026/07/09/science/nobel-winning-us-chemist-will-move-to-china-to-lead-ai...
5•metanoia_•26m ago•0 comments

Coding Glasses for AI Agents – Even G2 Terminal Mode

https://www.evenrealities.com/terminal
1•h14h•26m ago•1 comments

What It's Like to Suddenly Start Completely Believing in God [2022]

https://lydialaurenson.substack.com/p/what-its-like-to-suddenly-start-completely-believing-in-god
2•bookofjoe•27m ago•1 comments

Memory Scarcity, Open Models, and the Restructuring of the AI Industry

https://arxiv.org/abs/2607.07207
1•Jimmc414•28m ago•0 comments

Weapon Systems Annual Assessment

https://www.gao.gov/products/gao-26-108457
2•Jimmc414•29m ago•0 comments

World-First 'Super Alloy' Could Transform the Way Metals Are Made

https://www.sciencealert.com/world-first-super-alloy-could-transform-the-way-metals-are-made
6•tejohnso•30m ago•1 comments

California universities stockpiling AR-15s, grenades and submachine guns

https://www.theguardian.com/us-news/2026/jul/09/california-universities-military-equipment
7•sizzle•30m ago•2 comments

Fable Ban and Reversal Exposed We Cant Measure AI Cyber Risk in Real World

https://orionpolicy.org/washingtons-ai-ban-and-reversal-exposed-the-bigger-problem-it-cant-measur...
1•delschlangen•31m ago•0 comments

Lessons from CISA's Cyber Incident

https://www.cisa.gov/news-events/news/lessons-cisas-cyber-incident
2•guedou•32m ago•0 comments

Why American ambulance rides are so expensive

https://davidoks.blog/p/why-american-ambulance-rides-are
8•jyunwai•35m ago•1 comments

Patreon Blocks Crawlers from Stealing Creators' Work for AI Training

https://www.404media.co/patreon-cloudflare-partnership-ai-crawlers/
4•cdrnsf•35m ago•0 comments