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!

The Iran internet blackout has entered its second month

https://mastodon.social/@netblocks/116481109110598719
1•us321•4m ago•0 comments

iOS 27 to bring AI inside the Camera app, iPhone shutdown problem

https://9to5mac.com/2026/04/30/happy-hour-588/
1•omer_k•6m ago•0 comments

My Daughter Died at 32. My Devices Won't Let Me Rest

https://www.wsj.com/lifestyle/relationships/my-daughter-died-at-32-my-devices-wont-let-me-rest-50...
2•impish9208•6m ago•1 comments

Apple reports second quarter results

https://www.apple.com/newsroom/2026/04/apple-reports-second-quarter-results/
2•mfiguiere•7m ago•0 comments

Monksignal

https://monksignal.com/
1•mooreds•7m ago•0 comments

Manual Until It Hurts

https://indieweb.org/manual_until_it_hurts
2•susam•8m ago•0 comments

Elon Musk confirms xAI used OpenAI's models to train Grok

https://www.theverge.com/ai-artificial-intelligence/921546/elon-musk-xai-openai-trial-model-disti...
2•fraXis•8m ago•1 comments

Ubuntu DDoS Attack from Iraq?

https://old.reddit.com/r/Ubuntu/comments/1t07tb2/canonical_ubuntu_being_targeted_by_a_ddos_attack/
1•TutleCpt•10m ago•0 comments

Chat with Premium Financial Newsletters

https://dripstack.xyz/
2•blauyourmind•12m ago•1 comments

Rivian allows you to disable all internet connectivity

https://rivian.com/support/article/can-i-disable-all-data-collection-from-my-vehicle
14•Cider9986•13m ago•3 comments

Ask HN: I'm building a toy language. At what point should it become self-hosted?

2•jdw64•14m ago•0 comments

The Science of 'Needle-Free Botox': A Complete Guide to Peptide Skincare (2026)

1•maxqur•15m ago•0 comments

US Senators introduce bipartisan bill to ban Chinese vehicles and auto parts

https://www.nbcnews.com/politics/congress/senators-moreno-slotkin-bill-banning-chinese-vehicles-a...
2•anigbrowl•17m ago•0 comments

Outcome Rewards Do Not Guarantee Verifiable or Causally Important Reasoning

https://arxiv.org/abs/2604.22074
1•krackers•17m ago•1 comments

Adding week-long deferrals to a pipeline that handles alerts

https://rootly.com/blog/replay-dont-rebuild-adding-week-long-deferrals-to-a-pipeline-that-handles...
1•sylvainkalache•20m ago•0 comments

We Need to Talk About the IPv8 Draft

https://substack.com/home/post/p-194315405
3•speckx•20m ago•1 comments

The Secret Weapon Against AI Dominance

https://www.theatlantic.com/ideas/2026/04/creative-labor-ai-copyright/687000/
2•maxutility•21m ago•0 comments

Live Updates from Elon Musk and Sam Altman's Court Battle over OpenAI

https://www.theverge.com/tech/917225/sam-altman-elon-musk-openai-lawsuit
3•SamoyedFurFluff•21m ago•0 comments

Show HN: Annotate screen recordings inside Chrome, no uploads

https://framepin.com/
3•ipselon•23m ago•0 comments

Why friendly AI chatbots might be less trustworthy

https://www.bbc.com/news/articles/cd9pdjgvxj8o
2•Brajeshwar•23m ago•0 comments

Chinese EVs Can Now Project Movies from Their Headlights

https://insideevs.com/news/794295/chinese-ev-headlight-movie-projectors/
4•mooreds•24m ago•0 comments

AI-Generated Code Has No Author

https://ossature.dev/blog/ai-generated-code-has-no-author/
2•beshrkayali•25m ago•0 comments

Does ClickHouse Support UPDATEs? A 2026 PR-by-PR Analysis

https://dataanalyticsguide.substack.com/p/clickhouse-update-support
2•manveerc•26m ago•0 comments

Learn Algorithms for Interviews, Forget Them for Work

https://fagnerbrack.com/learn-algorithms-for-interviews-forget-them-for-work-c7dc5fe6cd3b
2•birdculture•27m ago•0 comments

Roblox to Combine Video World Models with Game Engine

https://about.roblox.com/newsroom/2026/04/roblox-reality-hybrid-architecture-democratizing-photor...
3•moneil971•29m ago•0 comments

Researchers try to cut the genetic code from 20 to 19 amino acids

https://arstechnica.com/science/2026/04/researchers-try-to-cut-the-genetic-code-from-20-to-19-ami...
2•furcyd•29m ago•0 comments

Show HN: Free Apple Shortcut that scans receipts to a Google Sheet

https://www.expensebot.ai/blog/apple-shortcuts-receipt-scanner
2•balahura•29m ago•0 comments

What do the fundamental constants of physics tell us about life?

https://arxiv.org/abs/2509.09892
3•sebg•32m ago•0 comments

Qwen 3.6 27B SAE

https://huggingface.co/caiovicentino1/qwen36-27b-sae-papergrade
2•caiovicentino•33m ago•0 comments

Higher racial diversity in business, law schools linked to higher grad salaries

https://www.nature.com/articles/d41586-026-01273-6
3•laurex•34m ago•1 comments