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!

In Age of Online Ads, Supreme Court Weighs Videotape-Era Privacy Law

https://www.nytimes.com/2026/10/14/us/politics/supreme-court-bork-video-privacy.html
1•iamnothere•3m ago•0 comments

Universally Truthful Mechanisms for Scheduling

https://arxiv.org/abs/2609.12621
1•greekanalyst•3m ago•0 comments

Current memory tools can pass a poisoned run on. Procedural memory can stop it

https://github.com/TheWariend/MuscleMemory/tree/main/benchmarks/results/poisoned-skill-2026-10-18
3•devthewariend•5m ago•0 comments

Leaked Anthropic Draft AI Regulatory Bill Is Unacceptable and Troubling

https://thezvi.substack.com/p/leaked-anthropic-draft-ai-regulatory
1•paulpauper•6m ago•0 comments

ExactFit

https://exactappliancefit.com
1•mustirabin•6m ago•0 comments

Show HN: Browser Memory Consumption on macOS

https://krausest.github.io/AppMemoryReport/BrowserMemory.html
1•krausest•6m ago•0 comments

Foojay Podcast #101: Java 27 in Practice: Smaller Heaps, Smarter Defaults

https://foojay.io/today/foojay-podcast-101/
1•fksubs•7m ago•0 comments

Outside the Scope of Our Support

https://fireborn.mataroa.blog/blog/outside-the-scope-of-our-support/
1•devinprater•7m ago•0 comments

CFPB Opens Debanking Investigation into Nine Large National Banks

https://www.forbes.com/sites/ajdhaliwal/2026/10/16/cfpb-opens-debanking-investigation-into-nine-l...
3•iamnothere•8m ago•0 comments

Some of the Richest Americans Are Hiding in Plain Sight

https://www.bloomberg.com/news/articles/2026-09-18/how-america-s-main-street-millionaires-are-get...
1•paulpauper•8m ago•0 comments

French government in crisis talks after 'colossal failure of the state'

https://www.theguardian.com/world/2026/oct/18/french-government-crisis-talks-violent-unrest-polic...
1•wslh•8m ago•0 comments

AI/Pangram and Writing

https://ninza7.medium.com/ai-pangram-writing-966c1da59c48
1•paulpauper•8m ago•0 comments

You can now chat with Lovable for free

https://lovable.dev/blog/chat-for-free
1•doener•14m ago•1 comments

Show HN: OpenDesk, an open-source alternative to Zendesk and Intercom

https://opendesk.sh/
1•meszmate•15m ago•0 comments

The Ontological Admission Test: When a Language Model Requires an Object

https://medium.com/@smoking2man/the-ontological-admission-test-when-a-language-model-requires-an-...
2•Aldus551•15m ago•0 comments

Rin Tin Tin

https://en.wikipedia.org/wiki/Rin_Tin_Tin
2•saikatsg•16m ago•1 comments

Composite Image of Satellite Trails

https://twitter.com/Kosmo_Michal/status/2111523846331256852
1•tibbar•17m ago•1 comments

Investing in the Public Benefit

https://www.anthropic.com/news/public-benefit-fund
2•surprisetalk•19m ago•0 comments

Interactive Refactoring in Gopls

https://go.dev/blog/interactive-refactoring
3•birdculture•26m ago•0 comments

The Three-Spreadsheet Tax (And Why Custom Software No Longer Costs €15,000)

https://www.red4image.com/en/blog/three-spreadsheets-or-custom-software/
1•dvianabarbosa•26m ago•0 comments

We have personalized software now

https://mattsayar.com/we-have-personalized-software-now/
3•MattSayar•27m ago•0 comments

Google and Amazon's newfound fascination with India's paddy fields

https://the-ken.com/story/google-and-amazons-newfound-fascination-with-indias-paddy-fields/
1•thisislife2•27m ago•0 comments

Why are people protesting across Europe

https://www.theguardian.com/world/2026/oct/18/europe-protests-france-spain-portugal-2026-explainer
2•teleforce•27m ago•0 comments

How the world realised whales are singing

https://www.bbc.com/future/article/20260917-the-moment-the-world-discovered-whales-sing
2•saikatsg•28m ago•0 comments

Why Clay Has an AI Writing Policy

https://www.clay.com/blog/ai-writing-policy
1•ryzvonusef•29m ago•2 comments

Show HN: Agentic-Coding-Biolerplate

https://github.com/ulrischa/agentic-coding-biolerplate
1•ulrischa•30m ago•0 comments

Three strategies for protecting human spaces from bots

https://jilltxt.net/three-strategies-for-protecting-human-spaces-from-bots-inspired-by-ai-agent-v...
3•devonnull•31m ago•0 comments

Show HN: Beyond Ping

https://zenodo.org/records/23327569
1•jasondoyle•33m ago•0 comments

International Bureau of Weights and Measures Votes to Redefine Time

https://www.scientificamerican.com/article/scientists-vote-to-end-leap-seconds-redefining-how-the...
1•karakoram•37m ago•0 comments

EV Listening: How electric cars sound

https://www.nplusonemag.com/online-only/online-only/ev-listening/
1•ohjeez•37m ago•0 comments