Overview
This will help you getting started with the Watsonx document compressor. For detailed documentation of all Watsonx document compressor features and configurations head to the API reference.Integration details
Class | Package | PY support | Downloads | Version |
---|---|---|---|---|
WatsonxRerank | @langchain/community | ✅ |
Setup
To access IBM WatsonxAI models you’ll need to create an IBM watsonx.ai account, get an API key or any other type of credentials, and install the@langchain/community
integration package.
Credentials
Head to IBM Cloud to sign up to IBM watsonx.ai and generate an API key or provide any other authentication form as presented below.IAM authentication
Bearer token authentication
IBM watsonx.ai software authentication
IAM authentication
Bearer token authentication
IBM watsonx.ai software authentication
Installation
This document compressor lives in the@langchain/community
package: