writing-skills
writing-skills
Use when creating new skills, editing existing skills, or verifying skills work before deployment
deploymentServe fitted igel models through FastAPI/uvicorn and call the prediction API safely.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill when the user asks to serve a fitted igel model, start the REST endpoint, call the prediction API, use the client example, debug IGEL_MODEL_RESULTS_PATH, or reason about host/port options for serving.
model_results/ directory. If the user has not already run fit or does not have a results directory, route them to tabular-workflows first.igel serve, FastAPI/uvicorn startup, IGEL_MODEL_RESULTS_PATH, /predict JSON shape, curl/client calls, deployment-specific failure modes, stale Docker/GUI deployment notes.predict, export/ONNX, model catalogs, config schemas, tabular preprocessing, or AutoKeras workflows.Confirm the fitted model directory contains the artifacts described in API reference: at minimum model.joblib and description.json; predictions.csv is the endpoint output path.
Start the server with the package CLI:
igel serve -res_dir model_results --host localhost --port 8080
The CLI sets IGEL_MODEL_RESULTS_PATH before running igel's FastAPI app with uvicorn.
Call POST /predict with a JSON object whose keys are the feature columns used for prediction. Use serving workflows for curl and bundled-client examples.
If the request fails, inspect troubleshooting before changing the model or retraining.
Use scripts/predict_client.py to format JSON or CSV rows and call the service without relying on the original source example. It supports --json, --json-file, --csv, --host, --port, --path, --dry-run, and shape validation for scalar-vs-list payloads.
serve options, environment variable contract, FastAPI routes, request/response shape.