Skip to main content

AI Agents for drug discovery, drug development, and other pharmaceutical R&D.

Project description

Talk2BioModels Talk2Cells Talk2KnowledgeGraphs TESTS Talk2Scholars TESTS Talk2AIAgents4Pharma GitHub Release Python Version from PEP 621 TOML Talk2AIAgents4Pharma Pulls Talk2Scholars Pulls Talk2BioModels Pulls Talk2KnowledgeGraphs Pulls

Introduction

Welcome to AIAgents4Pharma – an open-source project by Team VPE that brings together AI-driven tools to help researchers and pharma interact seamlessly with complex biological data.

Our toolkit currently consists of the following agents:

  • Talk2BioModels (v1 released; v2 in progress): Engage directly with mathematical models in systems biology.
  • Talk2KnowledgeGraphs (v1 in progress): Access and explore complex biological knowledge graphs for insightful data connections.
  • Talk2Scholars (v1 in progress): Get recommendations for articles related to your choice. Download, query, and write/retrieve them to your reference manager (currently supporting Zotero).
  • Talk2Cells (v1 in progress): Query and analyze sequencing data with ease.
  • Talk2AIAgents4Pharma (v1 in progress): Converse with all the agents above (currently supports T2B and T2KG)

AIAgents4Pharma

News

  • T2B and T2KG accepted at the MLGenX workshop during ICLR #2025 in Singapore. Read More
Watch the presentation:

Watch the presentation

Getting Started

Installation

Option 1: Docker (stable-release)

We now have all the agents available on Docker Hub.

To run Talk2AIAgents4Pharma / Talk2KnowledgeGraphs

If your machine has NVIDIA GPU(s), please install the following this:

  • nvidia-cuda-toolkit
  • nvidia-container-toolkit (required for GPU support with Docker; enables containers to access NVIDIA GPUs for accelerated computing). After installing nvidia-container-toolkit, please restart Docker to ensure GPU support is enabled.
1. Download docker-compose.yml, .env.example and startup.sh from GitHub
Talk2Agents4Pharma
mkdir talk2aiagents4pharma && cd talk2aiagents4pharma && wget https://raw.githubusercontent.com/VirtualPatientEngine/AIAgents4Pharma/main/aiagents4pharma/talk2aiagents4pharma/docker-compose.yml https://raw.githubusercontent.com/VirtualPatientEngine/AIAgents4Pharma/main/aiagents4pharma/talk2aiagents4pharma/.env.example https://raw.githubusercontent.com/VirtualPatientEngine/AIAgents4Pharma/main/aiagents4pharma/talk2aiagents4pharma/startup.sh
Talk2KnowledgeGraphs
mkdir talk2knowledgegraphs && cd talk2knowledgegraphs && wget https://raw.githubusercontent.com/VirtualPatientEngine/AIAgents4Pharma/main/aiagents4pharma/talk2knowledgegraphs/docker-compose.yml https://raw.githubusercontent.com/VirtualPatientEngine/AIAgents4Pharma/main/aiagents4pharma/talk2knowledgegraphs/.env.example https://raw.githubusercontent.com/VirtualPatientEngine/AIAgents4Pharma/main/aiagents4pharma/talk2knowledgegraphs/startup.sh
2. Setup environment variables

Copy and configure your .env file:

cp .env.example .env

Then edit .env and add your API keys:

OPENAI_API_KEY=...                  # Required for both agents
NVIDIA_API_KEY=...                  # Required for both agents
LANGCHAIN_TRACING_V2=true           # Optional for both agents
LANGCHAIN_API_KEY=...               # Optional for both agents

Additional Notes for Windows Users

3. Start the application
chmod +x startup.sh
./startup.sh        # Add --cpu flag to force CPU mode if needed

More about startup script

To Run Talk2Biomodels / Talk2Scholars
Talk2Biomodels
docker run -d \
--name talk2biomodels \
-e OPENAI_API_KEY=<your_openai_api_key> \
-e NVIDIA_API_KEY=<your_nvidia_api_key> \
-p 8501:8501 \
virtualpatientengine/talk2biomodels
Talk2Scholars
docker run -d \
--name talk2scholars \
-e OPENAI_API_KEY=<your_openai_api_key> \
-e ZOTERO_API_KEY=<your_zotero_api_key> \
-e ZOTERO_USER_ID=<your_zotero_user_id> \
-e NVIDIA_API_KEY=<your_nvidia_api_key> \
-p 8501:8501 \
virtualpatientengine/talk2scholars
4. Access the Web UI

Once started, the agent is available at:

http://localhost:8501

To use Talk2AIAgents4Pharma or Talk2KnowledgeGraphs, you need a free NVIDIA API key. Create an account and apply for free credits here.

To use Talk2BioModels or Talk2Scholars, you need a free NVIDIA API key. Create an account and apply for free credits here.

Only for Talk2Scholars, you also need a Zotero API key, which you can generate here. (For all other agents, the Zotero key is not required.)

If you are using docker on Windows, please follow these Windows Setup Notes.

LangSmith support is optional. To enable it, create an API key here.

