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!

They Say I Blog

https://theysayiblog.com/
2•turtleyacht•1m ago•0 comments

Where Responsibility Exists, but Ownership Doesn't

https://medium.com/@gurvinder372/article-6-where-responsibility-exists-but-ownership-doesnt-01e00...
1•gps372•2m ago•0 comments

ESP32 Bit Pirate Hardware Hacking Kit with Web Tools That Speaks Every Protocol

https://geo-tp.github.io/ESP32-Bit-Pirate/
1•geotp•4m ago•1 comments

The AI Bullwhip

https://tomtunguz.com/the-ai-cost-stack/
1•gmays•5m ago•0 comments

Postgres Calculations and the Ambiguity of Null

https://www.crunchydata.com/blog/postgres-calculations-and-the-ambiguity-of-null
1•winslett•8m ago•1 comments

Volcano eruption leaves 150k passengers stranded in Indonesia

https://www.bbc.com/news/articles/cvgy5k4n07ko
1•saikatsg•8m ago•0 comments

Ask HN: Is Stackoverflow for Agents Helpful?

1•ximihoque•10m ago•0 comments

Cutting (Claude Code) token spend on dynamic workflows 80%

1•gojkoa•11m ago•0 comments

Films to feature actors that are not attractive and that you feel you're being

https://twitter.com/feelsdesperate/status/2096430206034567302
1•bilsbie•11m ago•0 comments

Frontier AI faces pricing reckoning as token volume explodes 25-fold

https://www.tomshardware.com/tech-industry/artificial-intelligence/frontier-ai-faces-pricing-reck...
2•yogthos•13m ago•0 comments

Nebula's Policy on AI

https://blog.nebula.tv/artificially-intelligent/
2•Siecje•17m ago•0 comments

Hardening Container Images

https://www.grepular.com/Hardening_Container_Images
2•Brajeshwar•17m ago•0 comments

Self-hosted job scraper that scores listings against your CV

https://github.com/firaslamouchi21/Job-Scraper02
1•firaslamou•17m ago•0 comments

Beeline: Enforcing application-layer policies in eBPF

https://blog.apnic.net/2026/09/02/beeline-enforcing-application-layer-policies-in-ebpf/
1•lbrndnr•18m ago•0 comments

Alberta (Canada) slaps punitive tax on solar panels

https://albertapolitics.ca/2026/09/ucp-slaps-punitive-tax-on-solar-panels-opening-new-front-in-it...
3•cmrdporcupine•19m ago•2 comments

Too much efficiency makes everything worse

https://sohl-dickstein.github.io/2022/11/06/strong-Goodhart.html
2•yurivish•21m ago•0 comments

Liveness Proofs in Veil, Part I: The First Step

https://proofsandintuitions.net/2026/06/24/liveness-proofs-in-veil-part-1/
3•abiro•21m ago•0 comments

Show HN: XHFS starting from 0.6.x is now fully CoW

https://codeberg.org/futureg-lab/xhfs
2•michael-0acf4•23m ago•0 comments

Acer Relaunches Packard Bell with Full New Lifestyle Collection: Tech It Easy

https://news.acer.com/acer-relaunches-packard-bell-with-full-new-lifestyle-collection-to-tech-it-...
1•taubek•24m ago•0 comments

Research acceleration: The view inside OpenAI

https://openai.com/index/research-acceleration-view-inside-openai
2•iamsyr•24m ago•0 comments

Unlimited Free DeepSeek API

https://y-api.bestvirtualgoods.com/
1•freeourdays•25m ago•0 comments

A recruiter who placed creative talent told me the truth

https://twitter.com/Marcellinoposts/status/2096583042315825244
1•bilsbie•26m ago•0 comments

Was Huawei's rise built on crime? A Brooklyn jury will decide

https://www.ft.com/content/9422805f-519c-4b22-839c-cbd7a6464f07
2•sbulaev•26m ago•0 comments

The universe may have been building rocky planets almost from the start

https://www.sciencenews.org/article/universe-rocky-planets-formed-early
2•KinetiNode•31m ago•0 comments

Show HN: A local, Apple Intelligence meeting assistant

https://github.com/rcarmo/swift-smart-prompter
4•rcarmo•32m ago•0 comments

I Feel about AI

https://beza1e1.tuxen.de/ai_feelings.html
60•qznc•33m ago•25 comments

Douglas Hofstadter: Analogy as the Core of Cognition [video]

https://www.youtube.com/watch?v=n8m7lFQ3njk
1•tosh•34m ago•0 comments

Feather Atlas

https://www.fws.gov/lab/featheratlas/identify.html
2•bookofjoe•34m ago•0 comments

AI made it worth building games for our game nights

https://mmazzarolo.com/blog/2026-09-05-ai-has-completely-changed-our-game-nights/
5•mmazzarolo•35m ago•1 comments

Show HN: 188M Hindi encoder, 28B tokens, 8K context, 1× RTX 4090

https://github.com/kkkamur07/indic-modernBERT
1•kkkamur•36m ago•0 comments