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!

Computing with Time Travel (2015)

https://www.sciencedaily.com/releases/2015/12/151209091224.htm
1•bryanrasmussen•2m ago•0 comments

How hard is it to check for whitespace?

https://serce.me/posts/2026-10-30-how-hard-is-it-to-check-for-whitespace
1•SerCe•2m ago•0 comments

QwenPU: An LLM running inside another LLM's weights

https://huggingface.co/divagr1925/QwenPU
1•joshcsimmons•6m ago•0 comments

Fruth – A semantic state inference engine for AI

https://github.com/fl0ri0/fruth
1•fl0ri0•8m ago•1 comments

Student

1•nagdista•13m ago•0 comments

Avoid Public Functions Calling Other Public Functions

https://matklad.github.io/2026/10/29/pub-calls-pub.html
1•signa11•16m ago•0 comments

A tiny Pacific country rolls out universal basic income

https://www.economist.com/asia/2026/10/29/a-tiny-pacific-country-rolls-out-universal-basic-income
3•motionlessveloc•17m ago•1 comments

Introducing Kwi, a new KDE terminal emulator

https://blogs.kde.org/2026/11/01/introducing-kwi/
1•signa11•18m ago•0 comments

Preventing the Collapse of Civilization (2019) [video]

https://www.youtube.com/watch?v=ZSRHeXYDLko
1•ivanjermakov•20m ago•0 comments

Can my fine-tuned model pass Pangram?

1•meyerdav•22m ago•0 comments

Show HN: HackerTube by Andrej Karpathy

https://hackertube.org/
1•paaloeye•22m ago•0 comments

Securing Internet-Critical Software: How We Could Have Backdoored Bash

https://www.hacktron.ai/blog/hacking-gnu-savannah
2•kmm•27m ago•0 comments

Show HN: Rust crawler for SEO and content audits, with optional LLM review

https://crawler.siteone.io/
1•janreges•30m ago•0 comments

Magic vs. Wonder: memories of a distant future

1•nicfio•31m ago•0 comments

What factors shapes the future of UX learning?

https://docs.google.com/forms/d/e/1FAIpQLSfUrRL6qYGP_PlgqNdXRX_9dR92umWQAuetaGru1j02YG28rA/viewform
1•uxrabhi•33m ago•0 comments

Show HN: Safely connect GrokBot to your PC/VM: chosen folders and Claude/Codex

https://github.com/janreges/safe-grokbot-bridge
1•janreges•35m ago•0 comments

GTM Engineer Salary in 2026

https://gtmjobs.xyz/gtm-engineer-salary
2•meetvolley•38m ago•0 comments

Large-scale battery storage systems check their charge every 60 seconds, causing

https://www.fz-juelich.de/en/news/archive/press-release/2026/mystery-of-60-second-fluctuations-in...
2•fanf2•40m ago•0 comments

Photographer captures images of hundreds of satellites

https://www.stuff.co.nz/culture/361053243/kiwi-photographer-captures-images-hundreds-satellites-n...
3•hermitcrab•44m ago•0 comments

You can't create a different life while continuing to make the same choices

https://randomfuckingknowledge.substack.com/p/the-four-choices-that-change-how
1•TheCreativePrin•45m ago•0 comments

Europe's Fossil-Fuel Problem Has an Electric Solution

https://www.bloomberg.com/news/newsletters/2026-10-31/europe-s-fossil-fuel-problem-has-an-electri...
2•simonebrunozzi•47m ago•0 comments

North Korea Responsible for $6B+ Binance Attack

https://www.fbi.gov/investigate/cyber/alerts/2026/north-korea-responsible-for-6-billion-binance-a...
2•Wasserpuncher•52m ago•0 comments

IEEE Wipes Out 1,417 Papers over Sold Authorship

https://www.nature.com/articles/d41586-026-03455-8
2•haebom•52m ago•0 comments

DeepSeek Harness Superagent Prototype

https://github.com/deepseek-ai/dsh-superagent-prototype
2•orion_•52m ago•0 comments

Show HN: Portr – Expose local HTTP, TCP or WS connections to the public internet

https://github.com/amalshaji/portr
1•pixxxel•56m ago•0 comments

Pale Blue Dot (Book)

https://en.wikipedia.org/wiki/Pale_Blue_Dot_(book)
1•chistev•56m ago•1 comments

Towards Digital Garden

https://jaydip.me/notes
1•jdsane•59m ago•0 comments

Shops looted as German cost of living protests turn violent

https://www.bbc.com/news/articles/cqj34gnd3n30o
1•Betelbuddy•1h ago•0 comments

FreeGent: Free Agentic AI for Everyone

https://freegent.ai
2•anttttti•1h ago•0 comments

How to Unleash GStreamer for Low Latency Streaming with Red5?

https://www.red5.net/blog/gstreamer-for-low-latency-streaming/
1•mondainx•1h ago•0 comments