You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add support for Bedrock Converse API (Anthropic Messages API, Claude 3.5 Sonnet) (opensearch-project#2851)
* Add support for Anthropic Message API (Issue 2826)
Signed-off-by: Austin Lee <austin@aryn.ai>
* Fix a bug.
Signed-off-by: Austin Lee <austin@aryn.ai>
* Add unit tests, improve coverage, clean up code.
Signed-off-by: Austin Lee <austin@aryn.ai>
* Allow pdf and jpg files for IT tests for multimodel conversation API testing.
Signed-off-by: Austin Lee <austin@aryn.ai>
* Fix spotless check issues.
Signed-off-by: Austin Lee <austin@aryn.ai>
* Update IT to work with session tokens.
Signed-off-by: Austin Lee <austin@aryn.ai>
* Fix MLRAGSearchProcessorIT not to extend RestMLRemoteInferenceIT.
Signed-off-by: Austin Lee <austin@aryn.ai>
* Use suite specific model group name.
Signed-off-by: Austin Lee <austin@aryn.ai>
* Disable tests that require futher investigation.
Signed-off-by: Austin Lee <austin@aryn.ai>
* Skip two additional tests with time-outs.
Signed-off-by: Austin Lee <austin@aryn.ai>
* Restore a change from RestMLRemoteInferenceIT.
Signed-off-by: Austin Lee <austin@aryn.ai>
---------
Signed-off-by: Austin Lee <austin@aryn.ai>
Copy file name to clipboardexpand all lines: search-processors/src/main/java/org/opensearch/searchpipelines/questionanswering/generative/GenerativeQAResponseProcessor.java
+4-2
Original file line number
Diff line number
Diff line change
@@ -179,7 +179,8 @@ public void processResponseAsync(
179
179
chatHistory,
180
180
searchResults,
181
181
timeout,
182
-
params.getLlmResponseField()
182
+
params.getLlmResponseField(),
183
+
params.getLlmMessages()
183
184
),
184
185
null,
185
186
llmQuestion,
@@ -202,7 +203,8 @@ public void processResponseAsync(
Copy file name to clipboardexpand all lines: search-processors/src/main/java/org/opensearch/searchpipelines/questionanswering/generative/ext/GenerativeQAParameters.java
Copy file name to clipboardexpand all lines: search-processors/src/main/java/org/opensearch/searchpipelines/questionanswering/generative/llm/ChatCompletionInput.java
+1
Original file line number
Diff line number
Diff line change
@@ -44,4 +44,5 @@ public class ChatCompletionInput {
Copy file name to clipboardexpand all lines: search-processors/src/main/java/org/opensearch/searchpipelines/questionanswering/generative/llm/DefaultLlmImpl.java
Copy file name to clipboardexpand all lines: search-processors/src/main/java/org/opensearch/searchpipelines/questionanswering/generative/llm/LlmIOUtil.java
0 commit comments