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!

Deepsec: The security harness for finding vulnerabilities

https://vercel.com/blog/introducing-deepsec-find-and-fix-vulnerabilities-in-your-code-base
1•gmays•1m ago•0 comments

Watts Wasting Texas Water [pdf]

https://www.sierraclub.org/sites/default/files/2026-05/texaswaterreport_final.pdf
1•littlexsparkee•2m ago•0 comments

Aurora: A Leverage-Aware Optimizer for Rectangular Matrices

https://blog.tilderesearch.com/blog/aurora
1•sanxiyn•3m ago•0 comments

Snapseed 4.0 – Note from the Team

https://old.reddit.com/r/snapseed/comments/1t7j7yt/snapseed_40_a_note_from_the_snapseed_team/
1•satvikpendem•4m ago•0 comments

Fertilizer time bomb threatens to drive up Europe's food prices

https://www.politico.eu/article/europe-farmer-fertilizer-prices-iran-war-inflation/
1•leonidasrup•6m ago•0 comments

Italy looks to Libyan gas fields to replace supply shortages from Iran war

https://www.politico.eu/article/italy-libya-gas-replace-supply-shortage-iran-war/
1•leonidasrup•7m ago•0 comments

How to Build Vector Search from Scratch in Python

https://www.kdnuggets.com/how-to-build-vector-search-from-scratch-in-python
1•eigenBasis•7m ago•0 comments

Cloud Embeddings vs. Local Sovereign Memory

https://medium.com/@vektormemory/cloud-embeddings-vs-local-sovereign-memory-ai-agent-memory-layer...
1•vektormemory•10m ago•0 comments

Using Claude Code: The Unreasonable Effectiveness of HTML

https://twitter.com/trq212/status/2052809885763747935
1•pretext•11m ago•0 comments

The Two Abstractions of System Design: Hide or Reduce

http://muratbuffalo.blogspot.com/2026/05/the-two-abstractions-of-system-design.html
1•eigenBasis•12m ago•0 comments

OpenAI: Investigating the consequences of accidentally grading CoT during RL

https://alignment.openai.com/accidental-cot-grading/
1•pretext•13m ago•0 comments

Fabricated citations: an audit across 2.5M biomedical papers

https://www.thelancet.com/journals/lancet/article/PIIS0140-6736(26)00603-3/fulltext
1•jruohonen•14m ago•0 comments

InfoSylvita – Bilingual directory of 17,000 Latin-owned Canadian businesses

https://infosylvita.com
1•alealearce•20m ago•0 comments

Azthengar Build 2026.05.20 Now with Music

https://azthengar.itch.io/azthengarbuild20260508
1•RobotHouse•24m ago•0 comments

HTTP/3 over QUIC in Node.js

http://www.jasnell.me/posts/quic-part-4
1•maxloh•24m ago•0 comments

Show HN: Nanorust – Minimal server-driven UI in Rust

https://github.com/skorotkiewicz/nanorust
1•modinfo•40m ago•0 comments

The Cursed Computer Iceberg Meme (2021)

https://suricrasia.online/iceberg/
1•medbar•41m ago•0 comments

Hard Drive Smart Stats and Failure Rates

https://www.backblaze.com/docs/cloud-storage-hard-drive-smart-stats-and-failure-rates
1•mmh0000•42m ago•0 comments

Cyberattack hits Canvas system used by schools as finals loom

https://www.politico.com/news/2026/05/08/cyberattack-hits-canvas-system-used-by-thousands-of-scho...
2•1vuio0pswjnm7•44m ago•1 comments

Apple, Intel Have Reached Preliminary Chip-Making Agreement

https://www.wsj.com/tech/apple-intel-have-reached-preliminary-chip-making-agreement-69eb9370
1•tosh•47m ago•0 comments

Canvas outage delays college finals across the country

https://www.axios.com/2026/05/08/canvas-cyberattack-outage-finals-colleges-universities
1•1vuio0pswjnm7•49m ago•1 comments

California tech company Cloudflare to lay off more than 1k workers, cites AI

https://www.latimes.com/business/story/2026-05-07/california-tech-company-cloudflare-to-lay-off-m...
1•1vuio0pswjnm7•52m ago•0 comments

What do figureheads on ships represent?

https://thedockyard.co.uk/news/what-do-figureheads-on-ships-represent/
1•thunderbong•57m ago•0 comments

What is Amazon Linux 2023?

https://docs.aws.amazon.com/linux/al2023/ug/what-is-amazon-linux.html
1•tosh•58m ago•0 comments

Programming as Theory Building [pdf]

https://pages.cs.wisc.edu/~remzi/Naur.pdf
1•nvader•1h ago•1 comments

Rough Week Thank God for Fridays

3•Eaglo•1h ago•1 comments

Show HN: Best Old School UFO Website

http://www.ufoevidence.org/
3•techteach00•1h ago•0 comments

Show HN: CopyProps – A Figma plugin that copies element properties as text

https://github.com/p32929/figma_copy_props
1•heliskyr2•1h ago•0 comments

GNUtrition 0.33.0rc1 Now Available

https://lists.gnu.org/archive/html/info-gnutrition/2026-05/msg00000.html
1•amcclure•1h ago•0 comments

The React2Shell Story and What Happened Next.js

https://sylvie.fyi/posts/react2shell/
1•thaunatos•1h ago•1 comments