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

community[minor]: Adds support for Cohere Command-R via AWS Bedrock #5336

Conversation

m-hamaro
Copy link
Contributor

This PR will cover Amazon Bedrock's Cohere Command-R and Command-R+.

The request and response formats have changed from the previous Cohere Command model, and the Command-R model does not work with the current implementation.

In addition to response generation from generated AI, the Command-R model supports search query generation and response generation with documents loaded (RAG).

Along with this, test files have been modified and test patterns have been added.

I welcome comments and feedback on this merge request.

I'm sorry for my poor English.

Thank you for the opportunity to contribute to the project!

@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label May 11, 2024
Copy link

vercel bot commented May 11, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
langchainjs-api-refs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 20, 2024 7:04pm
langchainjs-docs ✅ Ready (Inspect) Visit Preview May 20, 2024 7:04pm

@jacoblee93 jacoblee93 added the lgtm PRs that are ready to be merged as-is label May 20, 2024
@jacoblee93
Copy link
Collaborator

Looks fantastic, thank you!

@jacoblee93
Copy link
Collaborator

Small bug with non-streaming message parsing, fixed in the most recent commmit

@jacoblee93
Copy link
Collaborator

Thank you!

@m-hamaro m-hamaro deleted the m-hamaro/add-support-for-cohere-command-r-via-aws-bedrock branch May 21, 2024 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto:enhancement A large net-new component, integration, or chain. Use sparingly. The largest features lgtm PRs that are ready to be merged as-is size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants