Conversation
…nto feat_bedrock_agents
…nto feat_bedrock_agents
…nto feat_bedrock_agents
…nto feat_bedrock_agents
…i-llm-chatbot into feat_bedrock_agents
…nto feat_bedrock_agents
| @@ -0,0 +1,67 @@ | |||
| # Support additional models | |||
There was a problem hiding this comment.
This doc is possibly a copy of https://github.com/aws-samples/aws-genai-llm-chatbot/blob/main/lib/model-interfaces/langchain/README.md (or a work in progress?)
Is the content applicable?
lib/model-interfaces/bedrock-agents/functions/request-handler/adapters/bedrock/base.py
Outdated
Show resolved
Hide resolved
lib/model-interfaces/bedrock-agents/functions/request-handler/adapters/bedrock/base.py
Outdated
Show resolved
Hide resolved
| @@ -0,0 +1,31 @@ | |||
| import os | |||
There was a problem hiding this comment.
Is this file needed? (Could be extended to support open ai agent equivalent?)
lib/model-interfaces/bedrock-agents/functions/request-handler/index.py
Outdated
Show resolved
Hide resolved
| "interface": ModelInterface.AGENT.value, | ||
| "ragSupported": False, | ||
| "agentId": a["agentId"], | ||
| "agentVersion": "TSTALIASID", |
There was a problem hiding this comment.
What is this value?
| } | ||
| } | ||
|
|
||
| class BuildImageProvider extends Construct { |
| @@ -0,0 +1,257 @@ | |||
| { | |||
There was a problem hiding this comment.
I believe this file is auto generated by the weather lambda? Is there a cli command to do this?
| import os | ||
| import requests | ||
| from typing import Annotated | ||
| import pandas as pd |
There was a problem hiding this comment.
nip: I believe pandas is large and would cause cold start due to numpy. I would remove this dependency if it's easy (I believe Panda has smaller managed lambda layers)
| }:017000801446:layer:AWSLambdaPowertoolsPythonV2:58` | ||
| ); | ||
|
|
||
| const placeIndex = new geo.CfnPlaceIndex(this, "place-index", { |
There was a problem hiding this comment.
nit: other classes use this case for construct ids
| const placeIndex = new geo.CfnPlaceIndex(this, "place-index", { | |
| const placeIndex = new geo.CfnPlaceIndex(this, "PlaceIndex", { |
| state.selectedModel.value | ||
| ); | ||
|
|
||
| console.log(state.selectedModel.value); |
There was a problem hiding this comment.
| console.log(state.selectedModel.value); |
debug code?
|
|
||
| const agent = new bedrock.Agent(this, "weather-agent", { | ||
| foundationModel: | ||
| bedrock.BedrockFoundationModel.ANTHROPIC_CLAUDE_INSTANT_V1_2, |
There was a problem hiding this comment.
Better to switch to Sonnet 3 or Haiku now
| { | ||
| type: "confirm", | ||
| name: "bedrockAgents", | ||
| message: "Do you want to deploy a sample Bedrock Agent?", |
There was a problem hiding this comment.
let's add something like (Agent with access to workspace and weather .. backed by Claude [insert model]) just to give an idea of the out of the box one
|
Adding Bedrock Agents integration will be a great new feature. Is the intent for the identified issues/feedback to be addressed and have this merged into main? It's been a couple of months so not sure if it's going to progress. I'm very keen to use this but not sure if I should try and merge this incomplete version or wait for it to progress into main. |
Issue #, if available:
#277
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.