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!

A new era for memory-management maintainership

https://lwn.net/SubscriberLink/1070994/9b6713c0c4db24dc/
1•jzb•1m ago•0 comments

₹5 Lakh Personal Loan – Easy Online Process – SMFG India Credit

https://www.smfgindiacredit.com/5-lakh-personal-loan.aspx
1•saumyaraut11•3m ago•0 comments

Locked, stocked, and losing budget: AI vendor lock-in bites back

https://www.theregister.com/software/2026/04/28/locked-stocked-and-losing-budget-ai-vendor-lock-i...
3•Bender•6m ago•0 comments

EU hits snooze on AI Act rules after industry backlash

https://www.theregister.com/ai-and-ml/2026/05/07/eu-hits-snooze-on-ai-act-rules-after-industry-ba...
2•Bender•6m ago•0 comments

Found a Game of a Beating Heart

https://github.com/A-I-dentity/soul_stamp
1•purplemyth•7m ago•0 comments

Projecting React

https://tannerlinsley.com/posts/projecting-react/
2•ascorbic•8m ago•0 comments

Ticking Timebomb in Mac OS [video]

https://www.youtube.com/watch?v=Q9GAJ_ka4l4
1•vishnuharidas•9m ago•0 comments

Campaign staffers tell NPR they make 'thousands' betting on their own candidates

https://www.npr.org/2026/05/07/nx-s1-5795891/prediction-markets-kalshi-polymarket-campaigns
4•geox•10m ago•0 comments

AI's Fastest-Growing Engineering Role Has No Playbook

https://blog.danielvaughan.com/ais-fastest-growing-engineering-role-has-no-playbook-bc68fe07e701
2•dvaughan•11m ago•0 comments

Betting on the Longevity Market

https://longevity.stanford.edu/betting-on-the-longevity-market/
2•andsoitis•11m ago•0 comments

Prevent OSS PR/issue spam like a Pro (+ some unrelated fun):D

https://github.com/valhalla/valhalla/pull/6073
1•nilsnolde•12m ago•0 comments

Two Home Affairs officials suspended after AI 'hallucinations' found

https://www.citizen.co.za/news/home-affairs-officials-suspended-ai-hallucinations/
1•jruohonen•13m ago•0 comments

A daily color-naming game

https://closehue.com/
1•recursive_toast•13m ago•0 comments

Dawkins claimed that AI is conscious after conversation with Anthropic's Claude

https://unherd.com/2026/05/is-ai-the-next-phase-of-evolution/
2•flyaway123•14m ago•0 comments

Mozilla says 271 vulnerabilities found by Mythos and "almost no false positives"

https://arstechnica.com/information-technology/2026/05/mozilla-says-271-vulnerabilities-found-by-...
7•epistasis•15m ago•3 comments

Content for Content's Sake

https://lucumr.pocoo.org/2026/5/4/content-for-contents-sake/
1•Einenlum•16m ago•0 comments

US reportedly charges Scattered Spider hacker arrested in Finland

https://www.bleepingcomputer.com/news/security/us-reportedly-charges-scattered-spider-hacker-arre...
5•billybuckwheat•17m ago•0 comments

Creating for a niche

https://www.davesnider.com/posts/working-in-a-niche
2•snide•19m ago•0 comments

Minister gives Palantir's NHS platform a clean bill of health

https://www.theregister.com/paas-and-iaas/2026/05/07/minister-gives-palantirs-nhs-platform-a-clea...
2•Bender•19m ago•0 comments

Within the Context of No-Context – The decline of adulthood (1980)

https://www.newyorker.com/magazine/1980/11/17/within-the-context-of-no-context
1•frereubu•20m ago•0 comments

More PayPal emails hijacked to deliver tech support scams

https://www.malwarebytes.com/blog/news/2026/04/more-paypal-emails-hijacked-to-deliver-tech-suppor...
1•croes•20m ago•0 comments

AI for Creativity

https://bsuh.bearblog.dev/ai-for-creativity/
1•flyaway123•20m ago•0 comments

Agent pull requests are everywhere. Here’s how to review them.

https://github.blog/ai-and-ml/generative-ai/agent-pull-requests-are-everywhere-heres-how-to-revie...
1•chmaynard•21m ago•0 comments

Show HN: Super Mega SFF Story Ideator

https://compellingsciencefiction.com/super-mega-sff-story-ideator/
1•mojoe•23m ago•0 comments

Understanding AI

https://www.theatlantic.com/ideas/2026/05/ai-for-good-uses/687082/
2•paulpauper•24m ago•0 comments

Learning OCaml: PPX for Mere Mortals

https://batsov.com/articles/2026/03/03/ppx-for-mere-mortals/
1•DASD•24m ago•0 comments

Does Claude Have Feelings?

https://www.theatlantic.com/technology/2026/05/dawkins-claude-ai-consciousness/687093/
2•paulpauper•24m ago•1 comments

From US to Singapore, cruise passengers are being monitored for hantavirus

https://www.cnn.com/2026/05/07/world/hantavirus-ship-tenerife-outbreak-intl
2•paulpauper•25m ago•0 comments

Automating AI Research

https://jack-clark.net/2026/05/04/import-ai-455-automating-ai-research/
3•gmays•26m ago•0 comments

Show HN: Swipe Copilot – Less time on Tinder, more dates worth going on

https://www.swipecopilot.com/
1•javiernanni•29m ago•0 comments