Skip to main content

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

Project description

Talk2BioModels Talk2Cells Talk2KnowledgeGraphs TESTS Talk2Scholars GitHub Release Python Version from PEP 621 TOML Docker 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

Getting Started

Python Version from PEP 621 TOML

Installation

Option 1: PyPI

pip install aiagents4pharma

Check out the tutorials on each agent for detailed instrcutions.

Option 2: Docker Hub

Both Talk2Biomodels and Talk2Scholars are now available on Docker Hub.

  1. Pull the Docker images

    docker pull virtualpatientengine/talk2biomodels
    
    docker pull virtualpatientengine/talk2scholars
    
  2. Run the containers

    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
    
    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> \
      -p 8501:8501 \
      virtualpatientengine/talk2scholars
    
  3. Access the Web App Open your browser and go to:

    http://localhost:8501
    

    You can create a free account at NVIDIA and apply for their free credits here.

Notes

  • Ensure you replace <your_openai_api_key>, <your_nvidia_api_key>, <your_zotero_api_key>, and <your_zotero_user_id> with your actual credentials.
  • Both applications use port 8501, so run them on different ports if needed:
    docker run -d -e OPENAI_API_KEY=<your_openai_api_key> -p 8501:8501 virtualpatientengine/talk2scholars
    
    Then, access it via http://localhost:8501.

Option 3: git

  1. Clone the repository:

    git clone https://github.com/VirtualPatientEngine/AIAgents4Pharma
    cd AIAgents4Pharma
    
  2. Install dependencies:

    pip install -r requirements.txt
    

    The current version of T2KG requires additional Ollama library to be installed.

    Ollama can be easily downloaded and installed from the following link: https://ollama.com/download

    As an alternative, use the following commands to install the library using terminal and to pull necessary model:

    • Ubuntu:
      curl -fsSL https://ollama.com/install.sh | sh
      ollama pull nomic-embed-text
      
    • Windows:
      curl -L https://ollama.com/download/ollama-windows-amd64.zip -o ollama-windows-amd64.zip
      tar -xzf .\ollama-windows-amd64.zip
      start ollama serve
      ollama pull nomic-embed-text
      
    • macOS:
      brew install ollama
      ollama pull nomic-embed-text
      

    A list of pulled Ollama models can be checked using the following command:

    ollama list
    
  3. Initialize OPENAI_API_KEY and NVIDIA_API_KEY

    export OPENAI_API_KEY=....
    export NVIDIA_API_KEY=....
    

    You can create a free account at NVIDIA and apply for their free credits here.

  4. Initialize ZOTERO_API_KEY and ZOTERO_USER_ID

    export ZOTERO_API_KEY=....
    export ZOTERO_USER_ID=....
    
  5. [Optional] Initialize LANGSMITH_API_KEY

    export LANGCHAIN_TRACING_V2=true
    export LANGCHAIN_API_KEY=<your-api-key>
    

    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.

  6. Launch the app:

    streamlit run app/frontend/streamlit_app_<agent>.py
    

    Replace with the agent name you are interested to launch.

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


Contributing

We welcome contributions to AIAgents4Pharma! Here’s how you can help:

  1. Fork the repository

  2. Create a new branch for your feature (git checkout -b feat/feature-name)

  3. Commit your changes (git commit -m 'feat: Add new feature')

  4. Push to the branch (git push origin feat/feature-name)

  5. Open a pull request and reach out to any one of us below via Discussions:

    Note: We welcome all contributions, not just programming-related ones. Feel free to open bug reports, suggest new features, or participate as a beta tester. Your support is greatly appreciated!

Current Needs

  • Beta testers for Talk2BioModels and Talk2Scholars.
  • Developers with experience in Python and Bioinformatics and/or knowledge graphs for contributions to AIAgents4Pharma.

Feel free to reach out to us via Discussions.

Check out our CONTRIBUTING.md for more information.


Feedback

Questions/Bug reports/Feature requests/Comments/Suggestions? We welcome all. Please use Isssues or Discussions 😀

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.25.1.tar.gz (102.1 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.25.1-py3-none-any.whl (181.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for aiagents4pharma-1.25.1.tar.gz
Algorithm Hash digest
SHA256 ccc4f1e5023cefd76dfc8697095ee470798bb3e1d16268dbb9f71509e14c3709
MD5 12e367ed29c5d03dc33a66f1c3f7e578
BLAKE2b-256 834edbae667cc7186a22cbd51e0f3e458aee04bc971f330fb4dc1f18d47a5ca4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aiagents4pharma-1.25.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e2f8f4df756445e0895c67ae5ed2710f0e6525b26b2b5b20109caf22328eca7d
MD5 bec4ae136e650bb8b126a1c0fc60038b
BLAKE2b-256 225dd102ab47238401efadb77fda8febd627e9c4a548964790a5e63ec5f54c18

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