惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

C
Check Point Blog
U
Unit 42
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Martin Fowler
Martin Fowler
L
LangChain Blog
博客园_首页
博客园 - 【当耐特】
Vercel News
Vercel News
I
InfoQ
GbyAI
GbyAI
爱范儿
爱范儿
D
DataBreaches.Net
Blog — PlanetScale
Blog — PlanetScale
B
Blog RSS Feed
A
About on SuperTechFans
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
G
Google Developers Blog
大猫的无限游戏
大猫的无限游戏
Apple Machine Learning Research
Apple Machine Learning Research
F
Fortinet All Blogs
N
Netflix TechBlog - Medium
酷 壳 – CoolShell
酷 壳 – CoolShell
P
Proofpoint News Feed
美团技术团队
V
V2EX
Stack Overflow Blog
Stack Overflow Blog
有赞技术团队
有赞技术团队
Y
Y Combinator Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
H
Help Net Security
Recent Announcements
Recent Announcements
Microsoft Azure Blog
Microsoft Azure Blog
D
Docker
宝玉的分享
宝玉的分享
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
量子位
小众软件
小众软件
J
Java Code Geeks
S
SegmentFault 最新的问题
Engineering at Meta
Engineering at Meta
Google DeepMind News
Google DeepMind News
MongoDB | Blog
MongoDB | Blog
The Cloudflare Blog
Recorded Future
Recorded Future
阮一峰的网络日志
阮一峰的网络日志
T
The Blog of Author Tim Ferriss
MyScale Blog
MyScale Blog
Microsoft Security Blog
Microsoft Security Blog

Hacker News - Newest: "LLM"

