Skip to main content

Backend library for conversational AI in biomedicine

Project description

biochatter

This repository contains the biochatter Python package, a generic backend library for the connection of biomedical applications to conversational AI. Described in this preprint and used in ChatGSE, which is being developed at https://github.com/biocypher/ChatGSE. More to come, so stay tuned!

Installation

To use the package, install it from PyPI, for instance using pip (pip install biochatter) or Poetry (poetry add biochatter).

Extras

The package has some optional dependencies that can be installed using the following extras (e.g. pip install biochatter[streamlit]):

  • streamlit: support for streamlit UI functions (used in ChatGSE)
  • podcast: support for podcast text-to-speech

Dev Container

Due to some incompatibilities of pymilvus with Apple Silicon, we have created a dev container for this project. To use it, you need to have Docker installed on your machine. Then, you can run the devcontainer setup as recommended by VSCode here or using Docker directly.

The dev container expects an environment file (there are options, but the basic one is .devcontainer/local.env) with the following variables:

OPENAI_API_KEY=(sk-...)
DOCKER_COMPOSE=true
DEVCONTAINER=true

To test vector database functionality, you also need to start a Milvus standalone server. You can do this by running docker-compose up as described here on the host machine (not from inside the devcontainer).

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

biochatter-0.1.7.tar.gz (14.1 kB view hashes)

Uploaded Source

Built Distribution

biochatter-0.1.7-py3-none-any.whl (15.1 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