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 rerank on aws #208

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

Support rerank on aws #208

wants to merge 2 commits into from

Conversation

billytrend-cohere
Copy link
Collaborator

@billytrend-cohere billytrend-cohere commented Nov 4, 2024

Fixes #200

This PR introduces a new endpoint, rerank, to the AWS utility functions. The changes are as follows:

  • The nonStreamedResponseParser object in src/aws-utils.ts now includes a new property, "rerank": serializers.RerankResponse,.
  • The AwsEndpoint type in src/aws-utils.ts has been updated to include the new rerank endpoint.
  • The models object in src/test/bedrock-tests.test.ts has been extended with a new property, rerank: "cohere.rerank-v1", for both the bedrock and sagemaker platforms.
  • The getEndpointFromUrl function in src/aws-utils.ts has been removed.

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.

Error when using rerank on AWS SageMaker
1 participant