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!

Diesel-guard: Lint your Diesel ORM migrations for unsafe PostgreSQL patterns

https://crates.io/crates/diesel-guard
1•ayarotsky•18s ago•0 comments

Google Confirms Android Attacks-No Fix for Most Samsung Users

https://www.forbes.com/sites/zakdoffman/2025/12/08/google-confirms-android-attacks-no-fix-for-mos...
1•mohi-kalantari•28s ago•0 comments

A Brief History of Gopher [video]

https://www.youtube.com/watch?v=Flo9kn_nhbg
1•todsacerdoti•55s ago•0 comments

How the Creator Economy Destroyed the Internet

https://www.theverge.com/cs/features/810002/influencers-creator-economy-special-series
1•ecliptik•1m ago•0 comments

PostHog

https://posthog.com/
1•ChadNauseam•1m ago•0 comments

Sharding to Contain the Blast Radius of Data Breaches

https://www.mimirsec.com/2025/12/05/sharding-to-contain-the-blast-radius-of-data-breaches/
1•jboutwell•1m ago•0 comments

Our Commitment to Your Ongoing Success with Discourse

https://blog.discourse.org/2025/12/our-commitment-to-your-ongoing-success-with-discourse/
1•Ralfp•3m ago•0 comments

Is Vibe Coding Safe? Benchmarking Vulnerability of Agent-Generated Code

https://arxiv.org/abs/2512.03262
2•achristmascarl•3m ago•0 comments

The era of AI persuasion in elections is about to begin

https://www.technologyreview.com/2025/12/05/1128837/the-era-of-ai-persuasion-in-elections-is-abou...
1•rbanffy•5m ago•0 comments

How Does Memory for AI Agents Work? – By Paul Iusztin

https://www.decodingai.com/p/how-does-memory-for-ai-agents-work
1•rbanffy•5m ago•0 comments

Obscuring P2P Nodes with Dandelion

https://www.johndcook.com/blog/2025/12/08/dandelion/
1•ColinWright•5m ago•0 comments

You Have Billions Invested in Generative AI: A Text-Based Adventure

https://woe-industries.itch.io/you-have-billions-invested-in-generative-ai
1•JohnHendrix•6m ago•0 comments

Rivian's Silicon and Physical AI – By Austin Lyons

https://www.chipstrat.com/p/rivian-silicon-and-physical-ai
1•rbanffy•7m ago•0 comments

Notes Against Note-Taking Systems (2022)

https://sashachapin.substack.com/p/notes-against-note-taking-systems
1•eatitraw•9m ago•0 comments

Trump to issue order creating national AI rule

https://www.reuters.com/world/trump-says-he-will-sign-executive-order-this-week-ai-approval-proce...
2•geox•10m ago•1 comments

Healthy Narcissism

https://en.wikipedia.org/wiki/Healthy_narcissism
1•PaulHoule•11m ago•0 comments

Swift for Android vs. Kotlin Multiplatform

https://blog.jacobstechtavern.com/p/swift-for-android-vs-kmp
2•jakey_bakey•11m ago•1 comments

Interesting Books (2025 Edition)

https://bcmullins.github.io/interesting-books-2025/
1•wannabebarista•11m ago•1 comments

Show HN: Ideal Conditions Calculator

https://ideal.greg.technology/
1•gregsadetsky•11m ago•0 comments

Chai; the macOS terminal command that keeps your session alive

1•anon-hacker•15m ago•0 comments

Edible Pneumatic Battery for Sustained and Repeated Robot Actuation

https://advanced.onlinelibrary.wiley.com/doi/10.1002/advs.202509350
1•PaulHoule•16m ago•0 comments

LLMs Make Legal Advice Lossy

https://writing.kemitchell.com/2025/12/07/LLMs-Make-Legal-Advice-Lossy
2•feross•17m ago•0 comments

When Do Cyber Campaigns Cross a Line?

https://www.lawfaremedia.org/article/when-do-cyber-campaigns-cross-a-line
1•hn_acker•17m ago•0 comments

The Case for AI Doom Rests on Three Unsettled Questions

https://www.lawfaremedia.org/article/the-case-for-ai-doom-rests-on-three-unsettled-questions
1•hn_acker•18m ago•0 comments

No more O'Reilly subscriptions for me

https://zerokspot.com/weblog/2025/12/05/no-more-oreilly-subscriptions-for-me/
2•speckx•18m ago•0 comments

Kimchi dietary intervention modulates human antigen-presenting and CD4T cells

https://www.nature.com/articles/s41538-025-00593-7
1•bookofjoe•18m ago•0 comments

Four Things to Know About Hybrid Air Denial

https://www.lawfaremedia.org/article/four-things-to-know-about-hybrid-air-denial
1•hn_acker•18m ago•0 comments

With Detty December still loading, Tidy December is revving

1•FotizoPhronesis•20m ago•0 comments

Authenticity Is a Trap

https://octopusyarn.substack.com/p/authenticity-is-a-trap
3•eatitraw•21m ago•0 comments

Meilisearch: Speeding up vector search 10x with Hannoy

https://blog.kerollmops.com/from-trees-to-graphs-speeding-up-vector-search-10x-with-hannoy
3•Kerollmops•23m ago•0 comments