Related Experiment Video
Updated: Aug 2, 2025

03:14
Augmenting Large Language Models via Vector Embeddings to Improve Domain-Specific Responsiveness
Published on: December 6, 2024
644
Assessment of chemistry knowledge in large language models that generate code
Andrew D White1,2, Glen M Hocky3,4, Heta A Gandhi1
1Department of Chemical Engineering, University of Rochester USA andrew.white@rochester.edu.
Summary
Code-generating large language models (LLMs) demonstrate significant chemistry knowledge, answering questions posed as coding tasks. Prompt engineering strategies can boost their accuracy by 30%.
Area of Science:
- Computational Chemistry
- Artificial Intelligence in Science
Background:
- The integration of artificial intelligence, particularly large language models (LLMs), into scientific disciplines is rapidly advancing.
- Evaluating the specific domain knowledge of LLMs, such as in chemistry, is crucial for understanding their potential applications.
Purpose of the Study:
- To assess the chemistry knowledge of code-generating LLMs.
- To develop and introduce a flexible framework for evaluating LLM performance on chemistry tasks.
- To create a benchmark dataset and open-source tools for community use.
Main Methods:
- LLMs were prompted to solve chemistry problems framed as coding tasks.
- A benchmark set of chemistry problems was developed.
- Model performance was evaluated through automated code testing and expert review.
- Prompt engineering strategies were investigated to improve accuracy.
Main Results:
- Recent LLMs exhibit considerable ability to generate correct code for various chemistry topics.
- Prompt engineering techniques, such as adding copyright notices, improved LLM accuracy by up to 30 percentage points.
- The developed dataset and evaluation framework are open-source, fostering community contribution.
Conclusions:
- Code-generating LLMs possess substantial, though not perfect, knowledge of chemistry.
- LLMs show immense potential to revolutionize chemistry education and research.
- The open-source nature of the resources encourages further development and standardized evaluation of AI models in chemistry.
More Related Videos
Related Concept Videos
The Small x Assumption
46.3K
If a reaction has a small equilibrium constant, the equilibrium position favors the reactants. In such reactions, a negligible change in concentration may occur if the initial concentrations of reactants are high and the Kc value is small. In such circumstances, the equilibrium concentration is approximately equal to its initial concentration. This estimation can be used to simplify the equilibrium calculations by assuming that some equilibrium concentrations are equal to the initial...
46.3K
Molecular Models
38.8K
Physical models representing molecular architectures of chemical compounds play essential roles in understanding chemistry. The use of molecular models makes it easier to visualize the structures and shapes of atoms and molecules.
38.8K
Classification of Elements and Compounds
66.8K
Pure substances consist of only one type of matter. A pure substance can be an element or a compound. An element consists of only one type of atom, while a compound consists of two or more types of atoms held together by a chemical bond. Elements are classified as atomic or molecular based on the nature of their basic units.
Compounds are pure substances composed of two or more elements in fixed, definite proportions. Compounds are classified as ionic or molecular (covalent) based on the bonds...
Compounds are pure substances composed of two or more elements in fixed, definite proportions. Compounds are classified as ionic or molecular (covalent) based on the bonds...
66.8K
Chemical Symbols
8.6K
A chemical symbol is an abbreviation that is used to indicate an element or an atom of an element. For example, the symbol for mercury is Hg. We use the same symbol to indicate one atom of mercury (microscopic domain) or to label a container of many atoms of the element mercury (macroscopic domain).
Some symbols are derived from the common name of the element; others are abbreviations of the name in another language. Most symbols have one or two letters, but three-letter symbols have been used...
Some symbols are derived from the common name of the element; others are abbreviations of the name in another language. Most symbols have one or two letters, but three-letter symbols have been used...
8.6K
Chemical Equations
63.7K
Chemical equations represent the identities and relative quantities of substances involved in a chemical reaction. The substances undergoing reaction are called reactants, and their formulas are placed on the left side of the equation. The substances generated by the reaction are called products, and their formulas are placed on the right side of the equation. Plus signs (+) separate individual reactant and product formulas, and an arrow (→) separates the reactant and product (left and...
63.7K
Experimental Determination of Chemical Formula
38.2K
The elemental makeup of a compound defines its chemical identity, and chemical formulas are the most concise way of representing this elemental makeup. When a compound’s formula is unknown, measuring the mass of its constituent elements is often the first step in determining the formula experimentally.
38.2K

