Back to articles
Amazon Nova 2 Multimodal Embeddings with Amazon S3 Vectors and AWS Java SDK - Part 4 Implement similarity search
How-ToDevOps

Amazon Nova 2 Multimodal Embeddings with Amazon S3 Vectors and AWS Java SDK - Part 4 Implement similarity search

via Dev.toVadym Kazulkin

Introduction In part 2 , we covered creating text and image embeddings, and in part 3 , creating audio and video with Amazon Nova 2 Multimodal Embeddings and storing them in Amazon S3 Vectors using AWS Java SDK. In this part of the series, we'll take a look at the similarity search across all created multimodal embeddings in S3 Vectors. To those multimodal embeddings belong text, image, audio, and video embeddings. Implement multimodal similarity search with Amazon Nova and Amazon S3 Vectors We'll reuse many parts of the process for creating and storing text and image embeddings described in part 2 and part 3 . The relevant business logic of our sample application can still be found in the AmazonNovaMultimodalEmbeddings . Here is how the relevant search method looks: private static void search ( String text , int topK ) throws Exception { Float [] embeddings = createTextEmbeddings ( text , "GENERIC_RETRIEVAL" ); var vd = VectorData . builder (). float32 ( embeddings ). build (); var qv

Continue reading on Dev.to

Opens in a new tab

Read Full Article
22 views

Related Articles