how to connect to opensearch database and amazon bedrock?
based on the documentation here – https://aws.amazon.com/blogs/big-data/build-multimodal-search-with-amazon-opensearch-service/, it states that open search can call amazon bedrock to generate embeddings. it uses special ml connector to ingest data.
I have set up an open search serverless collection via terraform , see sample code below . once the open search collection/cluster is created . how can i set up a pipeline , preferably in terraform, to ingest data from s3 and call bedrock service and push it to my open search database, if possible? or do i have to manually or programmatically read data from s3 , call bedrock via api and then do a push to open search .
how to call/generate embeddings in amazon bedrock?
I want to experiment with different ml models and i understand , amazon bedrock platform allows to do so. for starters , i want to use dataset and then generate embeddings. i know, i can use a bedrock client and choose from model available and pass in my content to generate embeddings.