ARIEL data ingestion A facility adapter pulls entries from the source system and yields EnhancedLogbookEntry records; the repository upserts them idempotently into PostgreSQL and copies their pictures into attachment_files. Optional enhancement modules run as a separate step: each reads stored entries, and each writes its results back to the database, in order: picture captions, keywords and summaries, text embeddings, picture embeddings, and the markdown mirror for the qmd sidecar. ENHANCEMENT · OPTIONAL STEP · IN RUN ORDER EnhancedLogbookEntry READS ENTRIES WRITES RESULTS BACK source system HTTP API · JSONL file facility adapter yields entries one at a time repository upsert dedup by ID · copies pictures PostgreSQL enhanced_entries · attachment_files ImageCaptionModule pictures → captions in the searchable text SemanticProcessorModule → keywords + summary fields TextEmbeddingModule → per-model embedding tables ImageEmbeddingModule pictures → per-model image vector table QmdExportModule → markdown mirror for the qmd sidecar