https://github.com/mondaychen/file_organizer
demo app: how to use LLM as a general purpose classifier
https://github.com/mondaychen/file_organizer
Last synced: 4 months ago
JSON representation
demo app: how to use LLM as a general purpose classifier
- Host: GitHub
- URL: https://github.com/mondaychen/file_organizer
- Owner: mondaychen
- License: gpl-3.0
- Created: 2023-05-26T02:45:34.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-04T21:38:29.000Z (almost 2 years ago)
- Last Synced: 2024-11-29T09:42:37.392Z (5 months ago)
- Language: TypeScript
- Homepage:
- Size: 979 KB
- Stars: 89
- Watchers: 6
- Forks: 11
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- jimsghstars - mondaychen/file_organizer - demo app: how to use LLM as a general purpose classifier (TypeScript)
README
# File Organizer
AI-powered assistant to organize files on your computer.

## How it works
It reads files in a directory and moves them to a new directory based on the file name, type and content. The destination directory is determined by the LLM model (supports GPT or Claude by Anthropic).## Setup
### Install dependencies
This project uses [Poetry](https://python-poetry.org/) for Python dependency management and NPM for JavaScript dependency management. Please have them both installed before proceeding.
Install the dependencies:
```bash
poetry update && cd file_organizer_ui && npm install
```### Configuration
You need your own API key to run this project.
Copy `.env.example` to `.env` and fill in the values. At least one of the following is required:
- `openai_api_key`
- `anthropic_api_key`## Usage
First, start the backend server:
```bash
poetry run flask run
```Then, start the UI:
```bash
cd file_organizer_ui && npm run dev
```Visit http://localhost:3000/ to use the UI.