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!

Scarcity is driving AI innovation outside Silicon Valley

https://restofworld.org/2026/scarcity-is-driving-ai-innovation-outside-silicon-valley/
1•colinprince•4m ago•0 comments

China Lures Foreign Patients with Cutting-Edge, Cheap Medical Care

https://www.bloomberg.com/news/features/2026-06-10/china-s-medical-tourism-boom-draws-foreign-pat...
2•polrjoy•4m ago•0 comments

Khronos Announces glTF Gaussian Splatting Extension

https://www.khronos.org/news/press/gltf-gaussian-splatting-press-release
1•lairv•8m ago•1 comments

Teenagers Stayed Overnight at Their School and Found Hidden Ancient Roman Ruins

https://www.smithsonianmag.com/smart-news/these-italian-teenagers-stayed-overnight-at-their-schoo...
2•thunderbong•10m ago•0 comments

Stretching a point: the economics of elastic infrastructure

https://ably.com/blog/stretching-a-point-economics-of-elastic-infrastructure
1•b-man•11m ago•0 comments

An Information-Theoretic Approach to the Computational Complexity of TSP

https://zenodo.org/login/?next=%2Fme%2Fuploads%3Fq%3D%26f%3Dshared_with_me%25253Afalse%26l%3Dlist...
1•Dori_Lee•11m ago•0 comments

The theory taking the rich by storm: China funds data center haters

https://www.npr.org/2026/06/10/nx-s1-5844328/us-china-data-centers-foreign-influence
2•beedeebeedee•13m ago•0 comments

We Used Agentic AI to Fix Kong Gateway's Flakiest Tests

https://konghq.com/blog/engineering/how-we-used-agentic-ai-to-fix-kong-gateways-flakiest-tests
3•dndx•24m ago•0 comments

Why are there an increasing number of outright unhinged high karma users on HN?

5•MichaelZuo•24m ago•2 comments

Shrubbery syntax for Racket

https://docs.racket-lang.org/shrubbery/index.html
2•azhenley•27m ago•0 comments

Wanted: Dead or Alive. Google Search Console

https://medium.com/@thesuperrepemail/wanted-dead-or-alive-google-search-console-17a2ed7424eb
3•mssblogs•29m ago•0 comments

Old Violins (1910)

https://www.gutenberg.org/cache/epub/78831/pg78831-images.html
3•petethomas•30m ago•0 comments

Bread and Cake Baking (1877)

https://www.gutenberg.org/cache/epub/78839/pg78839-images.html
2•petethomas•32m ago•0 comments

Nostalgia Is New for Some

https://www.marginpoints.com/essays/nostalgia-is-new-for-some
2•historian1066•33m ago•0 comments

Corca raised a $7.8M seed led by NEA, NVenture to democratize math for everyone

https://twitter.com/Corca_math/status/2064791873676288150
3•OxfordCommand•38m ago•0 comments

Brit workers waste nearly six hours a week 'botsitting'

https://www.theregister.com/ai-and-ml/2026/06/10/brit-workers-waste-nearly-six-hours-a-week-botsi...
5•Bender•41m ago•0 comments

OpenAI Considers Drastic Price Cuts, Anticipating War for Users with Anthropic

https://www.wsj.com/tech/ai/openai-considers-drastic-price-cuts-anticipating-war-for-users-with-a...
8•jrpelkonen•42m ago•0 comments

Xfce Ported to Rust-Written Redox OS for Better X11 Experience

https://www.phoronix.com/news/Xfce-Ported-To-Redox-OS
3•Bender•43m ago•0 comments

Inverse Rubric Optimization: A testbed for agent science

https://fulcrum.inc/2026/06/09/inverse-rubric-optimization.html
2•etherio•48m ago•0 comments

GM is betting on battery cells that don't use lithium

https://electrek.co/2026/06/10/gm-sodium-ion-battery-peak-energy/
2•Bender•49m ago•0 comments

Replit shows how vibe coding is getting its own financial stack

https://thenewstack.io/replit-shopify-storefront-integration/
3•AnhTho_FR•51m ago•0 comments

Google preferred sources is live

https://www.google.com/preferences/source?q=https://mainstreetwealth.ai&pli=1
6•novateg•53m ago•0 comments

Covered Models (Claude.com)

https://support.claude.com/en/articles/15425695-covered-models
3•wglb•1h ago•1 comments

Attention is all you need: Rohan Kumar on using social media for fun and profit

https://sfalexandria.com/posts/rohans-attention/
2•wahnfrieden•1h ago•0 comments

The End of the Coder?

https://cacm.acm.org/news/the-end-of-the-coder/
7•pseudolus•1h ago•1 comments

Are insecure code completions in PyCharm a vulnerability?

https://sethmlarson.dev/are-insecure-code-completions-a-vulnerability
2•12_throw_away•1h ago•0 comments

Fruit Machine (Homosexuality Test)

https://en.wikipedia.org/wiki/Fruit_machine_(homosexuality_test)
4•thunderbong•1h ago•0 comments

Anthropic's Fable Jailbreak (Circumvent safety nets)

https://github.com/0xSufi/fable-jailbreak/
5•binyu•1h ago•0 comments

How AI Agents Reshape Knowledge Work

https://research.perplexity.ai/articles/how-ai-agents-reshape-knowledge-work
2•gmays•1h ago•0 comments

Ask HN: Releasing code under AGPLv3, but want to block LLM reconstruction?

3•zionsati•1h ago•1 comments