frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Fast and Quality Code Chunking with Chonkie

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

We have all we need to make mass surveillance a reality

https://idiallo.com/blog/we-have-all-we-need-for-mass-surveillance
1•firefoxd•1m ago•0 comments

Wildfire Smoke May Be More Dangerous Than Scientists Thought

https://scitechdaily.com/wildfire-smoke-may-be-far-more-dangerous-than-scientists-thought/
1•gmays•1m ago•0 comments

California DROP: Delete the information data brokers have about you coming 2026

https://consumer.drop.privacy.ca.gov/coming-soon.html
1•irsagent•4m ago•1 comments

Turning Dafny Sets into Sequences [video]

https://www.youtube.com/watch?v=-zAhtW8YFKM
2•larrytheliquid•9m ago•1 comments

Petition: Restore Free and Open Access to the ACM Digital Library

https://www.ipetitions.com/petition/restore-fully-free-and-open-access
1•underscoreF•11m ago•0 comments

X Users Have the Power to Edit Any Image Without Permission

https://petapixel.com/2025/12/29/x-users-have-the-power-to-edit-any-image-without-permission/
2•bookofjoe•18m ago•0 comments

We still don't know what Elon Musk's DOGE did

https://www.theguardian.com/technology/2025/dec/30/elon-musk-doge-impact-us-government
3•doener•19m ago•0 comments

Slaughterbots (2019 short film) [video]

https://www.youtube.com/watch?v=9fa9lVwHHqg
1•christianqchung•21m ago•1 comments

Show HN: Vektor – A native PHP vector database using HNSW

https://github.com/centamiv/vektor
1•centamiv•21m ago•0 comments

Waymo sues Santa Monica, and the city sues right back: Court fight ahead

https://www.latimes.com/california/story/2025-12-22/fight-between-waymo-santa-monica-goes-to-court
2•lokar•23m ago•1 comments

Attention Is Bayesian Inference

https://medium.com/@vishalmisra/attention-is-bayesian-inference-578c25db4501
2•samwillis•25m ago•0 comments

Unproven air taxi company is spending $126M to take over an L.A. airport

https://www.latimes.com/business/story/2025-11-24/california-air-taxi
1•PaulHoule•25m ago•0 comments

AI and politics and stagflation = workplace fatigue

https://www.glassdoor.com/blog/glassdoor-worker-fatigue-ai-politics/
3•andrewstetsenko•27m ago•0 comments

The Complete Sega Mark III (Retail) Collection

https://nintendosegajapan.com/2025/12/29/the-complete-sega-mark-iii-retail-collection/
1•msephton•27m ago•0 comments

Project ideas to appreciate the art of programming

https://codecrafters.io/blog/programming-project-ideas
7•vitaelabitur•29m ago•0 comments

Leadership Lab: The Craft of Writing Effectively (2014) [video]

https://www.youtube.com/watch?v=vtIzMaLkCaM
1•rognjen•30m ago•0 comments

Penn and Teller Help Rob Pike and Dennis Ritchie Play a Prank on Arno Penzias [video]

https://www.youtube.com/watch?v=fxMKuv0A6z4
2•susam•33m ago•0 comments

No Longer Burying the Lead: A New Media Culture for the Metacrisis

https://www.whatisemerging.com/opinions/no-longer-burying-the-lead
1•rendx•36m ago•1 comments

Alias Method

https://en.wikipedia.org/wiki/Alias_method
1•usgroup•40m ago•0 comments

I exposed my Homelab through Cloudflare Tunnels

http://ebourgess.dev/posts/exposing-homelab-through-cloudflare-tunnel/
2•ebourgess•41m ago•2 comments

Christmas 500 years ago was a drunken 6-week feast

https://fortune.com/2025/12/25/medieval-peasant-christmas-was-better-than-modern-holidays-histori...
2•Anon84•45m ago•4 comments

MemCachier Status Currently experiencing instability (for some days already)

https://status.memcachier.com
1•salzig•46m ago•0 comments

ReCollab: Retrieval-Augmented LLMs for Cooperative Ad-Hoc Teammate Modeling

https://arxiv.org/abs/2512.22129
1•StatsAreFun•46m ago•0 comments

Coverage.py sleepy snake logo (2019)

https://nedbatchelder.com/blog/201912/sleepy_snake.html
2•myroon5•47m ago•0 comments

New York's Subway, an Interview with Matthew Algeo

https://www.exasperatedinfrastructures.com/p/the-best-book-i-read-all-year
1•samsklar1•47m ago•0 comments

Show HN: A dynamic key-value IP allowlist for Nginx

https://github.com/dayt0n/kvauth
1•dayt0n•47m ago•0 comments

NYC Mayoral Inauguration bans Raspberry Pi and Flipper Zero alongside explosives

https://blog.adafruit.com/2025/12/30/nyc-mayoral-inauguration-bans-raspberry-pi-and-flipper-zero-...
50•ptorrone•48m ago•21 comments

Show HN: Claude Cognitive – Working memory for Claude Code

https://github.com/GMaN1911/claude-cognitive
4•MirrorEthic•49m ago•1 comments

Nvidia in advanced talks to acquire AI21 in $2-3B deal

https://www.calcalistech.com/ctechnews/article/rkbh00xnzl
1•hbarka•49m ago•1 comments

A Course in Ring Theory

https://arxiv.org/abs/2512.22133
1•StatsAreFun•49m ago•0 comments