Skip to content

Commit 6d520f9

Browse files
authored
[SEARCH] Improves vector search docs based on SEO guidelines (#2767)
## Description This PR optimizes the content of the `Vector search` and `Dense vector` pages based on the SEO best practices outlined [here](https://stunning-adventure-qrvr1k2.pages.github.io/style-guide/seo/).
1 parent 525b858 commit 6d520f9

File tree

2 files changed

+45
-40
lines changed

2 files changed

+45
-40
lines changed

solutions/search/vector.md

Lines changed: 27 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,50 @@
11
---
2+
navigation_title: Vector search
23
applies_to:
34
stack:
45
serverless:
56
---
6-
# Vector search
7+
# Vector search in {{es}}
78

89
:::{tip}
9-
Looking for a minimal configuration approach? The `semantic_text` field type provides an abstraction over these vector search implementations with sensible defaults and automatic model management. It's the recommended approach for most users. [Learn more about semantic_text](semantic-search/semantic-search-semantic-text.md).
10+
Looking for a minimal configuration approach? The `semantic_text` field type provides an abstraction over vector search implementations with sensible defaults and automatic model management. It's the recommended way to start with {{es}} vector search. [Learn more about semantic_text](semantic-search/semantic-search-semantic-text.md).
1011
:::
1112

12-
Vector embeddings are a core technology in modern search, enabling models to learn and represent complex relationships in input data. When your content is vectorized, Elasticsearch can help users find content based on meaning and similarity, instead of just keyword or exact term matches.
13+
Vector search in {{es}} uses vector embeddings to power modern, AI-driven search experiences. With vectorized content, Elasticsearch retrieves results based on meaning and similarity, not just keywords or exact term matches.
1314

14-
Vector search is an important component of most modern [semantic search](semantic-search.md) implementations. It can also be used independently for various similarity matching use cases. Learn more about use cases for AI-powered search in the [overview](ai-search/ai-search.md) page.
15+
Vector search is a core component of most [semantic search](semantic-search.md) workflows, but it can also be used independently for similarity matching use cases. Learn more about the broader benefits in the [AI-powered search overview](ai-search/ai-search.md).
1516

16-
This guide explores the more manual technical implementation of vector search approaches, that do not use the higher-level `semantic_text` workflow.
17+
This guide focuses on the more manual technical implementations of vector search, outside of the higher-level `semantic_text` workflow.
18+
The right approach depends on your requirements, data type, and use case.
1719

18-
Which approach you use depends on your specific requirements and use case.
20+
## Vector queries and field types in {{es}} [vector-queries-and-field-types]
1921

20-
## Vector queries and field types
22+
Here’s a quick reference for the main **vector field types** and **query types** you can use:
2123

22-
Here's a quick reference overview of vector search field types and queries available in Elasticsearch:
24+
| Vector type | Field type | Query type | Primary use case |
25+
| --------------- | --------------- | --------------- | ----------------------------------------------------------- |
26+
| Dense vectors | `dense_vector` | `knn` | Semantic similarity with your own embeddings model |
27+
| Sparse vectors | `sparse_vector` | `sparse_vector` | Semantic term expansion using the ELSER model |
28+
| Sparse or dense | `semantic_text` | `semantic` | Managed semantic search, agnostic to implementation details |
2329

24-
| Vector type | Field type | Query type | Primary use case |
25-
| ----------- | --------------- | --------------- | -------------------------------------------------- |
26-
| Dense | `dense_vector` | `knn` | Semantic similarity using your chosen embeddings model |
27-
| Sparse | `sparse_vector` | `sparse_vector` | Semantic term expansion with the ELSER model |
28-
| Sparse or dense | `semantic_text` | `semantic` | Managed semantic search that is agnostic to implementation details |
30+
## Dense vector search in {{es}}
2931

30-
## Dense vector search
32+
Dense vector search uses neural embeddings to capture semantic meaning. It translates content into fixed-length numeric vectors, where similar items cluster close together in vector space. This makes dense vectors ideal for:
3133

32-
Dense neural embeddings capture semantic meaning by translating content into fixed-length vectors of floating-point numbers. Similar content maps to nearby points in the vector space, making them ideal for:
33-
- Finding semantically similar content
34-
- Matching questions with answers
35-
- Image similarity search
36-
- Content-based recommendations
34+
- Finding semantically similar documents
35+
- Matching user questions with answers
36+
- Image and multimedia similarity search
37+
- Content-based recommendations
3738

38-
[Learn more about dense vector search](vector/dense-vector.md).
39+
[Learn more about dense vector search in {{es}}](vector/dense-vector.md).
3940

40-
## Sparse vector search
41+
## Sparse vector search with ELSER
4142

42-
The sparse vector approach uses the ELSER model to expand content with semantically related terms. This approach preserves explainability while adding semantic understanding, making it well-suited for:
43-
- Enhanced keyword search
44-
- Cases requiring explainable results
45-
- Domain-specific search
43+
Sparse vector search relies on the **ELSER model** to expand content with semantically related terms. This approach combines semantic understanding with explainability, making it a strong fit for:
44+
45+
- Enhanced keyword search
46+
- Use cases requiring explainable results
47+
- Domain-specific search
4648
- Large-scale deployments
4749

4850
[Learn more about sparse vector search with ELSER](vector/sparse-vector.md).
Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,37 @@
11
---
2+
navigation_title: Dense vector
23
applies_to:
34
stack:
45
serverless:
56
---
6-
# Dense vector
7+
# Dense vector search in {{es}}
78

8-
Dense neural embeddings capture semantic meaning by translating content into fixed-length vectors of floating-point numbers. Similar content maps to nearby points in the vector space, making them ideal for:
9+
Dense vectors use neural embeddings to represent semantic meaning. They translate text, images, or other data into fixed-length vectors of floating-point numbers. Content with similar meaning is mapped to nearby points in vector space, making dense vector search a powerful technique for:
910

1011
- Finding semantically similar content
11-
- Matching questions with answers
12-
- Image similarity search
13-
- Content-based recommendations
12+
- Matching natural language questions with relevant answers
13+
- Performing image and multimedia similarity search
14+
- Delivering content-based recommendations
1415

1516
## Working with dense vectors in {{es}}
1617

1718
:::{tip}
18-
Using the `semantic_text` field type provides automatic model management and sensible defaults. [Learn more](../semantic-search/semantic-search-semantic-text.md).
19+
For most use cases, the [`semantic_text` field type](../semantic-search/semantic-search-semantic-text.md) is the recommended starting point. It provides automatic model management and sensible defaults for vector search.
1920
:::
2021

21-
Dense vector search requires both index configuration and a strategy for generating embeddings. To use dense vectors in {{es}}:
22+
To implement dense vector search in {{es}}, you need both an index configuration and a way to generate embeddings:
2223

23-
1. Index documents with embeddings
24-
- You can generate embeddings within {{es}}
25-
- Refer to [this overview](../semantic-search.md#using-nlp-models) of the main options
26-
- You can also [bring your own embeddings](bring-own-vectors.md)
27-
- Use the `dense_vector` field type
28-
2. Query the index using the [`knn` search](knn.md)
24+
1. **Index documents with embeddings**
25+
- Generate embeddings directly in {{es}}
26+
- Refer to the [overview of NLP model options](../semantic-search.md#using-nlp-models)
27+
- Or [bring your own embeddings](bring-own-vectors.md)
28+
- Store them using the `dense_vector` field type
29+
30+
2. **Query the index with k-NN search**
31+
- Use the [`knn` query](knn.md) to retrieve results based on vector similarity
2932

3033
## Better Binary Quantization (BBQ) [bbq]
3134

32-
Better Binary Quantization (BBQ) is a vector quantization method for `dense_vector` fields that compresses vectors for faster and more memory-efficient similarity search. BBQ can improve relevance and cost efficiency, especially when used with HNSW.
35+
Better Binary Quantization (BBQ) is an advanced vector quantization technique for `dense_vector` fields. It compresses embeddings into compact binary form, enabling faster similarity search and reducing memory usage. This improves both search relevance and cost efficiency, especially when used with HNSW (Hierarchical Navigable Small World).
3336

34-
For details on how BBQ works, supported algorithms, and configuration examples, refer to [Better Binary Quantization (BBQ)](https://www.elastic.co/docs/reference/elasticsearch/index-settings/bbq)
37+
Learn more about how BBQ works, supported algorithms, and configuration examples in the [Better Binary Quantization (BBQ) documentation](https://www.elastic.co/docs/reference/elasticsearch/index-settings/bbq).

0 commit comments

Comments
 (0)