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!

Transforming Ripgrep's Documentation with AI Automation and MkDocs

https://entropicdrift.com/blog/mkdocs-drift-automation/
1•ankitg12•1m ago•0 comments

I Built a $300 Robot Hand With 18 Motors [video]

https://www.youtube.com/watch?v=Sk0x-xMNQks
1•olalonde•3m ago•0 comments

Inquestra – Local-first lab notebook with native Web Serial DAQ

https://inquestra.org
1•ImKaleb•3m ago•0 comments

Invention Changes Everything [video]

https://www.youtube.com/watch?v=DJCN-tjBceA
1•pillars•3m ago•0 comments

Where to find Canadian government tenders: every portal compared, free

https://pubsec.pro/blog/find-government-tenders-canada
1•wren_sato•4m ago•0 comments

Lychee: Check Local Links

https://lychee.cli.rs/overview/
1•ankitg12•6m ago•0 comments

I reverse-engineered Instinct. Here's the whole machine

https://twitter.com/nizzyabi/status/2120194267066863738
1•gmays•12m ago•0 comments

Show HN: EDNA – 100% on-device human sensing so AI can perceive the user

https://openos.space
2•sebklaey•16m ago•0 comments

Let's Write a PostScript Interpreter

https://beyondloom.com/blog/postscript.html
1•zdw•17m ago•0 comments

Road Trip at the Borderland

https://longreads.com/2026/10/29/family-road-trip-china-north-korea/
2•mooreds•21m ago•0 comments

How do you hire a human? Q&A with Tom Harvey, Stack Overflow technical recruiter

https://stackoverflow.blog/2026/11/12/how-do-you-hire-a-human-q-and-a-with-tom-harvey-stack-overf...
2•mooreds•23m ago•1 comments

Historic S.S. United States Sinks to Become an Artificial Reef

https://www.nytimes.com/2026/11/11/climate/ss-united-states-ship-sinking-artificial-reef-florida....
2•duck•23m ago•0 comments

SpaceX's giant rocket may leave NASA in the dust

https://text.npr.org/nx-s1-6039312
2•mooreds•23m ago•0 comments

US to fund new research into psychedelic drug ibogaine for veterans with PTSD

https://www.reuters.com/legal/litigation/us-fund-new-research-into-psychedelic-drug-ibogaine-vete...
2•bushwart•30m ago•0 comments

Who's making all of the money in the porn industry? [video]

https://www.youtube.com/watch?v=3IsgwsuV_nE
2•AareyBaba•32m ago•0 comments

Eight years of running DocSpring on Convox

https://docspring.com/blog/posts/eight-years-running-docspring-convox/
2•nathan_f77•34m ago•0 comments

Show HN: Podcast News

https://podnews.app
2•nsemikey•47m ago•0 comments

Naughty Dog's Lisp-Based Game Engines [video]

https://www.youtube.com/watch?v=RXdI2o0yplY
4•s20n•48m ago•0 comments

Ferrari's Business Model Is Insane

https://www.tradingview.com/chart/RACE/awwoRgDb-RACE-Why-Ferrari-Is-Nothing-Like-Other-Car-Manufa...
2•moonypto•55m ago•0 comments

Monkey Island: all 13 versions side by side

https://monkeyisland.pages.dev/
2•maximilianburke•57m ago•0 comments

Tmux Floating Panes (v3.7)

https://tmuxcheatsheet.com/p/tmux-floating-panes/
2•mmh0000•1h ago•0 comments

Where Work Experience Can Fail

https://carlsonschool.umn.edu/news/where-work-experience-can-fail
2•rohanm93•1h ago•0 comments

Sick of Herding AI Cats?

https://clowder.sh
2•cat_herder_1•1h ago•1 comments

A rusty smudge: What will happen as the Titanic wreck disintegrates (2024)

https://www.bbc.com/future/article/20240903-the-titanic-why-is-it-disintegrating-and-how-long-wil...
2•thunderbong•1h ago•0 comments

Home Sales in October Plummet to 16-Year Low

https://www.wsj.com/economy/housing/home-sales-in-october-plummet-to-16-year-low-16adebc0
2•madihaa•1h ago•0 comments

Keeping video layers in place across aspect ratios

https://blog.breatic.ai/layers-across-aspect-ratios/
3•Ubiquition•1h ago•0 comments

Elon should hire Jensen to run Terafab

4•spottedmarley•1h ago•1 comments

What Are Metal Organic Frameworks (MOFs)?

https://www.ossila.com/pages/what-are-metal-organic-frameworks
2•peter_d_sherman•1h ago•1 comments

Searching for exotic scalars at fusion reactors (2025)

https://arxiv.org/abs/2502.12314
2•greesil•1h ago•0 comments

Pax Silica

https://en.wikipedia.org/wiki/Pax_Silica
3•jonbaer•1h ago•1 comments