frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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!

Movies Are Too Long

https://www.slowboring.com/p/why-movies-are-getting-longer
1•paulpauper•1m ago•0 comments

Smoking, chromosomal aberrations, and cancer incidence in healthy subjects

https://www.sciencedirect.com/science/article/pii/S1383571821000644
1•paulpauper•2m ago•0 comments

Show HN: ChonkLM – Tiny language models running offline in the browser

https://chonklm.com
2•bilalba•2m ago•0 comments

Two kinds of work, and where AI belongs

https://twitter.com/talhof8/status/2051337721151455509
1•talhof8•2m ago•0 comments

Three Model Organisms for Taste

https://www.astralcodexten.com/p/three-model-organisms-for-taste
1•paulpauper•2m ago•0 comments

Off-Grid Boat Communications with Meshtastic

https://blog.noforeignland.com/off-grid-boat-communications-with-meshtastic/
1•tmalsburg2•2m ago•0 comments

I've Banned Query Strings

https://chrismorgan.info/no-query-strings
2•Brajeshwar•4m ago•0 comments

The XM30 program: The Army's Bradley replacement

https://taskandpurpose.com/tech-tactics/army-xm30-bradley-replacement/
1•lorenzohess•5m ago•0 comments

APRS Messaging 36 Miles with Two HTs

https://midnightcheese.com/2026/05/aprs-message-36-miles-two-ht-radios/
1•thcipriani•7m ago•0 comments

Simpson Chalkboard Generator: A Tool for Creating Bart Chalkboard Stills

https://enufstyle.com/generators/bart/
3•stefankuehnel•16m ago•0 comments

Extraterrestrial intelligent beings do not exist

https://articles.adsabs.harvard.edu/pdf/1980QJRAS..21..267T
2•Topfi•17m ago•1 comments

Show HN: Mlx-code – I built a "backyard shed" AI coding agent for Mac

https://github.com/JosefAlbers/mlx-code
1•JosefAlbers•17m ago•0 comments

Claude Code Sandboxing

https://code.claude.com/docs/en/sandboxing
2•Destiner•17m ago•0 comments

Merle Tuve and the development of the proximity fuze

https://www.youtube.com/watch?v=yjQtzk_4czg
1•bane•18m ago•1 comments

Drivers of success – the gap between actual drivers and what we read about

https://alearningaday.blog/2018/12/26/drivers-of-success-the-gap-between-actual-drivers-and-what-...
1•Olshansky•20m ago•0 comments

New financed PostmarketOS project: q6voice(d)

https://postmarketos.org/blog/2026/05/08/q6voice-project/
1•wicket•22m ago•0 comments

Musk, Altman Management Styles Under Fire at OpenAI Trial

https://www.bloomberg.com/news/articles/2026-05-08/musk-altman-management-styles-come-under-fire-...
1•1vuio0pswjnm7•25m ago•1 comments

Musk has never built a wafer fab, but he wants to burn $119B on one anyway

https://www.theregister.com/systems/2026/05/06/spacex-plots-119b-wafer-fab-to-make-elons-orbital-...
4•Bender•27m ago•0 comments

NYC Mesh

https://en.wikipedia.org/wiki/NYC_Mesh
2•thunderbong•27m ago•0 comments

Laptops all have built-in security tokens these days

https://ahelwer.ca/post/2026-05-08-builtin-u2f/
3•psxuaw•29m ago•0 comments

The Secret Diary That Has Spilled into the Musk vs. OpenAI Feud

https://www.wsj.com/tech/musk-openai-trial-greg-brockman-diary-journal-6950270e
3•1vuio0pswjnm7•30m ago•0 comments

Apple promised smarter Siri, it didn't deliver, you can get up to $95 back

https://fortune.com/2026/05/08/apple-smarter-siri-95-class-action-refund/
1•1vuio0pswjnm7•31m ago•0 comments

Surfel-based global illumination on the web

https://juretriglav.si/surfel-based-global-illumination-on-the-web/
2•vmg12•35m ago•0 comments

The AI Revolution in Cancer

https://color.com/blog/ai-revolution-in-cancer-care-delivery/
1•rafaelc•37m ago•0 comments

Informal Greedy Algorithms

https://www.natemeyvis.com/informal-greedy-algorithms/
1•Brajeshwar•37m ago•0 comments

America's A.I. Is Futuristic. China Is Just Making It Work

https://www.nytimes.com/2026/05/09/opinion/ai-china-america-race.html
3•ironyman•42m ago•1 comments

Show HN: Shoehorn – Backstage without the maintenance overhead

https://shoehorn.dev
1•shoehorn-dev•44m ago•0 comments

Death of a Software Developer

https://isthisanart.substack.com/p/death-of-a-software-developer
2•tao_oat•45m ago•0 comments

"Dirty Frag" (CVE-2026-43284): The Second Linux Root Exploit in Eight Days

https://www.copahost.com/blog/dirty-frag-cve-2026-43284/
2•ggallas•45m ago•0 comments

Lanzaboote – NixOS Secure Boot

https://x86.lol/generic/2022/11/26/lanzaboote.html
1•evilmonkey19•49m ago•1 comments