Skip to content

EmbedData has the same class and instance attributes #133

Description

@pramodith

Describe the bug
The EmbedData class has the same class and instance attributes, its not clear to me if there's a reason behind this further more trying to create an instance of the class throws an error.

https://github.com/StarlightSearch/EmbedAnything/blob/edf3086852d6dd003fac56ff9de09adfde57af13/python/python/embed_anything/_embed_anything.pyi#L308C1-L324C1

To Reproduce

ed = EmbedData(embedding=[0.1, 2.4], text="hi", metadata={})

raises the error:

TypeError: No constructor defined for EmbedData

Expected behavior
An instance of EmbedData is created.
Screenshots

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions