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!

AI video in courtroom sparks major legal battle

https://www.youtube.com/watch?v=57O-FVEywj0
1•sbmthakur•40s ago•0 comments

Ford CEO Says Europe Is Lost to Chinese Electric Vehicles

https://gizmodo.com/ford-ceo-says-europe-is-lost-to-chinese-electric-vehicles-2000820582
1•bookofjoe•57s ago•0 comments

Show HN: Sumi – ink landscapes that move, with sound synthesised on the device

https://apps.apple.com/us/app/sumi-living-ink-paintings/id6795591095
1•syake03•1m ago•0 comments

AI Bots Appeared After Reddit Partnered with OpenAI

https://documentingourdecline.substack.com/p/ai-bots-appeared-after-reddit-partnered
1•suzzer99•4m ago•0 comments

Why you do so much and get so little. Read this if you feel stuck

https://twitter.com/acecreamu/status/2106424655955607972
1•acecreamu•5m ago•0 comments

Scientific Overview of Asteroid Analysis

https://www.astrophyzix.com/2026/10/september-2026-overview.html
2•JEOFFEZZ•7m ago•0 comments

BigHappyFriend Likes Humans (2025)

https://flashfictiononline.com/articles/bighappyfriend-likes-humans/
1•bucket2015•9m ago•0 comments

Show HN: ShipSlides – turn a URL into editable slides with a serverless agent

https://shipslides.dev
1•iacguy•11m ago•0 comments

Show HN: AgentMachinist: make your coding agent show its work

https://github.com/vscarpenter/AgentMachinist
1•vscarpenter•12m ago•0 comments

Pretrained Deep Learning Intent Signals for Mobile DSPs

https://bgweber.medium.com/pretrained-deep-learning-intent-signals-for-mobile-dsps-2eb1834c62db
2•bweber•14m ago•1 comments

Show HN: I made a Mac app to centralize and monitor my dev tools

https://coisland.app/
1•LeDonT•16m ago•0 comments

You.com trains on your data by default with no opt out

https://you.com/docs/administration/zero-data-retention
1•hek2sch•18m ago•0 comments

Better Call Jev

https://bettercalljev.vercel.app
3•beerglass•18m ago•0 comments

We ported the original Doom to SQL

https://cedardb.com/blog/sqldoom/
1•Alephinitesimal•19m ago•0 comments

Changes to Gemini model access and limits

https://support.google.com/gemini/answer/17004136?hl=en
3•tolugenius•19m ago•0 comments

Guillermo Rauch: "We've confirmed a KVM 0day through our Vercel bounty program"

https://twitter.com/rauchg/status/2106402024804020657
2•ronfriedhaber•20m ago•0 comments

Show HN: Terminal Gym – a Claude mod that makes you do pushups between prompts

https://github.com/DrumAndCode/terminal-gym
1•heynaitik•23m ago•0 comments

An Algorithmic Failure Beneath the Secret Ballot

https://blog.citp.princeton.edu/2026/08/03/an-algorithmic-failure-beneath-the-secret-ballot/
1•leecoursey•25m ago•0 comments

The KV Cache Is the New Memory Wall

https://jaehun.me/en/posts/paper-2609-30854v1/
2•acossta•26m ago•0 comments

The Server Side Cloud Swift SDK

https://cloud.google.com/blog/topics/developers-practitioners/introducing-the-server-side-cloud-s...
2•frizlab•27m ago•1 comments

Holocron: The Backup of Last Resort

https://smyck.net/2026/10/03/holocron-the-backup-of-last-resort/
1•ahlCVA•31m ago•0 comments

Show HN: I made a browser-based instrument out of the CHOMPI CLUB source

https://www.temeculadsp.com/nibbi/play
1•johnwheeler•34m ago•0 comments

How to Create More Than You Think

https://th3realsacha.substack.com/p/the-power-of-overthinking
1•yarapavan•35m ago•0 comments

We asked three AIs about the risks of AI. They disagreed with their makers

https://vocemundi.com/we-asked-three-ais-about-the-risks-of-ai-they-disagreed-with-their-makers-a...
1•thomaslaurent•37m ago•1 comments

13% of my website visitors block Google Analytics

https://markosaric.com/google-analytics-blocking/
2•birdculture•37m ago•1 comments

What's the Date?

https://www.lesswrong.com/posts/vzKWsEskYBEWTwpBP/what-s-the-date
1•cubefox•39m ago•0 comments

Using Theme park rides and smartphones for demonstrating Newtonian mechanics

https://iopscience.iop.org/article/10.1088/1361-6404/aea271
1•bryanrasmussen•40m ago•1 comments

Being a good CPU neighbor (2016)

https://barro.github.io/2016/02/being-a-good-cpu-neighbor/
1•bilegeek•41m ago•0 comments

Show HN: thezoomist.com – Closer to Everything

https://thezoomist.com/
1•mmdtdev•45m ago•1 comments

Software 2.0 writes Software 1.0

https://www.giete.ma/blog/software-2-0-writes-software-1-0
2•gietema•45m ago•0 comments