Salta al contenuto

How to deploy a Bedrock KnowledgeBase (using OpenSearch serverless) with CDK?

0

Hello,

I have deployed a Bedrock KnowledgeBase using OpenSearch Serverless with console and it works fine. Now I would like to automate this deployment using the CDK (I am using Python) but I am not able to find any sample code. And it seems that the Console is doing a lot of background custom work.

Is there any construct (L1 or even L2 that would be nice) that has been defined? If not, what are my other options?

Thank you, PS: The only hint that I have found is this (https://medium.com/@micheldirk/on-aws-cdk-and-amazon-bedrock-knowledge-bases-14c7b208e4cb) but the code is not working.

1 Risposta
0
Risposta accettata

Hello.

How about the sample code listed in the URL below?
The method introduced in the URL below is using the "Generative AI CDK".
https://awslabs.github.io/generative-ai-cdk-constructs/src/cdk-lib/bedrock/#knowledge-bases

ESPERTO
con risposta 2 anni fa
ESPERTO
verificato 2 anni fa
ESPERTO
verificato 2 anni fa
  • Thank you @riku, this was very helpful and works nicely!

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.