tfeldmann / organize

The file management automation tool.
http://organize.readthedocs.io
MIT License
2.31k stars 130 forks source link

OCR read and ai to rename and categorize #329

Open neonnightsnz opened 11 months ago

neonnightsnz commented 11 months ago

OCR and chatgpt could be used to read pdf docs and give them a more appropriate name and category

files would be scanned and pop up approving the new name and category manna adjustment and corrected. Data from this processing would be used to create a sorting models

https://nanonets.com/ http://www.dropitproject.com/

tfeldmann commented 10 months ago

Hi, thanks for the ticket. This is possible right now with a python filter and the confirm module. Something like this:

rules:
  - locations: .
    filters:
      - python: |
          # AI help here:
          import random
          num = random.randint(1, 1000)

          return {
            "ai_name": f"new-name-{num}.txt"
          }
    actions:
      - confirm: "Should this file be renamed to {python.ai_name}?"
      - echo: "Renaming..."
tfeldmann commented 10 months ago

Two things already on the todo list:

staberas commented 3 months ago

I'm currently working integrating ai features, currently implemented ai template generator that will generate a yaml when you tell it what you want to do. All that using local llm. https://github.com/staberas/AI-organize