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!

Show HN: Use your OpenAI subscription to create audiobooks

https://pdftomp3.com/connect-ai/
2•janpmz•1m ago•0 comments

AI models may soon self-replicate without access to data centers

https://www.reuters.com/business/ai-models-may-soon-self-replicate-without-access-data-centers-an...
2•samizdis•2m ago•0 comments

CFTC Staff Were Told to Retract Analysis of Suspicious Oil Trades

https://www.bloomberg.com/news/features/2026-10-13/cftc-staff-told-to-retract-analysis-of-suspici...
2•helsinkiandrew•2m ago•1 comments

India's Battery Storage Capacity Set to Surge Nearly 50 Fold by 2032

https://oilprice.com/Latest-Energy-News/World-News/Indias-Battery-Storage-Capacity-Set-to-Surge-N...
2•thelastgallon•3m ago•0 comments

AWS Lambda Web Functions

https://aws.amazon.com/blogs/aws/announcing-aws-lambda-web-functions-for-fast-consistent-web-app-...
2•HatchedLake721•3m ago•1 comments

Is 'Attention' the Essence of Intelligence?

https://www.quantamagazine.org/is-attention-the-essence-of-intelligence-20261012/
1•Anon84•3m ago•0 comments

The Periodic Table of Software Architecture

https://stephanvs.com/periodic-table-of-software-architecture/
1•Stephanvs•4m ago•0 comments

NYC Restaurants Shut Off Air Conditioning, Close on Sundays as Costs Surge

https://www.bloomberg.com/news/features/2026-10-13/nyc-bars-and-restaurants-hike-prices-cut-back-...
1•helsinkiandrew•5m ago•1 comments

Speeding up the Unreal editor by not using unnecessarily secure hash methods

https://larstofus.com/2026/10/11/speeding-up-the-unreal-editor-by-not-using-unnecessarily-secure-...
1•dverlaeckt80•6m ago•0 comments

The Olive Tree

https://worldsensorium.com/the-olive-tree/
1•dnetesn•7m ago•0 comments

Hubble Space Telescope, Pillars of Creation, and a Gap on the Sistine Ceiling

https://blue-continuum.com/the-space-between-two-fingers
1•dnetesn•8m ago•0 comments

Best AI Gateways

https://medium.com/@hadilbenabdallah/5-best-ai-gateways-76fbaa81cb12
2•hadilbenabdalla•11m ago•0 comments

Decision Request Buildier

https://llmconfigurator.com/en/decision-builder
1•jrusinowski•13m ago•0 comments

28 Miles and Counting: NASA's Perseverance Rover Sets a Mars Driving Record

https://www.nytimes.com/2026/10/12/science/mars-rover-sets-record.html
2•pseudolus•18m ago•1 comments

Impolite websites practices, number 5 will shock you

https://blog.fortrabbit.com/impolite-websites
1•esher•18m ago•0 comments

Show HN: Teilifís Seán – A Jellyfin Plugin for Channel Surfing

https://xn--teilifssen-04a4l.ie/
4•s_dev•20m ago•0 comments

Video game industry believes EU KIDS Act will kill small creators and old games

https://euobserver.com/241743/video-game-industry-believes-eu-kids-act-will-drive-small-creators-...
1•alejandrotauber•21m ago•1 comments

From Video Course to Second Brain

https://shramko.dev/blog/second-brain-from-video
1•almanname•21m ago•0 comments

Lettuce and tobacco plants engineered to produce meat proteins

https://www.scientificamerican.com/article/lettuce-engineered-to-produce-meat-proteins/
1•giuliomagnifico•21m ago•0 comments

Why Independent Developer Blogs Are Going Offline

https://shramko.dev/blog/blogs-going-offline
2•almanname•21m ago•0 comments

Why Don't Some People Use Chatbots?

https://www.pewresearch.org/short-reads/2026/10/09/why-dont-some-people-use-chatbots/
1•geox•22m ago•0 comments

Breaking Bad's 'Walt Jr.' says he paid more in taxes than he got from the show

https://finance.yahoo.com/news/breaking-bad-walt-jr-says-132000817.html
2•Michelangelo11•23m ago•1 comments

Epic Games asks developers to use more AI

https://www.bloomberg.com/news/articles/2026-10-12/epic-games-delays-disney-project-asks-develope...
1•therepanic•24m ago•0 comments

Crossync – a super fast Rust concurrency library

https://github.com/sh1zen/crossync
1•shi1zen•27m ago•0 comments

I just wanted a cheap film camera, so I stitched 28 web scrapers together

https://frankensurf.dev/blog/i-just-wanted-a-cheap-film-camera/
1•yaoke259•28m ago•0 comments

SonicBoom – llama.cpp's own kernels, 14% faster decode via a graph compiler

https://github.com/hardenedlinux/sonicboom
2•nalaginrut•29m ago•0 comments

Buoyancy

https://blog.rajivayyangar.com/buoyancy/
1•tosh•34m ago•0 comments

GitLab Released critical patch for CVSS 10.0 CVE

https://docs.gitlab.com/releases/patches/patch-release-gitlab-19-4-2-released/
1•redpink•34m ago•0 comments

Hackers heat French supermarket fridges, sparking fires and spoiling food

https://www.cnn.com/2026/10/12/europe/france-supermarket-cyberattack-fridges-intl
2•0in•35m ago•0 comments

Sherlock Search

https://sherlock-search.org
1•thefirstname322•35m ago•0 comments