This project consists of a tool able to organize your files based on context similarity, grouping them in folders with the context as name.
Note: This project currently sorts only PDFs
- Ollama 0.5.5
- Python 3.12.2
To be able to run the project, make sure to have the following tools installed:
- Ollama:
Go to https://ollama.com/download and select your platform Note: This project is currently only available for Windows - AI model of preference (gemma2:2b by default):
By default, it will automatically pull the model on the first run. Otherwise executeollama run gemma2:2bor any other AI model for the first time to pull from the repository the corresponding model.
- Clone the repository:
git clone https://github.com/Terzer-bit/FileSorter.git - Change directory to the project folder:
cd FileSorterfor PowerShell
chdir FileSorterfor cmd - Install the requirements:
pip install -r requirements.txt - Execute the script file:
pyhton ./FileSorter.py
Parameters are displayed at the beginning of the code
- modelToUse: The model's name in Ollama (gemma2:2b by default).
- enableManualPath: Bool that allows switching between asking the user what path wants to insert and automatically sorting the file specified in folderPath (False by default, folder needs to be changed within the code).
- folderPath: The file to sort when enableManualPath is set to False (default).
For any details contact the owner of the project on:
- Email: garciavinapablo@gmail.com
- LinkedIn: pablo-garcía-viña