frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Fast and Quality Code Chunking with Chonkie

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

Machinery and English Style (1904)

https://www.theatlantic.com/magazine/archive/1904/10/machinery-and-english-style/637506/
1•danidiaz•1m ago•0 comments

vibebin: code and host inside LXC (Incus) containers on your own VPS/server

https://github.com/jgbrwn/vibebin
1•indigodaddy•4m ago•0 comments

Construction of ESA's ambitious LISA mission begins

https://www.esa.int/Science_Exploration/Space_Science/LISA/Construction_of_ESA_s_ambitious_LISA_m...
1•zeristor•5m ago•0 comments

The Evidence: A Record of Observed Behaviour in External AI Systems

https://www.aivojournal.org/the-evidence-a-record-of-observed-behaviour-in-external-ai-systems/
1•businessmate•6m ago•1 comments

Show HN: Tesla Model Y Juniper First Drive

https://xthe.com/news/tesla-model-y-juniper-first-drive/
1•xthe•10m ago•0 comments

Show HN: I built a tool that generates 22-page competitor reports from your URL

https://champsignal.com/competitive-intelligence-report
1•maximedupre•12m ago•1 comments

OpenClaw: When AI Agents Get Full System Access. Security nightmare?

https://innfactory.ai:443/en/blog/openclaw-ai-agent-security/
1•i-blis•12m ago•0 comments

European and allied cybersecurity strategies shift from defence to offence

https://bindinghook.com/how-european-and-allied-cybersecurity-strategies-are-shifting-from-defenc...
1•campuscodi•14m ago•0 comments

Disgraced Crypto CEO Sam Bankman-Fried Seeks Trump Pardon with Republican Pivot

https://gizmodo.com/disgraced-crypto-ceo-sam-bankman-fried-seeks-trump-pardon-with-republican-piv...
4•pseudolus•18m ago•1 comments

Why I'll Never Drive a Modern Car Again [video]

https://www.youtube.com/watch?v=lEE2-QVnmTU
1•f311a•18m ago•0 comments

A simple HTTPS, HTTP/3, SSL and security headers checker I built with AI

1•dragonman•18m ago•0 comments

DuckDB Performance: File Formats

https://duckdb.org/docs/stable/guides/performance/file_formats
1•tosh•18m ago•0 comments

Leveraged Buyouts Are the Government's Fault

https://deadneurons.substack.com/p/leveraged-buyouts-are-the-governments
1•nr378•19m ago•0 comments

Open-source real-time interactive world model (LingBot-World)

https://www.lingbot-world.org/
1•awei•20m ago•0 comments

Show HN: Give your OpenClaw agent an email address

https://www.clawhub.ai/heyarviind/clawmail
1•heyarviind2•21m ago•0 comments

Amiga Unix (Amix)

https://www.amigaunix.com/doku.php/home
2•donatj•22m ago•0 comments

Show HN: Convert Step to STL Free Online Tool

https://pngtostl.xyz/convert/step-to-stl
1•niliu123•22m ago•0 comments

Sqldef: Idempotent schema management tool for MySQL, PostgreSQL, SQLite

https://sqldef.github.io/
1•Palmik•22m ago•0 comments

Show HN: I built theme support in Tabularis – lightweight DB tool for developers

https://github.com/debba/tabularis
1•debba•22m ago•0 comments

Ask HN: Cheap, powerful AI programming now, what happens when we have no choice?

1•andrewstuart•24m ago•0 comments

Investigation alleges Meta has gained billions from fraudulent social media ads [video]

https://www.youtube.com/watch?v=Et-TOT5wzoE
2•mgh2•24m ago•1 comments

Show HN: Infiltrate Moltbook, the AI-Only Social Network

https://github.com/fritzprix/moltbook_break
1•72ave2•25m ago•0 comments

Wave 14: Arena Mode – May the Best Model Win

https://windsurf.com/blog/windsurf-wave-14
1•tosh•26m ago•0 comments

The Feeling of Power (1958)

https://en.wikipedia.org/wiki/The_Feeling_of_Power
2•_alaya•29m ago•0 comments

Listen to Understand

https://talk.bradwoods.io/blog/listen-to-understand/
1•bradwoodsio•29m ago•0 comments

The Story Behind ECMAScript 4 (2017)

https://auth0.com/blog/the-real-story-behind-es4/
1•m132•29m ago•0 comments

Minute Maid to Discontinue Frozen Orange Juice from Concentrate This Year

https://www.cbc.ca/news/business/minute-maid-discontinuing-frozen-juice-9.7065520
2•bookofjoe•31m ago•1 comments

A single line code change that allows AI agents to learn on the job

https://www.versanovatech.com/docs.html
2•gauravsc•33m ago•0 comments

Microsoft Advises Renaming .exe to .docx in Outlook

https://support.microsoft.com/en-us/office/blocked-attachments-in-outlook-434752e1-02d3-4e90-9124...
4•gabia•33m ago•2 comments

The surprising attention on sprites, exe.dev, & shellbox

https://lalitm.com/trying-sprites-exedev-shellbox/
1•indigodaddy•36m ago•0 comments