Skip to content

Commit

Permalink
feat(adapters): update embedding support for Bedrock
Browse files Browse the repository at this point in the history
Signed-off-by: Tomas Dvorak <[email protected]>
  • Loading branch information
Tomas2D committed Jan 2, 2025
1 parent ceedb7d commit 9b84c16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/adapters/bedrock/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,7 @@ export class BedrockChatLLM extends ChatLLM<ChatBedrockOutput> {
contentType: "application/json",
accept: "application/json",
body: JSON.stringify({
texts: input.map((msgs) => msgs.map((msg) => msg.text)),
input_type: "search_document",
texts: input.flat().map((msg) => msg.text),
...options?.body,
}),
});
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/adapters/bedrock/chat.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright 2024 IBM Corp.
* Copyright 2025 IBM Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down

0 comments on commit 9b84c16

Please sign in to comment.