photools.com Community

IMatch Discussion Boards => General Discussion and Questions => Topic started by: Powertower on February 06, 2025, 09:31:19 PM

Title: Writing Description as Keywords
Post by: Powertower on February 06, 2025, 09:31:19 PM
HI,
I have most of my files described but not keyworded. I played now some time with Autotagger but I couldn“t find a prompt to write the description (a lot are locations) as Keywords. Has anyone else found out how to do it?
Thanks
Title: Re: Writing Description as Keywords
Post by: Mario on February 07, 2025, 08:40:20 AM
I don't understand what you want. "Write the description as keywords". What does that mean? Can you give an example?

You can ask the AI for information about an image and then direct the returned data into XMP description, XMP hierarchical keywords or a dedicated AI tag.
Title: Re: Writing Description as Keywords
Post by: Powertower on February 07, 2025, 09:03:52 AM
For example:
City Palace, Jaipur, Jaipur, Rajasthan, India is in the description and now I want that AI is writing that as keywords.
Title: Re: Writing Description as Keywords
Post by: Mario on February 07, 2025, 09:15:03 AM
Your description is already a list of keywords.
Why not use a Metadata Template to copy from {File.MD.keywords} into {File.MD.hierarchicalkeywords}?
You'll have to ensure that the , is replaced with a ; using this variable as the source:
{File.MD.description|replace:~,==~;}

To use AI, this prompt for Ollama seems to work:

Replace the blank and comma in this text "{File.MD.description}" and return a list of words separated with ;

Use this prompt for keywords, leaving the other prompts unused. Give it a try.
Title: Re: Writing Description as Keywords
Post by: Powertower on February 07, 2025, 09:41:22 AM
Many thanks- I want to do this with thousands of photos would that work as batch?
Title: Re: Writing Description as Keywords
Post by: Lincoln on February 07, 2025, 10:26:57 AM
Interesting method  :-\ What would be the advantage of using AI for this? I just create a group entry in the Keyword Thesaurus for this. Limited experience with AI - just trying to understand the advantage.
Title: Re: Writing Description as Keywords
Post by: Powertower on February 07, 2025, 10:30:10 AM
I have virtually 1 Mio photos with descriptions but no keywords. What I would like to do is using AI to create Keywords and in addition use the existing descriptions (mostly locations) to write as Keywords.
Title: Re: Writing Description as Keywords
Post by: Mario on February 07, 2025, 02:35:54 PM
I would not use AI for this simple task. Processing a million files will take a very long time.
Create a Metadata Template as shown and apply it to any number of files (work in batches of thousands, not one million files at once). This will be very fast.

Then you can run the AI to create additional keywords as needed.

PS.: I see you are using blanks in your keywords ("City Palace") so the prompt should not mention blanks. Better would probably be (test it!)

Replace the commas in this text with semicolons: "{File.MD.description}".
Title: Re: Writing Description as Keywords
Post by: Powertower on February 07, 2025, 03:18:36 PM
Funktioniert vielen Dank!