Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
How Does One

How does one add_tags to a pipeline?

There is this function here: None

But, I cannot figure out how to use it. I would like to automatically add_tags in the code (specifically in the PipelineDecorator.pipeline ) depending on certain values of arguments and outputs of the steps so that these appear in the UI for filtering.

For reference, in this example, where in here would one be able to call the add_tags function? None

This doesn't work:

PipelineDecorator.add_tags(tags = ['testing', 'tag-added'])
  
  
Posted 8 months ago
Votes Newest

Answers 2


Ah, I see, this makes sense now. Thank you!

  
  
Posted 8 months ago

Hi @<1654294828365647872:profile|GorgeousShrimp11> ! add_tags is an instance method, so you will need the controller instance to call it. To get the controller instance, you can do PipelineDecorator.get_current_pipeline() then call add_tags on the returned value. So: PipelineDecorator.get_current_pipeline().add_tags(tags=["tag1", "tag2"])

  
  
Posted 8 months ago
556 Views
2 Answers
8 months ago
8 months ago
Tags
Similar posts