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!

The Joy of Kintsugi

https://www.autodidacts.io/the-joy-of-kintsugi/
1•Curiositry•33s ago•0 comments

How the US Economy Works – an interactive map

https://economy.fogpier.com/
1•Indian_in_US•7m ago•0 comments

Only 1 in 500 Visitors Is an AI Agent (So Far)

https://www.quantable.com/analytics/how-much-agentic-traffic/
2•jhpacker•8m ago•0 comments

Russia's War Transforms Ukraine into a World-Leading Military Producer

https://jamestown.org/russias-war-transforms-ukraine-into-a-world-leading-military-producer/
1•prmph•12m ago•0 comments

I wanted to sleep without my phone. But what if someone needed me?

https://www.rnz.co.nz/life/wellbeing/i-wanted-to-sleep-without-my-phone-but-what-if-someone-neede...
3•billybuckwheat•13m ago•0 comments

iPod Nano Can Run iOS

https://www.macrumors.com/2026/11/29/ipod-nano-can-finally-run-ios/
1•thm•14m ago•0 comments

I Cloned Their Plugin with AI...Then They Found Out

https://www.youtube.com/watch?v=ACAfH5uez9Y
1•Betelbuddy•15m ago•0 comments

Former Stasi Officer on the NSA domestic surveillance (2013)

https://www.businessinsider.com/stasi-talks-about-nsa-surveillance-state-2013-6
1•niemandhier•15m ago•0 comments

Gesstimate, a daily number-guessing game with hot-or-cold feedback

https://gesstimate.co.uk/
1•mcroberts•17m ago•0 comments

Show HN: On Simulating LLMs on Optical Hardware

https://huggingface.co/spaces/ritabratamaiti/optical-weight-simulator
1•hoopla_ching•17m ago•0 comments

Knowing What Belongs

https://riccardobusetti.me/posts/knowing-what-belongs
1•Pamar•18m ago•0 comments

Managing Context Window with Pi /Tree: Branches Summaries Subagentlike Workflows

https://stacktoheap.com/blog/2026/02/26/pi-tree-context-window-management/
1•jason_s•19m ago•1 comments

Scientists Discover Most Neurons Are Jacks-of-All-Trades

https://zuckermaninstitute.columbia.edu/upending-decades-debate-scientists-discover-most-neurons-...
1•ersinesen•22m ago•0 comments

What formal verification is in reality

https://formalverification.fail/
1•sspehr•22m ago•0 comments

Open-source database IDE in the browser, with an agent that runs on local models

https://github.com/libredb/libredb-studio
1•abdullahk0634•22m ago•0 comments

Why Every Frontier Lab Uses Our Webhook Standard

https://www.svix.com/blog/why-every-frontier-lab-uses-our-webhook-standard/
1•mooreds•26m ago•0 comments

Proof of the Extended Riemann Hypothesis from Axiom Math

https://github.com/AxiomMath/erh-totally-real
2•nb-t•29m ago•0 comments

Integrating Factor

https://susam.net/integrating-factor.html
2•susam•29m ago•0 comments

Anthropic has made a major breakthrough in theoretical cryptanalysis

https://twitter.com/AndrewCurran_/status/2127127873802911864
26•bifftastic•30m ago•6 comments

Sidenotes with CSS Anchor Positioning

https://vincent.bernat.ch/en/blog/2026-css-sidenotes
3•jez•30m ago•0 comments

Show HN: An IRC Bouncer for Meshtastic

https://github.com/fiskeben/meshtastik
1•fiskeben•34m ago•0 comments

This 'linear' clock cleverly reimagines how to tell time

https://www.fastcompany.com/91644896/linear-clock-johannes-van-ginkel
2•grsmvg•34m ago•0 comments

FDA Phonetic and Orthographic Computer Analysis (POCA)

https://poca-public.fda.gov/name_search
1•Clamchop•35m ago•0 comments

Why College Towns Are Booming

https://www.theatlantic.com/ideas/2026/11/housing-yimby-college-towns/689596/
1•littlexsparkee•36m ago•0 comments

Scout: $25 Wi-Fi camera to show any agent what's happening at home

https://usenym.com/scout
2•nateb2022•40m ago•0 comments

GPT Sol 6.2 feels Nerfed

https://taoofmac.com/space/notes/2026/11/29/1133
6•rcarmo•42m ago•0 comments

The Keychron B11 Pro

https://taoofmac.com/space/reviews/2026/11/29/1927
3•rcarmo•43m ago•0 comments

Robot Data Pipelines: Filtering, Autolabeling, and Training Processors

https://www.ghussein.org/blog/inside-robotic-systems/robot-data-pipelines
1•GashonHussein•45m ago•0 comments

SettlyGo – Local Help for Everyday Life in Germany

https://www.settlygo.app/en
1•mrvarmazyar•46m ago•1 comments

40-Mac Studio Cluster in an Attic Crawl Space (Spanish) [video]

https://www.youtube.com/watch?v=C8SAvjiMFNo
2•soci•47m ago•0 comments