frontpage.
newsnewestaskshowjobs

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!

Show HN: BillDesk – Offline invoicing for freelancers (Windows and Mac)

https://getbilldesk.vercel.app
1•afif1710•4m ago•0 comments

How to Read Mathematics? A Study Guide

https://arxiv.org/abs/2607.24136
2•tcp_handshaker•4m ago•0 comments

Aispa: User-Centric System Prompt Auditing for Large Language Model Applications

https://arxiv.org/abs/2607.28617
1•tcp_handshaker•6m ago•0 comments

FIFA, Thrive

https://www.marginpoints.com/issues/2026-08-01-fifa-thrive
1•historian1066•6m ago•0 comments

Vintage Computer Festival at CHM (today and tomorrow)

https://computerhistory.org/events/vintage-computer-festival-4/
1•utopcell•7m ago•0 comments

AI Questions Spoil Book and Movie Heat on 'Call Me, I'll Hide the Body' Novel

https://deadline.com/2026/07/ai-questions-debut-novel-book-film-buzz-1237013254/
1•speckx•8m ago•0 comments

A free online book on modern software architecture

https://oleksiyp.github.io/arch-book/
1•oleksiyp•11m ago•1 comments

People found a way to stay "online" on Teams, Slack, and Zoom while being away

https://medium.com/@Edem.mirotan/the-trending-free-online-browser-tool-remote-workers-cant-stop-u...
1•Adam-Hincu•12m ago•0 comments

Juno – Online J IDE

https://jsoftware.github.io/juno/app/
1•meken•16m ago•0 comments

Advice for First Ten Customers

1•noreplydev•17m ago•0 comments

The Attention Rebuild: How 2026's Open Models Made 1M Context Fit on Machines

https://vettedconsumer.com/the-attention-rebuild-how-2026s-open-models-made-1m-context-fit-on-mac...
1•ermantrout•18m ago•0 comments

'It beggars belief' as DWP 'drags its heels' over subpostmaster prosecutions

https://www.computerweekly.com/news/366646239/It-beggars-belief-as-DWP-drags-its-heels-over-subpo...
1•latein•19m ago•0 comments

AIs Anna Delvey Problem: How Enterprises Are Faking It Till They (Don't) Make It

https://sdarchitect.blog/2026/08/01/ais-anna-delvey-problem-how-enterprises-are-faking-it-till-th...
3•SanjeevSharma•20m ago•0 comments

We Need to Quarantine Aliens on the Moon, Scientists Propose

https://www.404media.co/we-need-to-quarantine-aliens-on-the-moon-scientists-propose/
2•Brajeshwar•22m ago•0 comments

Do Language Models Flatten Your Business? We Tested Four Real Ones to Find Out

https://industrycontents.com/language-models-flatten-brand-positioning/
1•ticust•23m ago•0 comments

Pgtestdb's template cloning approach to testing is fast

https://brandur.org/fragments/pgtestdb
4•brandur•24m ago•0 comments

BMW Is Showing Commercials on Their Car's Dash Screens as a Treat

https://www.theautopian.com/bmw-is-showing-commercials-on-their-cars-dash-screens-and-they-want-y...
3•CharlesW•28m ago•2 comments

Scope of Hacks on U.S. Water Supply Widens as Evidence Points to Iran

https://www.nytimes.com/2026/08/01/us/politics/iran-cyberattack-water-systems.html
21•jbegley•28m ago•2 comments

Leaked Document Names Mainstream Journalists Taking Pay-for-Play Trips to China

https://nataliegwinters.substack.com/p/exc-leaked-document-names-mainstream
4•sleepyguy•29m ago•0 comments

Disabling Blocking on Dual Pi-Hole DNS Servers with a Shell Script

https://justinribeiro.com/chronicle/2026/07/30/disabling-blocking-on-dual-pi-hole-dns-servers-wit...
2•speckx•29m ago•0 comments

Carl's Required Reading

https://carlkolon.com/reading/
3•cckolon•35m ago•0 comments

US Military F-35B fighter jet crashes and burns at California Marine Corps base

https://www.cnn.com/2026/07/31/us/military-jet-crash-california-marine-base
2•teleforce•39m ago•0 comments

Kenji/Serious Eats – 30-Min Pressure Cooker Pho Ga

https://www.seriouseats.com/30-minute-pressure-cooker-pho-ga-recipe
3•stasomatic•39m ago•1 comments

Crystal Wars – turn-based strategy on a fresh Voronoi map every match

https://play.crystalwars.io
6•VertexNoord•42m ago•2 comments

The Bedrock of Software Design

https://alex.draftist.io/blog/the-bedrock-of-software-design-ycqvcedsj
4•birdculture•42m ago•0 comments

The Absent Narrator

http://blog.funcall.org/ai/2026/07/31/absent-narrator/
2•varjag•43m ago•0 comments

Indexing the Data Lake for Online Point Queries

https://engineering.atspotify.com/2026/7/indexing-the-data-lake-for-online-point-queries
8•kalaracey•44m ago•0 comments

AI Adoption Is Dividing Friends, Families and Co-Workers

https://www.bloomberg.com/news/articles/2026-07-30/how-chatgpt-and-ai-are-dividing-friends-and-fa...
3•theanonymousone•46m ago•0 comments

GitHub has alternatives, but no replacement

https://lalitm.com/post/github-alternatives/
36•lalitmaganti•46m ago•21 comments

Show HN: Netmnt 0.2.0

https://github.com/thongor77/netmnt
3•magetriste•51m ago•0 comments