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!

Simple 3D Modeler on Web

https://sinter-3d.com/
1•db1024•1m ago•1 comments

Google Commits to Invest Up to $40B in Anthropic

https://www.nytimes.com/2026/04/24/technology/google-anthropic-investment-artificial-intelligence...
1•xnx•3m ago•0 comments

Cohere to Acquire Aleph Alpha

https://www.ft.com/content/4492c0d6-855b-4164-9ae5-f4d855a95f1e
2•mkirchner•7m ago•0 comments

What Is APL and What Can APL Do for You? (2024) [video]

https://www.youtube.com/watch?v=-5mSOyr8roc
1•tosh•9m ago•0 comments

Join the Choredle Android Beta Testers List

https://app.choreodle.com/#mlb2-40174361
1•mohanjith•10m ago•1 comments

The Geometry of Forgetting

https://arxiv.org/abs/2604.06222
2•ashwing1984•13m ago•0 comments

Use Built-In VPN in Firefox

https://support.mozilla.org/en-US/kb/built-in-vpn
1•HelloUsername•14m ago•0 comments

The Classic American Diner

https://blogs.loc.gov/picturethis/2026/04/the-classic-american-diner/
3•NaOH•16m ago•0 comments

Relays for Nimony's Standard Library

https://nim-lang.org/araq/relays.html
1•moigagoo•19m ago•0 comments

Show HN: I'm 15 and built a cryptographic accountability layer for AI agents

https://github.com/arian-gogani/nobulex
1•arian_•21m ago•0 comments

mine: A complete, no-frills IDE for Coalton and Common Lisp

https://twitter.com/stylewarning/status/2047736414704435535
2•tosh•24m ago•0 comments

Ubuntu 26.04 Released

https://discourse.ubuntu.com/t/ubuntu-26-04-resolute-raccoon-lts-released/80833
4•synergy20•24m ago•2 comments

AI Agent Designs a RISC-V CPU Core from Scratch

https://spectrum.ieee.org/ai-chip-design
2•Teever•26m ago•0 comments

APL\? (1990)

https://dl.acm.org/doi/epdf/10.1145/97811.97845
1•tosh•28m ago•0 comments

MiniZinc, constraint modelling language solve discrete optimisation problems

https://www.minizinc.org
2•Alifatisk•30m ago•0 comments

FluxBB Built with Rust

https://github.com/skorotkiewicz/fluxbb-rs
2•modinfo•33m ago•0 comments

'Startup Cowboys' Are Making This Texas Town the New Tech Hotspot

https://www.wsj.com/business/entrepreneurship/lockhart-texas-tech-hub-fd1bf380
1•malshe•34m ago•1 comments

A P2P Network for Collaborative AI Code Optimization

https://community.computer/
1•aiw1nt3rs•34m ago•0 comments

Before Apple Music, There Was MapleMusic–Canada's Forgotten Pioneer

https://thewalrus.ca/before-apple-music-there-was-maplemusic/
1•janandonly•34m ago•0 comments

QR Lume – a privacy‑first iOS tool for inspecting QR codes safely

https://apps.apple.com/us/app/qrlume/id6762032298
1•briwandt•35m ago•2 comments

Wsl9x: Windows 9x Subsystem for Linux

https://codeberg.org/hails/wsl9x
1•birdculture•36m ago•1 comments

Mercedes-Benz and Liquid AI Partner to Scale Embedded In-Car Intelligence

https://www.businesswire.com/news/home/20260423009970/en/Mercedes-Benz-and-Liquid-AI-Partner-to-S...
1•mnewme•37m ago•0 comments

Multiview Stereo Projection [video]

https://www.youtube.com/watch?v=YbxsYhTjYFI
5•Saig6•42m ago•1 comments

Google investing up to $40B in Anthropic

https://www.wsj.com/finance/investing/google-expands-anthropic-investment-with-40-billion-commitm...
8•chang1•43m ago•2 comments

The Nintendo Switch Switch (2019)

https://blog.cynthia.re/post/nintendo-switch-ethernet-switch
1•zdw•44m ago•0 comments

Benchmarking OpenAI's Privacy Filter

https://www.tonic.ai/blog/benchmarking-openai-privacy-filter-pii-detection
2•akamor•45m ago•0 comments

SFO Quiet Airport (2025)

https://viewfromthewing.com/san-francisco-airport-removed-90-minutes-of-daily-noise-travelers-say...
30•CaliforniaKarl•47m ago•12 comments

Multiservice Impact for Azure Workloads in East US

https://azure.status.microsoft/en-us/status
2•tapoxi•49m ago•1 comments

QLMarkdown: macOS Quick Look extension for viewing Markdown files

https://github.com/sbarex/QLMarkdown
1•janandonly•49m ago•0 comments

Voice analysis pipeline that detects emotional incongruence

https://app.myyangu.com/
1•xthemadgenius•50m ago•0 comments