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:
- Create a new
.envfileexamples/0.0.4with contents
API_KEY=
PROJECT_ID=
- 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.
Metadata
Release files for wxai-langchain 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| wxai-langchain-0.0.4.tar.gz | 11.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| wxai_langchain-0.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 20.0 kB
Release files / wxai-langchain-0.0.4.tar.gz
| Download URL | wxai-langchain-0.0.4.tar.gz |
|---|---|
| Size | 11.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2539b541c477371cc74179bc045b399af812cc3a89f6259b7dd2e72c49d4e22e
|
|
BLAKE2b-256 checksum How to use checksums |
a8fcba1fd629340f23262ddbb4c2c74cde465e5529806e8369d8253dd16616e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.9.6 readme-renderer/40.0 requests/2.28.1 requests-toolbelt/1.0.0 urllib3/1.26.16 tqdm/4.65.0 importlib-metadata/6.1.0 keyring/24.2.0 rfc3986/1.5.0 colorama/0.4.6 CPython/3.9.13
|
Release files / wxai_langchain-0.0.4-py3-none-any.whl
| Download URL | wxai_langchain-0.0.4-py3-none-any.whl |
|---|---|
| Size | 8.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5ecce8187cfc9c172f0b377d8f661780ad6c8f5da2367a6d0524e47be72f0124
|
|
BLAKE2b-256 checksum How to use checksums |
938aa44759fb3fa9d29f09b49dd4fbbde116f1c2a163e0e637f654b805753f0d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.9.6 readme-renderer/40.0 requests/2.28.1 requests-toolbelt/1.0.0 urllib3/1.26.16 tqdm/4.65.0 importlib-metadata/6.1.0 keyring/24.2.0 rfc3986/1.5.0 colorama/0.4.6 CPython/3.9.13
|