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!

ReactOS Joins VCF Southwest for the First Time

https://reactos.org/blogs/vcfsw-2026/
1•samtheDamned•1m ago•0 comments

Moravec's Paradox

https://en.wikipedia.org/wiki/Moravec%27s_paradox
1•chistev•2m ago•0 comments

Ask HN: How to voice disagreement over S&P500 inclusion rules change for SpaceX?

2•MakersF•4m ago•1 comments

Reddit user creates DB and MCP to mine Polygon, finds patterns on Polymarket

https://old.reddit.com/r/ClaudeAI/comments/1tvefqd/i_wired_claude_code_into_a_database_of_every/
3•consumer451•4m ago•0 comments

Plants like canola, tomatoes and rice reduce iron uptake in drought

https://ucalgary.ca/news/research-shows-plants-such-canola-tomatoes-and-rice-reduce-iron-uptake-w...
1•gmays•5m ago•0 comments

Terrifying -Two airliners took off just metres above airport workers

https://www.sbs.com.au/news/article/how-a-runway-change-led-to-two-terrifying-near-misses-at-this...
1•asdefghyk•5m ago•1 comments

Diverging Network Architecture of the C.elegans Connectome and Signaling Network

https://journals.aps.org/prxlife/abstract/10.1103/6wgv-b9m6
1•jonnonz•6m ago•0 comments

Show HN: Code3DBench – single-image to executable Three.js benchmark

https://github.com/VladimirGl/Code3DBench
1•vladgl94•9m ago•0 comments

Maybe Don't Rely on Google's "Modern Web Guidance"

https://adrianroselli.com/2026/05/maybe-dont-rely-on-googles-modern-web-guidance.html
3•klueinc•10m ago•0 comments

Timeclock.Kiwi – Launching Our Mobile App

https://timeclock.kiwi/blog/q8sf5s6-mobile-app-launch
2•loic-joachim•10m ago•0 comments

EU wants households to cut peak time energy use as industry and AI demand soars

https://www.politico.eu/article/eu-households-electricity-energy-artificial-intelligence-ai/
3•pseudalopex•11m ago•0 comments

How should we think about Starship?

https://mceglowski.substack.com/p/how-should-we-think-about-starship
1•PanMan•11m ago•0 comments

'Beauty and the Beast' singer Peabo Bryson dies at 75

https://abcnews.com/GMA/Culture/singer-peabo-bryson-dies-75/story?id=133533357
2•bookofjoe•12m ago•0 comments

Microsoft Deliberately Bricking All Office for Mac 2019/2021 Installations

https://www.osnews.com/story/145179/microsoft-is-intentionally-bricking-all-office-for-mac-2019-i...
3•m463•12m ago•1 comments

Are Young People Lazy, or Are They Just Hopeless?

https://www.newsweek.com/are-young-people-lazy-hopeless-2037840
1•paulpauper•12m ago•0 comments

Advice for amateur mathematicians on writing and publishing

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

Do you really want that computer-science degree?

https://www.economist.com/graphic-detail/2026/06/01/do-you-really-want-that-computer-science-degree
2•pseudolus•15m ago•1 comments

Inference Optimization for MiniMax Sparse Attention

https://www.together.ai/blog/serving-minimax-m3-for-efficient-inference-unlocking-1m-token-contex...
1•zagwdt•15m ago•0 comments

Why We've Been Thinking about the Fertility Crisis Wrong

https://www.richardhanania.com/p/why-weve-been-thinking-about-the
1•paulpauper•16m ago•0 comments

A Mathematician's Lament – Paul Lockhart (2002) [pdf]

https://worrydream.com/refs/Lockhart_2002_-_A_Mathematician%27s_Lament.pdf
1•xeonmc•17m ago•0 comments

Bend the beam like Beckham to defeat anti-jamming tech

https://www.theregister.com/networks/2026/06/03/curving-beams-could-fool-anti-jamming-tech/5250872
1•Bender•18m ago•0 comments

Google's new Gemma 4 12B model is designed to run on any laptop with 16GB of RAM

https://arstechnica.com/google/2026/06/googles-new-gemma-4-open-ai-model-is-sized-for-your-laptop/
1•Bender•19m ago•0 comments

Dashlane issues opaque advisory warning 20 encrypted vaults were stolen

https://arstechnica.com/security/2026/06/dashlane-issues-opaque-advisory-warning-20-encrypted-vau...
1•Bender•19m ago•0 comments

Sir Alex Younger has died

https://www.bbc.com/news/articles/cwy201wge44o
2•x86a•20m ago•0 comments

The American AI Sovereign Wealth Fund Act [video]

https://www.youtube.com/watch?v=VN4b4UCWMKI
1•simonpure•24m ago•0 comments

Genie that ate the Internet, hidden masters and fifty-year-old weakness

https://w00t.rs/blog/genie/
1•DistressedKiwi•24m ago•0 comments

SpaceX wins Texas tax breaks for chip project, ahead of record IPO

https://www.reuters.com/business/media-telecom/spacex-wins-texas-county-approval-reinvestment-zon...
6•lschueller•26m ago•0 comments

Splash Is a Colour Format

https://www.todepond.com/lab/splash/
1•tobr•27m ago•0 comments

Gemini Spark is the most impressive and terrifying AI experience I've had yet

https://www.theverge.com/ai-artificial-intelligence/941388/gemini-spark-ai-agent-trip-planning
3•haldean•29m ago•0 comments

Banned Russian Submunitions Found After Mali's Military Announces Airstrikes

https://www.bellingcat.com/news/africa/2026/05/26/banned-russian-submunitions-found-after-malis-m...
2•lschueller•29m ago•0 comments