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!

[STORY] Samsara

https://slatestarcodex.com/2019/11/04/samsara/
1•barry-cotter•28s ago•0 comments

Pg_stat_ch: PostgreSQL Query Telemetry Exporter to ClickHouse

https://github.com/ClickHouse/pg_stat_ch
1•saisrirampur•1m ago•0 comments

Ancient Coins: What About Spartan Coins?

https://coinweek.com/ancient-spartan-coins/
1•thunderbong•8m ago•0 comments

Baby Belt Pro – DIY open-source belt 3D printer

https://www.printcepts.com/babybeltpro
1•kmmbvnr_•9m ago•0 comments

Show HN: Minesweeper.free – Play minesweeper online free

https://minesweeper.free/
1•nadermx•11m ago•0 comments

New DNA technology leads to identification of Revolutionary War soldier

https://www.cbsnews.com/news/revolutionary-war-soldier-identified-john-doe-technology-camden/
1•jnord•15m ago•0 comments

Would You Let A.I. Michael Caine Read You the 'Odyssey'?

https://www.nytimes.com/2026/06/23/books/michael-caine-odyssey-ai.html
1•bookofjoe•21m ago•1 comments

You Feel Exhausted Without Having "Done" Anything Physically

https://facilethings.com/blog/en/decision-fatigue
2•vinhnx•25m ago•0 comments

If you're a button, you have one job

https://unsung.aresluna.org/if-youre-a-button-you-have-one-job/
2•nozzlegear•31m ago•0 comments

A rate-control scroll gesture for mobile reading

https://github.com/somekiwiplease/ThumbStick
1•somekiwiplease•43m ago•0 comments

The Dark Side of Open Source: SSPL, BSL, and the License-Change Problem

https://linuxidx.com/posts/the-dark-side-of-open-source-real-problems-no-hype.html
2•infoozle•50m ago•0 comments

Efficacy and Safety of Psilocybin in Treatment-Resistant Major Depression

https://jamanetwork.com/journals/jamapsychiatry/fullarticle/2846478
2•cpncrunch•52m ago•0 comments

Deterministic AI Auditing

https://claude.ai/new
1•whyharsh_•53m ago•0 comments

Show HN: Inches to MM converter for manufacturing and hardware checks

https://inches-to-mm.com
1•robot1996•58m ago•1 comments

We Scaled PgBouncer to 4× Higher Throughput

https://clickhouse.com/blog/pgbouncer-clickhouse-managed-postgres
1•saisrirampur•1h ago•0 comments

Anthropic performing prompt injection on its users

https://old.reddit.com/r/LLMDevs/comments/1udpw9h/just_got_this_response_from_claude_what_is_going/
5•murderfs•1h ago•0 comments

AI CLI that fixes broken dev tool installs

https://murderszn.github.io/sprout/
1•murderszn•1h ago•0 comments

Record-breaking solo rower Kelsey Pfendler arrives in Hawaii

https://www.hawaiinewsnow.com/2026/07/04/record-breaking-solo-rower-kelsey-pfendler-arrives-hawaii/
1•MaysonL•1h ago•0 comments

Show HN: Two-tier-memory – queryable long-term memory for AI coding agents

https://github.com/tadelstein9/two-tier-memory
1•tadelstein•1h ago•0 comments

Ubuntu 24.04 on Intel Mac

https://github.com/mozekin/apple-bce-drv/blob/aur/INSTALL-UBUNTU.md
3•mozzinator•1h ago•0 comments

Review Frontloading: Do You Love This App? Y/N

https://functionmouse.com/frontloading/
2•functionmouse•1h ago•0 comments

Bugs happen: The easy way to compare solo PQ to ECC+PQ

https://blog.cr.yp.to/20260704-bugs.html
2•zdw•1h ago•0 comments

If I designed a Commodore Phone

https://retrogamecoders.com/if-i-designed-a-commodore-phone/
3•ibobev•1h ago•1 comments

Egg consumption inversely correlated with Alzheimer's

https://pubmed.ncbi.nlm.nih.gov/42002260/
34•natbennett•1h ago•10 comments

My side quest measuring input latency with VK_EXT_present_timing

https://themaister.net/blog/2026/07/02/my-side-quest-measuring-input-latency-with-vk_ext_present_...
2•ibobev•1h ago•0 comments

Spritework on the ZX Spectrum: Rendering

https://bumbershootsoft.wordpress.com/2026/07/04/spritework-on-the-zx-spectrum-rendering/
2•ibobev•1h ago•0 comments

Benzo(a)pyrene

https://en.wikipedia.org/wiki/Benzo(a)pyrene
3•libpcap•1h ago•0 comments

Trying to buy a sandwich with HTTP 402

https://andrewacomb.substack.com/p/trying-to-buy-a-sandwich-with-http
4•acombandrew•1h ago•1 comments

Returning to Zig

https://gracefulliberty.com/articles/return-to-zig/
11•birdculture•1h ago•0 comments

CATL is building more than 200 battery swap stations every month

https://electrek.co/2026/07/04/catl-is-building-more-than-200-battery-swap-stations-every-month/
7•breve•1h ago•1 comments