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!

Huge Pages can improve Postgres performance

https://clickhouse.com/blog/huge-pages-clickhouse-managed-postgres
1•saisrirampur•2m ago•0 comments

Adversarial stress-testing of long-horizon multi-agent systems

https://arxiv.org/abs/2609.17320
1•anigbrowl•3m ago•0 comments

ASI existential risk: reconsidering alignment as a goal

https://michaelnotebook.com/xriskbrief/
1•reasonableklout•5m ago•0 comments

Beyond Zero-Skipping: Redundancy-Aware Arch. and Systems for Efficient Inference [video]

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

The world epidemic of sleep disorders is linked to Vitamin D deficiency

https://pubmed.ncbi.nlm.nih.gov/22583560/
2•andsoitis•7m ago•0 comments

Roman fort found in Wales could prove myth of emperor's camp is real

https://www.theguardian.com/uk-news/2026/oct/12/mythical-roman-fort-frenni-fawr-wales-emperor
2•gmays•7m ago•0 comments

Peatland Fires Darken Skies in Indonesia

https://science.nasa.gov/missions/aqua/peatland-fires-darken-skies-in-indonesia/
2•teleforce•8m ago•0 comments

Implementing the Lindsey O. Graham Sanctioning Russia and Iran Act of 2026

https://www.whitehouse.gov/presidential-actions/2026/10/implementing-the-lindsey-o-graham-sanctio...
2•defly•11m ago•0 comments

Show HN: Crowned – A live king-of-the-hill billboard for projects

https://www.crowned.wtf/
1•lazzzyyycoder•13m ago•0 comments

NOAA oceanographer explains Kelvin waves and their part in El Niño

https://www.fisheries.noaa.gov/feature-story/kelvin-waves-explained
3•divbzero•18m ago•0 comments

Space: Sandboxed Platform for Agentic Code Execution

https://github.com/perplexityai/SPACE
1•Palmik•20m ago•0 comments

Moon-Like Madagascar

https://science.nasa.gov/earth/earth-observatory/moon-like-madagascar/
2•geox•21m ago•0 comments

I made a New tab page to give you NASA's Image of the day everytime you newtab

https://avycado13.github.io/newpage/
1•avycado13•31m ago•0 comments

Show HN: Llmspeed – feel how fast a local LLM runs before you buy the hardware

https://llmspeed.dev/
2•albinstman•35m ago•0 comments

Tiered caching: the checkbox that cuts origin load and almost nobody checks

https://plimie.com/blog/tiered-caching-origin-load/
1•pcaminog•35m ago•0 comments

CDN cache hit ratio is lying to you

https://plimie.com/blog/cdn-cache-hit-ratio-lying/
1•pcaminog•36m ago•0 comments

Tort Law at the Frontier of Artificial Intelligence

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=6979919
1•reasonableklout•40m ago•0 comments

German police launch investigation after robot allegedly gropes teenage girl

https://www.cnn.com/2026/10/14/europe/germany-investigation-robot-groping-intl
6•snarky-comments•44m ago•0 comments

Doom: The Gallery Experience

https://www.newgrounds.com/portal/view/960452
1•razodactyl•44m ago•0 comments

Show HN: 100kb-SDK – Client-side WASM image and PDF optimizer to cut S3 bills

https://www.100kb.in/en/developer
1•Abhishek_6277•45m ago•0 comments

Show HN: Gittins, an online bandit engine that enforces log correctness

https://www.getgittins.dev
1•maxpagels•48m ago•0 comments

Commodore 64 Hardware Simulator

https://github.com/antirez/c64-hw-simulator
2•erickhill•52m ago•0 comments

List of predictions for autonomous Tesla vehicles by Elon Musk

https://en.wikipedia.org/wiki/List_of_predictions_for_autonomous_Tesla_vehicles_by_Elon_Musk
5•giuliomagnifico•54m ago•0 comments

Show HN: Online Piano – Play a Free Virtual Piano Keyboard

https://urpiano.com/
4•artiomartiom•54m ago•0 comments

Zeabur discontinues AI Hub after its August security breach

https://zeabur.com/changelogs/aihub-shutdown
1•iamsyr•57m ago•0 comments

Trump Signs Order Exempting Russia from Sanctions Law

https://www.nytimes.com/2026/10/16/us/politics/trump-order-russia-sanctions.html
6•jacquesm•59m ago•0 comments

Nvidia-Nemotron-Labs-Dory1.0-4B-NVFP4

https://huggingface.co/nvidia/NVIDIA-Nemotron-Labs-Dory1.0-4B-NVFP4
1•fprog•1h ago•1 comments

"In every study that considered the question"

https://unsung.aresluna.org/in-every-study-that-considered-the-question/
11•zdw•1h ago•6 comments

Lithos-metal: Qwen3.8-27B on 40-core M5 Max at 168 tokens/s

https://github.com/lithos-ai/lithos-metal
1•emp_•1h ago•0 comments

The Criminal Behind Los Angeles' Griffith Observatory

https://www.popsci.com/science/griffith-observatory-founder-criminal/
3•gmays•1h ago•0 comments