Backend library for conversational AI in biomedicine
Project description
BioChatter
License | Python | ||
Package | Build status | ||
Tests | Coverage coming soon. | Docker | |
Development | Contributions |
Description
Generative AI models have shown tremendous usefulness in increasing
accessibility and automation of a wide range of tasks. Yet, their application to
the biomedical domain is still limited, in part due to the lack of a common
framework for deploying, testing, and evaluating the diverse models and
auxiliary technologies that are needed. 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!
BioChatter is part of the BioCypher ecosystem, connecting natively to BioCypher knowledge graphs. The BioChatter paper is being written here.
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[xinference]
):
-
xinference
: support for querying open-source LLMs through Xorbits Inference -
podcast
: support for podcast text-to-speech (for the free Google TTS; the paid OpenAI TTS can be used without this extra) -
streamlit
: support for streamlit UI functions (used in ChatGSE)
Usage
Check out the documentation for examples, use cases, and more information. 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.
Developer notes
If you're on Apple Silicon, you may encounter issues with the grpcio
dependency (grpc
library, which is used in pymilvus
). If so, try to install
the binary from source after removing the installed package from the virtual
environment from
here:
pip uninstall grpcio
export GRPC_PYTHON_LDFLAGS=" -framework CoreFoundation"
pip install grpcio==1.53.0 --no-binary :all:
```# chat
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
Built Distribution
Hashes for biochatter-0.4.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4809bacaa38af0a1cffa431ee09b4bcc8e973be2de81116db3b5ba34a517f06 |
|
MD5 | 9a3582fd816d555a6e7f8b33b0a15ee3 |
|
BLAKE2b-256 | 74b978e4d5cb4483d13ff5fa70f6e0cd2f17df14ccb6a14b22e09c704d2bc549 |