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

Conversation search support for Message APIs #2826

Closed
bouhajer opened this issue Aug 13, 2024 · 6 comments · Fixed by #2851
Closed

Conversation search support for Message APIs #2826

bouhajer opened this issue Aug 13, 2024 · 6 comments · Fixed by #2851
Assignees
Labels
2.17 enhancement New feature or request Priority-High Roadmap:Vector Database/GenAI Project-wide roadmap label

Comments

@bouhajer
Copy link

Limitation on Conversational search support for Messages API with Claude 3.x family

I am building a public workshop for a public event and the purpose of the workshop is to build OpenSearch conversational search with Bedrock Claude 3.5 Sonnet, but this is not possible with the current Conversational search LLM connector.

The current Conversational search in OpenSearch supports Text Completions API for Anthropic Claude, however, Claude 3.x family only works with Messages API.

Anthropic Claude models in Amazon Bedrock from Claude v1 up to Claude v3.5, all support Messages API so we should update the plugin to support Messages API instead of Text Completions API (supported only by Claude v1 and v2).

Customers are interested in building RAG within OpenSearch to create conversational applications and we should make sure that the conversational search supports the state of the art APIs with foundational models.

Tutorial to be updated:

Anthropic Claude Messages API: https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters-anthropic-claude-messages.html

Thanks

@bouhajer bouhajer added enhancement New feature or request untriaged labels Aug 13, 2024
@Zhangxunmt
Copy link
Collaborator

This is a workshop required in the 2024 re:invent too.

@austintlee
Copy link
Collaborator

https://docs.anthropic.com/en/api/migrating-from-text-completions-to-messages

So, basically, they are moving to an array of messages like OpenAI did when they updated their chat completion API.

@mingshl
Copy link
Collaborator

mingshl commented Aug 19, 2024

@b4sjoo if this is going to be connected through bedrock, we need to think about adding the model interface as well.

@austintlee
Copy link
Collaborator

I'm going to add support for Bedrock's "converse" endpoint. This will allow connector to talk to Claude 3.5 sonnet via Bedrock.

Do we need to support direct connections to Anthropic? I guess there will be users who use Anthropic, but not AWS?

@ylwu-amzn ylwu-amzn added the Roadmap:Vector Database/GenAI Project-wide roadmap label label Aug 26, 2024
@ylwu-amzn
Copy link
Collaborator

Do we need to support direct connections to Anthropic? I guess there will be users who use Anthropic, but not AWS?

I think so, we should also support customers who use Anthropic directly

@austintlee
Copy link
Collaborator

I'm just documenting some of the issues and limitations of Bedrock Converse API.

When I use the document with Claude 3.5 sonnet, I get this error:

This model doesn't support documents.

This is not clear from Bedrock's documentation. But for both OpenAI 4o and Anthropic 3.5-sonnet, I only see examples for text and image.

I am, however, able to use document if I use Claude 3 sonnet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.17 enhancement New feature or request Priority-High Roadmap:Vector Database/GenAI Project-wide roadmap label
Projects
None yet
5 participants