frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Fast and Quality Code Chunking with Chonkie

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

San Francisco parents are letting teens ride in Waymos without an adult

https://www.sfchronicle.com/sf/article/parents-teens-waymo-without-adult-21297207.php
1•PaulHoule•57s ago•0 comments

You Sound Like ChatGPT

https://www.theverge.com/openai/686748/chatgpt-linguistic-impact-common-word-usage
1•satvikpendem•59s ago•0 comments

The thinking world – by kingsley – thoughts with data

https://kingsleyk.substack.com/p/the-thinking-world
1•vinnyglennon•1m ago•0 comments

Study: emotional support from social media found to reduce anxiety

https://news.uark.edu/articles/80669/emotional-support-from-social-media-found-to-reduce-anxiety
1•giuliomagnifico•2m ago•0 comments

Build the Whole Product

https://twitter.com/gokulr/status/2006824211025952783
1•tosh•3m ago•0 comments

One-third of dementia cases are linked to non brain-related diseases

https://medicalxpress.com/news/2026-02-dementia-cases-linked-brain-diseases.html
2•bikenaga•3m ago•0 comments

Show HN: We told OpenClaw to rm -rf and it failed successfully

https://securetrajectories.substack.com/p/openclaw-rm-rf-policy-as-code
1•joshdevon•3m ago•1 comments

Client-Side Encrypted Posts in Jekyll

https://www.joshbeckman.org/blog/encrypted-post
1•bckmn•4m ago•0 comments

In Tehran

https://www.lrb.co.uk/blog/2026/january/in-tehran
1•mitchbob•4m ago•0 comments

Ask HN: Stablecoin Infrastructure Provider Recommendations

1•toomuchtodo•6m ago•0 comments

Republicans haul Netflix before Congress for being ‚woke'

https://www.theverge.com/policy/873533/netflix-warner-bros-discovery-senate-antitrust-hearing
1•ch_sm•7m ago•0 comments

Epstein Broke the Internet

https://www.garbageday.email/p/here-s-how-epstein-broke-the-internet
1•speckx•7m ago•0 comments

A Man Warning the West: Trump Is Changing the World Behind the Scenes [video]

https://www.youtube.com/watch?v=nJeU72Rgjh4
1•Bender•8m ago•1 comments

Fastmail Donates USD 10k to the Perl and Raku Foundation

https://www.perl.com/article/fastmail-donates-usd-10-000-to-the-perl-and-raku-foundation/
2•oalders•8m ago•1 comments

AI Is Killing B2B SaaS

https://nmn.gl/blog/ai-killing-b2b-saas
3•namanyayg•9m ago•0 comments

French streamer unbanked by Qonto after criticizing Palantir and Peter Thiel

https://twitter.com/Ced_haurus/status/2018716889191498172
1•hocuspocus•9m ago•0 comments

Finding a Cross-Tenant Vulnerability in GCP's Apigee

https://omeramiad.com/posts/gatewaytoheaven-gcp-cross-tenant-vulnerability/
1•bearsyankees•10m ago•0 comments

Tech billionaires fuel Trump's record $429M haul ahead of midterm elections

https://www.ft.com/content/5038f2b1-6334-4d28-85e6-312d06796ca7
3•robtherobber•11m ago•0 comments

Let AI agents read your accounts, but approve writes first

https://monteslu.com/blog/ai-running-your-life
1•monteslu•11m ago•1 comments

Amazon plans to use AI to speed up TV and film production

https://www.reuters.com/business/media-telecom/amazon-plans-use-ai-speed-up-tv-film-production-20...
1•agiacalone•13m ago•0 comments

Terahertz microscope reveals the motion of superconducting electrons

https://news.mit.edu/2026/terahertz-microscope-reveals-motion-superconducting-electrons-0204
2•chmaynard•15m ago•0 comments

Launching the Rural Guaranteed Minimum Income Initiative

https://blog.codinghorror.com/launching-the-rural-guaranteed-minimum-income-initiative/
5•d4ft•17m ago•1 comments

Package Management at FOSDEM 2026

https://nesbitt.io/2026/02/04/package-management-at-fosdem-2026.html
1•chmaynard•17m ago•0 comments

Majority of Trump voters back solar power, poll finds

https://www.axios.com/2026/02/04/trump-maga-poll-solar-energy
5•ironyman•17m ago•2 comments

Workflow Automation: Letting AI Write Workflow Code

https://blog.codesolvent.com/2025/12/workflow-automation-letting-ai-write.html
1•Edmond•17m ago•0 comments

AI Agents as Autonomous Founders

5•marikio•18m ago•3 comments

Show HN: Gulp, our take at incident response

https://github.com/mentat-is/gulp
1•valerino•18m ago•0 comments

Agent Platforms

https://github.com/profullstack/ugig.net/blob/master/awesome-agent-platforms.md
2•cranberryturkey•18m ago•0 comments

Why This Computer Scientist Says All Cryptocurrency Should "Die in a Fire"

https://www.currentaffairs.org/news/2022/05/why-this-computer-scientist-says-all-cryptocurrency-s...
2•bediger4000•19m ago•0 comments

Show HN: Small "AI slop" classifier running in a browser extension

https://github.com/distil-labs/distil-ai-slop-detector
1•maciejgryka•21m ago•0 comments