forked from langchain-ai/langchain
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: update IBM watsonx.ai docs (langchain-ai#17932)
- **Description:** Update IBM watsonx.ai docs and add IBM as a provider docs - **Dependencies:** [ibm-watsonx-ai](https://pypi.org/project/ibm-watsonx-ai/), - **Tag maintainer:** : Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally. ✅
- Loading branch information
1 parent
d068e8e
commit f6e3aa9
Showing
2 changed files
with
92 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# IBM | ||
|
||
The `LangChain` integrations related to [IBM watsonx.ai](https://www.ibm.com/products/watsonx-ai) platform. | ||
|
||
IBM® watsonx.ai™ AI studio is part of the IBM [watsonx](https://www.ibm.com/watsonx)™ AI and data platform, bringing together new generative | ||
AI capabilities powered by [foundation models](https://www.ibm.com/products/watsonx-ai/foundation-models) and traditional machine learning (ML) | ||
into a powerful studio spanning the AI lifecycle. Tune and guide models with your enterprise data to meet your needs with easy-to-use tools for | ||
building and refining performant prompts. With watsonx.ai, you can build AI applications in a fraction of the time and with a fraction of the data. | ||
Watsonx.ai offers: | ||
|
||
- **Multi-model variety and flexibility:** Choose from IBM-developed, open-source and third-party models, or build your own model. | ||
- **Differentiated client protection:** IBM stands behind IBM-developed models and indemnifies the client against third-party IP claims. | ||
- **End-to-end AI governance:** Enterprises can scale and accelerate the impact of AI with trusted data across the business, using data wherever it resides. | ||
- **Hybrid, multi-cloud deployments:** IBM provides the flexibility to integrate and deploy your AI workloads into your hybrid-cloud stack of choice. | ||
|
||
|
||
## Installation and Setup | ||
|
||
Install the integration package with | ||
```bash | ||
pip install -qU langchain-ibm | ||
``` | ||
|
||
Get an IBM watsonx.ai api key and set it as an environment variable (`WATSONX_APIKEY`) | ||
```python | ||
import os | ||
|
||
os.environ["WATSONX_APIKEY"] = "your IBM watsonx.ai api key" | ||
``` | ||
|
||
## LLMs | ||
|
||
### WatsonxLLM | ||
|
||
See a [usage example](/docs/integrations/llms/ibm_watsonx). | ||
|
||
```python | ||
from langchain_ibm import WatsonxLLM | ||
``` |