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!

We should be more ambitious with the software we build

https://danluu.com/ambitious/
1•ltratt•2m ago•0 comments

FBI Explores Espionage Case Against Saudi OpenAI Suspect

https://www.wsj.com/us-news/law/fbi-explores-espionage-case-against-saudi-openai-suspect-fbaedefe
1•JumpCrisscross•2m ago•0 comments

Small Programs and Languages

https://ratfactor.com/cards/pl-small
1•andsoitis•5m ago•0 comments

The Importance of Limitations for Creativity and Learning

https://ratfactor.com/cards/limitations
1•andsoitis•7m ago•0 comments

Forecasting Financial Markets with Timestral

https://philippdubach.com/posts/forecasting-financial-markets-with-timestral/
1•7777777phil•7m ago•0 comments

The Experiment review – easily the most disturbing thing on British TV

https://www.theguardian.com/tv-and-radio/2026/oct/21/the-experiment-channel-four-tv-review-uk-naz...
1•nephihaha•7m ago•0 comments

Show HN: WhatsApp Bridge for those with their own VPS

https://github.com/vid-t/whatsapp-bridge
1•vid_t•8m ago•1 comments

Israeli central bank rejects Netanyahu's plan to use crypto to evade sanctions

https://www.ft.com/content/39e475e7-0392-4856-aaaf-5ab3e35b8215IsraelicentralbankrejectsBenjaminN...
2•JumpCrisscross•9m ago•0 comments

Interesting properties about the design of the UK 50p piece [pdf]

https://cdn.ima.org.uk/wp/wp-content/uploads/2022/03/Westward-Ho-Conway-Concorde-and-curiously-cu...
1•greengreengrass•11m ago•0 comments

US executives quit $25B gas venture over claims of secret Russian control

https://www.ft.com/content/e9cfbfbb-e65a-4303-aebb-20d59319ef1b
3•JumpCrisscross•11m ago•0 comments

How to Start a Startup Game

https://www.neuroplusgbrain.net/
1•FDX2018•13m ago•0 comments

Apple should fuck themselves with their "privacy"

5•itvision•17m ago•0 comments

The power of having less features

https://ratfactor.com/cards/no-feature
1•andsoitis•18m ago•0 comments

OpenAI says it will no longer train its AI models on the live internet

https://techcrunch.com/2026/10/23/openai-says-it-will-no-longer-train-its-ai-models-on-the-live-i...
1•colinprince•18m ago•0 comments

Bridgeplay: Windows Steam games on your Mac

https://bridgeplay.dev/
1•evo_9•20m ago•0 comments

Vaccine generates immune response to KRAS mutations in pancreatic cancer study

https://newsnetwork.mayoclinic.org/discussion/investigational-vaccine-generates-immune-response-t...
3•slater•21m ago•0 comments

Who Wrote This Byte: git blame for your build’s bytes

https://fzakaria.com/2026/10/23/who-wrote-this-byte
1•ingve•22m ago•0 comments

Who Owns the Roadmap? Six Ways to Build a Forward Deployed Engineering Business

https://mwvdveld.substack.com/p/who-owns-the-roadmap-six-ways-to
1•RenaissanceDad•22m ago•1 comments

Doctors' offices are charging patients 10 times more by claiming to be hospitals

https://www.washingtonpost.com/business/2026/10/24/doctors-offices-are-charging-patients-10-times...
2•bookofjoe•24m ago•1 comments

A stack to calm the mind and stay on track

https://ratfactor.com/stack/
1•Curiositry•25m ago•0 comments

Ask HN: Any real cases where AI slop ruined a codebase and forced a rewrite?

1•hukuuu•26m ago•0 comments

Making My Blog Readable by AI Agents

https://deallocatedobjects.com/posts/making-my-blog-readable-by-ai-agents
1•ingve•28m ago•0 comments

Data center spend will double to $2.1T by 2028

https://www.reuters.com/business/data-center-spending-more-than-double-21-trillion-by-2028-2026-1...
1•sumnole•32m ago•1 comments

Procrastination is burning my future

https://www.mashally.org/posts/procrastination_is_burning_my_future/
1•mashally•33m ago•0 comments

Studies violate policies on collaboration between editors and authors

https://retractionwatch.com/2026/10/22/editorcheck-handling-editors-authors-collaboration-plos-md...
1•leephillips•37m ago•0 comments

Sevenbox, find what an AI agent's wrong decision affected

https://github.com/sevenboxlabs/sevenbox
2•ObeeAI•40m ago•0 comments

Community

https://marco.org/2026/10/24/community
2•colinprince•41m ago•2 comments

Lobster, Programming Languages, and Game Engines [video]

https://www.youtube.com/watch?v=hDT79xdqf3k
2•andsoitis•47m ago•0 comments

Apple Hides a Playable Classic iPod Inside Its Music Website

https://www.macobserver.com/news/apple-hides-a-fully-playable-classic-ipod-inside-its-music-website/
1•wodow•47m ago•0 comments

Show HN: Perch, a calm Mac app for juggling Claude Code sessions

https://perchfocus.com/
1•eastandwestwind•48m ago•0 comments