frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Fast and Quality Code Chunking with Chonkie

1•snyy•9mo 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!

Exploring Rust Traits

https://beej.us/blog/data/rust-trait-impl/
1•vinhnx•5m ago•0 comments

Aristotle and the so-called Tragic Flaw

https://jonathanbate.substack.com/p/aristotle-and-the-so-called-tragic
1•B1FF_PSUVM•7m ago•0 comments

Show HN: Letta – Git-Based Memory for Coding Agents

https://www.letta.com/
1•morawr•8m ago•0 comments

Mimir: GPU Computational Kernels in Rust

https://github.com/ccleavinger/mimir
1•cjcleav•8m ago•1 comments

Show HN: Generate unique icon sets and extend them later in the same style

https://iconsmint.com
1•tommydolso•9m ago•0 comments

Quamina and Claude, Case 1

https://www.tbray.org/ongoing/When/202x/2026/02/06/Q-Plus-C-Ch1
1•zdw•12m ago•0 comments

Show HN: Quoracle: Self-replicating multi-LLM-consensus agents (Elixir)

https://github.com/shelvick/quoracle
1•shelvick•15m ago•1 comments

Our security auditor is an idiot. How do I give him the information he wants?

https://serverfault.com/questions/293217/our-security-auditor-is-an-idiot-how-do-i-give-him-the-i...
2•gurjeet•17m ago•1 comments

Maryland faces another spate of viral infections. This time it's mumps

https://www.thebanner.com/community/public-health/mumps-measles-vaccinations-infections-4DQODQEXB...
2•cdrnsf•20m ago•0 comments

The Debacle That Led to the Closure of El Paso's Airspace

https://www.nytimes.com/2026/02/14/us/politics/el-paso-airspace-closure-faa-pentagon.html
8•bahmboo•24m ago•2 comments

The Myth of Technological Unemployment (2017)

https://reason.com/2017/07/11/the-myth-of-technological-unem/
1•johntfella•29m ago•0 comments

MythConceptions – Most Contagious Falsehoods

https://informationisbeautiful.net/visualizations/common-mythconceptions/
1•vismit2000•34m ago•0 comments

Guitars of the USSR and the Jolana Special in Azerbaijani Music

https://caucascapades.wordpress.com/2012/06/14/guitars-of-the-ussr-and-the-jolana-special-in-azer...
2•bpierre•34m ago•0 comments

Coding Adventure: Rendering Text [video]

https://www.youtube.com/watch?v=SO83KQuuZvg
1•vinhnx•38m ago•0 comments

AXS-6: Adaptive EXponent Sharing – 6-Bit Training Format

https://github.com/bwiemz/axs-6
2•AkaiNa•38m ago•1 comments

Advice for amateur mathematicians on writing and publishing papers

https://cohn.mit.edu/advice/
1•paulpauper•41m ago•0 comments

The Myth of Nordic Mobility: Social Mobility Rates in Modern Denmark and Sweden

https://link.springer.com/article/10.1057/s41294-025-00267-z
2•paulpauper•42m ago•0 comments

Who pays the price for Pakistan's new solar regime?

https://www.dawn.com/news/1972275
1•paulpauper•42m ago•0 comments

Grep by Example: Interactive Guide

https://antonz.org/grep-by-example/
2•vinhnx•43m ago•0 comments

Massive Precut Stone

https://en.wikipedia.org/wiki/Massive_precut_stone
2•scythe•44m ago•0 comments

Musk's AI chatbot Grok gains US market share amid sexualized images backlash

https://www.reuters.com/business/media-telecom/musks-ai-chatbot-groks-us-market-share-jumps-amid-...
3•petethomas•47m ago•2 comments

AtomVM – Elixir, Erlang, and Gleam on Microcontrollers [video]

https://fosdem.org/2026/schedule/event/YP97YR-atomvm_elixir_erlang_and_gleam_on_microcontrollers/
1•TheWiggles•52m ago•0 comments

Show HN: Adobe-fonts-skill, search fonts, update kits, and ship UI code faster

https://github.com/alexh/adobe-fonts-skill
1•alexhaynes•53m ago•0 comments

U.S. Deports Nine Migrants in Secret, Ignoring Legal Protections

https://www.nytimes.com/2026/02/14/world/africa/us-secret-deportation-cameroon.html
10•jbegley•53m ago•0 comments

Blockchain in a Box (Docker: Educational Crypto Nodes with Lesson Plans)

https://github.com/androidteacher/iCSI_Coin_2026
1•Beckmeister•55m ago•1 comments

UpScrolled Suspended from Google Play

https://newsroom.upscrolled.com/blog-posts/view/5919/update-upscrolled-suspended-from-google-play
2•lyu07282•58m ago•0 comments

Worlds first(?) voice email Android app

https://gerrysapps.com/owlmail/
1•gerryscat•1h ago•0 comments

Welcome to the Internet's Nihilism Crisis

https://www.theatlantic.com/technology/2026/02/internet-nihilism-crisis/686010/
3•Analemma_•1h ago•1 comments

Building the Chinese Room

https://www.verysane.ai/p/building-the-chinese-room
1•gmays•1h ago•0 comments

Show HN: Git Navigator – Use Git Without Learning Git

https://gitnav.xyz
4•binhonglee•1h ago•0 comments