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

Correctly switch interface based on chat history and model capabilities #414

Merged
merged 2 commits into from
Mar 11, 2024

Conversation

massi-ang
Copy link
Collaborator

@massi-ang massi-ang commented Mar 10, 2024

Issue #, if available:
To allow for multimodal models, like Claude 3, to be used both for multimodal chat and RAG we selected which interface to use based on the presence of images in the user input or in the chat history.
This logic does not work if the user starts a multimodal chat (using images) and then switches to a text-only model, since we would still route the input to the multimodal interface which does not recognize the selected model

Description of changes:
We added a check to the existing conditions to verify that the selected model has IMAGE input modality support.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

When deciding which interface to use (multimodal or langchain), consider also the InputModalities
of the selected model
@bigadsoleiman bigadsoleiman merged commit 9384add into aws-samples:main Mar 11, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants