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!

MAI Transcribe 2

https://microsoft.ai/news/mai-transcribe-2-is-the-fastest-most-accurate-and-cheapest-speech-recog...
1•low_tech_punk•2m ago•0 comments

You Don't Need Initial-Scale in Your HTML

https://vale.rocks/micros/20260902-1350
2•birdculture•6m ago•0 comments

Porcine kidney xenotransplantation as a bridge to allotransplantation

https://doi.org/10.1016/S0140-6736(26)01295-X
1•sbulaev•7m ago•0 comments

Readers can't identify watermarked AI text

https://www.seangoedecke.com/readers-cant-identify-watermarked-ai-text/
2•gfysfm•8m ago•0 comments

Full Interview: Sam Altman on OpenAI, New AI Model, Governments and Global

https://www.youtube.com/watch?v=cRX84IvyVNU
1•gilfoyle_7•10m ago•0 comments

Show HN: I got BPM detection from 42% to 85% on GiantSteps with TempoCNN

https://www.audioforges.com/guides/bpm-detection-tempocnn
1•dipak8080•11m ago•0 comments

An Interview with OpenAI President Greg Brockman About Astra and Alignment

https://stratechery.com/2026/an-interview-with-openai-president-greg-brockman-about-astra-and-ali...
1•swolpers•12m ago•0 comments

Data from drones in Ukraine is fueling a new Wild West marketplace

https://www.technologyreview.com/2026/09/04/1143452/drone-data-wild-west/
1•joozio•13m ago•0 comments

Tgrep: Trigram-Indexed Grep

https://github.com/microsoft/tgrep
1•peterfication•14m ago•0 comments

Show HN: Sponsee – The Sponsorship CRM for Streamers

https://sponsee.app/
1•not_wowinter14•15m ago•0 comments

A Texas rancher grazes more than 8k sheep across solar farms

https://siliconcanals.com/b-a-texas-rancher-grazes-more-than-8000-sheep-across-solar-farms-and-th...
1•thinkcontext•15m ago•0 comments

Transplanted pig kidney works in US man's body for record 271 days

https://www.bbc.com/news/articles/c305qn2jeggo
1•vinni2•15m ago•0 comments

Smolts: A pedagogical IDE for a teaching language

https://eighty-twenty.org/2026/09/04/smolts
1•tonyg•16m ago•0 comments

Chinese businesses giving away AI tokens with coffee, credit cards, dumplings

https://restofworld.org/2026/china-ai-tokens-consumer-rewards-credit-cards-telcos-deepseek/
2•thm•16m ago•0 comments

Uber ceases operations in Nigeria, catching drivers and riders by surprise

https://www.washingtonpost.com/world/2026/09/03/uber-stops-operating-nigeria-uganda-surprising-dr...
1•Michelangelo11•16m ago•0 comments

O&O ShutUp10 – The antispy tool for Windows 10 and 11

https://www.oo-software.com/en/shutup10
1•embedding-shape•18m ago•0 comments

Collider: An Experimental Minecraft Server in 5500 lines Clojure

https://github.com/Nozistance/collider
1•tosh•19m ago•0 comments

Nvidia Agrees to Buy AI Platform Hugging Face for $13B

https://www.wsj.com/tech/ai/nvidia-agrees-to-buy-hugging-face-for-13-billion-11929060
1•santiago-pl•23m ago•0 comments

When the Compiler Is a PCB Factory

https://www.kevin.md/my-pcb-has-a-compiler.md/
1•Bluestein•25m ago•0 comments

US diesel prices hit a record high of $5.85 on average

https://apnews.com/article/gas-diesel-prices-us-iran-war-ebd01b9773365ee40550dcfd7d3ebf87
4•geox•32m ago•1 comments

Conserved water shapes the pathogenicity of missense variants in human proteins

https://academic.oup.com/mbe/advance-article/doi/10.1093/molbev/msag217/8776575
2•jkonc•33m ago•2 comments

NPM is experiencing elevated latency

https://github.com/npm/cli/issues/9950
2•mhfs•34m ago•1 comments

Motivating Myself for Exercise by Arbitrarily Withholding Rewards

https://blog.klungo.no/2026/09/04/motivating-myself-for-exercise-by-arbitrarily-withholding-rewards/
1•danielskogly•34m ago•0 comments

Avamorph – Change your avatar without losing anyone

https://ja.sperdeboer.nl/avamorph
1•eRzy•35m ago•0 comments

Show HN: A browser IDE that builds and deploys your project to a live URL

https://cloudeide.com/
1•laxmansubedi•35m ago•0 comments

Benchmarking Qwen3.8 27B quantizations: 4-bit holds up, 1-bit collapses

https://quesma.com/blog/qwen38-27b-quantizations-benchmarked/
2•stared•36m ago•1 comments

DeepSeek to use 160K+ of Huawei's Ascend 950DT chips at a Mongolia data center

https://bloomberg.com/news/articles/2026-09-04/deepseek-plans-big-huawei-ai-chip-order-to-power-n...
3•utiiiD•36m ago•0 comments

Before It's Lost – Rebuilding the Sega Saturn's Dev Environment on a Modern PC

https://www.yabasanshiro.com/blog/2026-08-02_before-it-is-lost
2•robin_reala•37m ago•0 comments

Peerseek – A Federated PeerTube Video Search Engine

https://polykit.rocks/peerseek-federated-peertube-search/
1•ColinWright•39m ago•0 comments

What if Zig and Rust could speak?

https://1matin.com/zig-vs-rust/
1•1matin•41m ago•0 comments