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!

How climate-resilient homes in India are reducing dependence on air conditioners

https://www.thehindu.com/sci-tech/energy-and-environment/how-climate-resilient-homes-in-india-are...
1•rustoo•2m ago•0 comments

OpenAI just lost its enterprise AI crown to Anthropic

https://www.businessinsider.com/anthropic-tops-openai-business-ai-adoption-ramp-index-2026-5
1•mazokum•3m ago•0 comments

Edith Eger, Auschwitz Survivor Who Helped Others Cope with Trauma, Dies at 98

https://www.wsj.com/world/edith-eva-eger-dead-13268534
1•hodgesrm•9m ago•0 comments

Britain investigates Microsoft over business software dominance

https://www.reuters.com/legal/litigation/uk-opens-antitrust-probe-into-microsofts-business-softwa...
2•frm88•12m ago•1 comments

Random AI Explained Fast

https://www.youtube.com/watch?v=XURpiqSelBw
1•KornClown7•17m ago•0 comments

Perfect Number Bomb(2025)

https://www.quantumcalculus.org/odd-perfect-number-bomb/
1•nill0•18m ago•0 comments

FilePilot AI – local-first desktop file manager with optional AI summaries

https://github.com/cuiheng511/filepilot-ai
2•cui511511•21m ago•0 comments

How the Ingredients of Life Make Our Journey Worthwhile

https://medium.com/create-your-career/how-the-ingredients-of-life-make-our-journey-worthwhile-12e...
1•andsoitis•24m ago•0 comments

US reportedly dropped fraud charges against Adani after he hired Trump's lawyer

https://www.theguardian.com/us-news/2026/may/14/gautam-adani-billionaire-trump
2•dilawar•29m ago•0 comments

Logic bug in the Linux kernel's __ptrace_may_access() function (LPE)

https://www.openwall.com/lists/oss-security/2026/05/15/2
2•Tiberium•32m ago•0 comments

Ask HN: How do you catch regressions when you change your AI agent's prompt?

1•yakshithk_•34m ago•0 comments

C++26 Shipped a SIMD Library Nobody Asked For

https://lucisqr.substack.com/p/c26-shipped-a-simd-library-nobody
2•signa11•35m ago•0 comments

Solar Is Everything

https://www.barchart.com/story/news/37361552/solar-is-everything-teslas-elon-musk-says-other-ener...
2•andsoitis•37m ago•0 comments

Claude free usage limits are nuts. useless

4•paulpauper•43m ago•0 comments

PSVL 1.0 – The most comprehensive source-visible license (276 clauses)

https://github.com/BMBOMICH/PSVL
1•BMBOMICH•43m ago•0 comments

How Claude Code works in large codebases

https://claude.com/blog/how-claude-code-works-in-large-codebases-best-practices-and-where-to-start
38•shenli3514•52m ago•12 comments

The Two Sleeps

https://dylan.gr/1775146616
2•James72689•52m ago•0 comments

GitHub Copilot has released a preview of usage-based billing

https://old.reddit.com/r/GithubCopilot/comments/1tbb5bj/github_copilot_has_finally_released_a_pre...
2•jay_kyburz•52m ago•0 comments

Waymo recalls 1000s of driverless cars after some failed to avoid flooded roads

https://www.latimes.com/business/story/2026-05-14/waymo-recalls-thousands-of-its-driverless-cars-...
2•petethomas•1h ago•0 comments

Coldkey – Post-quantum age key generation and paper backup tool

https://github.com/pike00/coldkey
2•pike00•1h ago•0 comments

Latvian government collapses after Ukrainian drones strike oil facility

https://www.theglobeandmail.com/world/article-latvian-government-collapses-after-ukrainian-drones...
3•petethomas•1h ago•2 comments

Musk accused of 'selective amnesia,' Altman of lying as OpenAI trial nears end

https://www.reuters.com/sustainability/society-equity/elon-musks-court-battle-against-openai-ente...
5•jnord•1h ago•0 comments

Details of the Daring Airdrop at Tristan Da Cunha

https://www.tristandc.com/government/news-2026-05-11-airdrop.php
10•kspacewalk2•1h ago•0 comments

White-collar workers report growing feelings of 'AI brain fry'

https://www.ft.com/content/0ba3bd4f-cc3a-4cad-8a8e-76925da2a711
3•1vuio0pswjnm7•1h ago•0 comments

How Do VPNs Protect Your Privacy? VPN Overview

https://www.privacyguides.org/en/basics/vpn-overview/
4•Cider9986•1h ago•0 comments

Secrets at Rest: SOPS and Age for Docker Compose Homelabs

https://pikemd.com/blog/sops-age-docker-compose/
3•pike00•1h ago•0 comments

Self-destructing $2k Nvidia chips for distributed solar data ctrs in lampposts

https://www.techradar.com/pro/self-destructing-usd2-000-nvidia-chips-will-soon-power-tens-of-thou...
2•toss1•1h ago•0 comments

I ran forensics on closed models and discovered no one is using dense attention

https://blog.0xmmo.co/forensics/post.html
2•mmoustafa•1h ago•0 comments

Countdown to Apophis Close Approach–Cascading Hazards from Asteroid Impacts

https://pubs.usgs.gov/publication/fs20253028/full
1•rolph•1h ago•0 comments

Systematically Auditing AI Agent Benchmarks with BenchJack

https://arxiv.org/abs/2605.12673
1•matt_d•1h ago•0 comments