Skip to main content

tests PyPI PyPI - Python Version DOI:10.1101/2020.07.15.204701

ChemCrow logo



ChemCrow is an open source package for the accurate solution of reasoning-intensive chemical tasks.

Built with Langchain, it uses a collection of chemical tools including RDKit, paper-qa, as well as some relevant databases in chemistry, like Pubchem and chem-space.

🤗 Try it out in HuggingFace!

ChemCrow Demo

⚠️ Note

This package does not contain all the tools described in the ChemCrow paper because of API usage restrictions. This repo will not give the same results as that paper.

All the experiments have been released under ChemCrow runs.

👩‍💻 Installation

pip install chemcrow

🔥 Usage

First set up your API keys in your environment.

export OPENAI_API_KEY=your-openai-api-key

You can optionally use Serp API:

export SERP_API_KEY=your-serpapi-api-key

In a Python session:

from chemcrow.agents import ChemCrow

chem_model = ChemCrow(model="gpt-4-0613", temp=0.1, streaming=False)
chem_model.run("What is the molecular weight of tylenol?")

✅ Citation

Bran, Andres M., et al. "ChemCrow: Augmenting large-language models with chemistry tools." arXiv preprint arXiv:2304.05376 (2023).

@article{bran2023chemcrow,
      title={ChemCrow: Augmenting large-language models with chemistry tools},
      author={Andres M Bran and Sam Cox and Oliver Schilter and Carlo Baldassari and Andrew D White and Philippe Schwaller},
      year={2023},
      eprint={2304.05376},
      archivePrefix={arXiv},
      primaryClass={physics.chem-ph},
      publisher={arXiv}
}

Metadata

Release files for chemcrow 0.3.24

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for chemcrow 0.3.24
File Size Uploaded
chemcrow-0.3.24.tar.gz 27.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for chemcrow 0.3.24
File Interpreter ABI Platform
chemcrow-0.3.24-py3-none-any.whl Python 3 none any Details

Total release size: 55.3 kB

Release files / chemcrow-0.3.24.tar.gz

Download URL chemcrow-0.3.24.tar.gz
Size 27.0 kB
Tags Source
SHA-256 checksum
How to use checksums
35f4c939e7045bf10a4511fcff70a70b8e34530195b494025cfbffb4c6161e37
BLAKE2b-256 checksum
How to use checksums
1297de2cadcff0a94e95d0446ab4c5008af7e269a3586d6a64644ea7505685e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / chemcrow-0.3.24-py3-none-any.whl

Download URL chemcrow-0.3.24-py3-none-any.whl
Size 28.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c10510f8d44c58575eb5b35e5a4d4eebc929a94ec54e58e41fcb144d018bc639
BLAKE2b-256 checksum
How to use checksums
9cfed149137c7e8245e8964126149566ad3fc2194fb361212b5d4aeb7b13f31e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Release history Release notifications | RSS feed

This release

0.3.24 This release

2 release files

0.3.23

2 release files

0.3.22

2 release files

0.3.21

2 release files

0.3.17

2 release files

0.3.16

2 release files

0.3.15

2 release files

0.3.14

2 release files

0.3.13

2 release files

0.3.12

2 release files

0.3.9

2 release files

0.3.8

2 release files

0.3.7

1 release file

0.3.6

1 release file

0.3.5

1 release file

0.3.4

1 release file

0.3.3

1 release file

0.3.2

1 release file

0.3.1

1 release file

0.3.0

1 release file

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page