Skip to main content

Conversational Health Agents (CHAs) are interactive systems designed to enhance personalhealthcare services by engaging in empathetic conversations and processing multimodal data.

Project description

Quick Start

To use CHA in a safe and stable way, ensure you have Python 3.10 or higher installed. First, create a virtual environment:

# Create the virtual environment
python -m venv /path/to/new/virtual/environment

# Activate the virtual environment
source /path/to/new/virtual/environment/bin/activate

Now, install the CHA package.

pip install openCHA
playwright install

Manual Installation

git clone https://github.com/Institute4FutureHealth/CHA.git
cd CHA
pip install -e '.[all]'
playwright install

To simplify installation with minimum requirements and be ready to go, you can use the following command. This installs OpenAI, React Planner, as well as SerpAPI (search) and Playwright (browser) tasks:

pip install -e '.[minimum]'

If you want to install all requirements for all tasks and other components, use the following command:

pip install -e '.[all]'

Running openCHA

After installing the package, based on what tasks you want to use, you may need to acquire some api_keys. For example, to get started using openAI GPT3.5 model as LLM in CHA, you need to signup in their website and get the api_key. Then you should add openAI api_key as environment vairable in your terminal:

export OPENAI_API_KEY="your api_key"

The same goes for using tasks like SerpAPI:

export SERPAPI_API_KEY="your api_key"

Finally, you can start running our framework with the following simple code:

from openCHA import openCHA

cha = openCHA()
cha.run_with_interface()

This code will run the default interface, and you can access it at the following URL:

http://127.0.0.1:7860

For more examples, visit the Examples page.

Alt Text

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

opencha-0.1.3.tar.gz (46.5 kB view details)

Uploaded Source

File details

Details for the file opencha-0.1.3.tar.gz.

File metadata

  • Download URL: opencha-0.1.3.tar.gz
  • Upload date:
  • Size: 46.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.15

File hashes

Hashes for opencha-0.1.3.tar.gz
Algorithm Hash digest
SHA256 4a4dd1aa5fdd572c414ae7ed4235d3eb934b956e6e42eeb85fc5ede6e1b0766e
MD5 c02b93b7cd2f6f9642ca2b8368de65ea
BLAKE2b-256 9a1884906fcc0e059c9add144afe765bd4772b05accc2b3f122918afa1ed14a8

See more details on using hashes here.

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