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!

I built a new dictionary for pedantic word game players

https://wordtrak.com/blog/2026-05-28-how-i-built-a-new-dictionary-for-pedantic-word-game-players
1•qrush•32s ago•0 comments

Dexinx_studio

https://www.instagram.com/desinx_studio/
1•desinxstudio•1m ago•0 comments

Agyn – OSS Alternative to AWS AgentCore: FS, Network, Credential Isolation

https://arxiv.org/abs/2605.27575
1•NBenkovich•1m ago•1 comments

Algorithmic Monocultures in Hiring

https://algorithmichiring.github.io/
1•hunglee2•2m ago•0 comments

We've boosted the performance of Grand Theft Auto V by 30% at night

https://danielgp.com/blog/gta-v-night-fps-prefetch
2•divocbn•5m ago•0 comments

Exploring the Game with Graph Capabilities of LadybugDB, DuckDB and PostgreSQL

https://theconsensus.dev/p/2026/05/29/ladybug-duckdb-and-postgresql.html
3•eatonphil•7m ago•0 comments

A Survey of Inlining Heuristics

https://bernsteinbear.com/blog/inlining-heuristics/
2•surprisetalk•8m ago•0 comments

1970: Could Machines Become Intelligent? [video]

https://www.youtube.com/watch?v=7Bb6yTPZrnA
2•vinhnx•9m ago•0 comments

The polarization transition in a double-random field model of elections

https://arxiv.org/abs/2510.00612
2•PaulHoule•10m ago•0 comments

How I created an AI pipeline to build a fireworks/drone show app in 30 days

https://stellarspot.app/
2•allentackett•11m ago•0 comments

Questions arise after Waymo blocks road in midst of Dallas apartment explosion

https://www.nbcdfw.com/news/local/waymo-block-road-dallas-apartment-explosion/4032442/
2•6stringmerc•11m ago•0 comments

Anthropic urges pause in AI development, says industry needs 'brake pedal'

https://abcnews.com/video/133610860/
2•mgh2•12m ago•0 comments

US tobacco firms applied tobacco strategies to globalize ultra-processed foods

https://ajph.aphapublications.org/doi/10.2105/AJPH.2026.308501
4•giuliomagnifico•12m ago•0 comments

Bmc4j – Prove your Java/Kotlin code correct from jUnit style tests

https://github.com/bmc4j/bmc4j
1•Grover_c13•15m ago•1 comments

Do Containers Still Contain?

https://raesene.github.io/blog/2026/06/03/do-containers-still-contain/
1•hasheddan•18m ago•0 comments

Claude resets your limit too late, not anymore

https://github.com/claude-schwabe/schwabe
1•tesstuser•18m ago•0 comments

Why Code Review Feels Like a Trial (and What It Costs Your Team)

https://medium.com/@tbelbek/why-code-review-feels-like-a-trial-and-what-it-costs-your-team-52ba4c...
1•rdstrtwlkr•19m ago•0 comments

Efficient base editing & development in human embryos w/o chromosomal alteration

https://www.biorxiv.org/content/10.64898/2026.05.30.728989v1
1•goplayoutside•21m ago•0 comments

I Thought I Knew How Electrolysis Worked [video]

https://www.youtube.com/watch?v=eq7fR9ISuCw
1•tambourine_man•23m ago•0 comments

Show HN: Browse PC Parts on Amazon.com without distractions

https://findpcpart.com/products?category_key=cpu
1•findpcpart•26m ago•0 comments

Safe made easy: single ownership is (not) optional

https://ergeysay.me/safe-made-easy-pt1.html
1•fanf2•26m ago•0 comments

Show HN: Package Proxy

https://packageproxy.dev/
1•mslaviero•27m ago•0 comments

Department of Energy Celebrates First Advanced Reactor Criticality

https://www.energy.gov/articles/department-energy-celebrates-first-advanced-reactor-criticality
2•echelon•27m ago•0 comments

Unauthenticated RCE as Qsecofr via IBM i Management Central

https://blog.silentsignal.eu/2026/06/05/unauthenticated-rce-as-qsecofr-via-ibm-i-management-central/
1•dnet•28m ago•0 comments

Metro Siege Kickstarter Trailer [video]

https://www.youtube.com/watch?v=gZ7caW75ufY
1•doener•32m ago•0 comments

Show HN: A fast paced multiplication game with an international leaderboard

https://www.fastmathfacts.io/
1•squid-protocol•33m ago•0 comments

Do We Need Billionaires?

https://bjhess.com/posts/do-we-need-billionaires
12•speckx•33m ago•11 comments

Kagi Search, human connection, and why LLMs are not a good search replacement

https://www.alexselimov.com/posts/small_search_human_contact/
2•aselimov3•34m ago•0 comments

'I knew it was over for us': the bands who got left behind when punk exploded

https://www.theguardian.com/music/2026/jun/05/i-knew-it-was-over-for-us-the-bands-who-got-left-be...
3•6LLvveMx2koXfwn•34m ago•0 comments

Apple approves Poke as the first AI agent on Messages

https://twitter.com/interaction/status/2062575428213285352
2•lucamark•35m ago•0 comments