Skip to content

Commit a60eebc

Browse files
authored
updating cohere blueprint doc (#1213)
* updating cohere blueprint doc Signed-off-by: Dhrubo Saha <[email protected]> * fixing the blueprint Signed-off-by: Dhrubo Saha <[email protected]> --------- Signed-off-by: Dhrubo Saha <[email protected]>
1 parent 3d9cf34 commit a60eebc

File tree

2 files changed

+6
-105
lines changed

2 files changed

+6
-105
lines changed

docs/remote_inference_blueprints/cohere_connector_embedding_blueprint.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ POST /_plugins/_ml/connectors/_create
1212
"credential": {
1313
"cohere_key": "<PLEASE ADD YOUR Cohere API KEY HERE>"
1414
},
15+
"parameters": {
16+
"model": "embed-english-v2.0",
17+
"truncate": "END"
18+
},
1519
"actions": [
1620
{
1721
"action_type": "predict",
@@ -20,7 +24,7 @@ POST /_plugins/_ml/connectors/_create
2024
"headers": {
2125
"Authorization": "Bearer ${credential.cohere_key}"
2226
},
23-
"request_body": "{ \"texts\": ${parameters.prompt}, \"truncate\": \"END\" }"
27+
"request_body": "{ \"texts\": ${parameters.texts}, \"truncate\": \"${parameters.truncate}\", \"model\": \"${parameters.model}\" }"
2428
}
2529
]
2630
}
@@ -39,7 +43,7 @@ POST /_plugins/_ml/connectors/_create
3943
POST /_plugins/_ml/models/<ENTER MODEL ID HERE>/_predict
4044
{
4145
"parameters": {
42-
"prompt": ["Say this is a test"]
46+
"texts": ["Say this is a test"]
4347
}
4448
}
4549
```

docs/remote_inference_blueprints/cohere_connector_rerank_blueprint.md

Lines changed: 0 additions & 103 deletions
This file was deleted.

0 commit comments

Comments
 (0)