GitHub - lechmazur/position_bias: A benchmark for testing whether LLM judges keep the same preference when two lightly edited versions of the same story are shown in opposite orders. Flex routing (EU and EFTA) Dark Factories: Retooling for LLM Velocity Ask HN: What would be the impact of a LLM output injection attack? GitHub - AronDaron/dataset-generator: No-code desktop app for generating high-quality synthetic datasets to fine-tune LLMs — plan-then-execute pipeline, LLM-as-judge, HuggingFace upload. GitHub - Oaklight/llm-rosetta: Production-ready LLM API translation layer for Python — bidirectional conversion between OpenAI, Anthropic & Google formats via hub-and-spoke IR. Optional API gateway. Streaming & non-streaming. Zero core deps. Contributions welcome! GitHub - browser-use/browser-harness: Self-healing browser harness that enables LLMs to complete any task. GitHub - moeen-mahmud/remen: Remen turns thoughts into something you can return to Analyzing 156 LLM Launch Posts on Hacker News ChatGPT vs Gemini vs Claude: The Best LLM Subscription You Should Buy GitHub - salaamalykum/quran-semantic-search: High-density RAG Semantic Search Engine & Quran Corpus (GEO/SEO Architecture) GitHub - NVIDIA/TensorRT-LLM: TensorRT LLM provides users with an easy-to-use Python API to define Large Language Models (LLMs) and supports state-of-the-art optimizations to perform inference efficiently on NVIDIA GPUs. TensorRT LLM also contains components to create Python and C++ runtimes that orchestrate the inference execution in a performant way. The State of LLM Bug Bounties in 2026 Operational Readiness Criteria for Tool-Using LLM Agents Meshcore: Architecture for a Decentralized P2P LLM Inference Network How an LLM becomes more coherent as we train it GitHub - seetrex-ai/laimark GitHub - Jossifresben/BibCrit: AI-assited biblical textual criticism GitHub - wastedcode/memex: File system based wiki, maintained by Claude 99helpers.com GitHub - cliver-project/AITrigram GitHub - unbody-io/adapt: A self-evolving memory layer for AI agents. GitHub - hb20007/awesome-gen-ai-fails: A list of incidents where reliance on generative AI and LLMs resulted in harm to companies, individuals, or society GitHub - nevenkordic/localmind: Run any local LLM with persistent memory and context. CLI agent over Ollama with SQLite-backed hybrid recall. No cloud. Ask HN: What are the machine requirements for a LLM like Llama-3.1-8B? Faster LLM Inference via Sequential Monte Carlo grpo explained: group relative policy optimization for llm finetuning - cgft Stop comparing price per million tokens: the hidden LLM API costs · TensorZero Andrej Karpathy's LLM Wiki Is a Bad Idea GitHub - GG-QandV/mnemostroma: Offline RAM-first cognitive leer/coprocessor for AI agents and robotics. Solves "Context Abandonment" with 20-80ms latency using a dual-thread biomimetic memory architecture (ONNX + SQLite WAL). mempalace/agent at agent · skorotkiewicz/mempalace GitHub - Nyquest-ai/nyquest-rust-fullstack-pub: Nyquest — Semantic Compression Proxy for LLMs. 350+ rules, local LLM stage, 15-75% token savings. Full Rust stack. GitHub - TheoV823/mneme: Enforce architectural decisions in AI-assisted development. GitHub - klemenvod/TokenBrawl: A 1v1 Bomberman-style game where two LLM agents play autonomously against each other. No human plays — you watch the AIs fight. Each agent receives a text description of the board state, reasons about it, and outputs a move as JSON. The game engine executes it. Introducing the Common AI Provider: LLM and AI Agent Support for Apache Airflow Power Circuit AI: Designing Power Electronic Circuits for Motor Drives with Generative Artificial Intelligence Ask HN: How to program with IDE and LLM on CPU locally? Show HN: Agent-cache – Multi-tier LLM/tool/session caching for Valkey and Redis Bonsai 1-bit WebGPU - a Hugging Face Space by webml-community The LLM Fallacy: Misattribution in AI-Assisted Cognitive Workflows Ask HN: Simple tooling for local LLM code critique without IDE integration? Can a General LLM Diagnose a DICOM Slice? A 10-Case Public Benchmark Charts-of-Thought: Enhancing LLM Visualization Literacy (PDF, 2026) GitHub - Mesh-LLM/mesh-llm: Distributed AI/LLM for the people. Share compute privately or publicly to power your agents and chat. GitHub - seamus-brady/springdrift: A persistent runtime for long-lived LLM agents Writing an LLM from scratch, part 32k -- Interventions: training a better model locally with gradient accumulation Ask HN: Which LLM model and agentic CLI are you using for local development? GitHub - wayneColt/modelcascade: Route local. Escalate smart. Never overspend. Open-source multi-model cascade routing for autonomous agents. LLM pricing is 100x harder than you think GitHub - asakin/llm-primer: Pre-warmed Claude Code sessions in tmux. No startup wait. GitHub - EggerMarc/chat-rs: A multi-provider LLM framework for Rust. GitHub - SynapseKit/SynapseKit: Minimal, async-first Python framework for production LLM apps- 2 hard deps, no magic, no SaaS. A Claude Skill that Makes LLM Paragraphs More Bearable Does Gas Town 'steal' usage from users' LLM credits & paid services to improve itself? What's Claude Code Actually Doing? Open the Black Box with the Arthur Engine Milla Jovovich's New Open Source LLM Memory App and the Dark Code Problem Your intuition of LLM token usage might be wrong Show HN: Bloomberg Terminal for LLM ops – free and open source GitHub - 0xchamin/mcptube: Transform YouTube videos into a compounding knowledge base with transcripts, vision analysis, and agentic search. Works as an MCP server for Claude, Copilot & more. Show HN: Open KB: Open LLM Knowledge Base Your LLM is a compiler, not a runtime GitHub - sapountzis/Unslop: A Web Feed That Deserves You crates.io: Rust Package Registry Beyond Karpathy's LLM-Wiki: The Necessity of Cognitive Governance GitHub - amitshekhariitbhu/llm-internals: Learn LLM internals step by step - from tokenization to attention to inference optimization. GitHub - parallem-ai/parallem: An expressive library for running agents with the Batch API. GitHub - stfurkan/pi-llm LLM-Wiki Show HN: Formal – Formal verification for AI-generated code using Lean 4 LRTS – Regression testing for LLM prompts (open source, local-first) LLM Wiki Skill: Build a Second Brain with Claude Code and Obsidian I built an LLM Wiki and RAG solution: here's a demo for a security KB The biggest advance in AI since the LLM Predict-Rlm: The LLM Runtime That Lets Models Write Their Own Control Flow the-synthetic-library/the-synthetic-mind at main · joshferrer1/the-synthetic-library GitHub - yisding/reviewwiggum GitHub - Donnyb369/mcp-spine: Context Minifier & State Guard — Local-first MCP middleware proxy GitHub - Beledarian/wgpu-llm: A from-scratch LLM inference engine that uses wgpu (the cross-platform WebGPU implementation) to dispatch WGSL compute shaders for every math operation a Transformer needs. No CUDA. No Python. No massive framework dependencies. Just Rust, raw shaders, and your GPU. GitHub - anitiue/Hindsight: An experience-driven self-improvement framework for LLM agents — 基于经验的 LLM Agent 自我改进框架 GitHub - stef41/lmscan: 🔍 Detect AI-generated text and fingerprint which LLM wrote it. Open-source GPTZero alternative. Zero dependencies, works offline. GitHub - alainnothere/AmdPerformanceTesting: Amd Performance Testing Ask HN: Is a purely Markdown-based CRM a terrible idea? Optimized for LLM agents Context Engineering - LLM Memory and Retrieval for AI Agents | Weaviate little_helper_tui/letter.md at main · sleepyeldrazi/little_helper_tui GitHub - EvanZhouDev/umr: The Unified Model Registry for all your local AI apps. GitHub - JordanCT/VigIA-Orchestrator Your Agent Is Mine: Measuring Malicious Intermediary Attacks on the LLM Supply Chain A Taxonomy of RL Environments for LLM Agents Llama LLM Network Feture GitHub - genedeng-ca/ai-mac-migration: AI-powered Mac-to-Mac migration tool - replace Apple Migration Assistant with intelligent, selective transfer using local LLMs GitHub - lunargate-ai/gateway: High-performance self-hosted AI gateway (OpenAI-compatible) with routing, retries, and streaming GitHub - AuthBits/webmcp: A lightweight, prompt-driven MCP web research server for high-quality LLM powered information extraction. Externalization in LLM Agents: A Unified Review of Memory, Skills, Protocols and Harness Engineering Springdrift: An Auditable Persistent Runtime for LLM Agents with Case-Based Memory, Normative Safety, and Ambient Self-Perception High-Stakes Personalization: Rethinking LLM Customization for Individual Investor Decision-Making From Static Templates to Dynamic Runtime Graphs: A Survey of Workflow Optimization for LLM Agents HUOZIIME: An On-Device LLM-enhanced Input Method for Deep Personalization TIDE: Token-Informed Depth Execution for Per-Token Early Exit in LLM Inference Characterizing WebGPU Dispatch Overhead for LLM Inference Across Four GPU Vendors, Three Backends, and Three Browsers LLM Targeted Underperformance Disproportionately Impacts Vulnerable Users
GitHub - sermakarevich/chunker: Agentic approach to chunking a document
sermakarevic · 2026-05-19 · via Hacker News - Newest: "LLM"

