Paper deep dive
From Chunks to Functional Evidence: Function-Aware Retrieval for EDA Documentation QA
Xiaotian Qiu, Kairui Liu, Shi Chenyi, Jinyuan Deng, Qi Sun, Cheng Zhuo
Intelligence
Status: succeeded | Model: Gemma-4-26B-A4B | Prompt: intel-v1 | Confidence: 94%
Last extracted: 10/8/2026, 7:37:07 AM
Summary
The paper introduces a function-aware retrieval framework for Electronic Design Automation (EDA) documentation QA. It addresses the mismatch between standard chunk-based Retrieval-Augmented Generation (RAG) and the complex, multi-artifact nature of EDA docs by organizing typed artifacts into 'functional units' represented as hyperedges. A function-aware encoder aligns queries with these units using contrastive learning, combining unit and direct chunk retrieval for improved evidence selection.
Entities (9)
Relation Signals (5)
Proposed Method â outperforms â Chunk RAG
confidence 96% · Our method improves ROUGE-L by 37.1% over Chunk RAG
Functional Units â representedas â Hypergraph
confidence 95% · Each unit is recorded as a hyperedge with links to its source chunks.
Proposed Method â outperforms â ORD-MMBench
confidence 94% · On the public ORD-MMBench benchmark, it improves ROUGE-L by 30.0% over the strongest baseline.
Function-Aware Encoder â finetunedfrom â Visualized-BGE-M3
confidence 93% · We use pretrained Visualized-BGE-M3 as the Base Semantic Encoder. Applying Low-Rank Adaptation (LoRA)... produces the Function-Aware Encoder.
Function-Aware Encoder â trainson â EDADocEval-QA
confidence 90% · On the newly constructed EDADocEval-QA dataset, our method improves ROUGE-L... We then train an encoder to align queries with functional units
Cypher Suggestions (0)
No Cypher suggestions yet.
Abstract
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.
Tags
Links
- Source: https://arxiv.org/abs/2610.09361v1
- Canonical: https://arxiv.org/abs/2610.09361v1
Trouble viewing inline? Open PDF directly â
Full Text
49,564 characters extracted from source content.
Expand or collapse full text
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. 1Zhejiang University 2Shanghai Innovation Institute 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. 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. 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 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. 2 Related Work LLMs and RAG in EDA LLMs are widely used in EDA, demonstrating immense potential in tasks such as code generation (Liu et al. 2023a; Thakur et al. 2024; Lu et al. 2024), EDA scripting (Wu et al. 2024), CPU design and verification (Wang et al. 2024), and conversational hardware design (Blocklove et al. 2023; Chang et al. 2023). Leading industrial efforts, such as ChipNeMo (Liu et al. 2023b), have further validated the feasibility of domain-adaptive LLMs. However, EDA documentation presents significant challenges for general LLMs due to proprietary protocols, complex parameter constraints, and specific terminologies. LLMs often generate hallucinations or outdated information due to the lack of domain knowledge. RAG addresses this issue by retrieving factual information from external databases (Guu et al. 2020). Recent studies have optimized RAG for EDA by fine-tuning embedding models on domain corpora (Pu et al. 2024). Despite these improvements, most systems still organize evidence as independent chunks or generic relations rather than explicit EDA functional roles. Evidence Organization in RAG A key characteristic of EDA documents is the tight coupling of multi-type entities. Existing RAG paradigms make different trade-offs when handling this characteristic. Chunk-based RAG treats documents as linear text sequences, utilizing sparse retrieval (e.g., BM25 (Robertson and Zaragoza 2009)) or dense retrieval (e.g., DPR (Karpukhin et al. 2020)) to fetch segments. This approach can separate cross-entity dependencies. A functional definition often appears in one section, while its timing constraints appear in another. Chunk-based retrieval can therefore return isolated fragments. Consequently, the LLM may receive an incomplete evidence chain (Xing et al. 2026). Graph-based RAG extracts entities and relations to construct knowledge graphs (Pan et al. 2024). GraphRAG uses entity graphs and community summaries for global sensemaking (Edge et al. 2024), while HippoRAG uses knowledge graphs and Personalized PageRank for multi-hop retrieval (GutiĂ©rrez et al. 2024). In the EDA setting studied here, however, entity- or relation-level retrieval may still separate a higher-order usage event in which code blocks, parameter tables, and procedural descriptions jointly support an answer. Compressing detailed procedural descriptions or code blocks into relational summaries can also omit source context needed for generation. Structured Evidence Organization Recent retrieval methods increasingly organize evidence above the level of independent chunks. SG-Filter builds a hierarchical summarized-semantic index to distinguish otherwise similar passages (Ye et al. 2025). Evidence Units groups visual assets with their contextual text through ontology-grounded document organization (Han 2026), while TechDocRAG preserves relations among clauses, tables, figures, and procedural steps in technical documents (Lee and Choi 2026). Hypergraphs offer another representation: a single hyperedge can connect multiple artifacts (Feng et al. 2019; Yadati et al. 2019), and recent systems use this property to organize higher-order evidence for multi-hop retrieval (Luo et al. 2025; Zhang and Ma 2026; An et al. 2026). Our framework uses this representation to retain source-localized EDA occurrences, but defines retrieval units around tool functions and learns to match queries with the artifact roles available in each unit. Figure 2: Framework overview. (a) Typed, source-localized EDA artifacts are organized into functional units, each represented as a hyperedge linked to its source chunks. (b) A function-aware hybrid retriever searches functional units and source chunks, after which a unified reranker selects the generation evidence. (c) Queryâunit contrastive alignment trains the function-aware encoder. Reasoning-Augmented RAG Reasoning-enhanced frameworks such as Chain-of-Thought (CoT) (Wei et al. 2022) and Tree of Thoughts (ToT) (Yao et al. 2023a) improve LLM reasoning by decomposing problems into intermediate steps. IRCoT (Trivedi et al. 2023) interleaves retrieval with reasoning, while ReAct (Yao et al. 2023b) interleaves reasoning with external actions such as search. Their efficacy still depends on the evidence retrieved at each step. Using generic vector-based RAG or web search APIs proves ineffective for the specialized and proprietary nature of EDA documentation. Our framework is complementary: it encodes typed documentation dependencies in the retrieval index so that a reasoning method can begin from retrieved units with intact source context. 3 Method Problem Formulation and Overview We formulate EDA documentation QA as an evidence retrieval problem. Given a query q and document chunks C, the system selects a generation context qâC_q that covers the facts and artifact types needed for the answer. Fixed chunks often separate evidence that belongs to the same EDA operation, while binary relations divide an event involving several complementary roles. Before receiving a query, we organize the corpus into source chunks and EDA functional units. A unit groups compatible occurrences around one canonical function while retaining the source location of every artifact. We represent it as a typed hyperedge linked to its source chunks. Our framework has three components. First, EDA functional unit organization groups artifacts that play complementary roles in the same operation. Second, queryâunit contrastive alignment learns which artifact combinations distinguish one function from nearby alternatives. Third, function-aware evidence retrieval searches the unit and chunk indexes in parallel. Once selected for a query, the returned units and chunks become candidate evidence. Selected units are expanded to their source chunks, and a unified reranker chooses the top-K chunks as qC_q. EDA Functional Unit Organization We first identify typed artifacts and organize them into functional units before any query is received. The resulting index is encoded as a hypergraph â=(,â°hyper)H=(V,E_hyper): a node represents a documentation artifact, and a hyperedge records the artifacts and source chunks that constitute one unit. The hypergraph is therefore the representation of the index; the substantive construction decision is which artifacts are allowed to form a functional unit. Occurrences within a source. Construction begins from document structure rather than a whole-corpus lexical graph. A deterministic Markdown parser records headings, block boundaries, line spans, and image references. Blocks under the same section are grouped locally, with code blocks, ordered procedures, and diagnostic messages serving as natural boundaries between distinct usage events. Very short neighboring segments are merged only within the same document. This produces occurrence candidates whose provenance is known before semantic extraction. Each candidate is then decomposed into typed artifacts. Our schema T covers code, inline commands, tables, figures, procedures, descriptive text, constraints, diagnostics, and file artifacts. Deterministic rules identify explicit structures such as code blocks and tables, while an LLM identifies semantic spans such as procedures and constraints. For every artifact v, we retain its content, artifact type ÏâĄ(v)Ï(v), source document, source chunk, and extraction metadata. Artifact type and functional role are related but not interchangeable. ÏâĄ(v)Ï(v) describes the evidence form, such as table or codeblock. A functional role describes how that artifact participates in a particular usage event, for example as the operation, parameter specification, condition, example, or diagnostic consequence. We infer this relation from the surrounding source context and its functional anchor; it is not a second supervised node label. This distinction matters later because the training objective operates on observable artifact types, not on latent role names. Formally, a functional occurrence from source region r is or=(ar,r,r,pr),o_r=(a_r,V_r,C_r,p_r), (1) where ara_r is a command or file anchor, rV_r contains the typed artifacts in that local event, rC_r contains its source chunks, and prp_r stores document and line provenance. This definition is stronger than local word co-occurrence: the grouped artifacts must belong to one structural source region and remain traceable to it. Functional units across sources. An occurrence within one source already forms a useful unit. Some functions, however, are described across manuals: one document may define a command while another provides a parameter table or worked example. We connect such occurrences only through an admissible canonical anchor. Let âĄ(a)=or:normâĄ(ar)=aO(a)=\o_r:norm(a_r)=a\. A unit spanning documents is created only when âĄ(a)O(a) contains at least two source occurrences from different documents and their union contains at least two artifact types. The linker accepts stable command and file anchors, filters generic placeholders and language type aliases, and caps the number of occurrences attached to one anchor. These restrictions prevent frequent but irrelevant strings from becoming hubs across the corpus. Each retained unit is represented as a hyperedge eââ°hypere _hyper: e=(âĄ(e),SâĄ(e),chunksâĄ(e),PâĄ(e)),e=(V(e),S(e),chunks(e),P(e)), (2) where âĄ(e)âV(e) is the artifact set, SâĄ(e)S(e) is its retrieval summary, chunksâĄ(e)âchunks(e) is the deduplicated set of original chunks, and PâĄ(e)P(e) retains the contributing occurrences and source references. We serialize SâĄ(e)S(e) by artifact type so that the unit embedding retains âĄ(e)=ÏâĄ(v)âŁvââĄ(e)T(e)=\Ï(v) v (e)\. The summary is used for unit retrieval only; the generator receives the original source chunks reached through chunksâĄ(e)chunks(e). Validation and updates. Structural checks reject empty units, missing source references, invalid type labels, and links without sufficient type diversity. They establish structural validity and provenance, not the semantic accuracy of LLM extraction. Construction can resume from its cache, so validated outputs survive an interrupted call. When a document is added or changed, the parser and extractor run only on its chunks. The linker then resolves their anchors against the retained index and recomputes the affected units; a deletion follows the same provenance links in reverse. Consequently, adding the 33rd document does not require extracting the unchanged 32-document corpus again. Concrete example. Consider the define_pdn_grid command in OpenROAD. Its default -starts_with: GROUND, syntax, and strap-orientation constraints occur in different source regions. The canonical command anchor connects the parameter table, code block, and constraint paragraph, while their source IDs remain intact. The resulting functional unit is represented by a hyperedge with type composition table,codeblock,text_paragraph\ table, codeblock, text\_paragraph\ and backtracks to all three chunks. QueryâUnit Contrastive Alignment Effective retrieval requires more than locating semantically similar text. It must also identify functional units whose available artifact types can support the query. Since EDA documents tend to cluster more tightly in the embedding space, relying solely on semantic similarity often fails to distinguish among candidates, resulting in recalls that appear semantically relevant but lack the required evidence forms. Our contrastive objective aligns queries with units that contain the required combination of types while preserving general semantic similarity. We use the structured summary SâĄ(e)S(e) as the textual interface for encoding each functional unit. For units that include visual or structured entities, we serialize them into the multimodal input format so that the unit embedding reflects both semantic content and artifact type. This shifts supervision from local chunk matching to queryâunit alignment. Training queries are constructed from functional units, so each query q and its reference unit set qP_q share the target type combination by construction. We learn the alignment through contrastive positive and negative pairs together with an artifact coverage ranking objective. For each query, we select one unit from qP_q as the positive sample e+e^+ and sample âĄ(q)N(q) from the remaining units. Hard negatives are semantically plausible but lack a critical artifact type; random negatives preserve general semantic discrimination. Hard negatives capture a common failure mode in multi-type documentation: candidates can be topically related yet miss evidence needed for an answer. For instance, a purely descriptive paragraph may be semantically relevant to a parameter query but lacks the concrete table row that specifies defaults or ranges. By contrasting such candidates against the positive unit, the model learns to prefer usable type combinations within a narrow semantic neighborhood. We use a mixed sampler: units with partial overlap provide difficult type negatives, while semantically hard or random units keep the learned space from collapsing into a type classifier. The query is always textual, whereas a candidate unit may combine textual and visual content. This asymmetry teaches the query representation to select the evidence forms available in a unit without requiring a separate type router at inference. We use pretrained Visualized-BGE-M3 as the Base Semantic Encoder. Applying Low-Rank Adaptation (LoRA) with the objective below produces the Function-Aware Encoder. Both encoders accommodate textual and visual entities in multimodal EDA documents. The semantic component follows the InfoNCE formulation: âNCEâ(q)=âlogâĄexpâĄ(s+/Ï)expâĄ(s+/Ï)+âeââexpâĄ(sâ/Ï)L_NCE(q)=- (s^+/Ï) (s^+/Ï)+ _e^- (s^-/Ï) (3) where s+=simâĄ(q,e+)s^+=sim(q,e^+), sâ=simâĄ(q,eâ)s^-=sim(q,e^-), and Ï is the temperature. Let qT_q denote the artifact types required by training query q and âĄ(e)T(e) the types present in candidate unit e. We define Îșqâ(e)=|qâ©âĄ(e)|/|q| _q(e)=|T_q (e)|/|T_q|, with Îșqâ(e)=1 _q(e)=1 when qT_q is empty. For the positive and sampled negative candidates, let si=simâĄ(q,ei)/Ïs_i=sim(q,e_i)/Ï and âq=(i,j):iâĄ<j,|Îșqâ(ei)âÎșqâ(ej)|>â0.01R_q=\(i,j):i<j,\ | _q(e_i)- _q(e_j)|>0.01\. For each (i,j)ââq(i,j) _q, write ÎiâjÎș=Îșqâ(ei)âÎșqâ(ej) ^Îș_ij= _q(e_i)- _q(e_j) and Îiâjs=siâsj ^s_ij=s_i-s_j. A pairwise margin term then orders candidates with different artifact coverage: âtype=1|âq|ââ(i,j)ââqmaxâĄ(0,mâsgnâĄ(ÎiâjÎș)âÎiâjs).L_type= 1|R_q|\! _(i,j) _q\! \! (0,m-sgn( ^Îș_ij) ^s_ij ). (4) We set âtype=0L_type=0 when âqR_q is empty and use margin m=0.1m=0.1; the final objective is â=âNCE+λââtypeL=L_NCE+ _type. At inference time, the model does not explicitly predict a type set. Instead, the learned embedding space recalls functional units whose artifact composition matches the query. Function-Aware Evidence Retrieval The function-aware hybrid retriever uses two complementary indices. The unit index captures the evidence forms associated with an EDA operation. The chunk index preserves access to localized details. Searching both is important: functional units provide broader coverage, whereas direct chunk retrieval can recover a precise detail that is weakly represented in a unit summary. Given q, we retrieve the top-kpk_p functional units using the Function-Aware Encoder and expand each unit through chunksâ(e)chunks(e). Expansion is limited to the source chunks that belong to the selected units; it does not traverse unrelated neighbors. In parallel, the Base Semantic Encoder retrieves the top-kck_c source chunks. At this point, the retrieved units and chunks become candidate evidence. We merge and deduplicate their source chunks to obtain candC_cand. The unit path is not an unrestricted graph walk. The explicit chunksâĄ(e)chunks(e) mapping produces a candidate set conditioned on the function retrieved for the query. This prevents a unit with a high score from pulling in unrelated neighbors that merely share a generic entity. The chunk path plays the complementary role: it can recover a local command option, table row, or warning that is highly relevant even when its unit summary is broad. Their union separates two decisions that a single retriever would conflate: locating the relevant function and locating the precise source span within or near that function. The unified evidence reranker scores every candidate in both encoder spaces: sâĄ(c)=αâsimâ(qbase,cbase)+(1âα)âsimâ(qfunc,cfunc)s(c)=α\,sim(q_base,c_base)+(1-α)\,sim(q_func,c_func) (5) where α=0.4α=0.4 and each queryâchunk similarity is computed in one internally aligned encoder space. We select the top-K chunks as the generation context qC_q. The Function-Aware Encoder carries the type preference learned in Section 3, while the Base Semantic Encoder preserves local semantic matching. Their fusion determines the source chunks seen by the generator rather than using unit retrieval only as an auxiliary signal. Because both paths terminate at source chunks, generation is grounded in the same evidence format used by conventional RAG. Functional units change how candidate evidence is organized and selected, not what is presented to the generator. 4 Experiments Experimental Setup Evaluation settings. We use two complementary EDA documentation QA settings. (1) EDADocEval-QA contains 100 QA pairs over 33 OpenROAD technical documents (324K tokens), with 25 questions in each of four categories. The four query types have distinct evidence compositions: Parameter Lookup (PL), Syntax Retrieval (SR), Procedure Synthesis (PS), and Debug & Constraint (DC). These categories require different combinations of structured and textual evidence. (2) ORD-MMBench (Pu et al. 2025) is a public multi-modal EDA benchmark with text and screenshot queries over EDA documentation; we report overall generation quality and official document-retrieval performance. ORD-MMBench provides an independent public evaluation within the broader EDA documentation setting. Baselines. We consider three families of baselines that represent mainstream RAG paradigms. Chunk-level RAG includes Chunk RAG (Lewis et al. 2020), which performs dense retrieval over fixed-length document chunks. Graph-based RAG includes GraphRAG (Edge et al. 2024), which organizes evidence with an entity-relation graph and community-based summarization, LightRAG (Guo et al. 2025), which targets lightweight graph maintenance, HippoRAG 2 (GutiĂ©rrez et al. 2025), which incorporates memory-augmented retrieval, and HyperGraphRAG (Luo et al. 2025), which extends graph retrieval to multi-ary relations. Reasoning-augmented frameworks include ReAct (Yao et al. 2023b), which interleaves reasoning with tool use, and Search-o1 (Li et al. 2025), which augments reasoning with agentic search. For ORD-MMBench, we use the benchmarkâs reported baselines: VisRAG (Yu et al. 2025), EchoSight (Yan and Xie 2024), RAG-EDA (Pu et al. 2024), and VISTA-RAG (Zhou et al. 2024), which span text-based and multimodal retrieval. Implementation. We use Qwen2.5-72B as the LLM backbone for answer generation. The retrieval encoder is Visualized-BGE-M3 (873M parameters) fine-tuned with LoRA (rank=8, α=16, dropout=0.1) on a single NVIDIA RTX 4090 GPU, yielding 786K trainable parameters (0.09% of total). Training data consists of 1,250 queryâunit pairs automatically generated from 250 training packs, with an 85/15 train/validation split. The contrastive objective combines InfoNCE with a type-aware margin ranking loss weighted by λ=0.3λ=0.3 (temperature Ï=0.07Ï=0.07, 7 negatives per query using mixed hard-negative mining). Training runs for 10 epochs with AdamW (lr=10â410^-4) and early stopping; the best checkpoint is selected at epoch 8 (val loss = 0.735). For functional-unit retrieval, we set top-M=10; for chunk retrieval, top-N=5; the final context uses top-K=5 after unified reranking. Unless a row is explicitly labeled DeepSeek-R1, EDADocEval-QA systems use Qwen2.5-72B for answer generation; all systems use the same 33-document corpus and QA/evaluation protocol, while retaining their method-specific evidence organization. For ORD-MMBench, we use GPT-4o as the generation backbone to align with the original benchmark configuration. Metrics. We report BLEU (Papineni et al. 2002), ROUGE-L (Lin 2004), and a 0â100 LLM-Score that sums five 0â20 ratings for correctness, completeness, relevance, professionalism, and conciseness against the reference answer. Because Qwen2.5-72B is both a generator and the LLM-Score judge for several systems, this metric is complementary rather than independent factuality evidence; we therefore interpret it together with lexical and retrieval metrics. Main Results Method ROUGE-L â BLEU â LLM-Score â Chunk-level RAG Chunk RAG (Qwen2.5-72B) (Lewis et al. 2020) 0.345 0.052 88.3 Chunk RAG (DeepSeek-R1) (Lewis et al. 2020) 0.327 0.097 87.5 Graph-based RAG GraphRAG (Edge et al. 2024) 0.226 0.050 87.8 LightRAG (Guo et al. 2025) 0.219 0.024 92.8 HyperGraphRAG (Luo et al. 2025) 0.304 0.094 77.2 HippoRAG 2 (GutiĂ©rrez et al. 2025) 0.301 0.168 88.0 Reasoning framework ReAct (Yao et al. 2023b) 0.374 0.091 84.7 Search-o1 (Li et al. 2025) 0.283 0.044 89.9 Ours 0.473 0.189 93.6 Table 1: Main results on EDADocEval-QA. LLM-Score is a five-part quality score (0â100) evaluated by Qwen2.5-72B. Best results are in bold. Table 1 reports results on EDADocEval-QA under a unified RAG setting. We next analyze component contributions and construction cost before evaluating generation and retrieval on the public ORD-MMBench benchmark. As shown in Table 1, our method achieves ROUGE-L 0.473, BLEU 0.189, and LLM-Score 93.6 on EDADocEval-QA, ranking first on all three metrics. Compared with Chunk RAG using Qwen2.5-72B, it improves ROUGE-L by 0.128 (0.345â 0.473), BLEU by 0.137 (0.052â 0.189), and LLM-Score by 5.3 points (88.3â 93.6). The simultaneous increase in lexical metrics and LLM-Score is consistent with improved alignment to answer-critical details, although the LLM-based score is not independent factuality evidence. Reasoning-augmented methods provide a strong baseline: ReAct achieves ROUGE-L 0.374, outperforming most retrieval-only baselines, yet still trails our method by 0.099 in ROUGE-L and 0.098 in BLEU. This pattern is consistent with evidence organization remaining important when support is fragmented across heterogeneous artifact types; our functional units explicitly target completeness across evidence types. We also observe metric divergence where some methods obtain high LLM-Score but low lexical metrics. For example, LightRAG reaches LLM-Score 92.8 but only 0.219 ROUGE-L and 0.024 BLEU. The metrics therefore capture different properties of the generated answers; without answer-level analysis, their disagreement does not identify a single cause. Our method improves lexical metrics together with LLM-Score, which is consistent with retrieving both complementary evidence and answer details. Ablation Study Configuration ROUGE-L Î Chunk RAG 0.345 â + Functional unit organization 0.426 +23% + Function-aware hybrid retrieval 0.461 +34% + Queryâunit alignment 0.473 +37% Table 2: Cumulative ablation of the three method components. We ablate functional unit organization, hybrid retrieval, and queryâunit alignment on EDADocEval-QA. As shown in Table 2, organizing the corpus into functional units provides the largest gain, improving ROUGE-L from 0.345 to 0.426 (an increase of 0.081, or 23%). This indicates that grouping artifacts by their functional roles mitigates evidence fragmentation. This is consistent with EDA queries requiring parameters, code snippets, and procedural descriptions that participate in the same function but occur in different document regions. The function-aware hybrid retriever further raises ROUGE-L to 0.461, an increase of 0.035 over functional unit retrieval alone. This result indicates that source chunks complement functional units in this setup. Queryâunit alignment adds 0.012, reaching 0.473. Since this final increment is small and no confidence interval is available, we do not interpret it as a statistically established standalone gain. Construction and Retrieval Cost We measured hypergraph construction on the full 33-document corpus using Qwen3.6-27B. The pipeline processed 404 chunks and extracted 3,650 typed nodes. Every chunk retained its source location and cached metadata, none required fallback processing, and all structural consistency checks passed. We did not manually label extraction accuracy, so this result verifies index completeness and internal consistency rather than semantic correctness. Building the index required 427,824 LLM tokens and 1,668.0 seconds, with peak RSS of 84.0 MiB. At query time, the function-aware hybrid retriever reduced the average generation context from 1,697 to 1,415 tokens, a reduction of 16.6%, while retrieval latency increased from 20.69 to 27.67 ms. Incremental updates and parser robustness. To test whether the index can absorb new material without rebuilding the full corpus, we first constructed it from 32 documents and then added the remaining document. The updater reused 402 existing units and rebuilt two. All seven semantic outputs matched those produced by rebuilding the index from all 33 documents. We also applied four formatting changes to the source Markdown, including alternative code fences and repeated blank lines. Every variant produced the same semantic graph, containing 404 hyperedges and 2,481 canonical nodes, covered all 33 documents, and retained no invalid units. These experiments test index maintenance and parser stability, not the semantic precision or recall of extracted entities. ORD-MMBench Results We evaluate on the public ORD-MMBench benchmark using GPT-4o as the generation backbone to align with the original configuration. Method LLM-Score BLEU ROUGE-L VisRAG 20.4 0.084 0.225 EchoSight 57.9 0.139 0.276 RAG-EDA 49.1 0.134 0.268 VISTA-RAG 69.6 0.180 0.317 Ours 79.6 0.240 0.412 Table 3: Overall ORD-MMBench generation results. Baseline values are from M-GRADE (Pu et al. 2025). As shown in Table 3, our method achieves the best overall performance, with an LLM-Score of 79.6, BLEU of 0.240, and ROUGE-L of 0.412. Compared with the strongest baseline VISTA-RAG, it improves overall ROUGE-L by 0.095 (0.317â 0.412), BLEU by 0.060 (0.180â 0.240), and LLM-Score by 10.0 points (69.6â 79.6). Document retrieval reaches Recall@1/5 of 0.700/0.917 versus 0.679/0.896 for M-GRADE, providing an independent public retrieval comparison alongside the generation results. ORD-MMBench assigns one target document to each query, so its official retrieval metric is document-level Recall@K. We compare BGE-M3 (Chen et al. 2024), RAG-EDA (Pu et al. 2024), DEDR (Salemi, Pizzorno, and Zamani 2023), BLIP (Li et al. 2022), VisRAG (Yu et al. 2025), EchoSight (Yan and Xie 2024), Visualized-BGE-M3 (Zhou et al. 2024), and M-GRADE (Pu et al. 2025). Method R@1 R@2 R@3 R@4 R@5 BGE-M3 0.590 0.694 0.731 0.761 0.776 RAG-EDA 0.530 0.612 0.679 0.724 0.739 DEDR 0.112 0.187 0.231 0.284 0.299 BLIP 0.127 0.209 0.276 0.299 0.313 VisRAG 0.025 0.042 0.050 0.083 0.108 EchoSight 0.383 0.492 0.583 0.625 0.667 Visualized-BGE-M3 0.582 0.716 0.739 0.761 0.799 M-GRADE 0.679 0.828 0.843 0.866 0.896 Ours 0.700 0.850 0.858 0.883 0.917 Table 4: Document retrieval on ORD-MMBench. Baseline values are from M-GRADE (Pu et al. 2025). As detailed in Table 4, the retrieval advantage is consistent but modest at every cutoff: the margin over M-GRADE ranges from 0.015 to 0.022. Text-oriented retrievers remain substantially stronger than vision-only retrieval on this benchmark. These results support evidence coverage as one contributor to the generation gains, rather than attributing the full difference to the hypergraph alone. Discussion Table 1 compares complete systems under a shared corpus, question set, and evaluation protocol; the DeepSeek-R1 row is the only explicitly labeled generator change. Since retriever adaptation differs across baseline families, this table measures end-to-end performance rather than the isolated effect of hypergraph structure. The cumulative ablation offers a more direct comparison within our framework, while ORD-MMBench tests transfer to a public EDA benchmark. These results do not establish generality beyond technical EDA documentation. The method also introduces a practical trade-off. Retrieving functional units alongside source chunks reduces the context sent to the generator but adds retrieval latency. Direct chunk retrieval remains useful when one local passage is sufficient or construction misses an occurrence. The reported results measure answer quality, document retrieval, construction consistency, and runtime cost, but not the semantic accuracy of intermediate extraction. Each table entry comes from one completed evaluation; we report neither multi-seed averages nor statistical significance. 5 Conclusion We presented a framework that organizes typed EDA artifacts into functional units and uses queryâunit alignment with hybrid retrieval to select evidence from functional units and source chunks. It improves EDADocEval-QA ROUGE-L by 37% over Chunk RAG and transfers to ORD-MMBench. The study remains limited to one domain-specific dataset and one public EDA benchmark; construction requires offline LLM extraction, and hybrid retrieval reduces generation context at the cost of latency. Future work should evaluate extraction accuracy and additional EDA tool ecosystems. References Ajayi et al. (2019) Ajayi, T.; Blaauw, D.; Chan, T.-B.; Cheng, C.-K.; Chhabria, V. A.; Choo, D.-K.; Coltella, M.; Dobre, S.; Dreslinski, R.; Fogaça, M.; et al. 2019. OpenROAD: Toward a Self-Driving, Open-Source Digital Layout Implementation Tool Chain. In Proceedings of Government Microcircuit Applications and Critical Technology Conference, 1105â1110. An et al. (2026) An, H.-Y.; Zhang, Y.-J.; Liang, C.-W.; Zhang, T.-Y.; Ding, J.; Wu, Y.-L.; Li, A.-B.; Su, W.-C.; Saifullah; and Wang, M. 2026. HyCE-RAG: Hypergraph Chain-of-Evidence Retrieval-Augmented Generation for Explainable Multi-hop Question Answering. arXiv preprint arXiv:2607.22597. Blocklove et al. (2023) Blocklove, J.; et al. 2023. Chip-Chat: Challenges and Opportunities in Conversational Hardware Design. In MLCAD. Chang et al. (2023) Chang, K.; Wang, Y.; Ren, H.; Wang, M.; Liang, S.; Han, Y.; Li, H.; and Li, X. 2023. ChipGPT: How Far Are We from Natural Language Hardware Design. arXiv preprint arXiv:2305.14019. Chen et al. (2024) Chen, J.; Xiao, S.; Zhang, P.; Luo, K.; Lian, D.; and Liu, Z. 2024. M3-Embedding: Multi-Linguality, Multi-Functionality, Multi-Granularity Text Embeddings Through Self-Knowledge Distillation. In Findings of the Association for Computational Linguistics: ACL 2024, 2318â2335. Edge et al. (2024) Edge, D.; Trinh, H.; Cheng, N.; Bradley, J.; Chao, A.; Mody, A.; Truitt, S.; Metropolitansky, D.; Ness, R. O.; and Larson, J. 2024. From Local to Global: A Graph RAG Approach to Query-Focused Summarization. arXiv preprint arXiv:2404.16130. Feng et al. (2019) Feng, Y.; et al. 2019. Hypergraph neural networks. In AAAI. Guo et al. (2025) Guo, Z.; et al. 2025. LightRAG: Simple and Fast Retrieval-Augmented Generation. In Findings of the Association for Computational Linguistics: EMNLP 2025, 10746â10761. GutiĂ©rrez et al. (2024) GutiĂ©rrez, B. J.; Shu, Y.; Gu, Y.; Yasunaga, M.; and Su, Y. 2024. HippoRAG: Neurobiologically Inspired Long-Term Memory for Large Language Models. In Advances in Neural Information Processing Systems, volume 37. GutiĂ©rrez et al. (2025) GutiĂ©rrez, B. J.; Shu, Y.; Qi, W.; Zhou, S.; and Su, Y. 2025. From RAG to Memory: Non-Parametric Continual Learning for Large Language Models. In ICML. Guu et al. (2020) Guu, K.; et al. 2020. REALM: Retrieval-Augmented Language Model Pre-Training. In ICML. Han (2026) Han, Y. 2026. Evidence Units: Ontology-Grounded Document Organization for Parser-Independent Retrieval. arXiv preprint arXiv:2604.00500. Karpukhin et al. (2020) Karpukhin, V.; et al. 2020. Dense Passage Retrieval for Open-Domain Question Answering. In EMNLP. Lee and Choi (2026) Lee, S.; and Choi, M. 2026. TechDocRAG: Relation-Preserving Retrieval-Augmented Generation (RAG) for Technical Documents. AI, 7(5): 161. Lewis et al. (2020) Lewis, P.; et al. 2020. Retrieval-augmented generation for knowledge-intensive nlp tasks. In NeurIPS. Li et al. (2022) Li, J.; Li, D.; Xiong, C.; and Hoi, S. 2022. BLIP: Bootstrapping Language-Image Pre-training for Unified Vision-Language Understanding and Generation. In Proceedings of the 39th International Conference on Machine Learning, volume 162 of Proceedings of Machine Learning Research, 12888â12900. PMLR. Li et al. (2025) Li, X.; Dong, G.; Jin, J.; Zhang, Y.; Zhou, Y.; Zhu, Y.; Zhang, P.; and Dou, Z. 2025. Search-o1: Agentic Search-Enhanced Large Reasoning Models. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, 5420â5438. Lin (2004) Lin, C.-Y. 2004. ROUGE: A Package for Automatic Evaluation of Summaries. In Text Summarization Branches Out, 74â81. Liu et al. (2023a) Liu, M.; Pinckney, N.; Khailany, B.; and Ren, H. 2023a. VerilogEval: Evaluating large language models for Verilog code generation. In ICCAD. Liu et al. (2023b) Liu, M.; et al. 2023b. ChipNeMo: Domain-Adapted LLMs for Chip Design. arXiv preprint arXiv:2311.00176. Lu et al. (2024) Lu, Y.; et al. 2024. RTLLM: An Open-Source Benchmark for Design RTL Generation with Large Language Model. In ASP-DAC. Luo et al. (2025) Luo, H.; E, H.; Chen, G.; Zheng, Y.; Wu, X.; Guo, Y.; Lin, Q.; Feng, Y.; Kuang, Z.; Song, M.; Zhu, Y.; and Luu, A. T. 2025. HyperGraphRAG: Retrieval-Augmented Generation via Hypergraph-Structured Knowledge Representation. In Advances in Neural Information Processing Systems, volume 38. Pan et al. (2024) Pan, S.; et al. 2024. Unifying Large Language Models and Knowledge Graphs: A Roadmap. IEEE Transactions on Knowledge and Data Engineering. Papineni et al. (2002) Papineni, K.; Roukos, S.; Ward, T.; and Zhu, W.-J. 2002. BLEU: A Method for Automatic Evaluation of Machine Translation. In ACL, 311â318. Pu et al. (2025) Pu, Y.; He, Z.; Lin, S.; Qin, J.; Zhang, X.; Han, H.; Zheng, H.; Jiang, Y.; Zhuo, C.; Sun, Q.; et al. 2025. M-GRADE: A Multi-Modal EDA Tool Documentation QA Framework Leveraging Retrieval Augmented Generation. In 2025 IEEE/ACM International Conference On Computer Aided Design (ICCAD), 1â9. IEEE. Pu et al. (2024) Pu, Y.; He, Z.; Qiu, T.; Wu, H.; and Yu, B. 2024. 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. Robertson and Zaragoza (2009) Robertson, S.; and Zaragoza, H. 2009. The probabilistic relevance framework: BM25 and beyond. Foundations and Trends in Information Retrieval. Salemi, Pizzorno, and Zamani (2023) Salemi, A.; Pizzorno, J. A.; and Zamani, H. 2023. A Symmetric Dual Encoding Dense Retrieval Framework for Knowledge-Intensive Visual Question Answering. In Proceedings of the 46th International ACM SIGIR Conference on Research and Development in Information Retrieval, 110â120. Thakur et al. (2024) Thakur, S.; Ahmad, B.; Pearce, H.; Tan, B.; Dolan-Gavitt, B.; Karri, R.; and Garg, S. 2024. VeriGen: A Large Language Model for Verilog Code Generation. ACM Transactions on Design Automation of Electronic Systems, 29(3): 46:1â46:31. Trivedi et al. (2023) Trivedi, H.; Balasubramanian, N.; Khot, T.; and Sabharwal, A. 2023. Interleaving Retrieval with Chain-of-Thought Reasoning for Knowledge-Intensive Multi-Step Questions. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), 10014â10037. Wang et al. (2024) Wang, X.; Wan, G.-W.; Wong, S.-Z.; Zhang, L.; Liu, T.; Tian, Q.; and Ye, J. 2024. ChatCPU: An Agile CPU Design and Verification Platform with LLM. In DAC, 212:1â212:6. Wei et al. (2022) Wei, J.; Wang, X.; Schuurmans, D.; Bosma, M.; Ichter, B.; Xia, F.; Chi, E. H.; Le, Q. V.; and Zhou, D. 2022. Chain-of-Thought Prompting Elicits Reasoning in Large Language Models. NeurIPS. Wu et al. (2024) Wu, H.; He, Z.; Zhang, X.; Yao, X.; Zheng, S.; Zheng, H.; and Yu, B. 2024. 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. Xing et al. (2026) Xing, C.; Wong, S.; Wan, X.; Lu, Y.; Zhang, M.; Ma, Z.; Qi, L.; Li, Z.; Guan, N.; Jiang, Z.; Wang, X.; and Yang, J. 2026. ChipMind: Retrieval-Augmented Reasoning for Long-Context Circuit Design Specifications. Proceedings of the AAAI Conference on Artificial Intelligence, 40(2): 1337â1345. Yadati et al. (2019) Yadati, N.; et al. 2019. HyperGCN: A New Method for Training Graph Convolutional Networks on Hypergraphs. In NeurIPS. Yan and Xie (2024) Yan, Y.; and Xie, W. 2024. EchoSight: Advancing Visual-Language Models with Wiki Knowledge. In Findings of the Association for Computational Linguistics: EMNLP 2024, 1538â1551. Yao et al. (2023a) Yao, S.; Yu, D.; Zhao, J.; Shafran, I.; Griffiths, T. L.; Cao, Y.; and Narasimhan, K. 2023a. Tree of Thoughts: Deliberate Problem Solving with Large Language Models. NeurIPS. Yao et al. (2023b) Yao, S.; Zhao, J.; Yu, D.; Du, N.; Shafran, I.; Narasimhan, K.; and Cao, Y. 2023b. ReAct: Synergizing Reasoning and Acting in Language Models. In International Conference on Learning Representations. Ye et al. (2025) Ye, J.; Liu, J.; Zhang, H.; Sheng, M.; Yang, T.; Xu, J.; Li, J.; Wang, Y.; and Dai, G. 2025. SG-Filter: Enhancing Similar Text Retrieval via Hierarchical Summarized-Semantic Index and Adaptive Filtering. In Proceedings of the 34th ACM International Conference on Information and Knowledge Management, 3866â3876. Yu et al. (2025) Yu, S.; Tang, C.; Xu, B.; Cui, J.; Ran, J.; Yan, Y.; Liu, Z.; Wang, S.; Han, X.; Liu, Z.; and Sun, M. 2025. VisRAG: Vision-based Retrieval-augmented Generation on Multi-modality Documents. In The Thirteenth International Conference on Learning Representations. Zhang and Ma (2026) Zhang, M.; and Ma, Y. 2026. HKVM-RAG: Key-Value-Separated Hypergraph Evidence Organization for Multi-Hop RAG. arXiv preprint arXiv:2606.07218. Zhou et al. (2024) Zhou, J.; Liu, Z.; Xiao, S.; Zhao, B.; and Xiong, Y. 2024. VISTA: Visualized Text Embedding For Universal Multi-Modal Retrieval. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), 3185â3200. Appendix A Indexing and Retrieval Procedure Algorithm 1 Functional-unit indexing and function-aware retrieval 1: documents D, query q, trained encoders fbase,ffuncf_base,f_func, budgets kp,kc,Kk_p,k_c,K; α=0.4α=0.4 2: generation context qC_q 3: Indexing 4: ââ Oâ ; âChunksâ()Câ Chunks(D) 5: for all râParseâ(d),dârâ Parse(d),\,d do 6: râExtractTypedArtifactsâ(r)V_râ ExtractTypedArtifacts(r); arâCanonicalAnchorâ(r,r)a_râ CanonicalAnchor(r,V_r) 7: append (ar,r,Chunksâ(r),Provâ(r))(a_r,V_r, Chunks(r), Prov(r)) to O 8: end for 9: â°âMergeAdmissibleOccurrencesâ()Eâ MergeAdmissibleOccurrences(O) 10: store SâĄ(e)S(e) and chunksâĄ(e)chunks(e) for eââ°e 11: Retrieval 12: â°qâTopItemskp(â°;eâŠsim(ffunc(q),ffunc(S(e))))E_qâ TopItems_k_p(E;\,e (f_func(q),f_func(S(e)))) 13: uââeââ°qchunksâĄ(e)C_uâ _e _qchunks(e) 14: câTopItemskc(;câŠsim(fbase(q),fbase(c)))C_câ TopItems_k_c(C;\,c (f_base(q),f_base(c))) 15: candâDeduplicateâ(uâȘc)C_candâ Deduplicate(C_u _c) 16: sâĄ(c)âαâsimâ(fbaseâ(q),fbaseâ(c))+(1âα)âsimâ(ffuncâ(q),ffuncâ(c))s(c)âα\,sim(f_base(q),f_base(c))+(1-α)\,sim(f_func(q),f_func(c)) 17: return qâTopItemsK(cand;câŠs(c))C_qâ TopItems_K(C_cand;\,c s(c)) Appendix B Incremental Indexing and Parser Invariance Incremental Updates Starting from a 32-document index, we inserted 27Flute3.md and compared the update with a fresh 33-document build. Only the added document and anchors affected by it were recomputed. Measurement Result Unchanged functional units reused 402 Functional units built from new document 2 Index outputs matching full build 7/7 Incremental index assembly 0.407 s Full index assembly 1.396 s Table A1: Incremental update from 32 to 33 documents. The seven matched files are the hyperedge, node, provenance, bipartite-edge, chunk-content, type-bag, and rejection records; single-run times are shown. Markdown Normalization Invariance We independently indexed four equivalent corpus variants: closing heading hashes, repeated blank lines, tilde code fences, and a UTF-8 byte-order mark. Measurement Result Variants with identical semantic graph 4/4 Variants with byte-identical serialized output 3/4 Functional-unit hyperedges per variant 404 Source documents covered 33/33 Invalid retained units per variant 0 Table A2: Index invariance under equivalent Markdown syntax. Semantic-graph equality is determined by hash. All four variants preserve the semantic graph. Repeated blank lines change the serialized-output hash while preserving the semantic-graph hash. Appendix C Qualitative Example Query. How does the -sink_clustering_enable parameter affect the clock tree synthesis process in the clock_tree_synthesis command? Reference content. Pre-clustering creates one sub-tree level before the H-tree; each cluster buffer becomes an H-tree endpoint. Chunk RAG. ââŠenables sink clustering during the clock tree synthesis process, which groups clock sinks into clusters to optimize the clock tree structure.â Ours. ââŠ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.â One functional-unit-derived and four directly retrieved chunks recover the pre-H-tree subtree and buffer-endpoint relation.