frontpage.
newsnewestaskshowjobs

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!

Show HN: BlazeRules – vectorized YAML rules for JSON, Kafka, and Arrow events

1•jspuri•2m ago•0 comments

Laser Fault Injection on the TROPIC01 Open-Source Secure Element

https://donjon.ledger.com/blog/tropic01-laser-fault-injection/
1•ahlCVA•4m ago•0 comments

Optimistic Sync Library for the Web

https://therealpaulplay.github.io/PlaySocketJS/
1•PaulPlay•6m ago•0 comments

Another Taste of Verse [video]

https://www.youtube.com/watch?v=QIiU-QGzcqc&list=PLQtDWkrawhsE&index=2
1•mpweiher•7m ago•0 comments

Slople – can you pass the reverse Turing test?

https://unslop.run/slople
1•dopamine_daddy•12m ago•1 comments

What AI did to stackoverflow in a graph

https://data.stackexchange.com/stackoverflow/query/1953768#graph
2•secretslol•13m ago•0 comments

Why do AI company logos look like buttholes?

https://velvetshark.com/ai-company-logos-that-look-like-buttholes
2•miniBill•19m ago•0 comments

HAMgpt – what can I do with my radio today?

https://hamgpt.co
1•howard941•21m ago•0 comments

'The Odyssey' Backlash Failed Tremendously

https://www.wired.com/story/the-odyssey-backlash-failed-tremendously/
2•joozio•24m ago•1 comments

Fable 5 vs. GPT-5.6 Sol on an NP-Hard Problem: Does /goal help?

https://charlesazam.com/blog/fable-5-gpt-5-6-sol-goal/
1•couAUIA•25m ago•1 comments

Mr. Spock Does Not Code in ASCII

https://lqlang.org/blog/spock-does-not-code-in-ascii/
3•wickund•28m ago•0 comments

NextBSD project revived: macOS userland tools on FreeBSD kernel

https://www.theregister.com/os-platforms/2026/07/18/nextbsd-returns-to-dollop-apple-source-on-fre...
2•lproven•30m ago•0 comments

Steam Machine: Between 12k and 15k Units Sold per week

https://boilingsteam.com/steam-machine-between-10k-and-15k-sold-per-week/
2•ekianjo•30m ago•0 comments

There's any easy way to rename multiple photos at once

https://apps.microsoft.com/detail/9nl267vtkkmg?hl=en-US&gl=US
1•SolvyCode•32m ago•0 comments

GitHub: TypeScript compiler and JavaScript engine in Lean

https://github.com/jessealama/thales
2•fagnerbrack•40m ago•0 comments

Business Success: Luck, Not Merit

https://fagnerbrack.com/business-success-luck-not-merit-51deca80bfaf
1•fagnerbrack•40m ago•0 comments

Software Engineering Laws

https://newsletter.techworld-with-milan.com/p/the-20-software-engineering-laws
1•fagnerbrack•41m ago•0 comments

AG of Texas secured a settlement of bankruptcy claims against 23andMe

https://www.texasattorneygeneral.gov/news/releases/attorney-general-paxton-secures-150-million-se...
1•kythanh•43m ago•0 comments

The Htop for LLM Inference

https://github.com/helasaoudi/llm-inspector
2•helasaoudi•43m ago•0 comments

Continually aim just beyond your current range (2007)

https://terrytao.wordpress.com/career-advice/continually-aim-just-beyond-your-current-range/
1•dorjoy•46m ago•0 comments

Claude shows subtle biases to Anthropic across carefully controlled tests

https://twitter.com/owainevans_uk/status/2078149976807592112
1•nsagent•48m ago•0 comments

European Search Perspective

https://www.eu-searchperspective.com
1•Topfi•52m ago•0 comments

Neil Rimer thinks the AI money is coming back out

https://techcrunch.com/2026/07/17/neil-rimer-thinks-the-ai-money-is-coming-back-out/
2•adithyaharish•57m ago•0 comments

Ask HN: Having a child before career has taken off

2•lassearpe•58m ago•4 comments

Show HN: Forward-Only, Autograd-Free PINN with 0ns Zero-Copy Memory Interlock

https://github.com/PJHkorea/Forward_Only_Autograd_Free_PINN
1•PJHkorea•58m ago•1 comments

LG monitors silently install software through Windows Update without consent

https://videocardz.com/newz/lg-monitors-silently-install-software-through-windows-update-without-...
79•baranul•1h ago•18 comments

US lawmakers urge Trump administration to ban Chinese memory chips

https://www.ft.com/content/9e7cdf3c-2e52-492f-afeb-b63d86a53ce6
2•giuliomagnifico•1h ago•1 comments

IEA Warns World Has Just Weeks to Avoid Hormuz Economic Shock

https://oilprice.com/Latest-Energy-News/World-News/IEA-Warns-World-Has-Just-Weeks-to-Avoid-Hormuz...
4•baranul•1h ago•0 comments

Show HN: GPT-5.6 Sol vs. Claude Fable 5 in CNC Red Alert 2

https://system-2-arena.vercel.app/showcase/ra2?war=sol-vs-fable-lake
2•masterchef2209•1h ago•0 comments

Billion-dollar California salad company exploits undocumented migrants (2014)

https://www.theguardian.com/us-news/2014/nov/23/billion-dollar-california-salad-company-exploits-...
2•cramer4next•1h ago•0 comments