Skip to content

Commit

Permalink
Merge pull request #1438 from vespa-engine/bratseth/more-instructions
Browse files Browse the repository at this point in the history
More instructions
  • Loading branch information
bratseth authored Jul 12, 2024
2 parents 7f15ad8 + 6940b94 commit 86530b8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions examples/reranker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@ it is useful when you want to quickly do ranking experiments without rewriting a
1. Make sure the application to rerank has a
[token endpoint](https://cloud.vespa.ai/en/security/guide#application-key).
2. `vespa clone examples/reranker`
3. Add the endpoint and any defaults to the reranker config in `src/main/application/services.xml`
(parameters can also be passed in the request).
3. Add your endpoint to the reranker config in `src/main/application/services.xml`
and optionally change reranker parameters (these can also be passed in the request).
4. Add the model(s) to use for reranking to the `models` directory.
5. `mvn install && vespa deploy`
6. Issue queries. All request parameters including the token header will be passed through to the application to be reranked.
5. `vespa config set application my-tenant.reranker.default`
6. `vespa auth cert`
6. `mvn install && vespa deploy`
7. Issue queries. All request parameters including the token header will be passed through to the application to be reranked.

Example requests:

Expand Down
2 changes: 1 addition & 1 deletion examples/reranker/src/main/application/services.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<container id="default" version="1.0">

<config name="ai.vespa.example.reranker.reranker">
<endpoint>https://f237494d.ae82d729.z.vespa-app.cloud/</endpoint>
<endpoint>[your endpoint]</endpoint>
<rerank>
<hits>100</hits>
<profile>firstPhase</profile>
Expand Down

0 comments on commit 86530b8

Please sign in to comment.