Manuscript Offprint

arXiv:2610.09361

From Chunks to Functional Evidence: Function-Aware Retrieval for EDA Documentation QA

Xiaotian Qiu, Kairui Liu, Shi Chenyi, Jinyuan Deng, Qi Sun, Cheng Zhuo

Abstract

Retrieval-Augmented Generation (RAG) is widely used to ground answers in documents. For complex technical documentation, however, the primary bottleneck is often not model reasoning but a mismatch between a query and the way knowledge is organized for retrieval. This mismatch is pronounced in Electronic Design Automation (EDA) documentation, where the information needed for an answer is scattered across heterogeneous yet tightly coupled artifacts. We therefore redesign the basic retrieval unit of RAG. Instead of operating on isolated chunks or binary relations, we collect typed artifacts into EDA functional units. Each unit is recorded as a hyperedge with links to its source chunks. We then train an encoder to align queries with functional units and combine unit retrieval with direct chunk retrieval. After mapping the selected units back to their sources, a unified reranker chooses the evidence given to the generator. On the newly constructed EDADocEval-QA dataset, our method improves ROUGE-L by 37.1% over Chunk RAG and 55.6% over the strongest graph baseline. On the public ORD-MMBench benchmark, it improves ROUGE-L by 30.0% over the strongest baseline. These results support function-aware evidence organization in the evaluated EDA documentation settings.

1 Introduction

Electronic Design Automation (EDA) tools support the complete circuit design flow through tightly coupled implementation stages (Ajayi et al. 2019). Their documentation exemplifies a class of technical sources with intrinsically complex knowledge organization. Information is distributed across code blocks, parameter tables, figures, procedures, constraints, and descriptive text that may appear in different sections but jointly specify one tool function. We refer to this mixture of heterogeneous evidence forms as multi-type documentation. Answering a practical question often requires composing several such artifacts rather than retrieving one isolated passage, as illustrated in Figure 1.

RAG is a natural way to ground answers in these documents, but its primary bottleneck here is often not model reasoning. It is the mismatch between a question and the way evidence is organized for retrieval. Conventional dense retrievers treat each chunk as an independent unit and assume that vector similarity separates relevant from irrelevant passages. In EDA documentation, topically similar chunks may instead describe different commands, flow stages, or

Figure

Figure 1: An illustrative embedding diagnostic: top-ranked EDA chunks have more tightly clustered similarity scores than the general-domain example, motivating retrieval units that preserve complementary functional roles.

operating conditions. Figure 1 illustrates how repeated domain terminology compresses the score differences among top-ranked chunks. The retrievable unit should therefore preserve which artifacts participate in the same function, as well as where each artifact came from.

This challenge calls for rethinking how knowledge is organized in RAG (Lewis et al. 2020). Chunk RAG retrieves independently encoded passages (Karpukhin et al. 2020). When dependent evidence appears in different sections, this passage-level organization does not preserve their functional grouping. GraphRAG organizes entities and community summaries for global sensemaking (Edge et al. 2024), while HippoRAG uses graph traversal for multi-hop retrieval (Gutiérrez et al. 2024). Neither necessarily retains the source context of a higher-order EDA usage event. Hypergraphs provide a convenient representation in which one unit can connect several artifacts (Feng et al. 2019), but the representation alone does not decide which artifacts belong together. Generic name repetition or local co-occurrence may still connect evidence that is topically similar yet functionally incompatible.

To address these issues, we redesign the basic retrieval unit around EDA functionality. Our framework organizes typed artifacts into functional units, uses a hypergraph to retain their higher-order membership and source provenance, and retrieves the original evidence that supports a question. Such grounded documentation QA also provides an evidence layer for EDA assistants that must select commands, set parameters, and interpret warnings before acting. Our contributions are summarized as follows:

• We characterize the mismatch between conventional retrieval units and EDA documentation: artifacts needed for one answer are functionally coupled but can be separated by chunking or flattened by binary relations.

• We introduce EDA functional units as retrievable knowledge units. Occurrences remain local to their sources before they are grouped around a functional anchor. Hyperedges preserve their types and provenance and support conservative connections across documents.

• We propose query–unit contrastive alignment that distinguishes semantically similar units according to the artifact types available to answer a query.

• We develop a function-aware hybrid retriever that combines functional unit retrieval with direct chunk retrieval and returns a unified evidence context to the generator.

