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!

The Food Truck Mafia Wreaking Havoc Around the National Mall

https://washingtonian.com/2026/06/29/dc-food-truck-mafia-national-mall/
1•gmays•36s ago•0 comments

Reverse Sprinkler Physics Problem

https://www.nytimes.com/2026/07/14/science/reverse-sprinkler-physics-problem.html
1•7402•2m ago•0 comments

The Most Human Technology Ever Made

https://www.a16z.news/p/the-most-human-technology-ever-made
1•beklein•2m ago•0 comments

Bonsai 27B: The First 27B-Class Model to Run on a Phone

https://prismml.com/news/bonsai-27b
2•xenova•2m ago•0 comments

NightmareEclipse - LegacyHive (so-called Mother Of All Bugs)

https://git.projectnightcrawler.dev/NightmareEclipse/LegacyHive/commits/branch/main
1•guessmyname•3m ago•0 comments

Show HN: Discito – spaced repetition iOS flashcard app using fsrs-6

https://discito.app/features
1•anythingworks•4m ago•0 comments

Project Panama: Why an AI Company Cut Apart Books

https://www.tobiasreithmeier.de/en/blog/project-panama-anthropic-books
1•JuriKeller•5m ago•0 comments

SoftBank's Masayoshi Son ridicules AI critics for 'spitting upwards'

https://www.ft.com/content/fc0d48f4-a2ce-45b1-a0ad-83a0a8409f00
2•1vuio0pswjnm7•6m ago•0 comments

Firecracker disk snapshots in O(changed bytes), not O(disk size)

https://www.tensorlake.ai/blog/firecracker-disk-snapshots-o-changed-bytes
2•diptanu•7m ago•0 comments

AI Made Cloning Games Easier

https://www.404media.co/ai-made-cloning-games-easier-than-ever/
1•_____k•7m ago•0 comments

ADS-B Receiver for the Terminal

https://github.com/encse/adsb-tui
2•encse•7m ago•2 comments

A Chemical from Car Tires May Be Linked to Alzheimer's, New Study Suggests

https://www.vice.com/en/article/a-chemical-from-car-tires-may-be-linked-to-alzheimers-new-study-s...
1•littlexsparkee•7m ago•0 comments

Greenland Institute of Natural Resources Stops Collaboration with the US

https://knr.gl/da/nyheder/naturinstituttet-stopper-nyt-samarbejde-med-usa
2•tokai•7m ago•0 comments

AI lawsuits expose gaps in conventional insurance, says report

https://www.ft.com/content/8b3e2431-96b5-477e-b5ea-e3baae671b9c
1•1vuio0pswjnm7•7m ago•0 comments

The Most Expensive Dinosaur Just Sold for $50.1M

https://www.wsj.com/arts-culture/fine-art/gus-trex-auction-sothebys-sale-price-07f7ef40
2•fortran77•10m ago•2 comments

6× faster batched binary search in Rust

https://pythonspeed.com/articles/branchless-binary-search/
1•fanf2•11m ago•0 comments

Massive AI spending is driving up prices on laptops and electricity, Fed watches

https://www.fastcompany.com/91572617/massive-ai-spending-driving-up-prices-laptops-electricity-as...
3•1vuio0pswjnm7•11m ago•0 comments

Congressional Ratification of President Trump's Corporatism

https://ronpaulinstitute.org/congressional-ratification-of-president-trumps-corporatism/
1•metanoia_•12m ago•1 comments

I built a no-signup solar cost and payback calculator

https://sunmetriclab.com/
1•georgejr•12m ago•0 comments

Jovita one AI hub instead of five subscriptions

https://usejovita.com
1•Ayo245•12m ago•0 comments

Fibonacci's Liber Abaci [pdf]

https://www.mifami.org/eLibrary/Fibonacci-LiberAbaci-QuadClass-2pp.pdf
1•jruohonen•14m ago•0 comments

Weather App Could Soon Develop Blind Spots

https://www.bloomberg.com/opinion/articles/2026-07-14/your-weather-app-could-soon-develop-blind-s...
1•littlexsparkee•15m ago•1 comments

Tokenomics: View token usage, costs, and rate-limit metrics

https://github.com/skuznetsov/tokenomics-viewer
1•samaysharma•17m ago•0 comments

Migrate from Datadog to Grafana

https://shiftmetrics.com/
1•gunapologist99•17m ago•1 comments

Long Covid May Affect Motivation and Memory by Injuring Brain's Dopamine System

https://www.discovermagazine.com/long-covid-may-affect-motivation-and-memory-by-injuring-the-brai...
1•amichail•19m ago•1 comments

Korea Financial Telecommunications Files Patent for Won Stablecoin System

https://en.sedaily.com/finance/2026/06/19/korea-financial-telecommunications-files-patent-for-won
1•mushstory•19m ago•0 comments

Harness Engineering for Self-Improvement

https://lilianweng.github.io/posts/2026-07-04-harness/
2•gmays•19m ago•0 comments

Another Entry in the "Stuff Im Glad Im Not Responsible for" Ledger

https://blog.cloudflare.com/dnssec-nta-ede-33/
2•c_f_•21m ago•0 comments

AI makes learning feel too easy

https://blog.danielyj.com/blog/ai-makes-learning-feel-easy
1•bear_with_me•21m ago•0 comments

Generative AI Is an Engineering Disaster

https://www.theatlantic.com/technology/2026/07/generative-ai-engineering-disaster/687901/
4•Jtsummers•22m ago•1 comments