Interactive Crop and Livestock Query Analytics Platform for FarmerChat Kenya
# FarmerChat Kenya Analytics Platform
Version 4.2.0 is a unified Streamlit and Plotly application with two modules:
- Crop Query Analytics
- Livestock Query Analytics
The Livestock module extends the approved Crop Dashboard v3.0.1 design system.
Both modules use the same layout, responsive behavior, typography, color
palette, KPI cards, filters, chart styling, spacing, navigation, and export
patterns.
## Approved analytical sources
The packaged CSV files are the only analytical sources:
- `farmerchat_kenya_crop_intent_labelled_deduplicated_asset_standardized_v_4.0.0.csv`
- `farmerchat_kenya_livestock_intent_labelled_deduplicated_asset_standardized_v_4.0.0.csv`
The application excludes every 2024 test record before any KPI, visualization,
table, global filter, or download is calculated.
## Module navigation
Use the **Analytics module** control at the top of the sidebar to move between
Crop and Livestock. Each module remembers its own page and filter selections.
Selections from one module never leak into the other module.
Both modules contain six pages:
1. Data Quality
2. Crop Asset Type Analysis or Livestock Value Chain Analysis
3. Agricultural Domains
4. Subdomain Analysis
5. Geographic Analysis
6. Time Trends
## Global filters
The Crop module retains its approved global filters:
- Year
- County
- Asset Type
- Value Chain
- Domain
- Subdomain
The Livestock module uses the same filter design and adds the two requested
livestock classification filters:
- Year
- County
- Livestock Type
- Value Chain
- Domain
- Subdomain
- Intent
- Confidence Level
Every chart, KPI, table, and filtered-data download responds to the active
module's global filters.
## Livestock module coverage
### Data Quality
Shows reconstructed source occurrences, retained unique queries, exact
duplicates removed, potential near duplicates, incomplete core records,
unintelligible records, missing metadata, missing county, unclear asset names,
and review flags.
### Livestock Value Ch …