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

Fix vertex embedding crash and add cohere AWS bedrock re-ranking model support #4146

Open
wants to merge 17 commits into
base: main
Choose a base branch
from

Conversation

ferdinandl007
Copy link

Description

Currently, there is a fatal crash when selecting vertex models when embedding large documents, which have a total length greater than 20,000 tokens. It causes a crash as the batching does not really batch on the model site, causing a token overflow error. The issue is fixed with local batching

furthermore I updated the embedding model text embedding 5, which is the latest one, and succeeded text embedding 4.

Secondly, added a support for AWS bedrock cohere re-ranking model.

How Has This Been Tested?

Manual test

Backporting (check the box to trigger backport action)

Note: You have to check that the action passes, otherwise resolve the conflicts manually and tag the patches.

  • [x ] This PR should be backported (make sure to check that the backport attempt succeeds)
  • [Optional] Override Linear Check

Copy link

vercel bot commented Feb 27, 2025

Someone is attempting to deploy a commit to the Danswer Team on Vercel.

A member of the Team first needs to authorize it.

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.

1 participant