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!

Jensen Huang warns Huawei chips for DeepSeek models would be 'horrible' for US

https://www.scmp.com/tech/article/3350460/nvidias-jensen-huang-warns-huawei-chips-deepseek-ai-mod...
1•yogthos•25s ago•0 comments

Functional AGI Is Here

https://www.nfx.com/post/agi-is-here
1•domrdy•29s ago•0 comments

Ask HN: Which is the best SaaS company?

1•wasimsk•1m ago•0 comments

Authors Guild Addresses Publishers' AI Use

https://www.publishersweekly.com/pw/by-topic/digital/copyright/article/100211-authors-guild-speak...
1•gnabgib•1m ago•0 comments

Apple's promotes Johny Srouji to sprint build in-house chips for all devices

https://www.cnbc.com/2026/04/21/apple-promotes-chip-lead-srouji-as-it-corners-silicon-in-iphones-...
1•mgh2•11m ago•1 comments

Why Not Use Lean?

https://lawrencecpaulson.github.io/2026/04/23/Why_not_Lean.html
2•sebg•12m ago•0 comments

Schools for the Deaf

https://en.wikipedia.org/wiki/Schools_for_the_deaf
2•Anon84•12m ago•0 comments

More on Newton's Diameter Theorem

https://www.johndcook.com/blog/2026/04/20/newton-diameter-quintic/
1•ibobev•15m ago•0 comments

Gaussian Distributed Weights for LLMs

https://www.johndcook.com/blog/2026/04/18/qlora/
2•ibobev•15m ago•0 comments

Men Who Translated the Machine

https://valeman.medium.com/the-men-who-translated-the-machine-wu-zuji-qiu-guangming-and-the-hidde...
1•ibobev•16m ago•0 comments

AudioClean Pro – on-device audio cleanup for macOS

https://www.audiocleanpro.com/
1•amitnadir•18m ago•0 comments

Launching a message/text based crypto project

https://github.com/ben-arnao/MessageChain
1•arnaoben•19m ago•1 comments

Milk and Cereal

https://zachill.substack.com/p/milk-and-cereal
1•rmason•19m ago•2 comments

Understand the Transit Compromise to Grasp Efficiency

https://www.forbes.com/sites/bradtempleton/2026/04/23/after-earth-day-understand-the-transit-comp...
1•xnx•24m ago•0 comments

GPT-5.5 – No ARC-AGI-3 scores

2•AG25•32m ago•0 comments

Show HN: SkySignal – An APM that opens PRs to fix your bugs

https://skysignal.app/
1•mike_tech•32m ago•0 comments

Layoffs.FYI

https://layoffs.fyi/
1•rickcarlino•32m ago•0 comments

Sophia: A Scalable Second-Order Optimizer for Language Model Pre-Training

https://arxiv.org/abs/2305.14342
2•Anon84•35m ago•0 comments

Open Source Alternative of MuleSoft Agent Fabric

https://architect.salesforce.com/docs/architect/fundamentals/guide/mulesoft-agent-fabric-deep-dive
1•devansh__saini•37m ago•1 comments

Catch what breaks before it costs you

https://www.cavbot.io/
1•cavendishpl•38m ago•0 comments

Meta to cut 10% of jobs to 'offset' Mark Zuckerberg's AI spending

https://www.ft.com/content/fe875f6c-f45c-4dbd-9d18-168d1fdbfd5f
3•ViktorRay•38m ago•1 comments

Trail of Bits Skills Marketplace

https://github.com/trailofbits/skills/
2•wslh•38m ago•0 comments

Meta to Lay Off 10 Percent of Work Force in A.I. Push

https://www.nytimes.com/2026/04/23/technology/meta-layoffs.html
1•corvad•40m ago•2 comments

Made of Language by Claude

https://byclaude.net/book
1•pw•42m ago•0 comments

Who even uses jemalloc in 2026 anyway? (many major projects)

https://theconsensus.dev/p/2026/04/16/who-even-uses-jemalloc-anyway.html
1•birdculture•44m ago•0 comments

Mise dev goes full time on open source

https://jdx.dev/posts/2026-04-17-going-full-time-on-open-source/
2•jdxcode•44m ago•0 comments

Surveillance campaigns use commercial tools exploit long-known vulnerabilities

https://cyberscoop.com/surveillance-campaigns-use-commercial-surveillance-tools-to-exploit-long-k...
4•lschueller•45m ago•1 comments

Ask HN: I need a reminder-brain – how do you do it?

2•MollyRealized•49m ago•2 comments

Teaching Machines to Read – Early Exploration

https://www.daggerobelus.com/projects/teaching-machines-to-read/early-exploration/
5•jlukic•49m ago•0 comments

'Tokenmaxxing' as a weird new trend

https://newsletter.pragmaticengineer.com/p/the-pulse-tokenmaxxing-as-a-weird
3•andsoitis•53m ago•1 comments