frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Show HN: Fast and Quality Code Chunking with Chonkie

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

Silicon Valley, à la Française

https://semiwiki.com/artificial-intelligence/358042-silicon-valley-a-la-francaise/
1•rbanffy•1m ago•0 comments

Energy expenditure and obesity across the economic spectrum

https://www.pnas.org/doi/10.1073/pnas.2420902122
1•bookofjoe•3m ago•0 comments

TikTok Creator Sued by Sylvanian Doll Maker over Brand Promotions

https://www.independent.ie/business/irish/sylvanian-families-toy-firm-in-settlement-talks-with-kildare-tiktok-star-over-parody-videos-featuring-japanese-companys-dolls/a1813361842.html
1•valgaze•3m ago•0 comments

Ask HN: Time to Pivot Out of Engineering?

1•bdnsj•3m ago•0 comments

Where's Firefox Going Next?

https://connect.mozilla.org/t5/discussions/where-s-firefox-going-next-you-tell-us/m-p/100698#M39094
1•ReadCarlBarks•5m ago•0 comments

Views of the U.S. have worsened while opinions of China have improved in surveys

https://www.pewresearch.org/short-reads/2025/07/15/views-of-the-us-have-worsened-while-opinions-of-china-have-improved-in-many-surveyed-countries/
3•alphabetatango•6m ago•0 comments

BlackRock hit by $52B withdrawal from single client

https://www.thetimes.com/business-money/companies/article/blackrock-hit-by-52bn-withdrawal-from-single-client-kmsmg87jc
2•alexcos•8m ago•1 comments

Tried Comet: Impressive AI Tool with Concerns About Future Risks

https://twitter.com/TenZorroAI/status/1945224617859113401
1•paulo20223•9m ago•1 comments

Power-seeking, by any person, may be equivalent to minimizing uncertainty

https://www.lesswrong.com/posts/KYxpkoh8ppnPfmuF3/power-seeking-minimising-free-energy
1•OgsyedIE•9m ago•0 comments

Ask HN: Why Marketing Software Hasn't Had Its 'Cursor Moment' Yet

1•richbelt•12m ago•1 comments

Fighting Brandolini's Law with Sampling

https://brady.fyi/fact-checking/
1•h-bradio•12m ago•0 comments

Differential geometry of ML: a geometric interpretation of gradient descent

https://research.fal.ai/blog/differential-geometry-of-ml/
1•felineflock•13m ago•0 comments

Sci-Fi, Fantasy, Fandom in the Norman vs. Lamb Gothic Fantasy Collection

https://internetarchivecanada.org/2025/07/15/science-fiction-fantasy-and-fandom-in-the-norman-v-lamb-gothic-fantasy-collection/
2•lintalist•15m ago•1 comments

Hacker Residency in Da Nang Vietnam with Tony Dinh

https://www.hackerresidencygroup.com
1•transitivebs•17m ago•1 comments

Cambridge academic James Orr: England should be ethnically English [video]

https://www.youtube.com/watch?v=UngibqLwJ34
2•donsupreme•17m ago•1 comments

Product Innovation is Discovery not Creation

https://boz.com/articles/product-discovery
1•pizzathyme•19m ago•0 comments

Mastodon 4.4 Is Here

https://www.patreon.com/posts/mastodon-4-4-is-134090971
2•doener•20m ago•0 comments

After a Decade of Chaos, Google Is Finally Getting Its Act Together

https://gizmodo.com/after-a-decade-of-chaos-google-is-finally-getting-its-act-together-2000629697
1•mikece•20m ago•1 comments

How to Cool Down Computers Inside of an A320 [video]

https://www.youtube.com/watch?v=HQuc_HhW6VA
1•sarimkx•22m ago•0 comments

Investigation confirms majority of community grievances in Socfin plantations

https://news.mongabay.com/short-article/two-year-investigation-confirms-majority-of-community-grievances-in-socfin-plantations/
1•PaulHoule•23m ago•0 comments

AWS launches Kiro, an agentic AI IDE

https://www.techradar.com/pro/aws-launches-kiro-an-agentic-ai-ide-to-end-the-chaos-of-vibe-coding
1•mikece•24m ago•0 comments

The FIPS 140-3 Go Cryptographic Module

https://go.dev/blog/fips140
2•FiloSottile•26m ago•0 comments

Piccolo: Powerful async ORM, query builder, and admin GUI

https://piccolo-orm.com/
1•akkad33•26m ago•0 comments

Show HN: Voice AI Based Visa Interview Prep

https://app.toughtongueai.com/collections/685906c3a2320018923dcaaf/
1•ajabhish•26m ago•0 comments

Novo Nordisk ousts CEO after falling behind in weight loss market

https://www.reuters.com/business/healthcare-pharmaceuticals/novo-nordisk-ceo-step-down-2025-05-16/
1•TMWNN•26m ago•0 comments

The Enshittification of American Power

https://www.wired.com/story/enshittification-of-american-power/
4•miles•26m ago•0 comments

Starlink Network Update

https://www.starlink.com/updates/network-update?referral=RC-516239-11127-5
3•TheAlchemist•28m ago•0 comments

How to Track Your Brand Visibility in Perplexity AI Search Engine [video]

https://www.youtube.com/watch?v=eiXJxBmTFio
1•chig3rl•28m ago•0 comments

Ask HN: Why don't subreddits adopt peer review instead of relying on bans?

1•amichail•29m ago•1 comments

CS6265, Summer 2025; Information Security Lab – Binary Exploitation

https://tc.gts3.org/cs6265/tut/index.html
1•darkdant•30m ago•0 comments