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 cargo airship lifted by vacuum instead of helium (peer-reviewed)

https://www.sciencedirect.com/science/authShare/S1270963826011788/20260608T232600Z/1?md5=c16e82fa...
1•iliatoli•44s ago•0 comments

Meta Launches 'Workforce Academy' to Train Workers to Build Data Centers

https://www.wsj.com/tech/ai/meta-launches-workforce-academy-to-train-workers-to-build-data-center...
1•sebastian_z•51s ago•0 comments

France Slaps Nintendo with $46M Fine over Switch Joy-Con Drift

https://www.ign.com/articles/france-slaps-nintendo-with-46-million-fine-over-switch-joy-con-drift
1•rcy•1m ago•0 comments

US millionaire big-game hunter dies after being crushed by elephants

https://www.theguardian.com/us-news/2026/apr/24/millionaire-hunter-dies-elephants-gabon
1•PaulHoule•3m ago•0 comments

Getting Lois in Defense?

1•andrebenoit11•4m ago•0 comments

If HN policy disallows AI comments, why is linking to AI generated content ok?

3•ekelsen•5m ago•3 comments

Empire of the Air (PBS, 1992)

https://archive.org/details/empire-of-the-air
1•petethomas•7m ago•0 comments

Tests suggest Russian satellites can jam GPS on a continental scale

https://arstechnica.com/space/2026/06/tests-suggest-russian-satellites-can-jam-gps-on-a-continent...
3•emot•13m ago•0 comments

Elon Musk says SpaceX doesn't need 'magic' to put AI data centers up in space

https://www.marketwatch.com/story/elon-musk-says-spacex-doesnt-need-magic-to-put-ai-data-centers-...
1•emot•14m ago•0 comments

Meta Deletes Face-Recognition System from Smart Glasses App After Wired Report

https://www.wired.com/story/meta-removes-face-recognition-code-meta-ai-app-smart-glasses/
3•littlexsparkee•15m ago•0 comments

Show HN: I recreated AOL Instant Messenger in the browser

https://www.webaim.xyz
2•RgrTheShrubbr•20m ago•0 comments

Loop Engineering

https://twitter.com/i/status/2064127981161959567
2•twapi•22m ago•0 comments

Rutger Bregman and His School for Moral Ambition Lacks Moral Ambition

https://louwrentius.com/rutger-bregman-his-school-for-moral-ambition-lacks-moral-ambition.html
1•louwrentius•23m ago•0 comments

Supporting Exchange and beyond

https://brendan.abolivier.bzh/exchange-pt-2/
1•babolivier•24m ago•0 comments

A new study says people love working from home, but does it love them back?

https://www.npr.org/2026/06/08/nx-s1-5848125/remote-work-mental-health-isolation
2•xrd•25m ago•0 comments

Exposing the Solid State Donut Battery. It's Over. [video]

https://www.youtube.com/watch?v=j5oyVNjrUPI
2•jbardnz•26m ago•0 comments

GNU Binutils 2.46.1 Released

https://sourceware.org/pipermail/binutils/2026-June/149568.html
2•edelsohn•26m ago•0 comments

Semantics for 2D Rasterization

https://arxiv.org/abs/2603.23696
2•coffeeaddict1•29m ago•0 comments

SpaceX has just officially unveiled its AI1 satellite

https://twitter.com/SawyerMerritt/status/2064108916611420273
3•redox99•32m ago•0 comments

Remembering the USS Liberty – and why it still matters

https://captimes.com/opinion/guest-columns/opinion-remembering-the-uss-liberty-and-why-it-still-m...
4•kumarski•32m ago•1 comments

170k Claude queries per gallon of gas?

https://claude.ai/share/44fdc891-0fe5-40f3-a5b5-b203bbb6ab02
2•millisecond•33m ago•1 comments

AI Is Upending One of Finance's Cushiest Jobs

https://www.bloomberg.com/news/features/2026-06-05/ai-is-upending-traditional-financial-advisor-jobs
2•ctkhn•35m ago•2 comments

JNU, an Vibe Coded Operating System

3•annoymousperson•38m ago•0 comments

AI Has Broken Hiring

https://hbr.org/2026/06/ai-has-broken-hiring-heres-how-to-fix-it
2•seafaithless•40m ago•0 comments

BofA Warns It's Time to 'Take Profits' as Red Flags Multiply

https://www.bloomberg.com/news/articles/2026-06-08/bofa-warns-it-s-time-to-take-profits-as-red-fl...
12•petethomas•48m ago•0 comments

Show HN: Mach – A compiled systems language looking for contributions

https://github.com/octalide/mach
6•octalide•53m ago•1 comments

Show HN: Ustps (UDP Speedy Transmission Protocol Secure) and USSH

https://github.com/x1colegal/USTP-Secure
3•x1colegal•58m ago•1 comments

Show HN: Sudo Report – Drudge closne for AI/tech/product

https://wwe.sudoreport.com
3•ataturkle•1h ago•0 comments

WhatsApp disrupted spear phishing attempts, asks court to hold NSO in contempt

https://arstechnica.com/tech-policy/2026/06/meta-alleges-nso-violated-spyware-injunction-with-new...
2•SockThief•1h ago•0 comments

Why Compiler Engineers Avoid Strassen's Algorithm for Matrix Multiplication

https://leetarxiv.substack.com/p/why-compilers-rarely-use-strassens-algorithm
3•birdculture•1h ago•0 comments