Feature Request: Add Image as sub-class of BaseMedia #31094
hesreallyhim
announced in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Checked
Feature request
BaseMedia
represents Documents and Blobs, which are containers for data, id's, and metadata, and are useful for processing by embedding models and vector stores. Some vectorstores (e.g. Chroma) have methods likeencode_image
,add_images
, which encode an image to base64, but there is no natural data type for this class of data.Document
is a "class for storing a piece of text..."We should add a sub-class of
BaseMedia
forImage
to reflect the fact that you can embed and query over image data.Motivation
See above.
Proposal (If applicable)
See above. Properties might be:
uri
encoding
Beta Was this translation helpful? Give feedback.
All reactions