You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/workers-ai-models/bge-m3.json
+70-1Lines changed: 70 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -10,5 +10,74 @@
10
10
},
11
11
"tags": [],
12
12
"properties": [],
13
-
"schema": {}
13
+
"schema": {
14
+
"input": {
15
+
"type": "object",
16
+
"properties": {
17
+
"query": {
18
+
"type": "string",
19
+
"minLength": 1,
20
+
"description": "A query you wish to perform against the provided contexts. If no query is provided the model with respond with embeddings for contexts"
21
+
},
22
+
"contexts": {
23
+
"type": "array",
24
+
"items": {
25
+
"type": "object",
26
+
"properties": {
27
+
"text": {
28
+
"type": "string",
29
+
"minLength": 1,
30
+
"description": "One of the provided context content"
31
+
}
32
+
}
33
+
},
34
+
"description": "List of provided contexts. Note that the index in this array is important, as the response will refer to it."
35
+
}
36
+
},
37
+
"required": [
38
+
"contexts"
39
+
]
40
+
},
41
+
"output": {
42
+
"type": "object",
43
+
"contentType": "application/json",
44
+
"oneOf": [
45
+
{
46
+
"title": "Query",
47
+
"properties": {
48
+
"response": {
49
+
"type": "array",
50
+
"items": {
51
+
"type": "object",
52
+
"properties": {
53
+
"id": {
54
+
"type": "integer",
55
+
"description": "Index of the context in the request"
56
+
},
57
+
"score": {
58
+
"type": "number",
59
+
"description": "Score of the context under the index."
0 commit comments