Skip to main content

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.py file.

python3 -m venv venv        
source ./venv/bin/activate
pip install -r requirements.txt
make test

Export the package

  1. From root, run python -m build.
  2. Copy the generated <>.wz files from the generated dist folder and paste it into your project.
  3. Execute pip install wxflows_client in your project folder.

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

wxflows_client-0.1.0.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wxflows_client-0.1.0-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

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

Hashes for wxflows_client-0.1.0.tar.gz
Algorithm Hash digest
SHA256 578c6aa40408044e9d6b1af07b0f5b09232a65283b5299b8d0bee6d6ccef65ff
MD5 6a6cd22ae9e18de2066245f5f65decca
BLAKE2b-256 f78216540dbf5fb6723e35b03c20c6a304cee6390b3f40de4b7f5aadd43736d7

See more details on using hashes here.

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

Hashes for wxflows_client-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 96da768457b14edff2ec8d7c989bf69c2af38eb56195ef42830154be303e90c5
MD5 7f23fb69504bbc7a3dfdf0ebf0953da3
BLAKE2b-256 49158048004f5f74ead88dd33ac943dd2b0eddb98aa30d0ad99374741358d2e2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page