You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Base Element class should have optional embeddable_text and embeddable_image properties defining the content for the two currently supported embedding types
To create the embeddable_text property should we should simply rename the current key property to embeddable_text
The implementation embeddable_image in the base Element class should simply always return None. The ImageElement class should override this implementation to return the bytes of the image instead.
Proper adjustments should be made in insert_element method of DocumentSearch
Motivation
Current implementation assumes that emedded images are instances of ImageElement. we should make it more flexible to potentially support different classes
Additional context
No response
The text was updated successfully, but these errors were encountered:
Feature description
Element
class should have optionalembeddable_text
andembeddable_image
properties defining the content for the two currently supported embedding typesembeddable_text
property should we should simply rename the currentkey
property toembeddable_text
embeddable_image
in the baseElement
class should simply always returnNone
. TheImageElement
class should override this implementation to return the bytes of the image instead.insert_element
method ofDocumentSearch
Motivation
Current implementation assumes that emedded images are instances of ImageElement. we should make it more flexible to potentially support different classes
Additional context
No response
The text was updated successfully, but these errors were encountered: