Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
2cf3ba4
[HWORKS-3275] ML software factory
jimdowling Sep 23, 2026
91cd876
[HWORKS-3275] ML software factory
jimdowling Sep 23, 2026
6f4c24a
[HWORKS-3275] ML software factory
jimdowling Sep 24, 2026
fc0376e
[HWORKS-3275] ML software factory
jimdowling Sep 24, 2026
78d505c
[HWORKS-3275] ML software factory
jimdowling Sep 24, 2026
f62bf3d
[HWORKS-3275] ML software factory
jimdowling Sep 28, 2026
36c1283
[HWORKS-3275] ML software factory
jimdowling Sep 28, 2026
8405282
[HWORKS-3275] ML software factory
jimdowling Sep 28, 2026
71626c2
[HWORKS-3275] ML software factory
jimdowling Sep 28, 2026
b8af6dd
[HWORKS-3275] ML software factory
jimdowling Sep 28, 2026
2d1fa4c
[HWORKS-3275] ML software factory
jimdowling Sep 29, 2026
56a4b69
[HWORKS-3275] ML software factory
jimdowling Sep 29, 2026
59c3a16
[HWORKS-3275] ML software factory
jimdowling Sep 29, 2026
722c931
[HWORKS-3275] ML software factory
jimdowling Sep 30, 2026
22910fd
[HWORKS-3275] ML software factory
jimdowling Sep 30, 2026
c073aca
[HWORKS-3275] ML software factory
jimdowling Sep 30, 2026
e78d621
[HWORKS-3275] ML software factory
jimdowling Sep 30, 2026
b6633c6
[HWORKS-3275] ML software factory
jimdowling Sep 30, 2026
c455723
[HWORKS-3275] ML software factory
jimdowling Sep 30, 2026
54933c2
[HWORKS-3275] ML software factory
jimdowling Sep 30, 2026
e6e80e2
[HWORKS-3275] ML software factory
jimdowling Sep 30, 2026
bab2ef2
[HWORKS-3275] ML software factory
jimdowling Oct 4, 2026
a948d99
[HWORKS-3275] ML software factory
jimdowling Oct 4, 2026
c9c5799
[HWORKS-3275] ML software factory
jimdowling Oct 4, 2026
fc45907
[HWORKS-3275] ML software factory
jimdowling Oct 4, 2026
44946cb
[HWORKS-3275] ML software factory
jimdowling Oct 4, 2026
ab3d034
[HWORKS-3275] ML software factory
jimdowling Oct 4, 2026
b81c516
Merge remote-tracking branch 'upstream/main' into HWORKS-3275
jimdowling Oct 5, 2026
a86221c
[HWORKS-3275] ML software factory
jimdowling Oct 5, 2026
e936e86
Merge remote-tracking branch 'upstream/main' into HWORKS-3275
jimdowling Oct 5, 2026
9d6913e
[HWORKS-3275] ML software factory
jimdowling Oct 5, 2026
2b2db1d
[HWORKS-3275] ML software factory
jimdowling Oct 6, 2026
f111984
[HWORKS-3275] ML software factory
jimdowling Oct 6, 2026
b52cf0d
[HWORKS-3275] ML software factory
jimdowling Oct 6, 2026
afe85aa
[HWORKS-3275] ML software factory
jimdowling Oct 6, 2026
3563e9f
[HWORKS-3275] ML software factory
jimdowling Oct 6, 2026
7a2ed78
[HWORKS-3275] ML software factory
jimdowling Oct 6, 2026
38ac674
[HWORKS-3275] ML software factory
jimdowling Oct 6, 2026
a35a037
[HWORKS-3275] ML software factory
jimdowling Oct 7, 2026
959688b
[HWORKS-3275] ML software factory
jimdowling Oct 7, 2026
3b21e03
[HWORKS-3275] ML software factory
jimdowling Oct 7, 2026
3dde6ca
[HWORKS-3275] ML software factory
jimdowling Oct 7, 2026
d5531e5
[HWORKS-3275] ML software factory
jimdowling Oct 7, 2026
d9d1fbf
[HWORKS-3275] ML software factory
jimdowling Oct 7, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions docs/user_guides/agents/deployments/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ The entrypoint links to the file in the repository at that commit.

The file below shows a simple agent program that uses LlamaIndex, FastAPI,
and OpenTelemetry.
The deployment runs the file with `python`, so the file is the server: it listens on port 8080, answers the readiness probe on `/`, and serves `/predict` and `/v1/models/<name>:predict`, the two paths a prediction request arrives on.

Set `ANTHROPIC_API_KEY` in the deployment environment. Hopsworks injects the
`OTEL_EXPORTER_OTLP_*` environment variables for the deployment, so the
Expand Down Expand Up @@ -218,6 +219,23 @@ FastAPIInstrumentor.instrument_app(
)


@agent_app.get("/")
def ready():
return {"status": "ok"}


# Where the Hopsworks inference endpoint forwards a request.
@agent_app.post("/predict")
def predict(payload: dict):
return predictor.predict(payload.get("instances", [payload])[0])


# KServe's path, which deployment.predict() uses inside the cluster.
@agent_app.post("/v1/models/{target}")
def kserve_predict(target: str, payload: dict):
return predictor.predict(payload.get("instances", [payload])[0])


@agent_app.post("/query")
def query(payload: dict):
return predictor.predict(payload)
Expand Down
Loading
Loading