OpenSearch is a scalable, flexible, and extensible open-source software suite for search, analytics, and observability applications licensed under Apache 2.0.This notebook shows how to use functionality related to theOpenSearch
is a distributed search and analytics engine based onApache Lucene
.
OpenSearch
database.
To run, you should have an OpenSearch instance up and running: see here for an easy Docker installation.
similarity_search
by default performs the Approximate k-NN Search which uses one of the several algorithms like lucene, nmslib, faiss recommended for
large datasets. To perform brute force search we have other search methods known as Script Scoring and Painless Scripting.
Check this for more details.
similarity_search
using Approximate k-NN
Search with Custom Parameters
similarity_search
using Script Scoring
with Custom Parameters
similarity_search
using Painless Scripting
with Custom Parameters
AOSS
with faiss
engine and efficient_filter
.
We need to install several python
packages.