Skip to content

Commit 4b7aba4

Browse files
authored
Fixes bugs in the Cohere Blueprint (opensearch-project#1351)
* Fixes blueprint bugs found in opensearch-project#1344 Signed-off-by: David Tippett <17506770+dtaivpp@users.noreply.github.com> * fixing indentation and adding bin files rule to git ignore Signed-off-by: David Tippett <17506770+dtaivpp@users.noreply.github.com> * reverting change from prompts -> texts Signed-off-by: David Tippett <17506770+dtaivpp@users.noreply.github.com> --------- Signed-off-by: David Tippett <17506770+dtaivpp@users.noreply.github.com>
1 parent 66d4cd4 commit 4b7aba4

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ common/build/
66
ml-algorithms/build/
77
plugin/build/
88
.DS_Store
9+
*/bin/

docs/remote_inference_blueprints/cohere_connector_embedding_blueprint.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ POST /_plugins/_ml/connectors/_create
2424
"headers": {
2525
"Authorization": "Bearer ${credential.cohere_key}"
2626
},
27-
"request_body": "{ \"texts\": ${parameters.texts}, \"truncate\": \"${parameters.truncate}\", \"model\": \"${parameters.model}\" }"
27+
"request_body": "{ \"texts\": ${parameters.texts}, \"truncate\": \"${parameters.truncate}\", \"model\": \"${parameters.model}\" }",
28+
"pre_process_function": "connector.pre_process.cohere.embedding",
29+
"post_process_function": "connector.post_process.cohere.embedding"
2830
}
2931
]
3032
}

0 commit comments

Comments
 (0)