-
Notifications
You must be signed in to change notification settings - Fork 111
/
Copy pathservices.xml
36 lines (32 loc) · 1.41 KB
/
services.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
<services version="1.0" xmlns:deploy="vespa" xmlns:preprocess="properties" minimum-required-vespa-version="8.311.28">
<!-- See https://docs.vespa.ai/en/reference/services-container.html -->
<container id="default" version="1.0">
<!-- See https://docs.vespa.ai/en/embedding.html#huggingface-embedder -->
<component id="e5" type="hugging-face-embedder">
<transformer-model url="https://data.vespa-cloud.com/sample-apps-data/m-e5-small/model.onnx"/>
<tokenizer-model url="https://data.vespa-cloud.com/sample-apps-data/m-e5-small/tokenizer.json"/>
<!-- E5 prompt instructions -->
<prepend>
<query>query:</query>
<document>passage:</document>
</prepend>
</component>
<document-api/>
<search/>
<nodes>
<node hostalias="node1" />
</nodes>
</container>
<!-- See https://docs.vespa.ai/en/reference/services-content.html -->
<content id="content" version="1.0">
<min-redundancy>2</min-redundancy>
<documents>
<document type="doc" mode="index" />
</documents>
<nodes>
<node hostalias="node1" distribution-key="0" />
</nodes>
</content>
</services>