Skip to content

add: embed images#138

Open
nazeudon (nazeudon) wants to merge 1 commit intolangchain-ai:mainfrom
nazeudon:add-embed-images
Open

add: embed images#138
nazeudon (nazeudon) wants to merge 1 commit intolangchain-ai:mainfrom
nazeudon:add-embed-images

Conversation

@nazeudon
Copy link

This PR adds support for image embedding for any Cohere model that accepts input_type="image".

What's included:

  • Introduced embed_images() and aembed_images() methods for handling image inputs.
  • Added internal _embed_generic() and _aembed_generic() methods to abstract over text/image input types.
  • Added a test case that confirms image embedding works with supported models.

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.

2 participants