28 lines
1.3 KiB
Markdown
28 lines
1.3 KiB
Markdown
## Purpose
|
|
|
|
Canonical specification for news-image-relevance-and-fallbacks requirements synced from OpenSpec change deltas.
|
|
|
|
## Requirements
|
|
|
|
### Requirement: Image query fallback uses AI-focused defaults
|
|
When extracted image keywords are insufficient, the system SHALL use AI-focused default fallback terms.
|
|
|
|
#### Scenario: Empty keyword extraction
|
|
- **WHEN** keyword extraction yields no usable topic keywords
|
|
- **THEN** the system uses default fallback terms including AI-domain keywords (for example `ai`, `machine learning`, `deep learning`)
|
|
|
|
### Requirement: Generic AI image fallback is guaranteed
|
|
If provider lookups fail to return a usable summary image, the system SHALL use a generic AI-themed fallback image.
|
|
|
|
#### Scenario: Provider chain failure
|
|
- **WHEN** all configured image providers return no usable image
|
|
- **THEN** the system assigns a generic AI fallback image URL/path for summary image
|
|
|
|
### Requirement: Fallback behavior remains context-aware first
|
|
The system SHALL attempt context-aware keyword retrieval before any generic fallback image is selected.
|
|
|
|
#### Scenario: Context-aware attempt precedes fallback
|
|
- **WHEN** summary image selection runs for a news item
|
|
- **THEN** the system first attempts provider queries from extracted context-aware keywords
|
|
- **AND** only falls back to generic AI image if these attempts fail
|