Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rampadc/wxai-langchain
https://github.com/rampadc/wxai-langchain
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/rampadc/wxai-langchain
- Owner: rampadc
- License: apache-2.0
- Created: 2023-07-27T09:52:17.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-10T03:41:24.000Z (over 1 year ago)
- Last Synced: 2024-12-15T14:17:21.204Z (about 1 month ago)
- Language: Python
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```shell
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.
```shell
pip install -e '.[dev]'
```Examples:
1. Create a new `.env` file `examples/0.0.4` with contents
```
API_KEY=
PROJECT_ID=
```2. Run the examples with
```shell
python examples/0.0.4/.py
```## v0.0.2
Version 0.0.2 does not use ibm-watson-machine-learning SDK.
To install,
```shell
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.