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

Merged
merged 5 commits into from
Dec 3, 2024
Merged

Support rerank on aws #208

merged 5 commits into from
Dec 3, 2024

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.

@neo
Copy link

neo commented Nov 29, 2024

@billytrend-cohere can we publish this?

@billytrend-cohere billytrend-cohere merged commit 22d9664 into main Dec 3, 2024
3 checks passed
@billytrend-cohere billytrend-cohere deleted the support-rerank-aws branch December 3, 2024 17:08
@billytrend-cohere
Copy link
Collaborator Author

should be available now @neo!

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
2 participants