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!

Almost always look on the bright side of life

https://economist.com/business/2026/05/21/why-you-should-almost-always-look-on-the-bright-side-of...
1•andsoitis•7m ago•1 comments

Stop Doing Easy Things

https://xendo.bearblog.dev/stop-doing-easy-things/
1•xendo•10m ago•0 comments

The Essential Cloud for AI: Why Purpose-Built Defines the Future of Intelligence

https://www.coreweave.com/blog/the-essential-cloud-for-ai-why-purpose-built-defines-the-future-of...
1•janandonly•11m ago•0 comments

Show HN: IA-SQL – Postgres compiles your documents into a wiki with an LLM

https://github.com/feers77/iasql
1•feers77•11m ago•0 comments

The EU's Big Tech law was meant to move fast. It hasn't

https://www.politico.eu/article/eu-big-tech-law-meant-to-move-fast-it-hasnt/
2•miohtama•17m ago•0 comments

Modal's Series C: Raising $355M at a $4.65B valuation

https://modal.com/blog/modal-series-c
1•yla92•19m ago•0 comments

A simple clustering algorithm for lists

https://cassidoo.co/post/clustering-tiles/
1•cassidoo•21m ago•0 comments

Ilma, a Navtex Receiver for Raspberry Pi

https://code.sailorslog.io/blog/2026-05-06-ilma-navtex-decoder/
1•sailingcode•26m ago•1 comments

Concerning the National Information Technology Authority Bill, 2025

https://medium.com/sort-of-like-a-tech-diary/concerning-the-national-information-technology-autho...
1•wsgeorge•28m ago•0 comments

Supercharging Claude Code with the Right (CLI) Tools

https://batsov.com/articles/2026/02/17/supercharging-claude-code-with-the-right-tools/
2•fagnerbrack•29m ago•0 comments

The Perfect Code Review: How to Reduce Cognitive Load While Improving Quality

https://bastrich.tech/perfect-code-review/
1•fagnerbrack•29m ago•0 comments

Leaving Performance on the Table

https://fzakaria.com/2026/05/23/leaving-performance-on-the-table
2•ingve•31m ago•0 comments

Individual Logarithm Reduction Step of Discrete Logarithm Problem

https://leetarxiv.substack.com/p/individual-logarithm-reduction-step
1•birdculture•32m ago•0 comments

I used Kimi to build a webgame: GeoGuessr but for Guns

https://gunguesser.com
2•abhahbnar•33m ago•0 comments

AI is not making software worse, people are

https://rapha.land/no-ai-is-not-making-software-worse-people-are/
3•purpleberry•33m ago•2 comments

Theseus: Translating Win32 to WASM

https://neugierig.org/software/blog/2026/05/theseus-wasm.html
1•ingve•37m ago•0 comments

Scaling Akvorado BMP Rib with Sharding

https://vincent.bernat.ch/en/blog/2026-akvorado-rib-sharding
1•g0xA52A2A•41m ago•0 comments

I Ditched Google ADK for LangGraph

https://mayberay.bearblog.dev/i-ditched-google-adk-for-lang-graph/
2•mugamuga•44m ago•0 comments

If you let AI do your writing, I will come to your house and kill you

https://samkriss.substack.com/p/if-you-let-ai-do-your-writing-i-will
14•ghghgfdfgh•44m ago•5 comments

Cheney on the MTA (1994)

https://www.plover.com/misc/hbaker-archive/CheneyMTA.html
1•tosh•45m ago•1 comments

Should shortform content have visible credibility metadata?

1•HelloWorldP•50m ago•1 comments

Vipresso – WordPress plugin boilerplate with React, Vite, and Playground demo

https://github.com/tommasomeli/vipresso
2•tommasomeli•51m ago•0 comments

CampaignPilot – self-hosted SMTP engine with atomic Redis throttling

https://github.com/toinbox/campaign-pilot
1•toinbox•54m ago•0 comments

Tennis audio line calling with two iPhone cameras [video]

https://www.youtube.com/watch?v=fO4BULvXELY
1•Austin_Conlon•54m ago•0 comments

Cosmic Voids May Contain the Universe's Best Secrets

https://www.wired.com/story/cosmic-voids-might-contain-universes-best-secrets/
1•joozio•55m ago•0 comments

Our 2D game character grew 3% taller every time he walked

https://hey.paris/posts/leo-sprite-alignment/
2•parisidau•56m ago•0 comments

Zero Knowledge (About) Encryption: Security Analysis of Password Managers

https://eprint.iacr.org/2026/058
1•Ember_Wipe•1h ago•0 comments

Why young academics are leaving academia

https://www.ft.com/content/8097a49b-32f9-455c-890c-921d3b419f59
1•bazzmt•1h ago•0 comments

Le Baguette Index

https://lebaguetteindex.fr/
2•wouterjanl•1h ago•0 comments

Show HN: A deep dive into Kubernetes internals

https://semicolony.dev/codex/kubernetes/
6•officerdodles12•1h ago•0 comments