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!

eBay, former executives to pay $56M to settle couple's harassment case

https://www.reuters.com/legal/government/ebay-former-executives-pay-56-million-settle-couples-har...
1•aanet•53s ago•1 comments

I'm sorry I didn't respond to your job application

https://xcancel.com/i/article/2082172350037209264
1•mrkaye97•1m ago•0 comments

Ask HN: I lost any interest in technology. What do I do?

1•fnoef•1m ago•0 comments

The Business Is the Business

https://nik.art/the-business-is-the-business/
1•herbertl•2m ago•0 comments

LLMs often miss subtle visual artifacts in data visualizations

https://opensource.posit.co/blog/2026-07-17_ai-newsletter/
1•simonpcouch•5m ago•0 comments

Show HN: Corrdex – semantic repo search using code classification and function

https://www.corrdex.app/
1•harveyhayes•5m ago•0 comments

Sorry, Sam and Elon, we have not reached the Singularity

https://garymarcus.substack.com/p/sorry-sam-and-elon-we-have-not-reached
3•kgwgk•5m ago•0 comments

Deflock Casa Grande

https://deflockcg.com/
2•mooreds•6m ago•0 comments

Scanning Erlang/OTP: cloc kept breaking – what it took to measure it properly

https://codedelta.app/article-otp-rework.html
1•code-delta-app•7m ago•0 comments

Simulating TCP loss and congestion in browser using Go/WASM

https://ccsim.fly.dev
1•dilyevsky•10m ago•0 comments

MCP 2026-07-28 Specification: transport going stateless

https://blog.modelcontextprotocol.io/posts/2026-07-28/
9•Eldodi•13m ago•3 comments

Why AI Agents Need Databases That Branch Like Git

https://old.reddit.com/r/databasedevelopment/comments/1v8hbe0/why_fast_branching_is_key_to_ai_age...
1•syumei•14m ago•0 comments

How-AOC's-ForeignPolicy-vision=different-from-Biden

https://newrepublic.substack.com/p/how-aocs-foreign-policy-vision-is
2•mistercaz•14m ago•0 comments

Pulsar Editor – Reborn and Maintained Atom Fork

https://pulsar-edit.dev
1•ietcd•14m ago•0 comments

Starting from Zero When the Internet Is Full: The Slop Arms Race

https://allstead.dev/blog/starting-from-zero-seo-aio-slop-era
1•willio58•16m ago•0 comments

The Most Valuable AI Product Won't Be Intelligence

https://futurehangover.substack.com/p/the-most-valuable-ai-product-wont
1•DefNotAiForSure•17m ago•0 comments

Writing with Vim Motions: Four Modes of Thinking

https://www.ssp.sh/brain/four-modes-of-writing/
3•zazuke•20m ago•0 comments

All Words, No Mornings

https://www.jonadas.com/writing/essays/all-words-no-mornings
1•JumpCrisscross•22m ago•0 comments

The AI Future Is for Everyone

https://www.wsj.com/opinion/the-ai-future-is-for-everyone-a0c24e20
6•ms7892•23m ago•4 comments

Colleges Must Ensure Grads Earn More or Lose Federal Aid

https://unusualwhales.com/news/colleges-must-ensure-grads-earn-more-or-lose-federal-aid
1•gmays•23m ago•3 comments

Federal Probe into Dodgers Owner's Financial Empire Was Sparked by Whistleblower

https://www.wsj.com/finance/regulation/federal-probe-into-dodgers-owners-financial-empire-was-spa...
1•petethomas•24m ago•0 comments

Show HN: Fastest non lossy JSON parser

https://github.com/skrcode/bestjsonformatter-cli
1•surajkrajan•25m ago•0 comments

ZFS Scrubs with no ECC (what could possibly go wrong?) (2025)

https://forums.truenas.com/t/zfs-scrubs-with-no-ecc-what-could-possibly-go-wrong/30863
2•thunderbong•25m ago•0 comments

Datatype: A variable font that turns text into charts

https://franktisellano.github.io/datatype/
1•CharlesW•26m ago•0 comments

The Wait Equation

https://en.wikipedia.org/wiki/The_Wait_Equation
1•Jimmc414•26m ago•0 comments

More planes get emergency auto-land tech

https://www.washingtonpost.com/transportation/2026/07/26/good-news-nervous-flyers-more-planes-get...
1•bookofjoe•27m ago•1 comments

Ask HN: What will it take you to shift to a new social media platform?

2•sahil423•27m ago•8 comments

Ask HN: Can't we think out of the box to kill the tumor?

1•kinj28•28m ago•2 comments

Show HN: Sessiongrep – Local-First Memory Across Claude Code, Codex, and Cursor

https://github.com/braincompany/sessiongrep
1•npx88•28m ago•0 comments

He Bought a House 'Sight Unseen.' Then He Found Three Dead Bodies

https://www.wsj.com/real-estate/he-bought-a-house-sight-unseen-then-he-found-three-dead-bodies-6c...
3•gmays•31m ago•1 comments