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!

DataCenter.FM – background noise app featuring the sound of the AI bubble

https://datacenter.fm/
2•louisbarclay•2m ago•0 comments

LLM 0.32a0 is a major backwards-compatible refactor

https://simonwillison.net/2026/Apr/29/llm/
2•thebeardisred•4m ago•0 comments

Coding Was Never the Hard Part: What I Wish Every Business Leader Knew About AI

https://koushikdasika.com/blog/coding-was-never-the-hard-part/
2•HalcyonicStorm•5m ago•0 comments

Mozilla's Opposition to Chrome's Prompt API

https://github.com/mozilla/standards-positions/issues/1213
3•jaffathecake•10m ago•0 comments

Show HN: Pg_column_Tetris – a pg extension for optimal column alignment

https://github.com/rogerwelin/pg_column_tetris
2•rogerw•11m ago•0 comments

Reasoning compresses. Factual knowledge doesn't

https://twitter.com/bojie_li/status/2049314403208896521
2•stared•12m ago•0 comments

Nvidia releases Nemotron 3 Nano Omni multimodal model

https://blogs.nvidia.com/blog/nemotron-3-nano-omni-multimodal-ai-agents/
2•madaxe_again•16m ago•0 comments

Bouncing Droplet "Quantum Mechanics"

https://scottlocklin.wordpress.com/2026/04/28/bouncing-droplet-quantum-mechanics/
2•tosh•16m ago•0 comments

Terminal file picker and inline editor for fast CLI workflows

https://pypi.org/project/terminal-file-picker/
2•sahedwave•17m ago•0 comments

A photon was teleported across 270 meters in quantum breakthrough

https://www.sciencedaily.com/releases/2026/04/260429102030.htm
2•geox•17m ago•0 comments

Patrick Collison Reflects on Stripe Sessions

https://twitter.com/patrickc/status/2049705418436600244
2•tosh•18m ago•0 comments

OpenAI Codex prompt includes explicit directive: "never talk about goblins"

https://arstechnica.com/ai/2026/04/openai-codex-system-prompt-includes-explicit-directive-to-neve...
3•pookieinc•20m ago•0 comments

Hunting Down the Google-Sent Phishing Wave Compromising 30k Facebook Accounts

https://guard.io/labs/accountdumpling---hunting-down-the-google-sent-phishing-wave-compromising-3...
2•vulnerabiliT•20m ago•0 comments

Soundness Failures in LaBRADOR Implementations from NTT-Friendly Rings

https://blog.zksecurity.xyz/posts/labrador-bugs/
7•zgeorgios•22m ago•0 comments

Chinese GPU maker Lisuan Tech is the fourth GPU maker with WHQL certification

https://www.tomshardware.com/pc-components/gpus/in-historic-first-chinese-gpu-maker-lisuan-tech-b...
3•cassianoleal•23m ago•0 comments

Thoughts on WebAssembly as a Stack Machine

https://eli.thegreenplace.net/2026/thoughts-on-webassembly-as-a-stack-machine/
2•ingve•23m ago•0 comments

Emulating PS2 Floating-Point Numbers: IEEE 754 Differences (2023)

https://www.gregorygaines.com/blog/emulating-ps2-floating-point-nums-ieee-754-diffs-part-1/
2•haunter•27m ago•0 comments

Beyond 80/20: High-Entropy Minority Tokens Drive Effective RL for LLM Reasoning

https://arxiv.org/abs/2506.01939
2•mdp2021•31m ago•0 comments

It is just too much of everything

https://www.respan.ai/market-map
2•sminchev•32m ago•1 comments

A Brief, Incomplete, and Mostly Wrong History of Programming Languages (2009)

http://james-iry.blogspot.com/2009/05/brief-incomplete-and-mostly-wrong.html
3•downbad_•39m ago•1 comments

The Elephant in the Room

https://www.joshwcomeau.com/email/wham-launch-005-elephant-2-p/
2•ameybhavsar•40m ago•0 comments

OpenAI Technical Goals (2016)

https://openai.com/index/openai-technical-goals/
2•chistev•41m ago•1 comments

US orders chip equipment companies to halt some shipments to China #2 chipmaker

https://www.reuters.com/world/china/us-orders-chip-equipment-companies-halt-some-shipments-hua-ho...
2•giuliomagnifico•43m ago•0 comments

The box-tickers shall inherit the Earth

https://spectator.com/article/the-box-tickers-shall-inherit-the-earth/
2•calpaterson•45m ago•0 comments

VS Code now enables Git AI co-authoring by default

https://code.visualstudio.com/updates/v1_118#_copilot-added-as-a-git-coauthor-by-default
2•nh43215rgb•46m ago•0 comments

Inspired

https://daniel.haxx.se/blog/2026/04/30/inspired/
2•TangerineDream•46m ago•0 comments

Near Future of Programming Languages (2017) [pdf]

https://web.archive.org/web/20220325175116/http://dev.stephendiehl.com/nearfuture.pdf
1•tosh•49m ago•0 comments

Why are the Artemis II photos on Flickr?

https://www.anildash.com/2026/04/30/artemis-photos-flickr/
2•Tomte•50m ago•0 comments

AI Slopocalypse 2027

https://www.stephendiehl.com/posts/ai_slop_2027/
1•andsoitis•51m ago•0 comments

Ask HN: Anyone using AI agents for active learning sprints? Here's my setup

2•bhagyeshsp•51m ago•0 comments