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!

Device that harvests water from thin air wins the James Dyson Award (2016)

https://www.cawater-info.net/all_about_water/en/?p=4978
1•peter_d_sherman•47s ago•0 comments

Open source tools for Quantum resistance security Post Quantum Protection

https://github.com/SCDcomputing/PostQuantumProtection
1•CyberSpin•2m ago•0 comments

Compliant Mechanisms Lecture Series [video]

https://www.youtube.com/watch?v=j1lT1RtKnms&list=PLWeErkRyxkhKL_pjYBCR2jYcvAh5PaXoP
1•o4c•5m ago•0 comments

FDA approves first mRNA flu shot, from Moderna

https://www.nbcnews.com/health/health-news/fda-approves-1st-mrna-flu-shot-moderna-rcna590599
2•OutOfHere•8m ago•1 comments

Google's Top AI Brains Are Leaving–and Launching Their Own AI Startup

https://www.wired.com/story/jeff-dean-google-discovery-loop-startup/
1•dnikitan97•10m ago•0 comments

SpaceX First Report Card

https://askmelon.com/beta/articles/2026-08-05T0100-eighteen-billion-in-ninety-days
1•alvations•10m ago•0 comments

Accelerating biomass loss from forest disturbances across Europe

https://www.nature.com/articles/s41561-026-02032-y
1•littlexsparkee•12m ago•0 comments

'Only one conclusion': study suggests life on Earth arose twice

https://www.sciencealert.com/radical-study-suggests-life-on-earth-arose-from-non-living-matter-twice
2•arto•13m ago•0 comments

Broadcaster Wins Broad US Blocking Injunction Covering Non-Existing Pirate Sites

https://torrentfreak.com/broadcaster-wins-broad-u-s-blocking-injunction-covering-pirate-sites-tha...
1•gslin•16m ago•0 comments

Microsoft is serious about fixing Windows, and it's doing things right this time

https://www.windowscentral.com/microsoft/windows-11/i-tested-5-major-changes-and-improvements-com...
1•thunderbong•29m ago•2 comments

LinuxViz – 3D Linux Kernel Architecture Explorer

https://tomasantunes.github.io/LinuxViz/
4•tomasantunes89•45m ago•1 comments

Black lung rates in Appalachia are high as the 1970s, thousands of miners sick

https://www.npr.org/2026/08/05/nx-s1-5894884/appalachia-black-lung-coal-miners-silica-dust
5•Jimmc414•46m ago•0 comments

Show HN: Is It an OS?

https://iiao.algor.ist
1•indydevs•48m ago•0 comments

QoD: Is Lucid in the early stages of failure?

https://www.thetruthaboutcars.com/cars/news-blog/question-of-the-day-is-lucid-in-the-early-stages...
1•RickJWagner•49m ago•0 comments

Libraries Are Leading the Fight for Physical Media Ownership

https://www.arl.org/blog/consumers-are-worried-about-the-loss-of-physical-media-ownership-librari...
2•donohoe•49m ago•0 comments

Show HN: MusicMonitor – Turn your extra monitor into a Spotify now-playing view

https://github.com/j-sofia/MusicMonitor
2•j-sofia•49m ago•1 comments

The Investors Whose SpaceX Shares Vanished Before They Could Cash In

https://www.wsj.com/finance/stocks/spacex-ipo-spv-investors-2698a174
4•JumpCrisscross•53m ago•0 comments

AI agents that inherit the user's permissions, not API keys

https://blog.cloudflare.com/how-we-use-ai-with-cloudflare-os/
1•thoughtpeddler•54m ago•0 comments

Industrial Revolution to AI tech upheavals: The Catholic principle guiding popes

https://theconversation.com/the-catholic-principle-guiding-popes-through-tech-upheavals-from-the-...
3•1659447091•58m ago•0 comments

A composer published a paper in physics. His lack of credentials drew criticism

https://retractionwatch.com/2026/08/05/a-composer-published-a-paper-on-theoretical-physics-his-la...
1•unprovable•1h ago•1 comments

China's EV Boom Is Quietly Undermining Oil's Biggest Chokepoint

https://oilprice.com/Energy/Energy-General/Chinas-EV-Boom-Is-Quietly-Undermining-Oils-Biggest-Cho...
1•toomuchtodo•1h ago•0 comments

Country and State Maps in LOTR Style

https://lordofmaps.com/
1•silver92bullet•1h ago•0 comments

The Once-Shameless President Is Deeply Embarrassed

https://www.theatlantic.com/politics/2026/08/trump-humiliated-iran-reflecting-pool/688184/
8•petethomas•1h ago•1 comments

How to Install Python3.14 from source on Ubuntu 26.04

https://jamesoclaire.com/2026/08/06/how-to-install-python3-14-from-source-on-ubuntu-26-04/
1•ddxv•1h ago•3 comments

Thomson Reuters Employees Demand That ICE "Leave Our Cities"

https://www.thenation.com/article/politics/thomson-reuters-ice-immigration-voting-data/
7•petethomas•1h ago•5 comments

OpenAI models shared hacking tips on a messaging board before HuggingFace breach

https://www.politico.com/news/2026/08/05/openai-models-shared-hacking-tips-secret-messaging-board...
2•0in•1h ago•0 comments

Unprecedented images may explain one of greatest mysteries of the sun

https://www.theguardian.com/science/2026/aug/05/unprecedented-images-may-explain-one-of-greatest-...
5•colinprince•1h ago•0 comments

Investors are having doubts about Elon Musk's grandiose ambitions

https://economist.com/business/2026/08/05/investors-are-having-doubts-about-elon-musks-grandiose-...
14•andsoitis•1h ago•6 comments

To Predict the Next Token

https://sanghoon.io/journal/2026-08-04-distillation
1•sanghoonio•1h ago•0 comments

Codex Users Are Losing Banked Rate Limit Resets to a Quiet 30 Day Clock

https://startupfortune.com/codex-users-are-losing-banked-rate-limit-resets-to-a-quiet-30-day-clock/
2•newsomix9xl•1h ago•1 comments