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

[FEATURE] JSON or String Metadata #5772

Open
Samoed opened this issue Dec 20, 2024 · 4 comments
Open

[FEATURE] JSON or String Metadata #5772

Samoed opened this issue Dec 20, 2024 · 4 comments
Labels
type: enhancement Indicates new feature requests

Comments

@Samoed
Copy link

Samoed commented Dec 20, 2024

Is your feature request related to a problem? Please describe.

Currently, only TermsMetadata, IntMetadata, and FloatMetadata are available, which is quite limited. It would be great to have the option to add more types of metadata for greater flexibility.

Describe the solution you'd like

I suggest adding String and/or Json metadata fields.

Describe alternatives you've considered

No response

Additional context

Mention of JSON metadata was here #5425

@frascuchon frascuchon added the type: enhancement Indicates new feature requests label Jan 10, 2025
@davidberenstein1957
Copy link
Member

Hi @Samoed we have not included this because of bloated indexes in elastic that we might create in elastic without type constraints. You could still do allow_extra_metadata=True but this doesn't enable search.

@Samoed
Copy link
Author

Samoed commented Feb 5, 2025

Yes, I missed it! Thanks

@Samoed Samoed closed this as completed Feb 5, 2025
@Samoed
Copy link
Author

Samoed commented Feb 5, 2025

I've replied to wrong issue. I understand that this can bloat search, but I want somehow to store some additional information about records and see it in UI/get from python. The only metntion of allow_extra_metadata is:

You can also set the allow_extra_metadata argument in the dataset to True to specify whether the dataset will allow metadata fields in the records other than those specified under metadata. Note that these will not be accessible from the UI for any user, only retrievable using the Python SDK.

But this not providing examples how to use it.

@Samoed Samoed reopened this Feb 5, 2025
@davidberenstein1957
Copy link
Member

davidberenstein1957 commented Feb 6, 2025

@Samoed this allows you to just upload arbirary metadata along with records, however, the data will not be available for search or visisible for annotators. It is more used for storage.

You could also choose to add another TextField or CustomField to store information, which should be available for search.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement Indicates new feature requests
Projects
None yet
Development

No branches or pull requests

3 participants