SShortSingh.
Back to feed

Crawling six docs sites into RAG chunks shows a few pages can dominate the token budget

0
·2 views

The author crawled 25 pages from each of six popular documentation sites on 3 November 2026 and split the content into token-counted chunks. Across 150 pages, the crawl produced about 394,000 tokens, and on four of the six sites a single page held between 39% and 69% of the total. Pages such as FastAPI's release notes, Stripe's testing reference and n8n's changelog are rarely useful for a support bot and mostly add near-duplicate chunks to a vector index. FastAPI's breadth-first crawl also spent much of its budget on translated home pages, which can return answers in the wrong language. The author notes that tokens-per-word ratios vary widely between sites, so budgets estimated from word counts can be off by about a factor of two.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Free Web Tool Downloads TikTok Videos, MP3 Audio, Photo Slideshows and Batches

A developer has released Viditok, a free web tool for saving public TikTok posts without requiring an account or software installation. Unlike many downloaders that only handle plain videos, it converts video posts to watermark-free HD MP4 or up to 320 kbps MP3, and packages photo slideshows as an MP3 plus a ZIP of all images. A batch mode lets users process up to 20 links at once, and the interface supports six languages, including right-to-left Arabic. The creator notes the tool only works with public content and that most public TikTok videos are not served above HD, so claims of true 4K are typically upscaling. The project is independent of TikTok, and the developer is requesting community feedback on features to add.

0
ProgrammingDEV Community ·

Why Ctrl+C in a coding agent does different things: raw mode and the terminal's ISIG flag

A DEV Community article explains that pressing Ctrl+C in Claude Code can clear a draft or exit depending on context, which a standard Unix SIGINT cannot decide. Normally the kernel's terminal driver converts the Ctrl+C byte (0x03) into a SIGINT sent to the whole foreground process group. When the ISIG flag is disabled, the byte is delivered to the program as ordinary input, so the program chooses the response. The author demonstrates this with stty and a short sleep test, and notes that terminal UIs use raw mode, which clears ISIG, to receive every keystroke immediately. The piece then reconstructs the agent's behaviour in a small Node.js script that handles the Ctrl+C byte itself.

0
ProgrammingDEV Community ·

Why wrapping every API endpoint as an agent tool can backfire

The article argues that exposing each backend endpoint as a separate agent tool creates shallow interfaces that push multi-step logic onto the model. Such designs inflate context with tool schemas, compound error rates across long chains, and leak business rules into prompts that models may ignore. The author recommends deeper, task-shaped tools for customer-facing automation that handles money, with invariants enforced in code. Cited evidence, including a non-peer-reviewed Meta preprint, is described as suggestive rather than a controlled comparison. The piece suggests merging frequently sequential tools and moving prompt rules into tool-level checks as practical steps.

0
ProgrammingDEV Community ·

Grey County Project Links Council Agendas, Recordings and Documents Into Searchable Meeting Records

A civic coding project aims to let residents trace a council decision from its meeting notice through the agenda item, recorded discussion, and supporting documents. Its inventory covered 84 retained Grey County meetings, with 83 having agenda PDFs and 74 listing video URL fields. Because official links can change or go dead, the system gives each meeting a stable identity and preserves file copies under content-based links. When a meeting had an agenda but no recording, the pipeline generated a structured HTML summary from the agenda PDF alone. The team designed the system so an agenda package alone is enough to create a valid, navigable meeting record.