Skip to content

Commit

Permalink
adding example prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
pmpailis committed Nov 11, 2024
1 parent 4929b4c commit 8abe523
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ GET /retrievers_example/_search

[discrete]
[[retrievers-examples-collapsing-retriever-results]]
==== Grouping results by year with `collapse`
==== Example: Grouping results by year with `collapse`

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 enables grouping results by
Expand Down Expand Up @@ -208,7 +208,7 @@ GET /retrievers_example/_search

[discrete]
[[retrievers-examples-text-similarity-reranker-on-top-of-rrf]]
==== Rerank results of an RRF retriever
==== Example: Rerank results of an RRF retriever

Previously, we used a `text_similarity_reranker` retriever within an `rrf` retriever.
Because retrievers support full composability, we can also rerank the results of an
Expand Down Expand Up @@ -263,7 +263,7 @@ GET retrievers_example/_search

[discrete]
[[retrievers-examples-rrf-ranking-on-text-similarity-reranker-results]]
==== RRF with semantic reranker
==== Example: RRF with semantic reranker

For this example, we'll replace our semantic query with the `my-rerank-model`
reranker we previously configured. Since this is a reranker, it needs an initial pool of
Expand Down Expand Up @@ -319,7 +319,7 @@ GET /retrievers_example/_search

[discrete]
[[retrievers-examples-chaining-text-similarity-reranker-retrievers]]
==== Chaining multiple semantic rerankers
==== Example: Chaining multiple semantic rerankers

Full composability means we can chain together multiple retrievers of the same type. For instance, imagine we have a computationally expensive reranker that's specialized for AI content. We can rerank the results of a `text_similarity_reranker` using another `text_similarity_reranker` retriever. Each reranker can operate on different fields and/or use different inference services.

Expand Down Expand Up @@ -371,7 +371,7 @@ pick the top 10 results and rerank them using the more fine-grained

[discrete]
[[retrievers-examples-rrf-and-aggregations]]
==== Combine RRF with aggregations
==== Example: Combine RRF with aggregations

Retrievers support both composability and most of the standard `_search` functionality. For instance,
we can compute aggregations with the `rrf` retriever. When using a compound retriever,
Expand Down

0 comments on commit 8abe523

Please sign in to comment.