frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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!

MiniPlasma, a Powerful LPE

https://deadeclipse666.blogspot.com/2026/05/miniplasma-powerful-lpe.html
1•geekone•3m ago•1 comments

SpaceX Is Aiming to Go Public on June 12 in What Stands to Be Biggest IPO

https://www.wsj.com/finance/spacex-is-aiming-to-go-public-on-june-12-in-what-stands-to-be-biggest...
1•tzury•5m ago•0 comments

Inside Number 0

http://johnfinnemore.blogspot.com/2025/10/inside-number-0.html
1•tobr•8m ago•0 comments

Why Is Debian Called the Universal Operating System?

https://itsfoss.com/debian-universal-operating-system/
1•susam•12m ago•0 comments

Smalltalk: The Software Industry's Greatest Failure

http://richardkulisz.blogspot.com/2011/02/smalltalk-software-industrys-greatest.html
2•parallelminds•16m ago•1 comments

F.03 Livestream [video]

https://www.youtube.com/watch?v=luU57hMhkak
1•anonymousiam•18m ago•1 comments

Desire Paths

https://en.wikipedia.org/wiki/Desire_path
1•guidedlight•20m ago•0 comments

A programming language made for agents

https://zerolang.ai/
1•yofabr•21m ago•1 comments

Discovered City in the Sky in Utah

https://www.youtube.com/watch?v=szd285GJSkE
1•VaedaStrike•21m ago•0 comments

EY retracts study after researchers discover AI hallucinations

https://www.ft.com/content/a61cbcae-95e4-4449-86e1-ef40fb306f4e
1•tzury•24m ago•1 comments

A Budget of Paradoxes, Volume I and II by Augustus De Morgan

https://www.gutenberg.org/ebooks/23100
1•YoctoYARN•25m ago•1 comments

I've spent 16 years mapping for love and money, and you should give it a shot

https://twitter.com/i/status/2055475663398953220
1•Michelangelo11•26m ago•0 comments

Knight Rider car gets speeding ticket in NYC despite being in Illinois museum

https://abc7ny.com/post/knight-rider-car-kitt-gets-speeding-ticket-brooklyn-despite-being-display...
1•866-RON-0-FEZ•28m ago•0 comments

Designing a team of agents

https://blog.frankel.ch/design-team-agents/
1•saikatsg•38m ago•0 comments

A Good Lemma Is Worth a Thousand Theorems

https://sites.math.rutgers.edu/~zeilberg/Opinion82.html
1•susam•40m ago•0 comments

Consumers sue Amazon for not refunding Trump tariff costs

https://www.reuters.com/business/retail-consumer/consumers-sue-amazon-not-refunding-trump-tariff-...
2•Anon84•40m ago•0 comments

Tarvex ZM-1 – A compiler-free weight-stationary inference accelerator

https://medium.com/towards-artificial-intelligence/ai-data-centers-are-wasting-power-moving-data-...
1•tejakusireddy•45m ago•0 comments

After extensive work with agents, the non-technical sentence is the shape I see

https://sdocs.dev/s/qtIcZCIL#k=sHoAJ4Syfkv25404v5a3Ft4gJBPZwj7aAhquWmdzDPM
1•FailMore•45m ago•0 comments

Personalization and Privacy Choice

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=4795118
1•1vuio0pswjnm7•46m ago•0 comments

What Is Code?

https://martinfowler.com/articles/what-is-code.html
1•saikatsg•48m ago•0 comments

Cerebras – Faster Tokens Please

https://newsletter.semianalysis.com/p/cerebras-faster-tokens-please
2•pretext•55m ago•0 comments

OpenAI super PAC paying for an army of Twitter bots to engage with their content

https://twitter.com/TheMidasProj/status/2055411833184399448
2•pretext•59m ago•1 comments

Tyouson – AI Practice tests for exams (www.tyouson.com)

1•Jaiyesh_Paraste•1h ago•0 comments

Xbox Is Now XBOX

https://www.theverge.com/news/931918/microsoft-xbox-rebrand-caps
6•namiwang•1h ago•0 comments

Frosthyon: AI assistant for 3D and general workflows

https://lumithyon.com
1•David_Founder•1h ago•0 comments

Who's composing music for my washing machine?

https://podcasts.apple.com/us/podcast/whos-composing-music-for-my-washing-machine/id73329284?i=10...
1•gmays•1h ago•0 comments

Agent Harness Engineering

https://www.oreilly.com/radar/agent-harness-engineering/
1•Garbage•1h ago•0 comments

Ask HN: Share concrete examples of benefits from AI usage

1•ChaitanyaSai•1h ago•1 comments

The ISO 216 "A4" paper system is broken (rounding errors) [video]

https://www.youtube.com/watch?v=XllQPr8FtPE
1•fsckboy•1h ago•1 comments

Ebola outbreak with uncommon strain erupts in Congo and Uganda; 65 deaths

https://arstechnica.com/health/2026/05/ebola-outbreak-confirmed-in-congo-and-uganda-246-suspected...
3•tatersolid•1h ago•0 comments