Customized Retrieval Augmented Generation and Benchmarking for EDA Tool Documentation QA

Yuan Pu, Zhuolun He, Tairu Qiu, Haoyuan Wu, Bei Yu
7/22/2024
cs.CLcs.AR

Official code: lesliepy99/RAG-EDA (24 stars, last commit 2025-04-09).

Abstract

Retrieval augmented generation (RAG) enhances the accuracy and reliability of generative AI models by sourcing factual information from external databases, which is extensively employed in document-grounded question-answering (QA) tasks. Off-the-shelf RAG flows are well pretrained on general-purpose documents, yet they encounter significant challenges when being applied to knowledge-intensive vertical domains, such as electronic design automation (EDA). This paper addresses such issue by proposing a customized RAG framework along with three domain-specific techniques for EDA tool documentation QA, including a contrastive learning scheme for text embedding model fine-tuning, a reranker distilled from proprietary LLM, and a generative LLM fine-tuned with high-quality domain corpus. Furthermore, we have developed and released a documentation QA evaluation benchmark, ORD-QA, for OpenROAD, an advanced RTL-to-GDSII design platform. Experimental results demonstrate that our proposed RAG flow and techniques have achieved superior performance on ORD-QA as well as on a commercial tool, compared with state-of-the-arts. The ORD-QA benchmark and the training dataset for our customized RAG flow are open-source at https://github.com/lesliepy99/RAG-EDA.

View on arXivView PDF

Code Implementations(1)

lesliepy99/RAG-EDAOfficial100%
246May 2, 20241 years ago

Similar Papers

Cite this paper

@article{pu2024customized,
  title  = {Customized Retrieval Augmented Generation and Benchmarking for EDA Tool Documentation QA},
  author = {Yuan Pu and Zhuolun He and Tairu Qiu and Haoyuan Wu and Bei Yu},
  year   = {2024},
  eprint = {2407.15353},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.15353v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2407.15353.svg)](https://codeofpaper.com/paper/2407.15353)

Discussion