Skip to content

Commit

Permalink
Fixes bugs in the Cohere Blueprint (opensearch-project#1351)
Browse files Browse the repository at this point in the history
* Fixes blueprint bugs found in opensearch-project#1344

Signed-off-by: David Tippett <[email protected]>

* fixing indentation and adding bin files rule to git ignore

Signed-off-by: David Tippett <[email protected]>

* reverting change from prompts -> texts

Signed-off-by: David Tippett <[email protected]>

---------

Signed-off-by: David Tippett <[email protected]>
Signed-off-by: TrungBui59 <[email protected]>
  • Loading branch information
dtaivpp authored and TrungBui59 committed Nov 21, 2023
1 parent cc61c88 commit de44ff5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ common/build/
ml-algorithms/build/
plugin/build/
.DS_Store
*/bin/
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ POST /_plugins/_ml/connectors/_create
"headers": {
"Authorization": "Bearer ${credential.cohere_key}"
},
"request_body": "{ \"texts\": ${parameters.texts}, \"truncate\": \"${parameters.truncate}\", \"model\": \"${parameters.model}\" }"
"request_body": "{ \"texts\": ${parameters.texts}, \"truncate\": \"${parameters.truncate}\", \"model\": \"${parameters.model}\" }",
"pre_process_function": "connector.pre_process.cohere.embedding",
"post_process_function": "connector.post_process.cohere.embedding"
}
]
}
Expand Down

0 comments on commit de44ff5

Please sign in to comment.