Remove Database Remove Download Remove K-nearest Neighbors
article thumbnail

Implementing Approximate Nearest Neighbor Search with KD-Trees

PyImageSearch

Or think about a real-time facial recognition system that must match a face in a crowd to a database of thousands. This is where Approximate Nearest Neighbor (ANN) search algorithms come into play. Imagine a database with billions of samples ( ) (e.g., Imagine a database with billions of samples ( ) (e.g.,

article thumbnail

Build a reverse image search engine with Amazon Titan Multimodal Embeddings in Amazon Bedrock and AWS managed services

AWS Machine Learning Blog

It works by analyzing the visual content to find similar images in its database. Store embeddings : Ingest the generated embeddings into an OpenSearch Serverless vector index, which serves as the vector database for the solution. Display results : Display the top K similar results to the user. b64encode(resized_image).decode('utf-8')

AWS 114
professionals

Sign Up for our Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

article thumbnail

Use DeepSeek with Amazon OpenSearch Service vector database and Amazon SageMaker

Flipboard

This post shows you how to set up RAG using DeepSeek-R1 on Amazon SageMaker with an OpenSearch Service vector database as the knowledge base. When combined with Amazon OpenSearch Service , it enables robust Retrieval Augmented Generation (RAG) applications.

article thumbnail

Build a contextual text and image search engine for product recommendations using Amazon Bedrock and Amazon OpenSearch Serverless

AWS Machine Learning Blog

We detail the steps to use an Amazon Titan Multimodal Embeddings model to encode images and text into embeddings, ingest embeddings into an OpenSearch Service index, and query the index using the OpenSearch Service k-nearest neighbors (k-NN) functionality. You then display the top similar results.

article thumbnail

Talk to your slide deck using multimodal foundation models hosted on Amazon Bedrock and Amazon SageMaker – Part 2

AWS Machine Learning Blog

We stored the embeddings in a vector database and then used the Large Language-and-Vision Assistant (LLaVA 1.5-7b) 7b) model to generate text responses to user questions based on the most similar slide retrieved from the vector database. OpenSearch Serverless is an on-demand serverless configuration for Amazon OpenSearch Service.

AWS 125
article thumbnail

Talk to your slide deck using multimodal foundation models hosted on Amazon Bedrock and Amazon SageMaker – Part 1

AWS Machine Learning Blog

We use OpenSearch Serverless as a vector database for storing embeddings generated by the Titan Multimodal Embeddings model. In the user interaction phase, a question from the user is converted into embeddings and a similarity search is run on the vector database to find a slide that could potentially contain answers to user question.

AWS 126
article thumbnail

Approximate Nearest Neighbor with Locality Sensitive Hashing (LSH)

PyImageSearch

Home Table of Contents Approximate Nearest Neighbor with Locality Sensitive Hashing (LSH) What Is Locality Sensitive Hashing (LSH)? Jump Right To The Downloads Section What Is Locality Sensitive Hashing (LSH)? On Line 28 , we sort the distances and select the top k nearest neighbors.