frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Fast and Quality Code Chunking with Chonkie

1•snyy•11mo 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!

For people in product/software, how have your teams changed since Opus 4.5

1•gHeadphone•32s ago•0 comments

WTI Prices Soar Past Brent

https://oilprice.com/Energy/Crude-Oil/WTI-Prices-Soar-Past-Brent.html
1•geox•1m ago•0 comments

Renewables dominate 2025's newly installed generating capacity

https://arstechnica.com/science/2026/04/globally-86-percent-of-the-new-generating-capacity-was-re...
1•rbanffy•3m ago•0 comments

OpenAI Acquires Tech Talk Show 'TBPN'–and Buys Itself Some Positive News

https://www.wired.com/story/openai-acquires-tbpn-buys-positive-news-coverage/
1•joozio•3m ago•0 comments

Show HN: Event photo matching with badge markers, no face scanning

https://pictag.io
1•gtpoxa•5m ago•0 comments

What Every Security Engineer Should Learn from Star Trek

https://shostack.org/blog/devsecops-learn-from-star-trek/
1•worik•6m ago•0 comments

How Steve Jobs Brought the Apple II to the Classroom

https://hackeducation.com/2015/02/25/kids-cant-wait-apple
1•rbanffy•6m ago•0 comments

'Fatal decision': EU slammed for caving to US pressure on digital rules

https://www.politico.eu/article/fatal-decision-eu-slammed-for-caving-to-us-pressure-on-digital-ru...
2•nickslaughter02•7m ago•0 comments

China's AI Education Experiment

https://www.chinatalk.media/p/chinas-ai-education-experiment
1•pseudolus•11m ago•0 comments

R/programming on Reddit just banned all content related to AI LLMs

https://www.tomshardware.com/tech-industry/artificial-intelligence/the-largest-programming-commun...
1•speckx•12m ago•0 comments

GraalVM and Java and Native Images, compile Java to standalone executables

https://www.graalvm.org/latest/reference-manual/native-image/
2•gigatexal•14m ago•0 comments

Ruby on Rails and SQLite3: fix for silent data loss on column rename or removal

https://github.com/rails/rails/pull/57128
1•eummm•14m ago•0 comments

The Vibecoders Are Coming For Us

https://coz.is/posts/vibecoders_are_coming_for_us.html
2•cozis•15m ago•0 comments

AI Baby Dance Video Generator: Turn Baby Photos into Dancing Videos

https://seaimagine.com/ai-baby-dance-video-generator/
1•taynes•17m ago•0 comments

International law experts allege violations in Iran war

https://www.bbc.co.uk/news/articles/cy91x2n29nlo
1•only_in_america•18m ago•0 comments

SpaceX Files FCC Complaint over Ariane 64 Amazon Leo Launch

https://europeanspaceflight.com/spacex-files-fcc-complaint-over-ariane-64-amazon-leo-launch/
1•lysace•20m ago•0 comments

Europe's AI sovereignty just became a security emergency

https://www.euractiv.com/opinion/europes-ai-sovereignty-just-became-a-security-emergency/
1•vrganj•23m ago•0 comments

RiskReady-open-source GRC platform with MCP gateway and human-approved mutations

https://github.com/riskreadyeu/riskready-community
1•danielminda7•25m ago•0 comments

We're Addicted to Our Devices

https://type-writer.org/?p=7369
1•speckx•27m ago•0 comments

The "Passive Income" trap ate a generation of entrepreneurs

https://www.joanwestenberg.com/the-passive-income-trap-ate-a-generation-of-entrepreneurs/
1•jotaen•27m ago•0 comments

Show HN: LLMnesia – search across ChatGPT, Claude, Gemini chats locally

https://chromewebstore.google.com/detail/llmnesia/leekfgbdojiaabifbjbbgiiclannjdkf
3•keiranflynn•27m ago•2 comments

From Hierarchy to Intelligence

https://block.xyz/inside/from-hierarchy-to-intelligence
1•gpi•31m ago•0 comments

The feet don't rotate with the body

https://en.wikipedia.org/w/extensions/WP25EasterEggs/resources/media/video/outerspace-idle-light....
4•ColinWright•37m ago•0 comments

Atmospheric CO₂ accelerating faster than fossil fuel emissions are growing

https://bsky.app/profile/thierryaaron.bsky.social/post/3mil6lnsrqc26
3•mariuz•39m ago•0 comments

From Reversibility to Irreversibility: Biggest shift in the history of physics

https://chillphysicsenjoyer.substack.com/p/from-reversibility-to-irreversibility
1•crescit_eundo•39m ago•0 comments

Running Qwen 35B on 16GB Mac Mini via MMAP (17 tok/s) then swapping to Gemma 4

https://thoughts.jock.pl/p/local-llm-35b-mac-mini-gemma-swap-production-2026
2•joozio•42m ago•0 comments

Funny Quotes Radar

https://gagdash.com/
1•hackerbeat•42m ago•0 comments

Adobe wrote to my hosts file. I've never had an app do this before

https://old.reddit.com/r/webdev/comments/1sb6hzk/adobe_wrote_to_my_hosts_file_ive_never_had_an_app/
4•speckx•43m ago•0 comments

Zperiod: Interactive Periodic Table and Chemical Equation Balancer

https://zperiod.app/
1•thunderbong•45m ago•0 comments

Why Is It So Difficult to Develop Drugs for Cancer? (2010)

https://www.newyorker.com/magazine/2010/05/17/the-treatment-2
2•downbad_•47m ago•1 comments