We evaluate our method against representative baselines on the public ORD-MMBench benchmark (Pu et al. 2025) and on EDADocEval-QA, a newly constructed domain-specific dataset. EDADocEval-QA covers parameter lookup, syntax retrieval, procedure synthesis, and constraint analysis. Our method obtains 0.473 ROUGE-L and 93.6 LLM-Score on this dataset, while the public benchmark provides a complementary evaluation of generation and document retrieval.

References (44)

  • OpenROAD: Toward a Self-Driving, Open-Source Digital Layout Implementation Tool Chain
  • HyCE-RAG: Hypergraph Chain-of-Evidence
  • Retrieval-Augmented Generation for Explainable Multi-hop Question Answering. arXiv preprint arXiv:2607.22597. (opens arXiv in a new tab)
  • Chip-Chat: Challenges and Opportunities in Conversational Hardware Design
  • ChipGPT: How Far Are We from Natural Language Hardware Design (opens arXiv in a new tab)
  • M3-Embedding: Multi-Linguality, Multi-Functionality, Multi-Granularity Text Embeddings Through Self-Knowledge Distillation
  • From Local to Global: A Graph RAG Approach to Query-Focused Summarization
  • Hypergraph neural networks
  • LightRAG: Simple and Fast Retrieval-Augmented Generation
  • HippoRAG: Neurobiologically Inspired Long-Term Memory for Large Language Models
  • From RAG to Memory: Non-Parametric Continual Learning for Large Language Models
  • REALM: Retrieval-Augmented Language Model Pre-Training
  • Evidence Units: Ontology-Grounded Document Organization for Parser-Independent Retrieval (opens arXiv in a new tab)
  • Dense Passage Retrieval for Open-Domain Question Answering
  • TechDocRAG: Relation-Preserving Retrieval-Augmented Generation (RAG) for Technical Documents
  • Retrieval-augmented generation for knowledge-intensive nlp tasks
  • BLIP: Bootstrapping Language-Image Pre-training for Unified Vision-Language Understanding and Generation
  • Search-o1: Agentic Search-Enhanced Large Reasoning Models
  • VerilogEval: Evaluating large language models for Verilog code generation
  • ChipNeMo: Domain-Adapted LLMs for Chip Design (opens arXiv in a new tab)
  • RTLLM: An Open-Source Benchmark for Design RTL Generation with Large Language Model
  • HyperGraphRAG: Retrieval-Augmented Generation via Hypergraph-Structured Knowledge Representation
  • Unifying Large Language Models and Knowledge Graphs: A Roadmap
  • MM-GRADE: A Multi-Modal EDA Tool Documentation QA Framework Leveraging Retrieval Augmented Generation
  • Customized Retrieval Augmented Generation and Benchmarking for EDA Tool Documentation QA. In Proceedings of the 43rd IEEE/ACM International Conference on Computer-Aided Design, 116:1–116:9
  • The probabilistic relevance framework: BM25 and beyond
  • A Symmetric Dual Encoding Dense Retrieval Framework for Knowledge-Intensive Visual Question Answering
  • VeriGen: A Large Language Model for Verilog Code Generation
  • Interleaving Retrieval with Chain-of-Thought Reasoning for Knowledge-Intensive Multi-Step Questions
  • ChatCPU: An Agile CPU Design and Verification Platform with LLM. In DAC, 212:1–212:6
  • Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
  • ChatEDA: A Large Language Model Powered Autonomous Agent for EDA. IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems, 43(10): 3184–3197
  • ChipMind: Retrieval-Augmented Reasoning for Long-Context Circuit Design Specifications
  • HyperGCN: A New Method for Training Graph Convolutional Networks on Hypergraphs
  • EchoSight: Advancing Visual-Language Models with Wiki Knowledge
  • Tree of Thoughts: Deliberate Problem Solving with Large Language Models
  • ReAct: Synergizing Reasoning and Acting in Language Models
  • SG-Filter: Enhancing Similar Text Retrieval via Hierarchical Summarized-Semantic Index and Adaptive Filtering
  • VisRAG: Vision-based Retrieval-augmented Generation on Multimodality Documents
  • HKVM-RAG: Key-Value-Separated Hypergraph Evidence Organization for Multi-Hop RAG. arXiv preprint arXiv:2606.07218 (opens arXiv in a new tab)
  • VISTA: Visualized Text Embedding For Universal Multi-Modal Retrieval
  • Only the added document and anchors affected by it were recomputed
  • enables sink clustering during the clock tree synthesis process, which groups clock sinks into clusters to optimize the clock tree structure
  • enables pre-clustering of sinks to create one level of sub-tree before building the H-tree, where each cluster is driven by a buffer that becomes an endpoint of the H-tree structure