frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Fast and Quality Code Chunking with Chonkie

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

Benefits of Undefined Behavior

https://mazzo.li/posts/undefined-behavior.html
1•nickdevx•18s ago•0 comments

How police tracked down the Brown University shooter

https://www.providencejournal.com/story/news/crime/2025/12/20/brown-university-shooter-inside-acc...
1•mhb•2m ago•0 comments

The Books That Stayed with Me – 2025

https://medium.com/@senthilpad/the-books-that-stayed-with-me-2025-a20f7032dc86
1•senthil_hi•3m ago•0 comments

What's in the Future?

https://mliezun.com/2025/12/22/whats-in-the-future
2•nickdevx•4m ago•1 comments

Spotify says 'anti-copyright extremists' scraped its library

https://musically.com/2025/12/22/spotify-says-anti-copyright-extremists-scraped-its-library/
2•pain_perdu•5m ago•0 comments

Newsom launches website tracking Trump's top criminal cronies

https://www.gov.ca.gov/2025/12/16/trumpcriminals/
2•donsupreme•5m ago•0 comments

OpenMusicPrompt-Free AI Music Prompt Generator Online

https://openmusicprompt.com/music-prompt-generator
1•aiwebwin2025•6m ago•1 comments

Advice for Individual Contributors

https://staysaasy.com/management/2025/12/20/ic-advice.html
1•RyeCombinator•6m ago•0 comments

Uber Cleared Violent Felons to Drive. Passengers Accused Them of Rape

https://www.nytimes.com/2025/12/22/business/uber-background-checks-sexual-assault.html
2•JumpCrisscross•10m ago•0 comments

Numerically 2026 is unremarkable yet happy

https://mathematicaforprediction.wordpress.com/2025/12/21/numerically-2026-is-unremarkable-yet-ha...
1•antononcube•10m ago•1 comments

Show HN: Frndz – Privacy-first Web3 ads based on intent, not user data

https://twitter.com/FrndzProtocol/status/2002104237514502489
1•frndsprotocol•10m ago•0 comments

China's Moore Threads unveils new chip in homegrown AI race

https://asia.nikkei.com/business/tech/semiconductors/china-s-moore-threads-unveils-new-chip-in-ho...
1•xqcgrek2•11m ago•0 comments

One year of keeping a tada list

https://www.ducktyped.org/p/one-year-of-keeping-a-tada-list
2•egonschiele•11m ago•0 comments

Alternative Data and Monetary Policy

https://www.imf.org/en/publications/fandd/issues/2025/12/alternative-data-and-monetary-policy-cla...
1•rbanffy•11m ago•0 comments

Show HN: A site that models time (e.g. your lifespan) as a real-time percentage

https://www.yearly-progress.com/
1•TheRefrigerator•12m ago•0 comments

3-2-1: On finding your desired lifestyle, a simple rule for life

https://jamesclear.com/3-2-1/december-18-2025
1•meysamazad•15m ago•0 comments

The Cost of Allocation Errors

https://varietyiq.com/blog/misallocation
1•efavdb•16m ago•0 comments

Show HN: Shopie: Create Wishlists. Track Prices

https://apps.apple.com/us/app/shopie-wishlist-gift-tracker/id6753077115
1•pfandrade•17m ago•0 comments

Are we dismissing AI spend before the 6x compute lands?

https://martinalderson.com/posts/are-we-dismissing-ai-spend-before-the-6x-lands/
2•martinald•17m ago•0 comments

Using Terraform with AI: Workflows, Tools and Security

https://spacelift.io/blog/terraform-ai
1•meysamazad•18m ago•0 comments

When to use "cat -n" instead of "wc -l"

https://blog.jpalardy.com/posts/when-to-use-cat-n-instead-of-wc-l/
1•meribold•19m ago•0 comments

How North Korea Hid an IT Workforce Inside US Companies (Short Doc) [video]

https://www.youtube.com/watch?v=-gjnrMg9iSo
1•neom•21m ago•0 comments

Uber and Lyft plan to bring robotaxis to London with China's Baidu

https://apnews.com/article/london-britain-robotaxi-self-driving-uber-lyft-dde2a816473684deb12bfeb...
2•merely-unlikely•22m ago•1 comments

Dasharo TrustRoot Ephemeral Key Incident

https://blog.3mdeb.com/2025/2025-12-18-eom-key-issue/
1•pietrushnic•23m ago•1 comments

Open Weights Coding Models in 2025

https://blog.brokk.ai/the-best-open-weights-coding-models-of-2025/
1•jbellis•24m ago•0 comments

Animating Quines for Larva Labs

https://destroytoday.com/blog/animating-quines-for-larva-labs
1•speckx•24m ago•0 comments

Harsh Environments: Space Radiation (2008) [pdf]

https://secwww.jhuapl.edu/techdigest/Content/techdigest/pdf/V28-N01/28-01-Maurer.pdf
1•Tomte•25m ago•0 comments

Advice for Individual Contributors

https://blog.staysaasy.com/p/advice-for-individual-contributors
2•thisismytest•25m ago•0 comments

24/192 Music Downloads are Silly Indeed (2012)

https://people.xiph.org/~xiphmont/demo/neil-young.html
2•Tomte•25m ago•0 comments

Show HN: Vibe code from phone template repo

https://github.com/AdmTal/vibe-code-from-phone-starter
1•admtal•26m ago•0 comments