Skip to content

Commit 3b9345a

Browse files
Replace links and remove comments (#468)
Replace links and remove comments in retrievers-examples.md.
1 parent a256276 commit 3b9345a

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

solutions/search/retrievers-examples.md

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -401,8 +401,7 @@ Which would return the following results:
401401

402402
## Example: Grouping results by year with `collapse` [retrievers-examples-collapsing-retriever-results]
403403

404-
In our result set, we have many documents with the same `year` value. We can clean this up using the `collapse` parameter with our retriever. This, as with the standard
405-
% [collapse](/raw-migrated-files/elasticsearch/elasticsearch-reference/collapse-search-results.md) feature,
404+
In our result set, we have many documents with the same `year` value. We can clean this up using the `collapse` parameter with our retriever. This, as with the standard [collapse](https://www.elastic.co/guide/en/elasticsearch/reference/current/collapse-search-results.html) feature,
406405
enables grouping results by any field and returns only the highest-scoring document from each group. In this example we’ll collapse our results based on the `year` field.
407406

408407
```console
@@ -552,9 +551,7 @@ This returns the following response with collapsed results.
552551

553552
## Example: Highlighting results based on nested sub-retrievers [retrievers-examples-highlighting-retriever-results]
554553

555-
Highlighting is now also available for nested sub-retrievers matches. For example, consider the same `rrf` retriever as above, with a `knn` and `standard` retriever as its sub-retrievers. We can specify a `highlight` section,
556-
% TODO URL as defined in the [highlighting](/raw-migrated-files/elasticsearch/elasticsearch-reference/highlighting.md) documentation,
557-
and compute highlights for the top results.
554+
Highlighting is now also available for nested sub-retrievers matches. For example, consider the same `rrf` retriever as above, with a `knn` and `standard` retriever as its sub-retrievers. We can specify a `highlight` section, as defined in the [highlighting](https://www.elastic.co/guide/en/elasticsearch/reference/current/highlighting.html) documentation, and compute highlights for the top results.
558555

559556
```console
560557
GET /retrievers_example/_search
@@ -751,9 +748,7 @@ POST /retrievers_example_nested/_doc/3
751748
POST /retrievers_example_nested/_refresh
752749
```
753750

754-
Now we can run an `rrf` retriever query and also compute inner hits
755-
% TODO URL [inner hits](/raw-migrated-files/elasticsearch/elasticsearch-reference/inner-hits.md)
756-
for the `nested_field.nested_vector` field, based on the `knn` query specified.
751+
Now we can run an `rrf` retriever query and also compute [inner hits](https://www.elastic.co/guide/en/elasticsearch/reference/current/inner-hits.html) for the `nested_field.nested_vector` field, based on the `knn` query specified.
757752

758753
```console
759754
GET /retrievers_example_nested/_search
@@ -1276,10 +1271,7 @@ The output of which, albeit a bit verbose, will provide all the necessary info t
12761271

12771272
## Example: Rerank results of an RRF retriever [retrievers-examples-text-similarity-reranker-on-top-of-rrf]
12781273

1279-
To demonstrate the full functionality of retrievers, the following examples also require access to a semantic reranking model
1280-
% TODO URL [semantic reranking model](/raw-migrated-files/elasticsearch/elasticsearch-reference/semantic-reranking.md#semantic-reranking-models)
1281-
set up using the inference APIs.
1282-
% [Elastic inference APIs](/raw-migrated-files/elasticsearch/elasticsearch-reference/inference-apis.md).
1274+
To demonstrate the full functionality of retrievers, the following examples also require access to a [semantic reranking model](https://www.elastic.co/guide/en/elasticsearch/reference/current/semantic-reranking.html) set up using the [Elastic inference APIs](https://www.elastic.co/guide/en/elasticsearch/reference/current/inference-apis.html).
12831275

12841276
In this example we’ll set up a reranking service and use it with the `text_similarity_reranker` retriever to rerank our top results.
12851277

0 commit comments

Comments
 (0)