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!

How AI Poisons Creativity [video]

https://www.youtube.com/watch?v=WeCSzEtZcUw
1•g-andrade•2m ago•0 comments

Cewsco – a multimodal AI assistant powered by Dravik

https://cewsco.com/
1•kalkalka•7m ago•0 comments

Stop Patching the Dammed IoT Kernel – Native Immunity Is the Only Way Out

https://twitter.com/i/status/2073850360771612865
1•xxBoson•13m ago•0 comments

Fable 5 Used to Port Command and Conquer: Generals Zero Hour to iOS

https://twitter.com/ammaar/status/2073501877753323772
1•beatthatflight•16m ago•0 comments

Oatmeal Spice: Interesting Procedurally Generated Output

https://www.boristhebrave.com/2026/07/05/oatmeal-spice/
1•lispybanana•17m ago•0 comments

Hideo Kojima on PlayStation killing discs, 'frightened' for future of ownership

https://www.videogameschronicle.com/news/hideo-kojima-really-sad-about-playstation-killing-discs-...
2•thunderbong•20m ago•0 comments

Bad to worse at NSF? (June 2026 edition)

http://nanoscale.blogspot.com/2026/06/bad-to-worse-at-nsf-june-2026-edition.html
1•osnium123•26m ago•0 comments

Apple sells me a MacBook to deliver $1700; cancels 5 days later quoting $2000?

1•aerodog•26m ago•0 comments

US Car Payments Hit a Record $777 a Month as Down Payments Drop

https://www.bloomberg.com/news/articles/2026-07-01/us-car-payments-hit-a-record-777-a-month-as-do...
2•mattas•28m ago•1 comments

Mondegreen

https://en.wikipedia.org/wiki/Mondegreen
2•JKCalhoun•29m ago•0 comments

YouTube urges creators to fight proposed UK algorithm changes

https://www.dexerto.com/entertainment/youtube-urges-creators-to-fight-proposed-uk-algorithm-chang...
1•thesmtsolver2•36m ago•0 comments

What should a personal website be?

https://ratfactor.com/cards/personal-website
1•vinhnx•38m ago•1 comments

A Novel Look at Error Handling in Rust

https://jtjlehi.github.io/2026/06/25/novel-rust-error-handling.html
2•vinhnx•44m ago•0 comments

Whyline – company memory engine (SQLite, BM25, MCP for Cursor)

https://github.com/Sunradiance/whyline
1•sunradiance•45m ago•0 comments

ABI vs. API (2004)

https://lists.debian.org/debian-user/2004/02/msg00648.html
1•vinhnx•45m ago•0 comments

The White House Campaign to Overturn a World Cup Red Card

https://www.wsj.com/sports/soccer/white-house-fifa-balogun-red-card-world-cup-46276fc8
19•JumpCrisscross•47m ago•1 comments

Designing GPU-Accelerated Query Engines with NVIDIA GQE

https://developer.nvidia.com/blog/designing-gpu-accelerated-query-engines-with-nvidia-gqe/
1•c_lutz•47m ago•0 comments

TaskLoco Is the Sticky Note To-Do App for Visual Thinkers

https://www.taskloco.com/
1•taskloco_nyc•47m ago•0 comments

Nobel Laureate in Chemistry Omar M. Yaghi joins Tsinghua University full-time

https://www.tsinghua.edu.cn/en/info/1244/14984.htm?trk=feed_main-feed-card_feed-article-content
4•osnium123•50m ago•1 comments

Americans of all ages are spending less time socializing

https://www.axios.com/2026/07/05/americans-socializing-decline
1•toomuchtodo•51m ago•0 comments

A Point Of View: How China sees a multicultural world (2012)

https://www.bbc.com/news/magazine-20083309
1•keepamovin•52m ago•1 comments

Android's Earthquake Alerts Saved My Life in Venezuela

https://www.howtogeek.com/androids-earthquake-alerts-saved-my-life-in-venezuela/
3•olgs•58m ago•1 comments

Technical Report on the Pangram AI-Generated Text Classifier (2024)

https://arxiv.org/abs/2402.14873
1•imustachyou•1h ago•0 comments

Can you run every line of code in Super Mario Bros.? [video]

https://www.youtube.com/watch?v=o0gOALTvkcc
2•medbar•1h ago•0 comments

Shrimple – A Simpler, Nicer Markdown

https://qount25.dev/Shrimple/
2•usrbinenv•1h ago•0 comments

McKinsey: Catalyzing competitiveness – Where investment happens and why

https://www.mckinsey.com/mgi/our-research/catalyzing-competitiveness-where-investment-happens-and...
1•TMWNN•1h ago•0 comments

Lord of the Roths

https://www.propublica.org/article/lord-of-the-roths-how-tech-mogul-peter-thiel-turned-a-retireme...
8•Anon84•1h ago•0 comments

Rules for Building SaaS in 2026

https://old.reddit.com/r/SaaS/comments/1unw3aj/the_18_rules_for_building_saas_in_2026/
2•nomilk•1h ago•0 comments

Show HN: Openleetcode – Run LeetCode solutions locally against open tests

https://github.com/therepanic/openleetcode/releases/tag/v1.0.1
1•therepanic•1h ago•0 comments

People Who Will Thrive in the AI Age

https://www.theatlantic.com/ideas/2026/06/ai-open-ai-anthropic/687689/
3•longhaul•1h ago•0 comments