April 15, 2025
Recipes to Vectors: Using OpenSearch as Vector Database

Recipes to Vectors: Using OpenSearch as Vector Database

Learn how to use OpenSearch as a vector database in this hands-on guide. Explore hybrid search, work with low-level APIs, and build vector-powered applications combining keyword and semantic search.

In a previous blog, we introduced vector search using OpenSearch and Elasticsearch. We looked at the differences between keyword and semantic search and explored how vectors work behind the scenes to power both.

In this article, we’ll take a hands-on approach, focusing on OpenSearch as a vector DB. We’ll build a hybrid search application that combines keyword and semantic search, working directly with OpenSearch’s low-level APIs to handle mapping, embedding, indexing, and searching. This will give us a deeper understanding of how to develop vector-powered applications in OpenSearch.

This is the second of three implementation-focused articles. In the first one we covered using ElasticSearch as a vector database and in the next one I’ll explore how higher level solutions like Elastic’s ESRE and AWS Bedrock Knowledge Base can simplify the process of building LLM powered applications by abstracting away much of the low-level work.

Hopefully, by the end of this series, you’ll have a strong understanding of different ways to implement vector search across these platforms. Let’s get started!

Follow along