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!

Physicist Uses AI to Tackle Quantum Gravity

https://thequantuminsider.com/2026/11/26/stanford-physicist-uses-ai-to-tackle-quantum-gravity-pro...
1•a_tartaruga•58s ago•0 comments

Ask HN: So, What Now?

1•anbardoi•2m ago•0 comments

CTO of 'RansomwareHelp' Indicted for Wire Fraud

https://krebsonsecurity.com/2026/11/cto-of-ransomwarehelp-indicted-for-wire-fraud/
1•Bender•3m ago•0 comments

A water based tide clock

https://hackaday.io/project/206721-a-water-based-tide-clock
1•waximabbax•3m ago•0 comments

Content-Addressable Gems: the new way of packaging precompiled binaries

https://blog.rubygems.org/2026/11/23/content-addressable-gems.html
1•riffraff•3m ago•0 comments

Microsoft GitHub Deletes Tweet Celebrating PS5 Repo after GTA VI launch

https://kotaku.com/github-microsoft-ps5-anyps5-emulation-sony-grand-theft-auto-gta6-2001000617
1•HelloUsername•4m ago•0 comments

Generate a summary card for any X account

https://xgraph.app/tools/profile-card?r=hn
1•ashu0x•7m ago•0 comments

Economic possibilities for our grandchildren (1930) [pdf]

http://www.econ.yale.edu/smith/econ116a/keynes1.pdf
2•andsoitis•10m ago•0 comments

What a rule-based checker found in 561 public projects, mostly AI-built

https://lintsure.com/research/561-projects
1•DrMax•12m ago•0 comments

YouTube Ad Punisher – Bypass anti-adblock

https://github.com/antonpictures/youtube-punisher
7•iantongeorge•14m ago•0 comments

CheeseDB 0.5: 8x faster startup with snapshots, plus a server, Docker and Helm

https://github.com/govinargo-labs/cheesedb
1•govinhere•14m ago•0 comments

FIFA hit by cyber security attack

https://www.ft.com/content/3a97fa7f-c173-4fe9-ad23-093f27550529
1•bookofjoe•14m ago•1 comments

U.S. data centers use 4 times the power used in LA

https://newsroom.ucla.edu/stories/these-u-s-data-centers-use-four-times-the-power-used-in-la
1•DeepLogin•15m ago•1 comments

How many trades does it take to tell skill from luck on Polymarket?

https://predictpnl.com/articles/how-many-trades-to-tell-skill-from-luck
1•lorande•15m ago•0 comments

Three LLM inflection points in twelve months

https://simonwillison.net/2026/Nov/24/llm-inflection-points/
1•codeclimber•15m ago•0 comments

The Trap of Understanding: Why AI Cannot Be Regulated Like Oil

https://medium.com/@smoking2man/the-trap-of-understanding-why-ai-cannot-be-regulated-like-oil-and...
1•Aldus551•16m ago•0 comments

Sara – A financial workspace with persistent context across AI models

https://www.usesara.ai
1•dodriozola•17m ago•0 comments

'AI' might be the end of our careers

https://www.baldurbjarnason.com/2026/08-ai-might-be-the-end-of-our-careers/
5•tosbourn•21m ago•2 comments

Top RSI Papers of 2026

https://nlp.elvissaravia.com/p/top-10-rsi-papers-of-2026
1•omarsar•22m ago•0 comments

Rust-Simulated Vellum, Mahogany and Quill Blog

https://elliotbonneville.com/a-rendering-engine-that-happens-to-have-text/
1•elliotbnvl•22m ago•1 comments

Goto Considered Joyful (2003)

https://www.salon.com/2003/07/09/dijkstra/
2•1vuio0pswjnm7•23m ago•0 comments

Ljós – Ultimate Rust UI Framework

https://ljos.dev/
3•olafura•23m ago•2 comments

Show HN: Real-time lights and shadows in CSS 3D, no runtime JavaScript

https://k-adam.github.io/CSS3D-Renderer/demos/lights-out/index.html
2•k-adam•24m ago•1 comments

Company was religious about backups but sinned by leaving them exposed

https://www.theregister.com/security/2026/11/26/company-was-religious-about-backups-but-sinned-by...
1•Bender•24m ago•0 comments

Minibird: Firebird SQL as a Single Executable

https://github.com/mariuz/minibird
1•mariuz•24m ago•0 comments

Kodak SlideTag

https://www.kodak.retopro.co/products/kodak-slidetag-br-keychain-photo-display-and-tracker-blind-box
1•hmokiguess•25m ago•0 comments

Open Knowledge Models

https://ladybugmem.ai/open-knowledge-models/
1•adsharma•25m ago•0 comments

The Qur'an with Cross-References

https://www.degruyterbrill.com/document/doi/10.1515/9783110782448/html
1•handfuloflight•25m ago•0 comments

Backblaze explains why it's sharing customer information with advertisers

https://arstechnica.com/information-technology/2026/11/backblaze-explains-why-its-sharing-custome...
1•Bender•26m ago•0 comments

Amazon's Trainium Takes a Strike at the Training King

https://newsletter.semianalysis.com/p/amazons-trainium-takes-a-strike-at
1•krembo•26m ago•0 comments