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

Usage

As an interim documentation until we have a proper one, check out the Wiki for some usage examples. Many common functionalities covered by BioChatter can be seen in use in the ChatGSE code base.

More information about LLMs

Check out this repository for more info on computational biology usage of large language models.

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.9.tar.gz (18.9 kB view details)

Uploaded Source

Built Distribution

biochatter-0.1.9-py3-none-any.whl (20.1 kB view details)

Uploaded Python 3

File details

Details for the file biochatter-0.1.9.tar.gz.

File metadata

  • Download URL: biochatter-0.1.9.tar.gz
  • Upload date:
  • Size: 18.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.10.6 Darwin/22.6.0

File hashes

Hashes for biochatter-0.1.9.tar.gz
Algorithm Hash digest
SHA256 8626e94de19fe2e2e3b19787b6cd2b09ca2b42a21873be2f9cde61860dbe7cbb
MD5 b7203bb58da7349f644af3eb238ea207
BLAKE2b-256 614f04926a45d216c6865f54d4c38faab9c598e79d9a0458388c30dad81d56cf

See more details on using hashes here.

File details

Details for the file biochatter-0.1.9-py3-none-any.whl.

File metadata

  • Download URL: biochatter-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 20.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.10.6 Darwin/22.6.0

File hashes

Hashes for biochatter-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 7b354539f512ee1a6f98c80cf672b022eeb01688bf07eae619ebd158fe9337e3
MD5 20e46de5c2238eda6dce9d0ca2da327c
BLAKE2b-256 921f22ab3f2e5dd42e013024b048ea67a4a0453fff19730f5b5a615a1b28a500

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