Update architecture and infrastructure docs

This commit is contained in:
Claudio Ortolina
2026-03-21 09:31:03 +00:00
parent a479d60da3
commit 47b6f44273
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -116,7 +116,7 @@ Last.fm schemas (separate, not Ecto-persisted to main DB):
| Module | Purpose |
|--------|---------|
| `Records.SearchParser` | Parses search syntax: `artist:X`, `album:X`, `genre:"Y"`, `format:cd`, `type:album`, `purchase_year:2024`, free text |
| `Records.SearchParser` | Parses search syntax: `artist:X`, `album:X`, `genre:"Y"`, `format:cd`, `type:album`, `purchase_year:2024`, `release_year:2024`, free text |
| `Records.Similarity` | Embedding generation (OpenAI, enriched with Last.fm tags), cosine-distance search (sqlite-vec) |
| `Records.TracklistPdf` | Generates 120mm×120mm PDF tracklist from record + release data (Typst) |
| `Batch` | Generic batch runner: stream + transaction + error accumulation |
+3 -2
View File
@@ -70,8 +70,9 @@ Configured in `config/litestream.yaml`. Runs as a separate Docker Compose servic
|---------|-------|
| S3 endpoint | `https://nbg1.your-objectstorage.com` |
| Bucket | `ffmusiclibrary` |
| Sync interval | 1 minute |
| Retention | 672 hours (4 weeks) |
| Sync interval | 24 hours |
| Snapshot interval | 24 hours |
| Retention | 168 hours (1 week) |
Credentials via environment: `LITESTREAM_ACCESS_KEY_ID`, `LITESTREAM_SECRET_ACCESS_KEY`.