An intelligent file organization system that uses AI to analyze and categorize files based on their content.
- Scans directories for files
- Extracts text content from various file types (PDF, DOCX, TXT, MD)
- Uses AI models to analyze content and suggest categories
- Automatically organizes files into category-based directories
- Provides a Streamlit-based web interface for configuration and monitoring
- Comprehensive logging of all operations
- Clone the repository:
git clone https://github.com/a64mahmo/SmartFile
cd SmartFile- Install dependencies:
pip install -r requirements.txt- Configure the application:
- Copy
config.yamland update it with your settings
- Copy
python main.pystreamlit run ui_streamlit.pyEdit config.yaml to customize:
- Source and destination directories
- Supported file types
- Logging configuration
ai-file-organizer/
├── main.py # Entry point
├── file_scanner.py # Scans files in a folder
├── content_extractor.py # Extracts text content
├── ai_categorizer.py # AI logic: rename & classify
├── file_mover.py # Moves/renames files
├── config.yaml # User config (paths, settings)
├── ui_streamlit.py # Optional UI (preview, manual mode)
├── logs/ # Log moved files/actions
└── tests/ # Unit tests
- Python 3.8+
- Dependencies listed in requirements.txt
MIT License