Skip to main content

Accurate solution of reasoning-intensive chemical tasks, poweredby LLMs.

Project description

tests 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.

👩‍💻 Installation

conda create -n chemcrow python=3.8
conda activate chemcrow
pip install -e .

🔥 Usage

First set up your API keys in your environment.

export OPENAI_API_KEY=your-openai-api-key
export SERP_API_KEY=your-serpapi-api-key

In a Python session:

from chemcrow.agents import ChemTools, ChemCrow

chemtools = ChemTools()
chem_model = ChemCrow(
    chemtools.all_tools,
    model="gpt-4",
    temp=0.1,
)


# Define your task
task = (
    "Find 3 structural analogs of caffeine "
    "and describe what functional groups they have in common."
)

chem_model.run(task)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chemcrow-0.2.0.tar.gz (11.7 kB view hashes)

Uploaded Source

Built Distribution

chemcrow-0.2.0-py3-none-any.whl (11.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page