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!

Google Built the Search API It Should Have Built 25 Years Ago

https://boastindex.com/insights/google-full-web-search-api/
2•feech•2m ago•1 comments

How to export ChatGPT to word without losing formatting [video]

https://www.youtube.com/watch?v=zUzkUI7U-A4
2•quysala12•3m ago•0 comments

Edge Is Pretending to Be Chrome

https://idiallo.com/blog/edge-imitates-chrome
1•speckx•4m ago•0 comments

Fast Primality Testing for Integers That Fit into a Machine Word

https://leetarxiv.substack.com/p/forisek-and-jancina-primality-test
2•theanonymousone•5m ago•0 comments

Stop Calling, Start Announcing: An Intro to Event-Driven Systems

https://itsnas.me/writing/event-driven-systems
2•itsnasme•7m ago•0 comments

Lenovo Unveils the ThinkVision P27UL-40 IJP OLED Professional Monitor

https://www.techpowerup.com/353010/lenovo-unveils-the-thinkvision-p27ul-40-ijp-oled-professional-...
1•ksec•9m ago•0 comments

Built to Last

https://lucas.love/blog/built-to-last
2•speckx•10m ago•0 comments

Parley: Federated, decentralised chat that speaks plain IRC

https://git.mills.io/prologic/parley
2•davidcollantes•10m ago•3 comments

Congressman Cohen Introduces Articles of Impeachment Against President Trump

https://cohen.house.gov/media-center/press-releases/congressman-cohen-introduces-comprehensive-ar...
6•hkhn•13m ago•0 comments

Towards an Integrative Neuroscience of Metacognition

https://www.nature.com/articles/s41583-026-01081-x
3•KasianFranks•14m ago•0 comments

Solving Navier–Stokes turned into a privacy debate

https://mireshghallah.github.io/blog/what_ai_labs_do_with_your_data.html
1•pretext•18m ago•0 comments

Stratos: Open-source software speeds airship design from hull to fabric

https://bioengineer.org/stratos-open-source-software-speeds-airship-design-from-hull-to-fabric/
1•promptspheree•18m ago•0 comments

Show HN: Codify, AI for transforming and reforming law

https://codify.centreai.global/
1•crimsoneer•19m ago•0 comments

Ttfx: Add an x86-64 assembly engine: 9.8x faster than Rust, 322x than Python

https://github.com/omacom/ttfx/pull/35/
2•apt-get•20m ago•1 comments

China weighs allowing ByteDance, Alibaba to buy new Nvidia chips

https://www.reuters.com/business/retail-consumer/china-weighs-allowing-bytedance-alibaba-buy-new-...
1•giuliomagnifico•21m ago•0 comments

Common UX Design Methods, Ranked by Value

https://jakobnielsenphd.substack.com/p/100-uxd-methods
1•snikolaev•25m ago•0 comments

How to Live on Earth: Feature Documentary, Presented by Benedict Cumberbatch [video]

https://www.youtube.com/watch?v=h3mRsvFmWi0
1•night_cat•25m ago•0 comments

Intellectuals Are Fucking Idiots

https://markmanson.substack.com/p/intellectuals-are-fcking-idiots
3•speckx•26m ago•1 comments

Show HN: PaperMono, e-ink fridge magnet shopping list with mobile web page

https://github.com/seamusc/papermono-shopping-list
2•seamus_c•27m ago•0 comments

High school calculator for analytic number theory

https://rtmkrptn.github.io/posts/high-school-calculator-computes-analytical-number-theory/
1•rtmkrptn•27m ago•0 comments

Fitch Ratings' U.S. Private Credit Default Rate Rose to 6.3% in August 2026

https://www.fitchratings.com/research/corporate-finance/fitch-ratings-us-private-credit-default-r...
1•JumpCrisscross•27m ago•0 comments

Make your coding agent prove its tests can fail

https://www.drjoshcsimmons.com/writing/make-your-coding-agent-prove-its-tests-can-fail
1•joshcsimmons•27m ago•0 comments

Vertical Farming: Reimagining Agriculture in an Urban Age

https://worldsensorium.com/vertical-farming-reimagining-agriculture-in-an-urban-age/
2•dnetesn•30m ago•0 comments

If a Lion Could Speak

https://blue-continuum.com/if-a-lion-could-speak
2•dnetesn•30m ago•0 comments

AI Self-Portraits

https://sheets.works/self-portraits
1•masterbubbles•31m ago•0 comments

Show HN: I build omarchy like experience in browser for remote machine

1•liyu1981au•34m ago•0 comments

AI-written speeches are taking over politics

https://www.economist.com/britain/2026/09/23/ai-written-speeches-are-taking-over-politics
2•tmarice•35m ago•1 comments

Show HN: An interactive 3D companion for the Starship launch

https://safemap.ai/?launch=1
1•poltora•36m ago•1 comments

Domyn's CEO says OpenAI, Anthropic are lying about safety

https://www.axios.com/2026/09/28/ai-domyn-uljan-sharka-openai-anthropic-safety-lying
1•Arodex•36m ago•0 comments

Have you or a loved one ever been a victim a MLM?

https://nothing-absolute.github.io/mlm-truth/
2•weezing4ever•36m ago•1 comments