Skip to main content

wxai-langchain enables the use of IBM watsonx.ai in LangChain projects. This is not supported by IBM.

Project description

IBM watsonx.ai LangChain interface

This is a Python library to add a LangChain interface to IBM watsonx.ai. This is not an IBM project and is not supported by IBM.

GitHub repo: https://github.com/rampadc/wxai-langchain

pip install wxai-langchain==0.0.4

v0.0.4

Version 0.0.4 is a breaking change and uses ibm-watson-machine-learning SDK to use the syntatic sugars that comes with the SDK.

pip install -e '.[dev]'

Examples:

  1. Create a new .env file examples/0.0.4 with contents
API_KEY=
PROJECT_ID=
  1. Run the examples with
python examples/0.0.4/<example-file>.py

v0.0.2

Version 0.0.2 does not use ibm-watson-machine-learning SDK.

To install,

pip install wxai-langchain==0.0.2

To use, see the examples folder. This LangChain interface is not compatible with IBM's GenAI GenerateParams schema object. Always use a JSON for the model's parameters as shown in the examples.

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

wxai-langchain-0.0.4.tar.gz (11.9 kB view hashes)

Uploaded Source

Built Distribution

wxai_langchain-0.0.4-py3-none-any.whl (8.0 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