Pith. sign in

REVIEW 4 cited by

HtmlRAG: HTML is Better Than Plain Text for Modeling Retrieved Knowledge in RAG Systems

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2411.02959 v2 pith:4DW3NSRB submitted 2024-11-05 cs.IR

classification cs.IR
keywords htmlsystemsknowledgeplaintextllmsalleviatebetter
verification ladder T0 review T1 audit T2 compute T3 formal

Signed reviews

No signed human review yet.

0 comments
read the original abstract

Retrieval-Augmented Generation (RAG) has been shown to improve knowledge capabilities and alleviate the hallucination problem of LLMs. The Web is a major source of external knowledge used in RAG systems, and many commercial RAG systems have used Web search engines as their major retrieval systems. Typically, such RAG systems retrieve search results, download HTML sources of the results, and then extract plain texts from the HTML sources. Plain text documents or chunks are fed into the LLMs to augment the generation. However, much of the structural and semantic information inherent in HTML, such as headings and table structures, is lost during this plain-text-based RAG process. To alleviate this problem, we propose HtmlRAG, which uses HTML instead of plain text as the format of retrieved knowledge in RAG. We believe HTML is better than plain text in modeling knowledge in external documents, and most LLMs possess robust capacities to understand HTML. However, utilizing HTML presents new challenges. HTML contains additional content such as tags, JavaScript, and CSS specifications, which bring extra input tokens and noise to the RAG system. To address this issue, we propose HTML cleaning, compression, and a two-step block-tree-based pruning strategy, to shorten the HTML while minimizing the loss of information. Experiments on six QA datasets confirm the superiority of using HTML in RAG systems.

Discussion (0). Continue with ORCID to comment.

Forward citations

Cited by 4 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score. Full citation record

  1. RetroLLM: Empowering Large Language Models to Retrieve Fine-grained Evidence within Generation

    cs.CL 2024-12 conditional novelty 7.0 of 10

    RetroLLM unifies retrieval and generation by having an LLM generate corpus-constrained clues and then fine-grained evidence before answering, outperforming RAG baselines on open-domain QA.

  2. Multi-Modal Requirements Data-based Acceptance Criteria Generation using LLMs

    cs.SE 2025-08 conditional novelty 6.0 of 10

    Multi-modal RAG (text plus UI screenshots) with reward-based polishing generates acceptance criteria from user stories that three industry experts rated near 4/5 on relevance, correctness, and understandability.

  3. WebWalker: Benchmarking LLMs in Web Traversal

    cs.CL 2025-01 conditional novelty 5.0 of 10

    WebWalkerQA measures how well LLM agents traverse websites by clicking subpages, and WebWalker, an explore-critic agent, improves accuracy when added to RAG systems, though all systems remain below 40%.

  4. Overcoming Vision Language Model Challenges in Diagram Understanding: A Proof-of-Concept with XML-Driven Large Language Models Solutions

    cs.SE 2025-02 conditional novelty 4.0 of 10

    A proof-of-concept showing that parsing diagram metadata from Office XML files into text lets LLMs answer diagram questions more reliably than feeding the rendered image to a VLM.

Pith tools