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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

Supported by

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