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!

KV Sharing, MHC, and Compressed Attention

https://magazine.sebastianraschka.com/p/recent-developments-in-llm-architectures
1•gmays•36s ago•0 comments

Using HTTP/2 Cleartext for a server in Go 1.24

https://www.clarityboss.com/blog/go-http2-cleartext-h2c-cloud-run
1•dan_sbl•1m ago•0 comments

Android Is Compose-First

https://developer.android.com/develop/ui/compose/first
1•flykespice•2m ago•0 comments

Show HN: ClassKeep – Booking, credits, and smart waitlists for boutique studios

https://www.classkeep.app
1•dtfortu•3m ago•0 comments

Made a Chrome extension that stops me from sending dumb messages

1•BeanieTheBean•3m ago•0 comments

Nice Things for Your Mac

https://nicethings.to/mac
1•Malfunction92•4m ago•0 comments

Programming as Theory Building (1985) [pdf]

https://gwern.net/doc/cs/algorithm/1985-naur.pdf
2•birdculture•5m ago•0 comments

Show HN: Loomavi-psychological insight tool that decodes what you are feeling

https://loomavi.com
1•punyaatloomavi•5m ago•0 comments

Intelligence is Artificial (Opus 23) [video]

https://www.youtube.com/watch?v=1CbmC2aWhjY
2•niles•6m ago•1 comments

Node.js – Promote Alpine Linux out of experimental to be a tier 2 platform

https://github.com/nodejs/node/issues/62764
1•linolevan•6m ago•0 comments

Dieter Rams documentary streaming free on May 20

https://www.hustwit.com/events/ramslivestreams
2•lemonberry•7m ago•0 comments

Slopinator: Attack AI training with poisoned GitHub repositories

https://codeberg.org/the-slopinator/slopinator
6•atomic128•8m ago•3 comments

Show HN: Sentilis – a folder of Markdown files becomes your bio, blog, store

https://github.com/sentilis/cli
1•josehbez•8m ago•0 comments

Laid-off Atlassian Engineer talks generally about the stuff he built [video]

https://www.youtube.com/watch?v=55pTFVoclvE
2•indigodaddy•10m ago•0 comments

Ask HN: How do word docs, slides, excel, and PDFs generate value?

1•FailMore•11m ago•0 comments

Last chance at eviction court: The San Francisco tenants teetering on the abyss

https://sfstandard.com/2026/05/18/last-chance-eviction-court-san-francisco-tenants-teetering-abyss/
2•speckx•12m ago•1 comments

Show HN: Heard Google copied part of our product for IO. Want to show off first

1•echelon•12m ago•0 comments

What gives you the stamina to work on the same product for years?

1•freemh•13m ago•0 comments

An AI announcer mispronounced and skipped names during a graduation

https://www.theverge.com/tech/933653/ai-graduation-commencement-glendale-community-college
2•cdrnsf•13m ago•1 comments

The interface is no Longer the product

https://blog.mozilla.ai/the-interface-is-no-longer-the-product/
2•hawernawer•14m ago•1 comments

Software Development in the AI Age

https://ianmcnaughton.net/blog/software-development-in-the-ai-age/
1•wc_nomad•15m ago•0 comments

AI helps topple decades-old geometry problem

https://www.scientificamerican.com/article/sensational-proof-topples-decades-old-geometry-problem/
1•chc2889•15m ago•1 comments

Apple is no longer purchasing VARTA batteries from Germany

https://old.reddit.com/r/BuyFromEU/comments/1thpbw1/apple_is_no_longer_purchasing_varta_batteries/
1•taubek•15m ago•0 comments

Show HN: hnr – a terminal Hacker News reader vibe-coded in Rust

https://github.com/prasanthj/hnr
1•prasanthj•17m ago•0 comments

KPMG Taps Anthropic to Revamp Global Tax, Advisory Platform

https://www.wsj.com/cfo-journal/kpmg-taps-anthropic-to-revamp-global-tax-advisory-platforms-853093bb
1•petethomas•18m ago•0 comments

Carbon: Autoregressive Genomic Foundation Model

https://huggingface.co/spaces/HuggingFaceBio/carbon-demo
2•kashifr•20m ago•1 comments

RuView – See through walls with WiFi

https://github.com/ruvnet/RuView
8•Iuz•21m ago•3 comments

LSTM-Based Question Answering on News Articles

https://github.com/sparshrestha/NewsQA-LSTM
1•sparshrestha•22m ago•1 comments

We kept getting different "personalities" from the same cloud VM SKU

https://webbynode.com/articles/we-realized-averaging-cloud-benchmark-runs-together-was-corrupting...
1•gsgreen•22m ago•0 comments

Linux Shell Made in Rust

https://github.com/Ghosthx-Code/NaShell
2•Ghosthx-Code•23m ago•0 comments