Blog
Notes on the things that cost me the most time to work out. Written up so the next person spends less.
Series — published elsewhere
2025-03-28
RAG for messy-folder-reorganizer-ai
4 parts on dev.toFirst research into RAG and embeddings, written while teaching a Rust CLI to work out which folder a file belongs in.
- 01Adding RAG and ML to AI files reorganization CLI ↗
Version 0.2: a Qdrant vector store and clustering replace plain LLM prompting for matching files to existing folders.
- 02How cosine similarity helped my CLI decide where files belong ↗
Why cosine distance is the metric that fits file and folder embeddings, and what the alternatives got wrong.
- 03Making embeddings understand files and folders with simple sentences ↗
Wrapping raw names in a short natural sentence measurably improved classification quality.
- 04Embeddings clustering with agglomerative hierarchical clustering ↗
Normalization, cosine distance and step-by-step merging — grouping leftover files without knowing the cluster count up front.