The watsonx.ai flows engine SDK
Project description
wxflows_client
wxflows_client is a library to query flows deployed to watsonx.ai flows engine.
from wxflows_client import rag
print(rag.execute(
endpoint="https://watzen.stepzen.net/watzen-genai/rag_v1/__graphql",
apikey="xxxx",
name="A_ragAnswerDesc",
vars={
"n": 10,
"question": "who are the interns in greys anatomy season 9?",
"aiEngine": "BAM",
"model": "ibm/granite-13b-chat-v2",
"embedModel": "ibm/slate-30m-english-rtrvr",
"collection": "longnq",
"parameters": {
"max_new_tokens": 1000,
"temperature": 0.7
}
},
query="",
max_depth=2
))
Installing wxflows_client and Supported Versions
wxflows_client is available on PyPI:
$ python -m pip install wxflows_client
wxflows_client officially supports Python 3.8+.
Testing Locally
Note: Be sure to add your endpoint and credentials in the
main.pyfile.
python3 -m venv venv
source ./venv/bin/activate
pip install -r requirements.txt
make test
Export the package
- From root, run
python -m build. - Copy the generated
<>.wzfiles from the generateddistfolder and paste it into your project. - Execute
pip install wxflows_clientin your project folder.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
wxflows_client-0.1.0.tar.gz
(8.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wxflows_client-0.1.0.tar.gz.
File metadata
- Download URL: wxflows_client-0.1.0.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
578c6aa40408044e9d6b1af07b0f5b09232a65283b5299b8d0bee6d6ccef65ff
|
|
| MD5 |
6a6cd22ae9e18de2066245f5f65decca
|
|
| BLAKE2b-256 |
f78216540dbf5fb6723e35b03c20c6a304cee6390b3f40de4b7f5aadd43736d7
|
File details
Details for the file wxflows_client-0.1.0-py3-none-any.whl.
File metadata
- Download URL: wxflows_client-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
96da768457b14edff2ec8d7c989bf69c2af38eb56195ef42830154be303e90c5
|
|
| MD5 |
7f23fb69504bbc7a3dfdf0ebf0953da3
|
|
| BLAKE2b-256 |
49158048004f5f74ead88dd33ac943dd2b0eddb98aa30d0ad99374741358d2e2
|