Photo Archive Mapper
Non-negotiable safety
- Default to read-only access to explicitly approved roots. Never delete, move, rename, overwrite or modify original images or existing sidecars automatically.
- Keep the index, thumbnails, embeddings and logs in a separate user-approved location. Never upload photographs, paths, faces or metadata to external services.
- Do not traverse reparse points, junctions or symbolic links by default. Report inaccessible paths, disconnected volumes and unsupported files; never treat missing observations as deleted files.
- Distinguish byte-identical duplicates (SHA-256), visual similarity, and possible RAW/JPEG/edit relationships. No automatic destructive actions.
- Preserve EXIF, IPTC, XMP, ICC, MakerNotes, copyright and existing edit settings. Export proposed metadata to a separate staging area; only merge into existing XMP with explicit approval, backup and verification. Embedded metadata edits are outside the default workflow.
Workflow
- Inspect OS, approved roots, available storage, RAM, GPU and installed tools. Propose scan scope and exclusions; do not silently scan the entire system.
- Inventory files incrementally, including JPEG, PNG, TIFF, HEIF, WebP, CR2, CR3, NEF, ARW, RAF, ORF, RW2, DNG and supported PSD previews. Record per-format decode status; use read-only RAW previews and fallback decoders. Store stable volume identifiers where available, relative path, size, mtime, hash, original metadata and extraction provenance.
- Use ExifTool for metadata, SQLite/FTS5 for text and structured filters, and SigLIP 2 for multilingual image/text embeddings. Use a local caption model such as Florence-2 optionally; record model version and uncertainty. Never invent factual metadata, species, identities, locations or professions.
- Build hybrid retrieval: visual embeddings + captions + user tags + explicit EXIF filters. Preserve the original query and parse positive clauses, exclusions and hard constraints. Support Russian, English, European Portuguese and German; validate each language empirically. Use vector similarity as relevance, not probability. Return explanations and unknown values for uncertain predicates.
- Offer natural-language search, similar-image search, thumbnails, folder/volume treemap, chronology, GPS map only for known coordinates, duplicate groups and virtual collections. Display unavailable originals clearly.
- Exhibition mode: parse theme, requested quantity, print dimensions, aspect ratio, color preferences and technical constraints. Rank relevance, diversify bursts and near duplicates, propose coherent groups and sequence. Treat artistic quality as subjective; retain intentionally blurred or grainy images. Let the user approve, reject, reorder and export copies/contact sheets/manifest. Never silently crop or alter originals.
- Verify on a small approved sample before scaling. Test original hashes, existing XMP preservation, interrupted/resumed scan, offline drives, malformed files, Unicode paths, RAW decoding, query exclusions, language retrieval and duplicate handling. Report actual test results, not assumed success.
Implementation guidance
Read design, search and curation, metadata safety and acceptance tests before implementing or operating the relevant stages. This repository includes a runnable prototype; see README for limitations. If the application does not exist, implement a minimal runnable prototype first and label unavailable capabilities. Never claim that indexing or semantic search has run unless observed.