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!

Jev is to tool use what RAG is to context

https://rajveerbachkaniwala.com/blog/2026/09/19/jev-is-to-tool-use-what-rag-is-to-context/
1•rajveerb•4m ago•0 comments

How Hacker News ranking works: scoring, controversy, and penalties (2013)

https://www.righto.com/2013/11/how-hacker-news-ranking-really-works.html
1•theanonymousone•4m ago•0 comments

Partnering with Accenture on Embedded Evaluation

https://www.anthropic.com/news/accenture-embedded-evaluation
1•theanonymousone•5m ago•0 comments

The shape that does not return

https://harishsnotebook.com/2026/03/21/the-shape-that-does-not-return/
1•andsoitis•7m ago•0 comments

Ideological differences in the expanse of the moral circle (2019)

https://www.nature.com/articles/s41467-019-12227-0
1•jackdoe•7m ago•0 comments

You can defeat the Dream Devourer from Chrono Trigger using an int overflow

https://chrono.fandom.com/wiki/Dream_Devourer
1•ronreiter•9m ago•0 comments

The Pain Axis: LLMs Represent Self-Directed Harm and Act to Relieve It

https://arxiv.org/abs/2609.16247
1•droidjj•11m ago•0 comments

OliverDB: 9.67× Snowflake, 8× less compute

https://oliverdb.ai/benchmarks.html
1•pnr-consulting•14m ago•0 comments

We are unconsciously becoming someone else

https://www.souravinsights.com/blog/on-becoming-someone-else
2•SouravInsights•17m ago•0 comments

The Secp256k1 Boundary Operator in O(1) Time

https://zenodo.org/records/22849880
1•GeometryKernel•17m ago•0 comments

You Who Forsake the Lord: William T. Vollmann's four-volume spook show

https://thebaffler.com/latest/you-who-forsake-the-lord-barron
1•cocacola1•19m ago•0 comments

Trump announces a new 'AI Force,' but says he will not 'stifle' AI

https://www.businessinsider.com/trump-ai-regulation-slowdown-anthropic-dario-amodei-9-2026
1•berkeleyjunk•20m ago•1 comments

Show HN: Frost – frosted-glass Linux icons where file types say what they are

https://github.com/thissayantan/frost-icon-theme
2•thissayantan•24m ago•0 comments

Cuba's power grid collapses for sixth time since US cut off fuel to the island

https://apnews.com/article/cuba-power-outage-0f180c8e414898dbe34875d3d82b8016
1•ck2•27m ago•2 comments

ShinyHunters hacks Clop leak site, threatens to extort ransomware gang

https://www.bleepingcomputer.com/news/security/shinyhunters-hacks-clop-leak-site-threatens-to-ext...
1•sbulaev•28m ago•0 comments

MPEG-CENC: Defective by Specification (2024)

https://phrack.org/issues/71/mpeg-cenc-defective-by-specification_md
1•htgb•28m ago•0 comments

Urban decay: Detroit, the Chrysler Freeway, and child's imagination

http://detroit.danieleboulay.com
1•freedmans•36m ago•0 comments

ROCmFix and InferBench – AMD Local-LLM Setup and Vulkan vs. Hip Benchmarking

https://github.com/xanpavle/rocmfix
2•Xanpavle•37m ago•0 comments

I Built a System One Model on a RTX 3070

https://twitter.com/lafalcemateo/status/2101414901365248059
1•lafalce•38m ago•0 comments

THUG2 Asset Archive

https://xoevoox.github.io/thug2-assets/
1•Peacefulz•41m ago•1 comments

Qualcomm's Adreno X2 GPU

https://chipsandcheese.com/p/qualcomms-adreno-x2-gpu
2•pella•44m ago•0 comments

Sooner or Later, You're Going to Have to Make an Actual Argument

https://freddiedeboer.substack.com/p/sooner-or-later-youre-going-to-have
1•paulpauper•44m ago•0 comments

AI-Generated Movie Star Has a Total Meltdown on TV

https://www.honest-broker.com/p/ai-generated-movie-star-has-a-total
2•paulpauper•45m ago•0 comments

Show HN: Connectome-inspired spiking network you can try in the browser

https://awareliquid-sparse-snn-demo.static.hf.space/index.html
1•EverestAn•45m ago•0 comments

The Book Is a Book, Not Disembodied Information

https://nntaleb.substack.com/p/the-book-is-a-book-not-disembodied
1•paulpauper•45m ago•0 comments

Unix Year 2038 problem and the art of underestimating

https://www.buzzsprout.com/2469780/episodes/19824439
2•jammcq•48m ago•2 comments

A guitar amp modeller that runs on an ESP32-S3

https://coyopedal.playtaurus.com/
1•arbayi•52m ago•0 comments

MiTeX: LaTeX support for Typst, powered by Rust and WASM

https://github.com/mitex-rs/mitex
2•fanf2•53m ago•0 comments

I Thought I Just Needed a Vacation. Turns Out I Needed a Different Life

https://comuniq.xyz/Career-job-opportunities/post?t=1687
1•01-_-•53m ago•0 comments

English: A vs. An

https://www.redblobgames.com/blog/2026-09-16-english-a-vs-an/
2•azhenley•53m ago•0 comments