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!

AdventHealth advances whole-person care with OpenAI

https://openai.com/index/adventhealth
1•SpyCoder77•1m ago•0 comments

Private equity acquisition can expand primary care use by expanding workforce

https://www.brown.edu/news/2026-05-20/private-equity-primary-care
1•hhs•3m ago•0 comments

Elon Musk will be king at SpaceX

https://techcrunch.com/2026/05/21/forget-technoking-elon-musk-will-really-be-king-at-spacex/
2•soundworlds•4m ago•0 comments

Data Science Weekly – Issue 652

https://datascienceweekly.substack.com/p/data-science-weekly-issue-652
1•sebg•5m ago•0 comments

LLM for automating scientific discovery [pdf]

https://www.nature.com/articles/s41586-026-10652-y_reference.pdf
1•ninesnines•7m ago•0 comments

NES Documentation [pdf]

https://www.nesdev.org/NESDoc.pdf
1•medbar•7m ago•0 comments

Lab study reveals patterns of inheritance that defy Mendel's laws

https://www.hopkinsmedicine.org/news/newsroom/news-releases/2026/05/lab-study-reveals-patterns-of...
1•hhs•8m ago•0 comments

US DHS put out alert on comedian who created parody ICE tip website

https://www.theguardian.com/us-news/2026/may/21/dhs-bolo-ben-palmer-parody-ice-tip-website
1•cdrnsf•10m ago•0 comments

Erlang_Python – Combine Python's ML/AI Ecosystem with Erlang's Concurrency

https://hexdocs.pm/erlang_python/readme.html
1•rzk•12m ago•0 comments

NTSB is aware that individuals are reconstructing cockpit voice recorder audio

https://xcancel.com/NTSB_Newsroom/status/2057538746795663536
1•hnburnsy•14m ago•0 comments

Are we self-sovereign PKI yet?

https://buffrr.dev/blog/are-we-self-sovereign-pki-yet/
1•ca98am79•15m ago•0 comments

Show HN: Agent-estimate, how long a coding task takes, at agent speed

https://github.com/kiloloop/agent-estimate
2•haoranchg•17m ago•0 comments

Note from the Maintainer of Apollo-ImprovedCustomApi

https://github.com/JeffreyCA/Apollo-ImprovedCustomApi/issues/263
1•busymom0•21m ago•0 comments

Kyle Busch Has Died

https://www.espn.com/racing/nascar/story/_/id/48838614/nascar-icon-kyle-busch-dies-age-41
4•milleramp•22m ago•0 comments

It's Not a Mystery Why Fertility Rates Are Declining

https://www.nytimes.com/2026/05/20/opinion/blame-fertility-rate.html
2•littlexsparkee•23m ago•0 comments

Nobody Cares About Frontier Model If the Audio Stops When the Screen Turns Off

https://futurehangover.substack.com/p/nobody-cares-about-your-frontier
1•DefNotAiForSure•24m ago•0 comments

TikoTok

https://www.tiktok.com/
1•BEATGO•24m ago•0 comments

Huxe Will Be Discontinued

https://www.huxe.com/
3•teppeik•25m ago•0 comments

Roblox

http://Roblox.com.br
1•BEATGO•25m ago•0 comments

Outlier AI is paying cardiologists to review ECGs and train AI models (referral)

https://app.outlier.ai/en/expert/referrals/link/2REalwVscvVRImDKiXksxm7YpZg
1•elsadek•31m ago•0 comments

Libomemo.js 0.0.1 – OMEMO crypto library for JavaScript

https://github.com/conversejs/libomemo.js/releases/tag/v0.0.1
1•neustradamus•31m ago•0 comments

Sam Altman's startup is hoping Jared Leto's band will make you scan your eyeball

https://sfstandard.com/2026/05/21/jared-leto-sam-altman-eye-scanner-concert-tour/
1•voxadam•33m ago•0 comments

We built an agent for CI despite using Claude Code for everything else

https://www.mendral.com/blog/how-we-built-our-ai-agent
2•shad42•33m ago•0 comments

Erasing Existentials

https://wolfgirl.dev/blog/2026-05-20-erasing-existentials/
1•birdculture•33m ago•0 comments

Symlinking NixOS Dotfiles

https://matklad.github.io/2026/05/21/symlinking-nixos-dotfiles.html
1•surprisetalk•34m ago•0 comments

A field guide for engineering teams making AI agent work compound

https://www.memco.ai/field-guide
2•scotttaylor•34m ago•0 comments

Aiointerpreters – Run CPU bound code in subinterpreters using asyncio

https://github.com/Jamie-Chang/aiointerpreters
2•rzk•37m ago•0 comments

SpaceX Set to Launch Upgraded Starship on Pre-IPO Test Flight

https://www.wsj.com/business/spacex-starship-v3-launch-6cd89008
2•JumpCrisscross•39m ago•1 comments

Companies join a deep-sea mining rush, as regulators fast-track permits

https://apnews.com/article/trump-deepsea-mining-executive-orders-oceans-environment-399faab6fc329...
2•petethomas•40m ago•0 comments

Bun unsafe audit (not the blog post)

https://bun.com/bun-unsafe-audit
2•heldrida•40m ago•1 comments