Skip to main content

llama-index llms watsonx integration

Project description

LlamaIndex Llms Integration: Watsonx

The usage of llama-index-llms-watsonx is deprecated in favor of llama-index-llms-ibm. To install recommended package that uses ibm-watsonx-ai underneath, run pip install -qU llama-index-llms-ibm. Use following to load the model using an IBM watsonx.ai integration

from llama_index.llms.ibm import WatsonxLLM

watsonx_llm = WatsonxLLM(
    model_id="PASTE THE CHOSEN MODEL_ID HERE",
    url="PASTE YOUR URL HERE",
    apikey="PASTE YOUR IBM APIKEY HERE",
    project_id="PASTE YOUR PROJECT_ID HERE",
    temperature=temperature,
    max_new_tokens=max_new_tokens,
    additional_params=additional_params,
)

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

llama_index_llms_watsonx-0.1.8.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

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

llama_index_llms_watsonx-0.1.8-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file llama_index_llms_watsonx-0.1.8.tar.gz.

File metadata

  • Download URL: llama_index_llms_watsonx-0.1.8.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.14 Linux/6.5.0-1021-azure

File hashes

Hashes for llama_index_llms_watsonx-0.1.8.tar.gz
Algorithm Hash digest
SHA256 09cb3517004a3980b0c3649030696d85e408309cf102de45b43d6e113088c8f6
MD5 ffe4029dd283bfb95712bc0206b61460
BLAKE2b-256 a1ff2020b33b61629c00bf9a702d193f933684a692e47291bc2e0b555c77fa28

See more details on using hashes here.

File details

Details for the file llama_index_llms_watsonx-0.1.8-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_llms_watsonx-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 a6023e43c9c43949db13f46d0ebba923e7beaa4ef2c788a087eb1d951d4d344b
MD5 081459c6aef07c25bce0e2f827170180
BLAKE2b-256 f80d98beb8170b0f464f1ed75d32e801c816df9ba0511bdfa45748e573f38481

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