Skip to content

Commit

Permalink
fix profile API in example doc (opensearch-project#712)
Browse files Browse the repository at this point in the history
Signed-off-by: Yaliang Wu <ylwu@amazon.com>

Signed-off-by: Yaliang Wu <ylwu@amazon.com>
  • Loading branch information
ylwu-amzn committed Mar 3, 2023
1 parent c7f4c5a commit 544888c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/model_serving_framework/text_embedding_model_examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,20 +178,20 @@ By default, it will monitor last 100 predict requests. You can tune this setting

```
# Sample request
POST /_plugins/_ml/profile/models/yQlW5YUB1qmVrJFlPDXc
GET /_plugins/_ml/profile/models/zwla5YUB1qmVrJFlwzXJ
# Sample response
{
"nodes": {
"0TLL4hHxRv6_G3n6y1l0BQ": {
"0TLL4hHxRv6_G3n6y1l0BQ": { # node id
"models": {
"yQlW5YUB1qmVrJFlPDXc": {
"zwla5YUB1qmVrJFlwzXJ": { # model id
"model_state": "LOADED",
"predictor": "org.opensearch.ml.engine.algorithms.text_embedding.TextEmbeddingModel@1a0b0793",
"target_worker_nodes": [
"target_worker_nodes": [ # plan to deploy model to these nodes
"0TLL4hHxRv6_G3n6y1l0BQ"
],
"worker_nodes": [
"worker_nodes": [ # model deployed to these nodes
"0TLL4hHxRv6_G3n6y1l0BQ"
],
"model_inference_stats": { // in Millisecond, time used in model part
Expand Down

0 comments on commit 544888c

Please sign in to comment.