More on running multiple agents simultaneously

📝 By default, talk2knowledgegraphs includes a small subset of the PrimeKG knowledge graph, allowing users to start interacting with it out of the box.
To switch to a different knowledge graph or use your own, refer to the deployment guide.

Option 2: git (for developers and contributors)

Python Version from PEP 621 TOML

  1. Clone the repository:
git clone https://github.com/VirtualPatientEngine/AIAgents4Pharma && cd AIAgents4Pharma
  1. Install dependencies:

We use Conda as our environment manager, Follow the official Quickstart install instructions provided by anaconda/miniconda.

conda create --name AIAgents4Pharma python=3.12 -y && conda activate AIAgents4Pharma && pip install --upgrade pip && pip install -r requirements.txt
  1. Initialize API Keys
export OPENAI_API_KEY=....          # Required for all agents
export NVIDIA_API_KEY=....          # Required for all agents
export ZOTERO_API_KEY=....          # Required for T2S
export ZOTERO_USER_ID=....          # Required for T2S
export LANGCHAIN_TRACING_V2=true    # Optional for all agents
export LANGCHAIN_API_KEY=...        # Optional for all agents

To use Talk2AIAgents4Pharma, Talk2BioModels, Talk2KnowledgeGraphs, or Talk2Scholars, you need a free NVIDIA API key. Create an account and apply for free credits here.

Only for Talk2Scholars, you also need a Zotero API key, which you can generate here. (For all other agents, the Zotero key is not required.)

To use Talk2Scholars, you must have FAISS installed through Conda. Follow installation instructions for your OS here.

Additionally on Windows, the pcst_fast 1.0.10 library requires Microsoft Visual C++ 14.0 or greater.
You can download the Microsoft C++ Build Tools here.

LangSmith support is optional. To enable it, create an API key here.

Please note that this will create a new tracing project in your Langsmith account with the name T2X-xxxx, where X can be AA4P (Main Agent), B (Biomodels), S (Scholars), KG (KnowledgeGraphs), or C (Cells). If you skip the previous step, it will default to the name default. xxxx will be the 4-digit ID created for the session.

  1. Launch the app:
streamlit run app/frontend/streamlit_app_<agent>.py

Replace <agent> with the agent name you are interested to launch:

  • talk2aiagents4pharma
  • talk2biomodels
  • talk2knowledgegraphs
  • talk2scholars
  • talk2cells

📝 By default, talk2knowledgegraphs includes a small subset of the PrimeKG knowledge graph, allowing users to start interacting with it out of the box.
To switch to a different knowledge graph or use your own, refer to the deployment guide.

For detailed instructions on each agent, please refer to their respective modules.

Option 3: pip (beta-release)

Python Version from PEP 621 TOML

pip install aiagents4pharma

Check out the tutorials on each agent for detailed instructions.

Contributing

We welcome your support to make AIAgents4Pharma even better.
All types of contributions are appreciated — whether you're fixing bugs, adding features, improving documentation, or helping with testing, every contribution is valuable.

How to contribute

  1. Star this repository to show your support.
  2. Fork the repository.
  3. Create a new branch for your work:
git checkout -b feat/your-feature-name
  1. Make your changes and commit them:
git commit -m "feat: add a brief description of your change"
  1. Push your branch:
git push origin feat/your-feature-name
  1. Open a Pull Request.

Areas where you can help

  • Beta testing for Talk2BioModels and Talk2Scholars.
  • Development work related to Python, bioinformatics, or knowledge graphs.

Contacts for contributions

Please refer to our CONTRIBUTING.md for more detailed contribution guidelines.

Feedback

If you have questions, bug reports, feature requests, comments, or suggestions, we would love to hear from you.
Please open an issue or start a discussion

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

aiagents4pharma-1.40.0.tar.gz (182.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aiagents4pharma-1.40.0-py3-none-any.whl (306.1 kB view details)

Uploaded Python 3

File details

Details for the file aiagents4pharma-1.40.0.tar.gz.

File metadata

  • Download URL: aiagents4pharma-1.40.0.tar.gz
  • Upload date:
  • Size: 182.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for aiagents4pharma-1.40.0.tar.gz
Algorithm Hash digest
SHA256 80248f69496a451ec4c716ff68455726455949fb5502077fbec6dbead80e1318
MD5 e3920257b0fbbc965177106cb13da1d2
BLAKE2b-256 4261199e862854df59b11412e1b6acfc4060f648fb049ec871315d8ce9f5d5e3

See more details on using hashes here.

File details

Details for the file aiagents4pharma-1.40.0-py3-none-any.whl.

File metadata

File hashes

Hashes for aiagents4pharma-1.40.0-py3-none-any.whl
Algorithm Hash digest
SHA256 962c8fe4a5e6eb8d5b0fb1926321aed329372c114b60bc70845cc735f58c9acf
MD5 d90786136c370b10e4274637db820fc5
BLAKE2b-256 2638944e4015009cf0eac781572028c42d2de278b9a73b0edabe23b5e2235d70

See more details on using hashes here.

Supported by

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