Skip to content

Latest commit

 

History

History
49 lines (32 loc) · 2.77 KB

search-your-data-semantic-search.asciidoc

File metadata and controls

49 lines (32 loc) · 2.77 KB

Semantic search

Semantic search is a search method that helps you find data based on the intent and contextual meaning of a search query, instead of a match on query terms (lexical search).

Elasticsearch provides various semantic search capabilities using natural language processing (NLP) and vector search. Using an NLP model enables you to extract text embeddings out of text. Embeddings are vectors that provide a numeric representation of a text. Pieces of content with similar meaning have similar representations.

There are three main workflows for implementing semantic search with {es}, arranged in order of increasing complexity:

Overview of semantic search workflows in {es}
Note

Semantic search is available on all Elastic deployment types: self-managed clusters, Elastic Cloud Hosted deployments, and {es-serverless} projects. The links on this page will take you to the {ref}/semantic-search.html[{es} core documentation].

Semantic search with semantic text

The semantic_text field simplifies semantic search by providing inference at ingestion time with sensible default values, eliminating the need for complex configurations.

Learn how to implement semantic search with semantic text in the {ref}/semantic-search-semantic-text.html[Elasticsearch docs →].

Semantic search with the inference API

The inference API workflow enables you to perform semantic search using models from a variety of services, such as Cohere, OpenAI, HuggingFace, Azure AI Studio, and more.

Learn how to implement semantic search with the inference API in the {ref}/semantic-search-inference.html[Elasticsearch docs →].

Semantic search with the model deployment workflow

The model deployment workflow enables you to deploy custom NLP models in Elasticsearch, giving you full control over text embedding generation and vector search. While this workflow offers advanced flexibility, it requires expertise in NLP and machine learning.

Learn how to implement semantic search with the model deployment workflow in the {ref}/semantic-search-deployed-nlp-model.html[Elasticsearch docs →].