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!

Nostr VPN: VPN without accounts

https://nostrvpn.org/
1•eustoria•1m ago•0 comments

Show HN: GitShare – Turn GitHub repos into beautiful social media screenshots

https://gitshare.ch/
1•dimiprasakis•2m ago•0 comments

Many portions of Magnifica Humanitas appear to be AI-written

https://www.lesswrong.com/posts/GbWwesBnetyiomxEH/many-portions-of-magnifica-humanitas-appear-to-...
1•dev_hugepages•3m ago•0 comments

Cramér-Rao Bound

https://en.wikipedia.org/wiki/Cram%C3%A9r%E2%80%93Rao_bound
1•hasley•3m ago•1 comments

Steam and valve lost controle about cs2

https://pdfearn.blogspot.com/2026/05/get-100-approved-adsense-unsaturable.html
1•iLzKiiSG•3m ago•0 comments

Latency Numbers Every Programmer Should Know (2026)

https://gist.github.com/jboner/2841832
1•andromaton•5m ago•0 comments

Show HN: Game Boy pixel pipeline explorer

https://pixelpipeline.xyz
2•blueblazin•6m ago•0 comments

Chaoss Metrics in 2026

https://nesbitt.io/2026/05/27/chaoss-metrics-in-2026.html
1•jamietanna•6m ago•0 comments

Athletes at the Enhanced Games were bigger, but not better

https://www.theatlantic.com/culture/2026/05/enhanced-games-sports-doping/687296/
1•FinnLobsien•6m ago•0 comments

TheWire13 is a TCP/IP stack for classic Amiga systems running AmigaOS 1.3

https://aminet.net/package/comm/tcp/TheWire13
1•doener•6m ago•0 comments

UFC arena under construction on White House lawn

https://www.npr.org/2025/09/08/nx-s1-5526066/leni-riefenstahl-nazi-filmmaker-new-documentary
3•KnuthIsGod•8m ago•0 comments

Deep Habits: WorkingMemory.txt

https://calnewport.com/deep-habits-workingmemory-txt-the-most-important-productivity-tool-youve-n...
1•piinbinary•8m ago•0 comments

How to build a lunar mass driver

https://caseyhandmer.wordpress.com/2026/05/08/how-to-build-a-lunar-mass-driver/
1•surprisetalk•10m ago•0 comments

Go errors are a story, most teams lose the plot

https://robinsiep.com/blog/posts/go-errors/
1•seeb•10m ago•0 comments

GitHub Incident Again

https://www.githubstatus.com/?now
1•robeym•11m ago•2 comments

LiteSpeed CPanel Plugin with Root Privilege Escalation Under Active Exploitation

https://haltingproblems.com/analysis/litespeed-cpanel-plugin-cve-2026-48172/
2•s4mw1se•14m ago•0 comments

Pushover: Simple Notifications for Android, iPhone, iPad, and Desktop

https://pushover.net/
1•janandonly•15m ago•0 comments

AI is not the answer to AI-enabled fraud

https://www.codastory.com/oligarchy/ai-is-not-the-answer-to-ai-enabled-fraud/
1•cdrnsf•15m ago•0 comments

Show HN: Map drawing tool where the map lives in the URL

https://drawonamap.com/
4•singiamtel•16m ago•0 comments

Revenge of the Business Idiot

https://www.wheresyoured.at/the-revenge-of-the-business-idiot/
1•frizlab•16m ago•0 comments

Tiny GPT in Go. Optimised for Understanding. Trained on Jules Verne Books

https://github.com/zakirullin/gpt-go
2•asdfjsjj2342•18m ago•0 comments

Intranasal Human EVs Restrain Inflammatory Transcriptome in Aged Hippocampus

https://isevjournals.onlinelibrary.wiley.com/doi/10.1002/jev2.70232
3•bookofjoe•19m ago•0 comments

Local in Browser Vibecoding Agent

https://alexwortega.github.io/pi-agent/
3•Alexwortega•19m ago•0 comments

What Is an AI Product Engineer

https://dwyer.co.za/static/what-is-an-ai-product-engineer.html
3•ritzaco•20m ago•1 comments

We've promised to cure all disease for decades. Latest: $2.1B and a Nobel

https://www.tearsinrain.ai/p/only-a-constellation-of-stars
3•jgreid•21m ago•0 comments

Peeklens

https://peeklens.ai/
2•Omaroliman•21m ago•0 comments

When and How to Buy a House

https://kaleidoscopemind.substack.com/p/when-and-how-to-buy-a-house
4•surprisetalk•25m ago•0 comments

How I made my privacy site recommendable by ChatGPT (and got into public-APIs)

https://hackmyip.com/sheets/how-i-made-my-site-recommendable-by-chatgpt
2•codelong888•26m ago•0 comments

DeepSWE crowns GPT-5.5, and finds Claude Opus exploiting a benchmark loophole

https://venturebeat.com/technology/deepswe-blows-up-the-ai-coding-leaderboard-crowns-gpt-5-5-and-...
2•sonink•26m ago•0 comments

UK law firm Pinsent Masons reprimanded by court over AI error

https://www.ft.com/content/5ba4690b-8b98-43b3-ba0b-f2ec5591a572
1•1vuio0pswjnm7•29m ago•0 comments