ozgrozer / ai-renamer

A Node.js CLI that uses Ollama and LM Studio models (Llava, Gemma, Llama etc.) to intelligently rename files by their contents
https://thenextaitool.com
GNU General Public License v3.0
1.59k stars 97 forks source link

Feature Request: Scan meta data for date attributes #12

Open NomadicRenegade opened 4 months ago

NomadicRenegade commented 4 months ago

It would be great if we could scan the metadata in the file and as part of the configuration define a naming scheme that includes date to what the LLM finds and lands on. So if my picture was taken on 2024_07_16 and the file name is myFamily, the resulting filename is 2024_07_16_myFamily. Casing can be adjusted for date and main filename (snake + Camel or something like that).

ozgrozer commented 4 months ago

The process you mention I think that doesn't need an AI. Sounds like a metadata-renamer.

NomadicRenegade commented 4 months ago

Well certainly you can make another step with another tool, but if the idea is to streamline and make the tool useful (AI and all), metadata access is key.

ozgrozer commented 4 months ago

Yeah I agree on the metadata sharing with the AI

HorusPi commented 4 months ago

Yeah I agree on the metadata sharing with the AI

If I may, a suggestion may be inserted as a yml file in each level of directory and those being collected along the way , kind of cues for the llm prompt.

Example directory myfamily global.yml file contents main_prompt: family photographs tags:

sub directory 2024-01-01 global.yml file contents tags:

...and so on. So , when the program reaches the files , has the meta information of "Family photographs","winter travel to Spain" as the context.