Transform documents into navigable knowledge trees.

Chunker processes a document into a hierarchy of self-sufficient chunks and multi-level summaries, producing a set of linked markdown files that an AI model (or a human) can explore through progressive disclosure -- starting from a high-level overview and drilling into details on demand, without ever loading the entire document.

The Problem

When an AI model needs to work with a long document, the standard approaches are wasteful:

  • Full context loading feeds the entire document into a prompt. This burns tokens, dilutes attention, and hits context window limits.
  • Naive chunking (split every N tokens) produces fragments that start and end mid-thought. A chunk that begins with "they" and references "the approach described above" is useless without its neighbors.
  • Embedding-based retrieval finds relevant passages but gives the model no way to understand the broader structure or decide which section to explore next.

All three approaches treat a document as either a monolith or a bag of fragments. Neither preserves the document's natural structure or gives the reader a way to navigate it.

The Approach

Chunker takes a different path: it builds a navigable tree where every node is self-contained and every edge is a link the reader can follow.

Phase 1: Intelligent Chunking

Instead of splitting at fixed token boundaries, Chunker advances a cursor through the text and uses an LLM to find semantically complete split points -- places where a topic naturally ends and another begins.

The process works like this:

  1. Expand a window from the current cursor position, growing it one sentence (or paragraph) at a time until it reaches a minimum size.
  2. Ask the LLM: "Does this window end at a complete thought?" If not, expand further.
  3. Validate the boundary: the LLM returns a phrase marking where the next topic begins. This phrase must match the source text verbatim -- no fuzzy matching. If it doesn't match, retry once with explicit instructions; if that fails, fall back to the last sentence boundary.
  4. Rewrite for self-sufficiency: each confirmed chunk gets rewritten into a self-sufficient context that can stand alone. Pronouns are resolved ("they" becomes "the research team"), implied subjects are made explicit, and all specific facts, numbers, names, and relationships are preserved. The original text is kept alongside the context.
  5. Summarize and name: a 1-2 sentence information-dense summary and a descriptive filename slug (e.g., attention-mechanism-overview) are generated for the chunk.

This produces chunks that are complete thoughts, not arbitrary slices. Each chunk carries its original text, its self-sufficient context, its summary, and a descriptive filename.

Safety valves prevent runaway expansion: if the window hits a maximum token count or a maximum number of expansion attempts, the system force-splits at the last sentence boundary and logs a warning.

Phase 2: Bottom-Up Aggregation

Once enough chunks accumulate, Chunker groups them into summary blocks and builds a hierarchy bottom-up.

