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: Decorate My Tree Online – Zero-login Christmas tree locked until Dec 25

https://decoratemytreeonline.com/
1•visiohex•5m ago•0 comments

After 7 years in court, Meta says 9 million claims belong in arbitration

https://www.reuters.com/legal/government/after-7-years-court-meta-says-9-million-claims-belong-ar...
3•gwu78•9m ago•1 comments

Sleep timing is associated with lunar gravity

https://www.pnas.org/doi/10.1073/pnas.2612981123
1•doener•10m ago•0 comments

VNULL-rs – We only care about speed

https://github.com/Flova/vNULL-rs
1•flova•10m ago•0 comments

Nokia Composer in 512 Bytes

https://zserge.com/posts/nokia/
1•sph•14m ago•0 comments

I don't use a mobile phone – Umberto Eco [video]

https://www.youtube.com/watch?v=WE0LD7bXkZo
1•maremmano•15m ago•0 comments

P-256 and the Cost of Compatibility

https://dottedmag.net/blog/p256-system-level-conflict/
2•dottedmag•15m ago•0 comments

Bliss lies on the other side of crushing, crushing boredom

https://www.henrikkarlsson.xyz/p/boredom
1•jger15•17m ago•0 comments

Scams, Lawsuits and Data Centers: The Man Married to Alice Huang

https://www.nytimes.com/2026/12/04/business/alice-huang-husband-nvidia.html
1•gwu78•18m ago•0 comments

Show HN: Mu – A self hosted personal workspace

https://micro.mu?v=2.23.0
1•asim•21m ago•0 comments

How Userspace CUDA Programs Communicate with Nvidia GPUs on Linux

https://shubham0204.github.io/blogpost/programming/cuda-executable-ioctl
1•shubham0204•23m ago•1 comments

Program for One

https://ignorethecode.net/blog/2026/12/06/program_for_one/
1•ingve•32m ago•0 comments

RentnerPDF 1.1.0 adds Factur-X and XRechnung from one invoice model

https://github.com/RentnerKev/RentnerPDF/releases/tag/v1.1.0
1•RentnerKev•35m ago•0 comments

Three-Dimensional Cellular Automata and Parameter Space Art in Minecraft [video]

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

Why Growing AI Adoption Raises Alarms About Privacy

https://news.bloomberglaw.com/artificial-intelligence/why-growing-ai-adoption-raises-alarms-about...
3•gwu78•39m ago•1 comments

Show HN: LocalAI Mobile– Run Llama 3.2 and Qwen 2.5 offline in Expo 52 APK demo

https://github.com/Itsvks17/localai-mobile
1•DarkRyoshin•40m ago•0 comments

Show HN: Building 1M+ RPS Distributed Engines in Go and Rust

https://github.com/grfdsasdvef/awesome-highload-architecture
1•snowdensay•40m ago•0 comments

Watchbook – Timestamped notes and search for liked YouTube videos

https://chromewebstore.google.com/detail/watchbook/geiphallhldbmlaobldaaojpmnokcdol
1•smurtazasr•42m ago•0 comments

Physical Intelligence Wins the Robot Olympics: Deep Dive

https://generalrobots.substack.com/p/physical-intelligence-wins-the-olympics
1•YeGoblynQueenne•43m ago•0 comments

Were Nov outages insider companies updating cryptography?

2•chaseadam17•47m ago•0 comments

UK Supermarket Loyalty Prices

https://food-discount-scheme-price-analysis.github.io/loyalty_prices/
1•jonatron•48m ago•0 comments

MI6 chief warns of catastrophic risks of AI and Russian use of cognitive warfare

https://www.theguardian.com/technology/2026/dec/05/ai-warfare-mi6-chief-blaise-metreweli-warning
3•thm•53m ago•1 comments

Clx 0.6.0: Lua native compiler passes Lua 5.5.1 test suite

2•_samt_•55m ago•0 comments

Show HN: Rili – Practice speaking English by calling an AI tutor

https://yofluent.com
5•hichamtikonote•55m ago•1 comments

Measuring LLMs Reverse Engineering Capabilities on Obfuscated Binaries

https://arxiv.org/abs/2612.05213
1•porridgeraisin•56m ago•0 comments

Alibaba Cloud unveils HappyWan, a 45-second native audio-video diffusion model

https://kling3.io/happywan-ai-video-generator
1•wanhappy•56m ago•0 comments

Show HN: OpenStream–free unlimited local dictation for Mac

https://zazai.dev/openstream/
1•Zazai840•1h ago•0 comments

Counterintelligence asks why FBI and CIA didn't stop Jensen Huang's entanglement

https://theconversation.com/im-a-counterintelligence-expert-and-im-wondering-why-the-fbi-and-cia-...
6•nephihaha•1h ago•0 comments

DeskRise – raises your standing desk after an hour. Help add your desk

https://github.com/jipjacob/deskrise
1•HydraZeuson•1h ago•0 comments

Ubuntu has spent years patching GNOME, but what it can't fix is the real problem

https://www.xda-developers.com/ubuntu-has-been-patching-gnomes-missing-basics-since-2017-and-gnom...
2•signa11•1h ago•0 comments