---
title: "Consistent Tags"
video_id: HIH4TEUHL4g
url: https://www.youtube.com/watch?v=HIH4TEUHL4g
workflow_page: https://workflows-of-ai.com/workflow/consistent-tags
language: en
captions: generated
---

0:01 the workflow I we show now is super
0:03 quick and it's aimed at people that know
0:05 druple already so you might wonder why
0:07 it says Mark Zuckerberg aka the
0:10 suck uh so what we're going to do today
0:14 as a workflow is that we're going to add
0:15 a title a image and a b body in an
0:18 article and we're going to have ai pick
0:20 out and generate tags for this
0:24 article we have done this before so
0:27 there's a workflow for this before but
0:29 we're going to up the game two times in
0:32 this case so the first one is simple
0:34 because this can be done with all the
0:36 stuff in the inflator open I now we're
0:38 going to uh add a image so it also tags
0:42 on the image I don't know why you would
0:43 want to do that but I'm just going to
0:45 Showcase that is possible if you find
0:47 some uh actual use case for it the other
0:51 one is more important though we want
0:54 consistency in the tags and this means
0:57 uh if you take this use case you have
1:00 four articles about Christianity one is
1:04 about Jesus second one is about Jesus
1:07 Christ the third one is about uh Jesus
1:10 of Nazareth the fourth one is about the
1:13 Messiah these are the same people right
1:16 the AI would tag the first article is
1:18 Jesus second as Jesus of Nazareth and so
1:21 on you get four tags that point to one
1:24 article even though this should be one
1:26 tag pointing to four articles right and
1:30 and this is when AI does it this might
1:32 actually happen when manual editors does
1:34 it as well say that you have a junior
1:36 editor we take the same example uh
1:39 you're in a country where Christianity
1:41 is not the minority religion or is very
1:44 small they might not know that Messiah
1:47 and Jesus Christ is the same person or
1:49 even Jesus and Jesus of Nazareth right
1:52 and in the case of Messiah and Jesus of
1:54 Nazareth they start with different uh
1:57 characters so if you have autocomplete
1:59 you're you're not going to see Messiah
2:01 when you start writing Jesus right so
2:03 you get the same problem there so this
2:05 is what we're going to solve
2:07 now um before I start with that uh
2:12 people that didn't see the workflows
2:13 videos might wondering what the hell is
2:15 this so there is this AI interpolator
2:18 module I built which is basically a
2:20 framework for uh running and chaining AI
2:24 Tools in this case we're not going to
2:26 change chain we're not going to do
2:28 anything complex if you want to see
2:29 really cool workflows go to workflows
2:32 of-
2:34 a.com and there are chaining workflows
2:36 that's much cooler than what you're
2:38 going to see
2:41 today so uh what we're doing today is
2:45 that we're just having the standard
2:46 installation I have added a term called
2:48 Mark suckerberg aka the sck because I
2:51 always want it to be tagged like that I
2:53 don't want it to be tagged as Mark
2:54 Zuckerberg
2:56 right I will then go to content type
2:59 article so this is the standard
3:01 installation that comes with the article
3:03 we're just going to reuse it as it is it
3:05 has as you can see a body a image and
3:07 then the tags which is just an entity
3:09 reference what's important here it
3:11 should be unlimited if you want to
3:13 create multiple tags uh it should have
3:16 create referenc entities if they don't
3:19 already exist if you want it to generate
3:21 tags so the rule we're going to use from
3:24 the interpolator can also be used to
3:26 select uh categories from a category
3:29 tree but in this case we want to
3:31 generate them but we still want them to
3:33 be similar
3:35 right the next de we do is enable the a
3:38 insolator the rule we're going to use is
3:40 open AI taxonomy we're going to use
3:43 advanced mode because we want title and
3:45 body so we want multiple field uh you
3:47 only see this if you install the token
3:49 module so you have to install it I have
3:52 prepared uh prompt here so I don't have
3:54 to write it I will read it there based
3:56 on the article title article text and
3:58 image create 5 to eight category ories
4:00 that matches the text persons of not
4:03 notoriety in the text or image should be
4:07 tagged any name that is remotely famous
4:10 in the text should be tagged also tag
4:13 the clothes that the person wears on the
4:15 image for example blue shirt or red
4:17 pants uh all those is to make sure that
4:20 it chooses Mark Zuckerberg and it does
4:22 something on the image right abstract
4:24 things or objects outside of clothing
4:26 should not be tagged and that's to make
4:28 sure that I mean it might might find
4:30 abstract terms to be more important than
4:32 tagging Mark Zuckerberg right so I'm
4:35 trying to make sure that that doesn't
4:36 happen and this is prompt engineering
4:38 you have to find the best prompt for
4:39 what you're trying to solve article
4:41 title replaced by the token Noe title
4:44 article text replaced by the nobody
4:46 under advanced settings the interpolator
4:48 weight and worker doesn't matter this is
4:51 going to go in under 10 seconds so we
4:52 can just save it directly when we save
4:54 the
4:55 entity no chaining so no weight is
4:58 needed text manipulation we set the
5:00 uppercase because I already started with
5:02 this find similar tags is the checkbox
5:05 we want to check so what this actually
5:07 does is that it first it generates all
5:10 these tags then it checks hey these are
5:13 the tags we have is something similar
5:16 then replace it so that's the only thing
5:19 it does basically but it makes it so
5:21 much more powerful we're going to use
5:23 GPT for vision preview because the image
5:25 should matter we choose the image as the
5:27 image we upload so that's the image
5:30 field we save and now we're just going
5:33 to create article here so I'm going to
5:35 take this article so it's an article
5:39 about his cage fighting but nowhere in
5:43 this article does it say Mark Zuckerberg
5:45 aka the suck right it just says Mark
5:49 Zuckerberg and we're going to upload
5:52 that with this image of Bill gate and
5:55 Mark Zuckerberg and the tags field is
5:58 then what's going to be filled in
5:59 automatically right so we just save
6:03 now this will take a little bit of time
6:06 but it's going to be finished any second
6:08 now and then the tags will be filled
6:11 in so if we go down it will have tags
6:16 and you will see here that it has tagged
6:19 it Mark Zuckerberg aka the sck Elon Musk
6:22 Marshall Arch so it didn't actually do
6:26 anything on the image it might be too
6:28 hard to actually uh take this image so
6:31 we're going to try with another one just
6:33 to see if we can get this
6:35 working uh so we're just going to copy
6:39 here it says suckerberg there maybe we
6:42 need somewhere it says the first name so
6:44 it understands from Context that it's
6:47 Facebook founder Mark Zuckerberg we're
6:49 talking about and not someone else that
6:51 might be named suckerberg
6:54 um and let's see here we try with this
6:59 one in instead he has a very specific
7:01 red tie there let's see if we can get
7:04 the AI to at least see
7:07 that so this is going to take some
7:09 seconds
7:13 again and let's see if we get something
7:17 and most importantly then it shouldn't
7:19 tag it Mark Zuckerberg so it should only
7:21 tag it Mark Zuckerberg aka the suck
7:24 right and here you can see it also have
7:27 tagged it red tie so I just will uh
7:30 search here there is no mentioning of
7:33 red tie in the text so this it got from
7:35 the
7:35 image uh yeah so this is basically
7:38 what's added into the features that
7:40 makes the free tagging a lot more
7:43 powerful feel free to set it up it's
7:45 open source is free to use just do the
7:48 same thing after you watch this so yeah
7:51 thank you for
7:53 watching
