avocet/tests
pyr0ball 118ae2660a feat: Imitate tab — pull CF product samples, compare LLM responses
Backend (app/imitate.py):
- GET /api/imitate/products — reads imitate: config, checks online status
- GET /api/imitate/products/{id}/sample — fetches real item from product API
- GET /api/imitate/run (SSE) — streams ollama responses for selected models
- POST /api/imitate/push-corrections — queues results in SFT corrections JSONL

Frontend (ImitateView.vue):
- Step 1: product picker grid (online/offline status, icon from config)
- Step 2: raw sample preview + editable prompt textarea
- Step 3: ollama model multi-select, temperature slider, SSE run with live log
- Step 4: response cards side by side, push to Corrections button

Wiring:
- app/api.py: include imitate_router at /api/imitate
- web/src/router: /imitate route + lazy import
- AppSidebar: Imitate nav entry (mirror icon)
- config/label_tool.yaml.example: imitate: section with peregrine example
- 16 unit tests (100% passing)

Also: BenchmarkView.vue Compare panel — side-by-side run diff for bench results
2026-04-09 20:04:45 -07:00
..
__init__.py feat: initial avocet repo — email classifier training tool 2026-02-27 14:07:38 -08:00
test_api.py fix(avocet): narrow cancel except clause, clear stale cancel flags on new run 2026-03-15 18:13:01 -07:00
test_benchmark_classifier.py fix(avocet): guard discover_finetuned_models against malformed/incomplete training_info.json 2026-03-15 15:18:13 -07:00
test_cforch.py test: fix test_tasks_parses_yaml for TaskEntry schema 2026-04-09 20:02:12 -07:00
test_classifier_adapters.py fix(avocet): FineTunedAdapter GPU device routing + precise body truncation test 2026-03-15 10:56:47 -07:00
test_finetune.py fix(avocet): move TorchDataset import to top; split sample_count into total+train 2026-03-15 16:02:43 -07:00
test_imap_fetch.py feat: extract IMAP logic to app/imap_fetch.py for reuse by API 2026-03-04 11:42:22 -08:00
test_imitate.py feat: Imitate tab — pull CF product samples, compare LLM responses 2026-04-09 20:04:45 -07:00
test_label_tool.py refactor: consolidate HTML extraction into app/utils.py 2026-04-08 06:52:15 -07:00
test_models.py feat: model compatibility warning on HF lookup 2026-04-09 09:48:55 -07:00
test_sft.py feat: add failure_category field to SFT corrections (#16) 2026-04-08 22:10:26 -07:00
test_sft_import.py fix: log warning when sft record is missing id field 2026-04-08 07:30:46 -07:00