Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Signed-off-by: Austin Lee <[email protected]>
(cherry picked from commit 659a836)

Co-authored-by: Austin Lee <[email protected]>
  • Loading branch information
2 people authored and dbwiddis committed Aug 30, 2024
1 parent 5227a61 commit ed6844b
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public class RestMLRAGSearchProcessorIT extends RestMLRemoteInferenceIT {
? BEDROCK_CONNECTOR_BLUEPRINT2
: BEDROCK_CONNECTOR_BLUEPRINT1;

private static final String COHERE_API_KEY = System.getenv("COHERE_KEY");
private static final String COHERE_KEY = System.getenv("COHERE_KEY");
// Package private to share with Tenant Aware ITs in this package
static final String COHERE_CONNECTOR_BLUEPRINT = "{\n"
+ " \"name\": \"Cohere Chat Model\",\n"
Expand All @@ -158,7 +158,7 @@ public class RestMLRAGSearchProcessorIT extends RestMLRemoteInferenceIT {
+ " \"protocol\": \"http\",\n"
+ " \"credential\": {\n"
+ " \"cohere_key\": \""
+ COHERE_API_KEY
+ COHERE_KEY
+ "\"\n"
+ " },\n"
+ " \"parameters\": {\n"
Expand Down Expand Up @@ -522,7 +522,7 @@ public void testBM25WithBedrockWithConversation() throws Exception {

public void testBM25WithCohere() throws Exception {
// Skip test if key is null
if (COHERE_API_KEY == null) {
if (COHERE_KEY == null) {
return;
}
Response response = createConnector(COHERE_CONNECTOR_BLUEPRINT);
Expand Down Expand Up @@ -574,7 +574,7 @@ public void testBM25WithCohere() throws Exception {

public void testBM25WithCohereUsingLlmResponseField() throws Exception {
// Skip test if key is null
if (COHERE_API_KEY == null) {
if (COHERE_KEY == null) {
return;
}
Response response = createConnector(COHERE_CONNECTOR_BLUEPRINT);
Expand Down Expand Up @@ -661,8 +661,6 @@ private Response performSearch(String indexName, String pipeline, int size, Sear
requestParameters.match,
requestParameters.llmModel,
requestParameters.llmQuestion,
requestParameters.systemPrompt,
requestParameters.userInstructions,
requestParameters.contextSize,
requestParameters.interactionSize,
requestParameters.timeout,
Expand Down

0 comments on commit ed6844b

Please sign in to comment.