Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support IBM Watsonx.ai LLM provider #886

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

barvhaim
Copy link

@barvhaim barvhaim commented Oct 5, 2024

Adds a support to IBM's Watsonx.ai as LLM provider and embeddings provider

image

.env

LLM_PROVIDER="watsonxai"
EMBEDDING_PROVIDER="watsonxai"

WATSONX_APIKEY="xxx"
WATSONX_URL="https://us-south.ml.cloud.ibm.com"
WATSONX_PROJECT_ID="xxx"
WATSONX_EMBEDDING_MODEL="intfloat/multilingual-e5-large"

FAST_LLM_MODEL="ibm/granite-13b-instruct-v2"
DEFAULT_LLM_MODEL="ibm/granite-13b-instruct-v2"
SMART_LLM_MODEL="meta-llama/llama-3-405b-instruct"

@Arieg419
Copy link
Collaborator

Arieg419 commented Oct 5, 2024

Thanks for adding this support!

@assafelovic I think having this as a configuration file in the configuration directory would be good.

Continuing previous discussions, we'd like configurations to be declarative and have everything in the config file except for API keys.

wdyt?

@@ -29,6 +29,7 @@ unstructured
json_repair
json5
loguru
langchain-ibm==0.1.12
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @barvhaim can you remove this line? The idea is to not have any optional dependencies. If and when someone will use it then a manual install will be necessary. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants