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!

Remove/replace links pointing to GNOME Calendar, and update branding

https://gitlab.com/linuxmint/pins/mint/gnome-calendar/-/work_items/1
1•prathamtharwani•1m ago•0 comments

Singapore Foreign Minister to Keynote AI Engineer Singapore

https://old.reddit.com/r/singapore/comments/1t97tnx/vivian_balakrishnan_vibe_coded_an_ai_second_b...
1•doppp•4m ago•0 comments

Making cross-platform SIMD code pleasant

https://bkaradzic.github.io/posts/typeless-simd/
1•RUI-0517•11m ago•0 comments

Today Is World Password Day

https://itnerd.blog/2026/05/07/today-is-world-password-day-2/
1•mooreds•13m ago•0 comments

BSides Austin Is on Hold

https://bsidesaustin.com/
1•bean-weevil•14m ago•0 comments

Recursive Multi-Agent Systems

https://recursivemas.github.io/
1•jonbaer•17m ago•0 comments

What can singing mice say about human speech?

https://phys.org/news/2026-05-mice-human-speech.html
1•gmays•17m ago•0 comments

Ask HN: How have you spent time outside work for the past couple of weeks?

2•alex77456•19m ago•0 comments

Up in Smoke

https://thebaffler.com/odds-and-ends/the-profession-that-does-not-exist-symposium
1•NaOH•19m ago•0 comments

Apple's privacy invading tech is likely going mainstream

https://quickthoughts.ca/posts/self-owning-ai-tech/
4•quickthoughts•20m ago•1 comments

Robot Dogs Are a Security Nightmare [video]

https://www.youtube.com/watch?v=lA8WuXDXfcI
1•incomplete•26m ago•0 comments

A Job at OpenAI Became the Greatest Lottery Ticket of the AI Boom

https://www.wsj.com/tech/openai-employee-stock-sales-71ed10bd
3•JumpCrisscross•31m ago•0 comments

Brain motion is driven by mechanical coupling with the abdomen

https://www.nature.com/articles/s41593-026-02279-z
1•refibrillator•32m ago•0 comments

Stack of 500: 500 Production-Tested AI Prompts

https://stackkit.gumroad.com/l/lhxxik
1•ghostreg•34m ago•0 comments

A simple way to understand Bayes' Theorem

https://interestingstuff.xyz/explainers/a-simple-way-to-understand-bayes-theorem/
2•interestingstuf•35m ago•0 comments

Johnny Castaway Screensaver 1992 for macOS Tahoe. Runs as a Screensaver

https://github.com/tallPete/JohnnyCastaway
1•castawayjohnny•41m ago•1 comments

Ask HN: What Wintel/AMD (Laptop) Harware are you liking?

2•aagha•45m ago•0 comments

Fulfilling a life-long dream; 72-year old will graduate from medical school

https://www.washingtonpost.com/lifestyle/2026/05/10/grandmother-medical-school-graduate-residency/
2•wallflower•46m ago•0 comments

To learn to speak you have to speak

http://languagemuse.blogspot.com/2025/06/to-learn-to-speak-you-have-to-speak.html
3•andsoitis•55m ago•0 comments

Pitfalls of Try/Finally in Python

https://pythonkoans.substack.com/p/koan-20-the-unreliable-messenger
2•meander_water•1h ago•0 comments

I'm going back to writing code by hand

https://blog.k10s.dev/im-going-back-to-writing-code-by-hand/
63•dropbox_miner•1h ago•24 comments

Honda Patents a Fake Clutch for Electric Motorcycles

https://electrek.co/2026/05/07/honda-patents-fake-clutch-for-electric-motorcycles-and-it-might-ac...
3•m463•1h ago•1 comments

Freenode IRC Mathematics Seminars (2010)

https://freenode-math.fandom.com/wiki/Seminars
1•susam•1h ago•0 comments

"Cannot be explained" – New ultra stainless steel stuns researchers

https://www.sciencedaily.com/releases/2026/05/260510030950.htm
6•HardwareLust•1h ago•0 comments

Stateless settlement-gated HTTP APIs using UTXO replay protection

https://github.com/ruidasilva/merkleworks-x402-spec
1•ruidasilva•1h ago•0 comments

West Bank settlers forced a Palestinian to dig up the body of his father

https://www.bbc.com/news/articles/cjrpnjpl39po
7•khaledh•1h ago•0 comments

Free/OSS agentic API interrogator

https://github.com/dapooleygmailcom/gaiia-mcp-server
1•dapooley•1h ago•1 comments

Make America AI-Ready

https://beta.dol.gov/ai-ready
2•andsoitis•1h ago•0 comments

Transmission Spectroscopy of the Habitable Zone Exoplanet LHS1140B (2024)

https://arxiv.org/abs/2406.15136
1•johnbarron•1h ago•0 comments

Tubestack: YouTube <> Substack

https://anishlk.com/tubestack/
2•anishlk•1h ago•1 comments