hn.today

Show HN: Docxtract – Turn docs into clean LLM context and study guides

github.com3 points0 comments
Screenshot of Show HN: Docxtract – Turn docs into clean LLM context and study guides

Docxtract is a Python tool for crawling documentation sites and turning their pages into compact, structured Markdown for use with language models. It aims to remove navigation, footers, cookie notices, and other webpage clutter while retaining useful material such as code blocks, YAML schemas, tables, and video links, including Mux streams, Loom, and YouTube embeds. The project claims this can cut webpage noise by more than 70 percent. In a sample crawl of 12 lessons from a Warp engineering course, it reports reducing roughly 115,000 tokens of raw HTML to 18,000 tokens of Markdown - an 84 percent reduction.

Beyond extraction, Docxtract can process a collection of pages through a three-stage synthesis pipeline: distilling individual documents, producing an executive synthesis, and assembling a master review. It supports bring-your-own models through interfaces such as Ollama, llama.cpp, LM Studio, and vLLM, as well as OpenAI-compatible cloud endpoints. Users can run it from a command line or a local web interface, and its MCP server exposes crawling, single-page extraction, and synthesis to assistants in tools such as Claude Desktop and Cursor. The project requires Python 3.10 or later and can be installed with pip; its showcased local synthesis took about two minutes with Ollama and llama3.3.

Read on github.com0 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in AI

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.