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!

Lotus root is not Fried tofu: giving an on-device food model better eyes

https://littletheta.com/field-notes/lotus-root-is-not-fried-tofu
1•NickHirras•1m ago•0 comments

New maps reveal hidden landscapes inside a prehistoric supercontinent

https://www.scientificamerican.com/article/new-maps-reveal-hidden-landscapes-inside-a-prehistoric...
1•bcaulfield•1m ago•0 comments

A quick overview of atomics in C

https://lemire.me/blog/2026/09/09/a-quick-overview-of-atomics-in-c/
1•ingve•2m ago•0 comments

Chinese businesses give away AI tokens with coffee, credit cards, and dumplings

https://restofworld.org/2026/china-ai-tokens-consumer-rewards-credit-cards-telcos-deepseek/
1•herbertl•3m ago•0 comments

Limits and opportunities of AI reviewers: Reviewing the reviews of Nature papers

https://arxiv.org/abs/2605.20668
1•marojejian•4m ago•1 comments

Before Magnitsky: The Forgotten Russian Arithmetic Textbook Printed in Amsterdam

https://valeman.medium.com/before-magnitsky-the-forgotten-russian-arithmetic-textbook-printed-in-...
1•ibobev•6m ago•0 comments

Building a Reliable PostgreSQL Queue: Concurrency, Crashes, Retries, and Scale

https://blog.master.dev/building-a-reliable-postgresql-queue-concurrency-crashes-retries-and-scale/
1•ibobev•8m ago•0 comments

Where the 21st Century Was Invented – The National Museum of Computing (Tnmoc)

https://retrogamecoders.com/tnmoc/
1•ibobev•9m ago•0 comments

Ferroelectric SRAM at 2nm-class density without EUV, on 28nm GlobalFoundries

https://www.wired.com/story/a-new-dollar400-million-startup-wants-to-fix-the-ai-memory-bottleneck/
1•gordalina•11m ago•0 comments

Amazon refused to give pregnant workers bathroom breaks

https://arstechnica.com/tech-policy/2026/09/lawsuit-amazon-refused-to-give-pregnant-workers-bathr...
3•worik•13m ago•0 comments

Trezor's email provider has been breached

https://twitter.com/Trezor/status/2097786518110609620
4•andreyazimov•17m ago•1 comments

The rise and fall of peer review

https://www.experimental-history.com/p/the-rise-and-fall-of-peer-review
1•CGMthrowaway•20m ago•0 comments

How we created Chess Game Review: What's a key moment?

https://blog.duolingo.com/engineering-game-review/
1•ziyao_w•23m ago•0 comments

Switzerland tests a FOSS escape route from Microsoft 365

https://www.theregister.com/os-platforms/2026/09/09/switzerland-tests-a-foss-escape-route-from-mi...
2•DemiGuru•24m ago•0 comments

Apple Adds AppleCare One Family Plan for Up to Six People

https://www.macrumors.com/2026/09/09/applecare-one-family-plan/
1•ValentineC•25m ago•0 comments

LatentMathBench: Investigating Latent Reasoning in Astra

https://maartenbaert.github.io/LatentMathBench/
2•MaartenBaert•27m ago•2 comments

Joint statement on the 'Child safety online' report [pdf]

https://5rightsfoundation.com/wp-content/uploads/2026/09/Joint-Statement-on-the-expert-panel-repo...
1•worik•28m ago•0 comments

Now it's China's experts who are gig workers training AI

https://restofworld.org/2026/china-expert-ai-trainers/
6•billybuckwheat•29m ago•0 comments

Fileless ELF Execution via Kernel Keyring

https://matheuzsecurity.github.io/hacking/linux-kernel-keyring-fileless-exec/
2•matheuzsec_•30m ago•1 comments

Show HN: Searchy SEO – feature-rich mobile app for Google Search Console

https://searchy.mateuszwozniak.com
1•matisiekpl•31m ago•0 comments

Going Up and Going In

https://longreads.com/2026/09/01/free-solo-climbing-risk-philosophy/
1•mooreds•31m ago•0 comments

Risk Management for Uncertain Estimates

https://honestroadmaps.substack.com/p/risk-management-for-uncertain-estimates
1•mooreds•32m ago•0 comments

iPhone Duo: the high price is a feature

https://larrysalibra.com/iphone-duo-the-high-price-is-a-feature/
3•larrysalibra•32m ago•0 comments

Apple Watch Heart Rate Accuracy Study [pdf]

https://www.apple.com/legal/more-resources/docs/Heart_Rate_Accuracy_Study_2026.pdf
1•corvad•39m ago•2 comments

The Company Man

https://tomasbjartur.substack.com/p/the-company-man
1•TomasBjartur•41m ago•0 comments

Steam now requires a Credit Card to view 18 plus games in Australia

https://i.imgur.com/IUYeWcc.jpeg
2•pixeldins•42m ago•0 comments

FRAME37 – we tried to bring the constraints of film photography to phones

https://apps.apple.com/us/app/frame-37-film-camera/id6789953544
1•evgenii_isupov•43m ago•1 comments

DHS Program Analyzes Americans' Finances to Flag Drivers for Traffic Stops

https://www.military.com/dhs-program-analyzes-americans-finances-to-flag-drivers-for-traffic-stop...
7•randycupertino•43m ago•1 comments

Joshua L. Chamberlain and Civil War Memory (2016)

https://werehistory.org/memory/
2•mooreds•44m ago•0 comments

Prepare your app for iPhone Duo [video]

https://developer.apple.com/videos/play/tech-talks/111461/
1•alwillis•46m ago•0 comments