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!

Is counting circular? Frege and the meaning of finite number

https://www.youtube.com/watch?v=n234L6Y6mVA
1•FillMaths•5m ago•0 comments

An AI visibility checker that runs in the browser

https://lumi-geo.pages.dev/
1•GoarDev•6m ago•0 comments

Apple's Growth Machine Is Slowing. High Prices Might Not Save It

https://www.wsj.com/tech/apple-beats-wall-street-expectations-with-boost-from-higher-prices-36749418
2•fortran77•7m ago•1 comments

Detroit techno pioneer Juan Atkins dead at 64

https://www.synthtopia.com/content/2026/11/02/detroit-techno-pioneer-electronic-music-visionary-j...
1•anigbrowl•7m ago•0 comments

2010 Pose Idea (2026)

https://www.mollysoda.exposed/2010poseidea.HTML
1•justin-reeves•8m ago•0 comments

The Cooked Curve Hypothesis

https://travishiggins.substack.com/p/the-cooked-curve-hypothesis
1•trvhig•10m ago•0 comments

Show HN: Tiny Tally - Free local only finances

https://apps.tarwin.art/tiny-tally/
1•tarwin•19m ago•0 comments

Email Should Be Opt-In

https://fgclue.org/blog/emails-should-be-opt-in/
2•fgclue•21m ago•0 comments

Future startup ideas, excavated from science fiction

https://absurd.website/startup-archaeology/
2•thunderbong•22m ago•0 comments

Palantir tech unused or little used by 29 NHS trusts said to be benefiting from

https://www.theguardian.com/technology/2026/nov/02/palantir-unused-nhs-hospital-trusts
1•botanical•24m ago•0 comments

"The Arena"

https://thearena.rip
1•DynamicCreation•26m ago•1 comments

Never gonna print you up

https://dixken.de/blog/never-gonna-print-you-up
1•tweenagedream•35m ago•0 comments

Anatomy of Automation

https://eblog.fly.dev/swtalmud.html
1•Mateo781201•39m ago•0 comments

Ask HN: Why is it so hard to promote/market even when the product seems right

1•lywald•41m ago•2 comments

Tell HN: You now have to pay for your IPv4 address at OVHCloud

https://blog.ovhcloud.com/en/posts/public-cloud-pricing-update-october-2026/
1•omani•41m ago•0 comments

Show HN: Hacker Times, a New York Times-Inspired Version Hacker News

https://hackertimes.ca/
29•polpenn•44m ago•6 comments

Electricity Prices Based on Average Percentage Votes for Democrats in Elections

https://insurancedimes.com/2026/01/12/electricity-prices-based-on-average-percentage-votes-for-de...
2•crookedroad44•50m ago•1 comments

Deadly Intel Fab 28 explosion causes two-week shutdown, cost $600M

https://www.tomshardware.com/pc-components/cpus/deadly-intel-fab-28-explosion-causes-two-week-shu...
1•gmays•50m ago•0 comments

Google search has gone from being handy to useless (cartoon)

https://www.theguardian.com/commentisfree/picture/2026/nov/02/google-search-has-gone-from-being-v...
2•ggm•50m ago•0 comments

Fractran

https://en.wikipedia.org/wiki/FRACTRAN
2•lisper•50m ago•0 comments

Musk is throttling Grok because its cost is 'unsustainably high'

https://finance.yahoo.com/technology/article/musk-is-throttling-grok-because-its-cost-is-unsustai...
7•fraXis•55m ago•2 comments

Our organizations are being DDoSed from the inside

https://karrisaarinen.com/posts/our-organizations-are-being-ddosed-from-the-inside/
4•gpi•58m ago•0 comments

On-device re-write via WebLLM in a Chrome extension

https://chromewebstore.google.com/detail/restated-rewrite-tone-on/lhfidcgfjjiiodkbnikdcnanckmbpimo
1•micahlhoover•1h ago•0 comments

Anthropic warns that it's close to RSI capability

https://techcrunch.com/2026/11/02/anthropic-warns-that-its-very-close-to-rsi-capability-aka-self-...
3•cryptoz•1h ago•2 comments

DiscImageStudio: burn visible artwork onto CDs, DVDs and Blu-ray discs

https://github.com/JiaFeiMiao-K-Cat/DiscImageStudio
36•bpierre•1h ago•7 comments

Work on GEFS (The Good Enough File System) for OpenBSD Progresses

https://www.undeadly.org/cgi?action=article;sid=20261101115637
4•swq115•1h ago•0 comments

OpenAI hires former US Army secretary as military seeks to expand AI use

https://www.ft.com/content/e6b8fd40-ef92-46e8-aeaf-f98dade55a67
3•mraniki•1h ago•0 comments

On-device and open source Whisper dictation

https://github.com/jzone3/local-flow
2•jzone3•1h ago•0 comments

California's Billionaire Tax Slips from 52% Support to 42%

https://gizmodo.com/californias-billionaire-tax-slips-from-52-support-to-42-2000834065
2•gumby•1h ago•0 comments

OpenAI considers rebranding data centers to 'AI compute campuses"

https://www.tomshardware.com/tech-industry/data-centers/openai-considers-rebranding-data-centers-...
4•fraXis•1h ago•0 comments