Skip to main content

Backend library for conversational AI in biomedicine

Project description

BioChatter

License License: MIT Python Python
Package PyPI version Downloads DOI Build status CI Docs
Tests Coverage Docker Latest image Image size
Development Project Status: Active – The project has reached a stable, usable state and is being actively developed. Code style Contributions PRs Welcome Contributor Covenant

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.

The library is described in this preprint and used in various demo applications for showcasing its use:

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 BioChatter Light)

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 BioChatter Light code base. Built with Material for MkDocs

🤝 Getting involved

We are very happy about contributions from the community, large and small! If you would like to contribute to BioCypher development, please refer to our contribution guidelines and the developer docs. :)

If you want to ask informal questions, talk about dev things, or just chat, please join our community at https://biocypher.zulipchat.com!

Imposter syndrome disclaimer: We want your help. No, really. There may be a little voice inside your head that is telling you that you're not ready, that you aren't skilled enough to contribute. We assure you that the little voice in your head is wrong. Most importantly, there are many valuable ways to contribute besides writing code.

This disclaimer was adapted from the Pooch project.

More information about LLMs

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

Troubleshooting

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:

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

Uploaded Source

Built Distribution

biochatter-0.6.1-py3-none-any.whl (60.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: biochatter-0.6.1.tar.gz
  • Upload date:
  • Size: 53.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.13 Darwin/23.5.0

File hashes

Hashes for biochatter-0.6.1.tar.gz
Algorithm Hash digest
SHA256 0ea7410cd308eee4e2df9ad333f3a67188e68c8cec3afbf08a5ccc1f6dd21c76
MD5 28ad665be3e17c404d8b16e413455273
BLAKE2b-256 8c7f3d5b10abf20789541b868886397a53a417bf2acfa6e9e6d02c89842f7613

See more details on using hashes here.

File details

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

File metadata

  • Download URL: biochatter-0.6.1-py3-none-any.whl
  • Upload date:
  • Size: 60.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.13 Darwin/23.5.0

File hashes

Hashes for biochatter-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 75d10c458a82f26a4e0a72028980d894c6c0c520b9c0195c822d4a03cbc18b94
MD5 f1afcf31bb5123cf9fa0e9c05c239d94
BLAKE2b-256 6718f968413700fef4f755bdd23e6fe26f62f15891982b15d343b7caad1ce7be

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