Skip to content

Extend feature set and/or feature metadata #463

Closed

Description

@woop

This issue tracks the addition of new fields to the current feature set specification that allow a user to add metadata to either the feature set or features. These fields are optional and are intended to provide users with the flexibility to include feature level or feature level information.

The current proposal is to only add a single string field called description to FeatureSpec

Activity

  1. added
    good first issue
    kind/feature
    on Feb 6, 2020
  2. Yanson commented on Feb 6, 2020

    @Yanson
    Contributor

    We would like to integrate Feast with a Data Governance Tool (one of these).

    It would be helpful to have additional metadata other than "description". E.g.

    • owner
    • team
    • scope
    • deprecated
    • source
    • sensitive
    • pii-level
    • relationships

    How about just adding a metadata field of type map<string, string>?

  3. woop commented on Feb 7, 2020

    @woop
    MemberAuthor

    We would like to integrate Feast with a Data Governance Tool (one of these).

    It would be helpful to have additional metadata other than "description". E.g.

    • owner
    • team
    • scope
    • deprecated
    • source
    • sensitive
    • pii-level
    • relationships

    How about just adding a metadata field of type map<string, string>?

    Hi @Yanson, thanks for the input!

    We'd love to support that use case, in fact @ches and some of our other users have also asked for this. In those discussions the idea was brought up that we could add a label/annotation/tags field (string map) to either a feature set or a feature. That would allow users to add any number of properties to their spec. That sounds very similar to what you are describing above.

    The challenge there is not so much in capturing the information, but more in how we expose it. In your use case, were you looking for something like this (and perhaps something similar on a UI based search):

    client.list_features(meta={"source":"my-db"})
    

    or how would you end up consuming the meta/labels/annotations?

  4. Yanson commented on Feb 7, 2020

    @Yanson
    Contributor

    Our basic needs would be that you do list_features() with no args and you get everything with associated metadata. We would have a scheduled process that does this and pushes the results to the Data Governance Tool.

    While the ultimate goal is to use the Data Governance Tool for discovery, I have a feeling it will be rather heavyweight so a Feast UI (which itself would require the "search" functionality you describe) would probably provide immediate value to Data Scientists.

    One very important reason for using a Feature Store is to share and discover Features, but I don't think search should be the ultimate goal of the Feast project itself. Keep it simple (API only) and create another "app" that can act as a UI, search, rating, discussion tool etc which users can either deploy too or integrate something else as preferred.

  5. woop commented on Feb 11, 2020

    @woop
    MemberAuthor

    Keep it simple (API only) and create another "app" that can act as a UI, search, rating, discussion tool etc which users can either deploy too or integrate something else as preferred.

    Yip, this is what we had in mind as well.

    The question is just if the description and metadata should be the same thing or separate. We planned on adding the metadata type field (aka label/annotation/tags) in 0.6, but I am happy to accelerate this if its needed by folks already.

  6. Yanson commented on Feb 11, 2020

    @Yanson
    Contributor

    The question is just if the description and metadata should be the same thing or separate.

    Honestly, don't have much of an opinion. I wouldn't want to see the description "misused" though, if it's the only field (think; custom CSV, JSON content in there).

    We planned on adding the metadata type field (aka label/annotation/tags) in 0.6, but I am happy to accelerate this if its needed by folks already.

    Not in a desperate hurry. We can contribute if it's that urgent for us.

  7. tfurmston commented on Feb 11, 2020

    @tfurmston

    Personally, I would suggest that they should be separate. If you don't provide people the option to add metadata, but only a description, then I expect people will abuse it.

  8. woop commented on Feb 12, 2020

    @woop
    MemberAuthor

    Personally, I would suggest that they should be separate. If you don't provide people the option to add metadata, but only a description, then I expect people will abuse it.

    I was thinking that we could start with the reverse. Metadata first, and add the description field later. The description field is only valuable above metadata in the case where we want to encourage users to set that specific key, and we perhaps want to print out the contents on a user interface. There is no use case for it right now, but it seems we do have one for metadata.

  9. tfurmston commented on Feb 12, 2020

    @tfurmston

    Yeah, that makes sense to me.

    Thanks!

  10. ches commented on Feb 12, 2020

    @ches
    Member

    I'll try to chime in here shortly since, yes, this topic comes up over and over for us. I will go ahead and cross-reference #363 as a thread that I wanted to find to refer back to on this.

    A possible elephant in the room too… This issue title is explicitly "feature set metadata" and we may want to keep it limited to that, but we've touched on some potential use cases for feature-level metadata as well (governance tags and descriptions for humans are both relevant to me, at feature level also). Clearly the complexity of registration might explode with that, but perhaps it's essential complexity, and could be optional.

    Especially if feature sets might increasingly be downplayed (for similar reasons that consumers don't want to care about feature sets, they are probably less interesting in a registry browsing UI than entities, features, and projects), perhaps it'd be worth bringing feature-level into scope from the outset of metadata discussion.

  11. added this to the v0.5.0 milestone on Feb 14, 2020
  12. woop commented on Feb 15, 2020

    @woop
    MemberAuthor

    I'll try to chime in here shortly since, yes, this topic comes up over and over for us. I will go ahead and cross-reference #363 as a thread that I wanted to find to refer back to on this.

    A possible elephant in the room too… This issue title is explicitly "feature set metadata" and we may want to keep it limited to that, but we've touched on some potential use cases for feature-level metadata as well (governance tags and descriptions for humans are both relevant to me, at feature level also). Clearly the complexity of registration might explode with that, but perhaps it's essential complexity, and could be optional.

    Agreed on the title being a bit misleading, I will update it to include both in scope. I think the feature level discussion is much more relevant right now.

    Especially if feature sets might increasingly be downplayed (for similar reasons that consumers don't want to care about feature sets, they are probably less interesting in a registry browsing UI than entities, features, and projects), perhaps it'd be worth bringing feature-level into scope from the outset of metadata discussion.

    I agree on downplaying feature sets here. It seems like we can immediately add value by providing a means of capturing metadata at the feature level.

    I want to try and gauge the appetite for including feature level tags/meta in 0.5. @ches @tfurmston @Yanson do we need to spec this out at a higher level with discovery and exploration, or are we comfortable with the addition of a field to feature specs and a means of configuring it, and leaving the higher level APIs to future versions?

    So potentially a proposal could be as above

    message FeatureSpec {
        string name = 1;
        feast.types.ValueType.Enum value_type = 2;
       // other fields
       map<string, string> labels = 19;
    }
    

    with the Python SDK having a set_label(key, value) method and a remove_label(key) method on the Feature class. list_feature_sets() would print out this information as well, but filtering will be left for a future release.

    In terms of names, I am open to suggestions. The following have been proposed

    • meta
    • tags
    • labels
    • annotations

    My preference is labels, mostly because it mirrors the way that it has been used in Prometheus and Kubernetes.

  13. changed the title [-]Extend feature set metadata[/-] [+]Extend feature set and/or feature metadata[/+] on Feb 15, 2020
  14. Yanson commented on Feb 17, 2020

    @Yanson
    Contributor

    I would rule-out tags because that doesn't sound like key+value.

    Kubernetes has labels and annotations, both of which set under metadata.

    Labels can be used to select objects and to find collections of objects that satisfy certain conditions. In contrast, annotations are not used to identify and select objects.

    Regardless, I am happy with labels with search, filtering, etc left until later.

  15. tfurmston commented on Feb 17, 2020

    @tfurmston

    Completely agree that feature level makes sense. As an end user, that is likely how I would expect to use it.

    From my point of view, I don't think we are at a point of a more concrete set of requirements, so happy to leave that for a later point.

  16. woop commented on Feb 20, 2020

    @woop
    MemberAuthor

    Unless there are any objections, we will implement labels as a map<string, string> at the feature level for 0.5. We will also add basic getters/setters at the feature set level. We will leave the discovery implementation for future releases.

    Please vote with a thumbs down if you want to discuss this further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/coregood first issuekind/feature

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions