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!

Free Polymarket whale tracker (client-side, $0 to run)

https://polymarket-whale-cockpit.pages.dev/
1•RedFoxxie•43s ago•0 comments

Big AI sets out its terms for regulatory capture

https://www.theregister.com/ai-and-ml/2026/09/14/big-ai-sets-out-its-terms-for-regulatory-capture...
1•joebuckwilliams•2m ago•0 comments

We tasted and ranked 17 different Mango varieties to find the best one

https://aakritwrites.com/best-mango-variety/
1•aakritpatel•2m ago•0 comments

What is an agent harness really?

https://tej.as/blog/what-is-an-agent-harness
1•tejaskumar_•3m ago•0 comments

The Index Structures of Fast C++ Hash Maps

https://martin.ankerl.com/2026/09/09/hash-map-index-structures/
1•wscott•4m ago•0 comments

How Is Compression Prediction?

https://lukefleed.xyz/posts/compression/
1•aziis98•8m ago•0 comments

The "Nonexistent" Research on AI's Benefits for Education

https://www.insidehighered.com/news/tech-innovation/artificial-intelligence/2026/09/14/nonexisten...
1•furcyd•17m ago•0 comments

Pragtical 3.12 Adds an Opt-In SDL GPU Back End to a 50MB Code Editor

https://news.lavx.hu/article/pragtical-3-12-adds-an-opt-in-sdl-gpu-backend-to-a-50mb-code-editor
1•rd07•18m ago•0 comments

Show HN: Busy Door

https://joaquimrocha.com/busy-pixoo/
1•kimr•19m ago•0 comments

The Whitest Page on the Internet

https://hakluke.com/white
1•federico3i•19m ago•0 comments

Companies are making education policy

https://www.thehomescreen.org/p/companies-are-making-education-policy
1•flail•20m ago•0 comments

An Archive of Colour Gradients

https://phillips.shef.ac.uk/pub/cpt-city/
2•ashitlerferad•22m ago•0 comments

Are They Using AI?

https://aretheyusingai.vercel.app
1•blurayfin•26m ago•0 comments

Show HN: ChaosTree – A zero-dependency Java tree library (AVL,RBT,B-Tree,B+Tree)

https://github.com/Chaos-vy/ChaosTree
1•chaos_vy•26m ago•1 comments

CUDA Tile (cuTile) first working port in Java

https://github.com/beehive-lab/TornadoVM/pull/1083
1•birdculture•27m ago•0 comments

Rvvts – The RISC-V Vector Test Framework (V2)

https://github.com/ics-jku/RVVTS
1•fork-bomber•29m ago•0 comments

A Man Archiving Pirate Radio Station Kool FM

https://londonist.com/london/music/kool-fm-archives
1•rdmuser•29m ago•0 comments

Viète's Formula

https://en.wikipedia.org/wiki/Viète%27s_formula
1•vismit2000•29m ago•0 comments

Automated Capacity Testing for Kafka Consumers

https://medium.com/booking-com-development/how-we-built-automated-capacity-testing-for-kafka-cons...
1•theykk•30m ago•0 comments

XCancel service is suspended (again)

https://xcancel.com/x
2•shelfchair•31m ago•0 comments

Suno Genre Wheel

https://suno.com/labs/genre-wheel
1•hakkikonu•34m ago•0 comments

UK.gov begins killing off passwords for 23M users

https://www.theregister.com/security/2026/09/14/ukgov-begins-killing-off-passwords-for-23-million...
1•jjgreen•34m ago•0 comments

At-Home Urine Test

https://www.earlyhealth.com
1•hangshuojin•35m ago•1 comments

Study: Emotions like anger and hope may not drive pro-environmental behavior

https://norwegianscitechnews.com/2026/09/the-negative-effect-of-emotion-in-climate-action/
2•giuliomagnifico•36m ago•0 comments

Pkgsrc Is Cool (2022)

https://www.wisellama.rocks/posts/2021-12-23-pkgsrc-is-cool/
6•Tomte•37m ago•0 comments

Write security-sensitive code in Swift

https://www.youtube.com/watch?v=nBuUinlZuow
1•pjmlp•37m ago•0 comments

XCancel Taken Down Again

https://xcancel.com/#
49•gaganyaan•38m ago•31 comments

AI Firms Are Reportedly Buying Nvidia RTX 5090 GPUs in Bulk for Server Use

https://www.techpowerup.com/352663/ai-firms-are-reportedly-buying-nvidia-rtx-5090-gpus-in-bulk-fo...
1•geoffbp•40m ago•1 comments

Lua is so underrated (2024)

https://nflatrea.bearblog.dev/lua-is-so-underrated/
2•Tomte•43m ago•0 comments

How to copy tables from ChatGPT to Google Docs without losing formatting [video]

https://www.youtube.com/watch?v=KKT7FqqYQjw
3•quysala12•44m ago•0 comments