Skip to content

Commit aa2b35d

Browse files
committed
add rerank and completion
1 parent da1cdeb commit aa2b35d

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

solutions/search/esql-for-search.md

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,12 @@ The following table summarizes the key search features available in [{{esql}}](e
3232
| [Hybrid search](#hybrid-search) | Combine lexical and semantic search approaches with custom weights | 8.18/9.0 |
3333
| [Kibana Query Language](#kql-function) | Use Kibana Query Language with the `KQL` function | 8.18/9.0 |
3434
| [Match phrase function](#match_phrase-function) | Perform phrase matching with `MATCH_PHRASE` function | 8.19/9.1 |
35-
| [FORK command](#fork-and-fuse-commands) | Create multiple execution branches to operate on the same input data | 8.19/9.1 |
36-
| [FUSE command](#fork-and-fuse-commands) | Combine and score results from multiple queries for hybrid search | 9.2 |
35+
| [FORK command](#fork-and-fuse) | Create multiple execution branches to operate on the same input data | 8.19/9.1 |
36+
| [FUSE command](#fork-and-fuse) | Combine and score results from multiple queries for hybrid search | 9.2 |
3737
| [KNN function](#knn-function) | Find k nearest vectors using approximate search on indexed fields | 9.2 |
38-
| [TEXT_EMBEDDING function](#text_embedding-function) | Generate dense vector embeddings from text using inference endpoints | 9.2 |
38+
| [RERANK command](#semantic-reranking-with-rerank) | Re-score search results using inference models for improved relevance | 9.2 |
39+
| [COMPLETION command](#text-generation-with-completion) | Perform arbitrary text generation tasks by calling LLMs | 9.2 |
40+
| [TEXT_EMBEDDING function](#text_embedding-function) | Generate dense vector embeddings using inference endpoints | 9.3 |
3941

4042
## How search works in {{esql}}
4143

@@ -126,14 +128,25 @@ Refer to [semantic search with semantic_text](/solutions/search/semantic-search/
126128

127129
[Hybrid search](/solutions/search/hybrid-search.md) combines lexical and semantic search with custom weights to leverage both exact keyword matching and semantic understanding.
128130

129-
#### `FORK` and `FUSE` commands
131+
#### `FORK` and `FUSE`
130132

131133
The [`FORK`](elasticsearch://reference/query-languages/esql/commands/fork.md) and [`FUSE`](elasticsearch://reference/query-languages/esql/commands/fuse.md) commands work together to enable hybrid search in {{esql}}.
132134

133135
`FORK` creates multiple execution branches that operate on the same input data. `FUSE` then combines and scores the results from these branches. Together, these commands allow you to execute different search strategies (such as lexical and semantic searches) in parallel and merge their results with proper relevance scoring.
134136

135137
Refer to [hybrid search with semantic_text](hybrid-semantic-text.md) for an example or follow the [tutorial](elasticsearch://reference/query-languages/esql/esql-search-tutorial.md#step-5-semantic-search-and-hybrid-search).
136138

139+
### Text generation with `COMPLETION`
140+
141+
The [`COMPLETION` command](elasticsearch://reference/query-languages/esql/commands/completion.md) sends prompts to a Large Language Model (LLM) for text generation tasks.
142+
143+
Use `COMPLETION` for question answering, summarization, translation, or other AI-powered text generation.
144+
145+
146+
### Semantic reranking with `RERANK`
147+
148+
Use the [`RERANK` command](elasticsearch://reference/query-languages/esql/commands/rerank.md) to re-score search results using inference models for improved relevance.
149+
137150
## Next steps [esql-for-search-next-steps]
138151

139152
### Tutorials and how-to guides [esql-for-search-tutorials]

0 commit comments

Comments
 (0)