跳到正文
DEV Community· Rhythm Gupta·· 3 小時前AI 評分41

SlothSort:讓本地 AI 整理檔案

SlothSort 🦥 — Let Local AI Organize Your Files

AI 導讀

SlothSort 是一款本地優先的 AI 檔案整理工具,會為上載文件建議檔名、分類和摘要。它以 Ollama 和 Qwen 2.5 3B 生成建議,用戶可審核、修改並批准後才移動檔案,亦可復原操作。完成初始設定及下載模型後,核心流程可離線運作,無須按次支付 AI API 費用,但仍有硬件和電力成本。

正文

What I Built

Meet SlothSort — a local-first AI file organizer that takes the boring work out of managing a cluttered Downloads folder.

Instead of manually opening files, renaming them, and deciding where they belong, simply upload your documents and let SlothSort suggest meaningful filenames, categories, and summaries.

It supports documents, invoices, certificates, notes, spreadsheets, code files, and more.

The best part? You stay in control. Review the AI's suggestions, edit them if needed, and approve files before they move into your organized library. Made a mistake? Undo the move.

The goal is simple: spend less time organizing files and more time doing what matters.

Demo

Code

The project includes the Flask backend, a web dashboard, local AI integration, SQLite storage, and file organization with undo support.

How I Built It

I built SlothSort using:

  • Python + Flask — application backend and web interface.
  • Ollama — runs the language model locally.
  • Qwen 2.5 3B — the default open-weight model for generating file organization suggestions.
  • SQLite — stores file metadata and action history.
  • HTML, CSS, and JavaScript — powers the interactive dashboard.
  • Local file-processing libraries — extract text from supported documents before analysis.

When a file is uploaded, SlothSort extracts available text, sends the relevant content to the local model, and receives a suggested filename, category, and summary. The user can review the result before the file is moved.

If Ollama is unavailable, the application has a basic rule-based fallback so the workflow can still be tested.

Why Does Open Innovation Matter?

Files can contain personal information, financial details, academic certificates, and work documents. Uploading all of them to a third-party AI service is not always desirable.

That's why I wanted to explore a local-first approach.

With Ollama and an open-weight model, SlothSort can analyze files on the user's own machine instead of relying on a hosted AI API.

Open innovation makes three things possible:

  • Privacy: File contents do not need to be sent to an external AI provider.
  • Control: Users can change the model, adjust prompts, and customize the organization rules.
  • Accessibility: After the initial setup and model download, the core workflow can run offline without per-request AI API charges.

There is still a cost in hardware and electricity, and local models can make mistakes. That's why SlothSort includes a review-before-moving workflow instead of blindly trusting every prediction.

For me, open-source AI is not just about using a different model. It's about giving people more control over where their data goes and how their tools work.

The Lazy Payoff 🦥

Think about the files that accumulate in your Downloads folder: invoices, certificates, notes, screenshots, and documents with names like final_v2_revised.pdf.

Each file takes only a few seconds to organize, but the repeated effort adds up.

SlothSort aims to reduce that repetitive work by generating suggestions automatically and letting users approve them in batches of small, manageable actions.

I haven't measured a reliable time-saving figure yet, so I won't claim a specific number. That's something I'd like to benchmark as the project develops.

來源:DEV Community · dev.to