You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Options: `--max-rows N`, `--eval-fraction 0.1` (default), `--eval-fraction 0` to train on all rows without a holdout, `--seed`, `--feature-backend {tfidf,embedding}`, `--embedding-model …`, `--registry-dir` (JSONL registry), `--metadata-out` (JSON sidecar for reviewing artifact lineage without loading the pickle).
69
+
Options: `--max-rows N`, `--eval-fraction 0.1` (default), `--eval-fraction 0` to train on all rows without a holdout, `--seed`, `--feature-backend {tfidf,embedding}`, `--embedding-model …`, `--thresholds`, `--threshold-metric {accuracy,precision,recall,f1}` for holdout-based decision-threshold selection, `--registry-dir` (JSONL registry), `--metadata-out` (JSON sidecar for reviewing artifact lineage without loading the pickle).
# optional second artifact: export QUORABUST_MODEL_B=models/other.pkl
104
104
```
105
105
106
-
`GET /metrics` exposes Prometheus text; `POST /predict` accepts `{"question1":[...],"question2":[...]}` and optional header `X-Quorabust-Variant: b`. Responses include `proba_duplicate`, thresholded `is_duplicate`, and `decision_threshold`. Add `?threshold=0.7` to override the duplicate cutoff for one request, or set artifact metadata `decision_threshold`/ `QUORABUST_DECISION_THRESHOLD` for the default. Add `?explain=true` to return per-pair input feature values. Interactive docs: **`/docs`**. Load testing: [docs/LOAD_TESTING.md](docs/LOAD_TESTING.md). Grafana: [docs/GRAFANA.md](docs/GRAFANA.md).
106
+
`GET /metrics` exposes Prometheus text; `POST /predict` accepts `{"question1":[...],"question2":[...]}` and optional header `X-Quorabust-Variant: b`. Responses include `proba_duplicate`, thresholded `is_duplicate`, and `decision_threshold`. Add `?threshold=0.7` to override the duplicate cutoff for one request; otherwise serving uses the holdout-selected artifact `decision_threshold`when present, then `QUORABUST_DECISION_THRESHOLD`, then `0.5`. Add `?explain=true` to return per-pair input feature values. Interactive docs: **`/docs`**. Load testing: [docs/LOAD_TESTING.md](docs/LOAD_TESTING.md). Grafana: [docs/GRAFANA.md](docs/GRAFANA.md).
107
107
`GET /models` returns allowlisted metadata for loaded variants without leaking local
Copy file name to clipboardExpand all lines: docs/ENTERPRISE.md
+7-3Lines changed: 7 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,10 @@
14
14
15
15
## Lineage and artifacts
16
16
17
-
Training writes `csv_sha256`, `git_revision`, `quorabust_version`, `feature_schema`, `reference_feature_means` (for drift checks), and metric fields into the pickle `meta` dict. Treat `.pkl` files as **trusted** (pickle); load only from controlled storage.
17
+
Training writes `csv_sha256`, `git_revision`, `quorabust_version`, `feature_schema`,
when an eval split exists, and metric fields into the pickle `meta` dict. Treat `.pkl`
20
+
files as **trusted** (pickle); load only from controlled storage.
18
21
19
22
Use `quorabust-train --metadata-out models/quorabust.meta.json` to write the same
20
23
lineage and metric metadata as JSON. Reviewers and release tooling can inspect that
@@ -26,8 +29,9 @@ prefer a non-pickle format such as `skops` or ONNX in a future release.
26
29
27
30
-**`quorabust-serve`**: FastAPI with `/health`, `/ready`, `/predict`, `/metrics` (Prometheus). Configure **`QUORABUST_MODEL_PATH`** and optional **`QUORABUST_MODEL_B`** for A/B; clients may send **`X-Quorabust-Variant: b`**.
28
31
-**Decisioning**: `/predict` returns both `proba_duplicate` and thresholded
29
-
`is_duplicate`. Clients can pass `?threshold=0.7`; otherwise serving uses artifact
30
-
metadata `decision_threshold`, then `QUORABUST_DECISION_THRESHOLD`, then `0.5`.
32
+
`is_duplicate`. Clients can pass `?threshold=0.7`; otherwise serving uses the
33
+
holdout-selected artifact metadata `decision_threshold`, then
34
+
`QUORABUST_DECISION_THRESHOLD`, then `0.5`.
31
35
- Wire ingress timeouts and autoscaling to your **latency** SLO using the histogram in `/metrics`. See [LOAD_TESTING.md](LOAD_TESTING.md) for k6 and [GRAFANA.md](GRAFANA.md) for a starter dashboard JSON.
0 commit comments