You are here: Home / LBN / Up2date / Data Science / BastionLinux 36 / python3-langchain-ibm-0.3.8-1.lbn36.noarch

python3-langchain-ibm-0.3.8-1.lbn36.noarch

Package Attributes
RPM  python3-langchain-ibm-0.3.8-1.lbn36.noarch.rpm Architecture  noarch Size  182502 Created  2025/05/13 02:04:21 UTC
Package Specification
Summary An integration package connecting IBM watsonx.ai and LangChain
Group Unspecified
License ZPL
Home Page https://pypi.org/project/langchain-ibm
Description

langchain-ibm This package provides the integration between LangChain and IBM watsonx.ai through the ibm-watsonx-ai SDK. Installation To use the langchain-ibm package, follow these installation steps: pip install langchain-ibm

Usage Setting up To use IBM's models, you must have an IBM Cloud user API key. Here's how to obtain and set up your API key:

Obtain an API Key: For more details on how to create and manage an API key, refer to IBM's documentation. Set the API Key as an Environment Variable: For security reasons, it's recommended to not hard-code your API key directly in your scripts. Instead, set it up as an environment variable. You can use the following code to prompt for the API key and set it as an environment variable:

import os from getpass import getpass

watsonx_api_key = getpass() os.environ["WATSONX_APIKEY"] = watsonx_api_key

In alternative, you can set the environment variable in your terminal.

Linux/macOS: Open your terminal and execute the following command: ex

Requires
(python3.10dist(ibm-watsonx-ai) < 2~~ with python3.10dist(ibm-watsonx-ai) >= 1.2.10)  
rpmlib(PayloadFilesHavePrefix)  
rpmlib(PayloadIsZstd)  
rpmlib(PartialHardlinkSets)  
rpmlib(CompressedFileNames)  
rpmlib(RichDependencies)  
rpmlib(FileDigests)  
rpmlib(TildeInVersions)  
(python3.10dist(langchain-core) < 0.4~~ with python3.10dist(langchain-core) >= 0.3)  
Provides
python-langchain-ibm
python3-langchain-ibm
python3.10-langchain-ibm
python3.10dist(langchain-ibm)
python3dist(langchain-ibm)
Obsoletes
python-langchain-ibm

Document Actions