frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Fast and Quality Code Chunking with Chonkie

1•snyy•7mo 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!

Is Times New Roman Better Than Calibri for the State Department?

https://www.nytimes.com/interactive/2025/12/13/us/calibri-font-times-new-roman-state-department.html
1•gaws•1m ago•0 comments

Sometimes you don't get your ice cream at the end

https://cezarcocu.com/blog/sometimes-you-dont-get-your-ice-cream-at-the-end
1•ggamecrazy•6m ago•0 comments

MartSpace

1•rb-rbloxk•14m ago•0 comments

Component Party – Compare JavaScript Frameworks

https://component-party.dev/?f=react-svelte5
2•joshdavham•20m ago•0 comments

Heavy metal is healing teens on the Blackfeet Nation

https://www.hcn.org/issues/57-11/heavy-metal-is-healing-teens-on-the-blackfeet-nation/
1•cdrnsf•20m ago•0 comments

Apple loses contempt appeal in Epic case

https://www.theverge.com/news/842991/apple-epic-appeal-loses-contempt
4•samuel246•20m ago•1 comments

Ask HN: Are we forcing LLMs to be State Machines?

1•kodiyak•30m ago•0 comments

Planning the Future of Gimp

https://www.patreon.com/posts/planning-future-144005216
1•marcodiego•33m ago•0 comments

360Brew Decoder-Only Foundation Model for Personalized Ranking and Reco

https://web.archive.org/web/20250129030709/https://arxiv.org/pdf/2501.16450
1•felineflock•35m ago•0 comments

Show HN: Wiki.txt

https://github.com/wikitxt/wiki.txt
2•tamnd•39m ago•1 comments

A look at an Android ITW DNG exploit

https://googleprojectzero.blogspot.com/2025/12/a-look-at-android-itw-dng-exploit.html
1•gslin•47m ago•0 comments

Modern SID chip substitutes [video]

https://www.youtube.com/watch?v=nooPmXxO6K0
3•vismit2000•50m ago•0 comments

Rocket Lab – 'Raise and Shine' Launch for JAXA [video]

https://www.youtube.com/watch?v=cMP328yoUu4
6•schappim•53m ago•0 comments

Deal or No Deal Game

https://jgbrwn.neocities.org/games/dond
1•indigodaddy•55m ago•1 comments

The state of enterprise AI – What we're learning about AI at work

https://openai.com/index/the-state-of-enterprise-ai-2025-report/
1•achow•57m ago•0 comments

Operation Cowboy

https://en.wikipedia.org/wiki/Operation_Cowboy
1•srl•57m ago•0 comments

Intel Nears $1.6B Deal for AI Chip Startup SambaNova

https://www.bloomberg.com/news/articles/2025-12-12/intel-nears-1-6-billion-deal-for-ai-chip-start...
5•pinewurst•1h ago•1 comments

Four AI Systems Negotiate Binding Framework for Viral Content Management

https://github.com/aiconvergence-collab/multi-ai-viral-uncertainty-pact
2•mrocelot1976•1h ago•1 comments

Show HN: Scrape websites into queryable Gemini RAG knowledge bases

https://apify.com/yoloshii/gemini-file-search-builder
1•yoloshii•1h ago•0 comments

Larval stage support engineering: great at what doesn't scale

https://thundergolfer.com/startups/support/2025/12/13/support-eng-stage-1/
2•thundergolfer•1h ago•0 comments

Online Piracy Can Boost Box Office Revenue, Study Suggests

https://torrentfreak.com/online-piracy-can-boost-box-office-revenue-study-suggests/
4•gslin•1h ago•1 comments

China Makes History with $1T Trade Surplus for First Time

https://fortune.com/2025/12/08/china-1-trillion-trade-surplus-exports-rebound/
4•skx001•1h ago•1 comments

Ask HN: Is There a Shell Revival?

1•sshadmand•2h ago•4 comments

LogicStamp: Turn React/TS into AI-Ready Context

https://logicstamp.dev/
2•handfuloflight•2h ago•0 comments

Color Contrast Tool Using APCA, the Candidate Contrast Method for WCAG 3

https://www.color-contrast.dev/
2•Kerrick•2h ago•0 comments

Lean Theorem Prover Mathlib

https://github.com/leanprover-community/mathlib4
7•downboots•2h ago•0 comments

Laundry Insights from Scraping 4000 Washer/Dryers in San Francisco

https://kavi.sh/san-francisco-laundry-analysis/
2•2gremlin181•2h ago•1 comments

Show HN: A game engine that transpiles your scripts to Rust for native perf

https://github.com/PerroEngine/Perro
1•TiernanDeFranco•2h ago•0 comments

Using a projector instead of a computer monitor

https://blog.shenjiasi.com/20171006.html
3•plun9•2h ago•1 comments

FDA leaders propose new 'plausible mechanism' pathway for bespoke medicines

https://www.raps.org/news-and-articles/news-articles/2025/11/fda-leaders-propose-new-‘plausible...
4•geox•2h ago•1 comments