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!

What does 'late-stage capitalism' really mean?

https://news.berkeley.edu/2026/03/31/what-does-late-stage-capitalism-really-mean-uc-berkeley-prof...
1•cs702•55s ago•0 comments

SpaceX denies report Iran used Starlink to attack U.S. forces

https://www.upi.com/Top_News/US/2026/11/30/SpaceX-denies-Washington-Post-Starlink-Iran-attack/765...
1•nephihaha•1m ago•0 comments

AmigaVision 2026.11.29 Released with OCS/ECS Support

https://old.reddit.com/r/amiga/comments/1y96lbl/amigavision_20261129_released_with_ocsecs_support/
2•doener•2m ago•0 comments

You May Not Know It, but You Are Financing the A.I. Boom

https://www.nytimes.com/2026/11/30/opinion/artificial-intelligence-americans-costs.html
1•mooreds•2m ago•0 comments

Attention Infidelity? Should We Be Worried?

https://thecongressmanswife.substack.com/p/attention-infidelity-should-we-be
1•mooreds•2m ago•0 comments

AI and the Decentering of Disciplinary Creativity

https://www.cambridge.org/core/journals/philosophy-of-science/article/ai-and-the-decentering-of-d...
1•porteclefs•3m ago•0 comments

Reaching 100% Type System Conformance

https://pyrefly.org/blog/typing-conformance-passing/
1•ocamoss•4m ago•0 comments

Meta makes it easier to report illegal content, avoids EU tech fine

https://www.reuters.com/business/meta-makes-it-easier-report-illegal-content-avoids-eu-tech-fine-...
1•geox•4m ago•0 comments

Urolithin A supplement boosts brain blood flow during memory tasks

https://www.ouhsc.edu/news/details/clinical-trial-explores-potential-brain-health-benefits-of-die...
2•giuliomagnifico•6m ago•0 comments

Raspberry Pi OS goes to daily images, drops bundled browsers over AI-found bugs

https://www.raspberrypi.com/news/a-new-approach-to-raspberry-pi-os-releases/
2•acossta•6m ago•0 comments

Country Review Post: Singapore

https://shakeddown.substack.com/p/country-review-post-singapore
1•toomuchtodo•7m ago•0 comments

Personal Computing

https://pluralistic.net/2026/11/30/rainbows-end/
1•hn_acker•7m ago•0 comments

Do black cats wait longer to be adopted?

https://fluffmobile.com/research/black-cat-syndrome/
3•titusblair•8m ago•0 comments

Artex, go hack yourself: How we got RCE in ARTEX

https://baldur.dk/blog/artex-go-hack-yourself/
2•security_aaudit•8m ago•0 comments

Barthes could not have seen AI authorship coming. With no author, who's dead?

https://dontlognow.substack.com/p/if-there-is-no-author-whos-dead
1•batkin•9m ago•0 comments

How did the most popular website for teen girls vanish? The story of gURL.com

https://la-fronde.com/p/thirty-years-ago-gurl-com-changed-the-way-girls-experienced-the-internet-...
2•speckx•12m ago•0 comments

Roku RSG 2.0 SDK: What TypeScript on Roku Means for Your App

https://bitmovin.com/blog/roku-rsg-2-0-typescript/
2•kaali1•13m ago•0 comments

This Lady Is Hitting Every Shop in NYC (2024)

https://annekadet.substack.com/p/locavore
1•NaOH•14m ago•0 comments

Show HN: Spotting AI replies: humans 56%, Opus 92%

https://github.com/trina-app/community-humanizer
2•dionnam•14m ago•0 comments

Mixing Debian-packaged Neovim plugins with Lazy.nvim

https://sergiocipriano.com/neovim-lazy-deb.html
1•sergiocipriano•14m ago•0 comments

Anthropic is pausing the release of advanced AI models to improve safety

https://www.cnn.com/2026/11/30/tech/anthropic-pause-ai-models-safety-concerns
18•toomanyrichies•14m ago•8 comments

Show HN: Bugpit – find the traffic where your back end falls over

https://www.bugpit.dev/
1•umars1•15m ago•1 comments

How to Export Your Last.fm Scrobbles (2026 Guide)

https://www.achriom.com/blog/how-to-export-your-lastfm-scrobbles/
2•spzx•16m ago•0 comments

Show HN: Secure email infra for AI agents

https://blueping.dev/
1•vincentjouanne•17m ago•0 comments

Open Source, Local, Speech-to-Speech Language Tutor in ~46 Lines of Bash

https://www.autodidacts.io/open-source-local-ai-speech-to-speech-language-tutor/
2•lucamark•18m ago•0 comments

Cloudflare Turns Websites into Search Engines for AI Agents with a Switch Flip

https://techstrong.ai/building-with-ai/cloudflare-turns-websites-into-search-engines-for-ai-agent...
2•CrankyBear•19m ago•0 comments

Norfolk frogs hop back to the east (2005)

https://www.theguardian.com/environment/2005/aug/12/conservationandendangeredspecies.uknews1
1•thunderbong•21m ago•0 comments

Build a Basic AI Agent from Scratch: Skills

https://www.ruxu.dev/articles/ai/build-an-ai-agent-skills/
1•ruxudev•21m ago•1 comments

Explore the Riemann Hypothesis

https://dancing-youtiao-a01e32.netlify.app/hn/
1•Wasserpuncher•22m ago•0 comments

Rebuilding the Giant Wild Goose Pagoda in the browser, brick by brick

https://s87343472.github.io/gujian-yingzao/
1•sagasu007•23m ago•0 comments