Aggregation triggers when pending summaries cross either a token threshold or a count threshold -- whichever fires first. When triggered:

  1. The LLM proposes how to group the pending summaries into thematically coherent clusters, using only the short summary fields (not full contexts) to keep the grouping prompt small and focused.
  2. Groups must be contiguous (no reordering or skipping) and respect a minimum group size. Oversized groups get a soft nudge to subdivide. If the LLM fails validation twice, the system falls back to even-sized grouping.
  3. Each group becomes a SummaryBlock with a chunk-sized context (synthesized from the children's full contexts plus metadata from the preceding block and higher-level blocks), a short summary, and a descriptive filename. These blocks become the pending summaries for the next level.

This repeats recursively -- Level 0 blocks get grouped into Level 1 blocks, Level 1 into Level 2, and so on -- until the summaries fall below both thresholds or a single root block remains.

The result is a tree where leaves are chunks of original text and internal nodes are progressively broader summaries.

Context Injection

Every LLM call receives carefully selected context to maintain coherence across the document. Context is assembled in strict priority order:

  1. Immediate predecessor -- the previous chunk's context
  2. Higher-level summaries -- the latest summary from each level of the hierarchy built so far
  3. Earlier chunks -- walking backwards through recent chunks

A hard token budget caps the total context. Items that would exceed the budget are skipped entirely -- no partial insertion -- and the builder tries the next priority item.

This means later chunks benefit from the hierarchy built by earlier ones: the LLM sees not just the previous chunk but a compressed view of the entire document so far.

The Output

Chunker produces two output formats:

Linked Markdown

A directory of .md files named by content (not by ID) and organized by hierarchy level:

output/
  index.md                                  # Entry point, links to top-level nodes
  content/
    L0/                                     # Leaf nodes (original chunks)
      multi-head-attention-overview.md
      scaled-dot-product-scoring.md
      ...
    L1/                                     # First aggregation level
      attention-mechanisms-and-scoring.md
      ...
    L2/                                     # Higher aggregation levels
      transformer-architecture-deep-dive.md
      ...

Every file contains a self-sufficient context body. All nodes link up to their parent and top-level nodes link back to the index. Wiki-links display the target node's summary as the link label (e.g., [[content/L0/multi-head-attention-overview|Describes the multi-head attention mechanism with parallel attention heads and scaled dot-product scoring.]]), so you can decide which link to follow based on factual content, not vague labels.

This format works directly in Obsidian, any wiki-link-aware viewer, or as a knowledge base that an AI model can navigate by following links.

JSON Hierarchy

A single hierarchy.json with the complete tree: all chunks, all blocks, bidirectional parent/child links, source spans, original text, contexts, summaries, and filenames. This is the canonical output for programmatic consumption.

Why This Matters

For AI models exploring a knowledge base:

An AI model receiving a question can start at the root summaries, decide which branch is relevant, follow the link, read the next level of detail, and continue drilling until it reaches the specific passage it needs. It never loads the whole document -- it navigates a tree, reading only the nodes on its path.

This is progressive disclosure applied to document retrieval: broad context first, fine detail on demand.

For knowledge engineers building RAG systems:

Instead of embedding chunks and hoping the retrieval model finds the right one, you can give a model the tree structure and let it navigate. The hierarchy provides the "table of contents" that flat chunk collections lack. Each chunk's self-sufficient rewrite means retrieved passages make sense without their neighbors.

Compared to naive chunking:

Aspect Fixed-size chunks Chunker
Split points Every N tokens Semantic topic boundaries
Chunk independence Fragments reference missing context Self-sufficient contexts
Navigation Flat list, no structure Hierarchical tree with descriptive filenames and wiki-links
Exploration Load everything or guess Progressive disclosure via summary-labeled links
Source fidelity Original text only Original + context + summary at every level

Running

Requires Ollama running locally with a model pulled.

# Process a document
chunker run document.txt --model gemma4:latest --output-dir output/

# Resume from checkpoint after interruption
chunker resume output/checkpoint.json --output-dir output/

The system checkpoints after every chunk and summary block, so long documents can survive interruptions without reprocessing from scratch.

Configuration

All thresholds are named parameters -- no magic numbers:

Parameter Default Purpose
split_strategy sentences Unit of window expansion: sentences, paragraphs, or words
min_chunk_tokens 2000 Minimum chunk size before completeness checking begins
max_chunk_tokens 4000 Hard ceiling that triggers force-split
max_expansion_attempts 5 Maximum completeness checks before force-split
summary_aggregation_threshold 4000 Token count of pending summaries that triggers aggregation
summary_count_threshold 8 Number of pending summaries that triggers aggregation
min_group_size 2 Hard minimum for summary groups
max_group_size 5 Soft hint for maximum group size
context_budget_tokens 20000 Hard ceiling for context injected into LLM calls

Model profiles (qwen3:32b, gemma4:latest, etc.) set sensible defaults for token limits and context windows. Adding a new model requires only a profile definition.