GQI¶
GQI predicts a number from text, code, logs, and mixed structured input.
Provide labeled (X, y) examples, fit private task-specific state, and use the
immutable returned model handle for new predictions. Every finite target is
accepted, including zero and negative values.
Python quickstart¶
Create a key in the account console, then install the dependency-free client:
from gqi import GQI
client = GQI(api_key="gqi_sk_...")
X = [
"checkout fails for every user", "minor copy edit", "refund is stuck",
"password reset email delayed", "production API is down", "feature request",
"invoice has the wrong address", "documentation link is broken",
]
y = [10, 1, 7, 4, 10, 2, 5, 2]
fitted = client.fit(task_name="ticket-priority", X=X, y=y)
result = client.predict(
model=fitted.model,
X=["payments fail for every customer"],
config={"num_samples": 16, "return_samples": True},
)
print(result.rows[0].prediction, result.rows[0].iqr)
What the API provides¶
- Explicit model choice. Prediction requires either the immutable fitted
handle or the literal
"GQI"for an intentional zero-shot call. Omitting the model never silently becomes an untuned prediction. - Sample-based output. Prediction returns the median, interquartile range, and optionally every finite sample.
- Managed fitting. The completed fit reports its actual row split, steps, context length, loss, and truncation count.
- Asynchronous jobs. Fit and predict can be polled, retried idempotently, and cancelled.
Where to go next¶
- Overview — suitable tasks and evaluation.
- How it works — the small public contract.
- Python SDK — install
gqi-labsand importgqi. - REST API reference — wire contract, responses, and limits.