AI Assistants to Enhance and Exploit the PETSc Knowledge Base

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Smith, Barry, Zhang, Junchao, Zhang, Hong, McInnes, Lois Curfman, Keceli, Murat, Vasan, Archit, Balay, Satish, Isaac, Toby, Chen, Le, Vishwanath, Venkatram
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866918145339424768
author Smith, Barry
Zhang, Junchao
Zhang, Hong
McInnes, Lois Curfman
Keceli, Murat
Vasan, Archit
Balay, Satish
Isaac, Toby
Chen, Le
Vishwanath, Venkatram
author_facet Smith, Barry
Zhang, Junchao
Zhang, Hong
McInnes, Lois Curfman
Keceli, Murat
Vasan, Archit
Balay, Satish
Isaac, Toby
Chen, Le
Vishwanath, Venkatram
contents Generative AI, especially through large language models (LLMs), is transforming how technical knowledge can be accessed, reused, and extended. PETSc, a widely used numerical library for high-performance scientific computing, has accumulated a rich but fragmented knowledge base over its three decades of development, spanning source code, documentation, mailing lists, GitLab issues, Discord conversations, technical papers, and more. Much of this knowledge remains informal and inaccessible to users and new developers. To activate and utilize this knowledge base more effectively, the PETSc team has begun building an LLM-powered system that combines PETSc content with custom LLM tools -- including retrieval-augmented generation (RAG), reranking algorithms, and chatbots -- to assist users, support developers, and propose updates to formal documentation. This paper presents initial experiences designing and evaluating these tools, focusing on system architecture, using RAG and reranking for PETSc-specific information, evaluation methodologies for various LLMs and embedding models, and user interface design. Leveraging the Argonne Leadership Computing Facility resources, we analyze how LLM responses can enhance the development and use of numerical software, with an initial focus on scalable Krylov solvers. Our goal is to establish an extensible framework for knowledge-centered AI in scientific software, enabling scalable support, enriched documentation, and enhanced workflows for research and development. We conclude by outlining directions for expanding this system into a robust, evolving platform that advances software ecosystems to accelerate scientific discovery.
format Preprint
id arxiv_https___arxiv_org_abs_2506_20608
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle AI Assistants to Enhance and Exploit the PETSc Knowledge Base
Smith, Barry
Zhang, Junchao
Zhang, Hong
McInnes, Lois Curfman
Keceli, Murat
Vasan, Archit
Balay, Satish
Isaac, Toby
Chen, Le
Vishwanath, Venkatram
Artificial Intelligence
Numerical Analysis
Generative AI, especially through large language models (LLMs), is transforming how technical knowledge can be accessed, reused, and extended. PETSc, a widely used numerical library for high-performance scientific computing, has accumulated a rich but fragmented knowledge base over its three decades of development, spanning source code, documentation, mailing lists, GitLab issues, Discord conversations, technical papers, and more. Much of this knowledge remains informal and inaccessible to users and new developers. To activate and utilize this knowledge base more effectively, the PETSc team has begun building an LLM-powered system that combines PETSc content with custom LLM tools -- including retrieval-augmented generation (RAG), reranking algorithms, and chatbots -- to assist users, support developers, and propose updates to formal documentation. This paper presents initial experiences designing and evaluating these tools, focusing on system architecture, using RAG and reranking for PETSc-specific information, evaluation methodologies for various LLMs and embedding models, and user interface design. Leveraging the Argonne Leadership Computing Facility resources, we analyze how LLM responses can enhance the development and use of numerical software, with an initial focus on scalable Krylov solvers. Our goal is to establish an extensible framework for knowledge-centered AI in scientific software, enabling scalable support, enriched documentation, and enhanced workflows for research and development. We conclude by outlining directions for expanding this system into a robust, evolving platform that advances software ecosystems to accelerate scientific discovery.
title AI Assistants to Enhance and Exploit the PETSc Knowledge Base
topic Artificial Intelligence
Numerical Analysis
url https://arxiv.org/abs/2506.20608