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!

Painting 1990s anime scenes in Python

https://www.fofr.ai/greenhouse-after-the-typhoon
1•magoghm•44s ago•0 comments

The State of Allocators in 2026 – Stabilised

https://cetra3.github.io/blog/state-of-allocators-2026-finally-stabilised/
1•birdculture•2m ago•0 comments

Why drivers want cheap, dumb cars again

https://slate.com/business/2026/11/dumb-cars-cheap-low-tech.html
3•tekdude•11m ago•0 comments

Built a new open-source Digital Audio Workstation

https://elsewhere.audio
1•sigdesign•12m ago•0 comments

Measuring Pretraining Perplexity Through a Black Box

https://anpaure.github.io/pretraining-index/writeup.html
1•seizethecheese•12m ago•0 comments

Show HN: I made a language for apps to embed arbitrary server-driven UIs safely

https://hypereffect.dev/demo/
1•andunieee•13m ago•0 comments

Discovery of a quasar at z = 8.13 hosting a 360M-solar-mass black hole

https://www.aanda.org/articles/aa/full_html/2026/11/aa62243-26/aa62243-26.html
1•mikeleeorg•13m ago•0 comments

Show HN: Free Temporary and Mock REST API for Front End Developers

https://api.sonojs.com
1•winbetacom•14m ago•0 comments

AI Detectors Like Pangram Are Changing Human Writing

https://www.bloomberg.com/news/features/2026-10-30/how-ai-detectors-like-pangram-are-changing-hum...
1•paulpauper•15m ago•0 comments

Strengthening NATO and allied cyber defenses with AI

https://openai.com/index/strengthening-nato-allied-cyber-defences-ai/
3•gnabgib•17m ago•1 comments

The coming age of sodium-ion batteries

https://www.noahpinion.blog/p/the-coming-age-of-sodium-ion-batteries
2•paulpauper•17m ago•0 comments

Book Review Contest 2026 Winners

https://www.astralcodexten.com/p/book-review-contest-2026-winners
1•paulpauper•18m ago•0 comments

I was hired by an AI agent

2•dev_chad•19m ago•3 comments

Caged farm animals could be banned in the EU after landmark court ruling

https://www.euronews.com/2026/11/25/historic-victory-caged-farm-animals-could-be-banned-in-the-eu...
3•Teever•32m ago•0 comments

CineVocab – Word-by-word subtitle translations for YouTube and Netflix

https://cinevocab.up.railway.app/get?src=hackernews
4•yakupceri•40m ago•0 comments

Agromate – The Open Source and customizable greenhouse based on ESP32

https://agromate-devs.github.io/website/
3•andreock•40m ago•0 comments

Treasury CIO Is Vibe Coding a Civilization Clone During Treasury Department Hack

https://www.404media.co/sam-corcos-legatum-treasury-cio-is-vibe-coding-a-civilization-clone-durin...
9•Daniyal45•42m ago•2 comments

Musk makes $18B SpaceX stock pledge for every kid in America

https://finance.yahoo.com/markets/stocks/articles/musk-makes-18-billion-spacex-053902980.html
8•cybermango•42m ago•0 comments

Anthropic CEO pushes back on Axios reporting on AI and free will

https://finance.yahoo.com/technology/ai/articles/anthropic-ceo-pushes-back-axios-184139218.html
3•cybermango•43m ago•0 comments

Google's DeepCrossAttention achieves comparable model quality up to 3x faster

https://research.google/blog/supercharging-transformer-residual-connections/
5•ComputedCamp995•44m ago•0 comments

Luma Vera (Razonamiento Artificial)

https://nicoconvoz.github.io/Janax/p/especificacion/00-indice-y-arquitectura.html
4•nicoconvoz•46m ago•0 comments

Making a Nixie tube from scratch [video]

https://www.youtube.com/watch?v=v1iEvRrmtfM
3•fortran77•49m ago•0 comments

Tabernetes: A Kubernetes cluster whose nodes are browser tabs

https://tabernet.es/
5•mmcclure•50m ago•0 comments

Scientists Hunting a Shipwreck Found a Seafloor Littered with Washing Machines

https://aroundprague.cz/en/news/science/scientists-hunting-a-shipwreck-found-a-seafloor-littered-...
2•extasetoi12•53m ago•1 comments

NATO uses OpenAI for cybersecurity, 300B tokens monthly

https://dataconomy.com/2026/11/17/openai-grants-nato-access-to-advanced-cybersecurity-models/
4•trilogic•56m ago•1 comments

A Deterministic Subexponential-Time Algorithm for the Discrete Logarithm Problem

https://eprint.iacr.org/2026/3020
3•gmays•59m ago•1 comments

Which AI Would You Trust to Build a Bridge? [video]

https://www.youtube.com/watch?v=AL9_42YQZzE
2•spider-mario•1h ago•0 comments

New PRL Miner – Codex is great

https://github.com/MHIGists/prl-miner
2•thegodhand•1h ago•1 comments

Thundermail Email Hosting

https://tb.pro/en-US/
4•sp8•1h ago•0 comments

A free gross-to-net salary calculator for Italy (RAL to netto)

https://calcolonettostipendio.com/
4•addamsrock•1h ago•0 comments