IBM / ibm-generative-ai

IBM-Generative-AI is a Python library built on IBM's large language model REST interface to seamlessly integrate and extend this service in Python programs.
https://ibm.github.io/ibm-generative-ai/
Apache License 2.0
246 stars 101 forks source link

IBM Generative AI Python SDK (Tech Preview)

License PyPI PyPI - Downloads Coverage Status Build & Unit/Integration Tests E2E Tests

This is not the watsonx.ai Python SDK. This is the Python SDK for the Tech Preview program for IBM Foundation Models Studio. This SDK brings IBM Generative AI (GenAI) into Python programs and provides useful operations and types.

You can start a trial version or request a demo via https://www.ibm.com/products/watsonx-ai.

Looking for the watsonx.ai Python SDK? Check out ibm-watsonx-ai.

Looking for a NodeJS SDK version? Check out IBM Generative AI NodeJS SDK

Looking for a CLI? Check out IBM Generative AI CLI.

[!IMPORTANT] The SDK was recently rewritten and released under V2 (2024). See the V2 migration guide.

Installation

pip install --upgrade ibm-generative-ai

📚 Documentation

📚 Examples

📚 V3 Migration Guide

📚 V2 Migration Guide

Important Information for Contributors