Skip to content

Commit 83d3f52

Browse files
committed
[CHORE] Update ef schemas with some optional types for attrs
1 parent fe63aad commit 83d3f52

File tree

8 files changed

+69
-13
lines changed

8 files changed

+69
-13
lines changed

schemas/embedding_functions/cloudflare_workers_ai.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@
1818
"description": "The environment variable name that contains your API key for the Cloudflare Workers AI API"
1919
},
2020
"gateway_id": {
21-
"type": "string",
21+
"type": [
22+
"string",
23+
"null"
24+
],
2225
"description": "The ID of the Cloudflare AI Gateway to use for a more customized solution"
2326
}
2427
},

schemas/embedding_functions/huggingface_server.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@
1010
"description": "The URL of the HuggingFace Embedding Server"
1111
},
1212
"api_key_env_var": {
13-
"type": "string",
13+
"type": [
14+
"string",
15+
"null"
16+
],
1417
"description": "The environment variable name that contains your API key for the HuggingFace API"
1518
}
1619
},

schemas/embedding_functions/instructor.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@
1414
"description": "Parameter device for the instructor embedding function"
1515
},
1616
"instruction": {
17-
"type": "string",
17+
"type": [
18+
"string",
19+
"null"
20+
],
1821
"description": "Parameter instruction for the instructor embedding function"
1922
}
2023
},

schemas/embedding_functions/jina.json

Lines changed: 31 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,28 +14,53 @@
1414
"description": "Parameter api_key_env_var for the jina embedding function"
1515
},
1616
"task": {
17-
"type": "string",
17+
"type": [
18+
"string",
19+
"null"
20+
],
1821
"description": "Parameter task for the jina embedding function"
1922
},
2023
"late_chunking": {
21-
"type": "boolean",
24+
"type": [
25+
"boolean",
26+
"null"
27+
],
2228
"description": "Parameter late_chunking for the jina embedding function"
2329
},
2430
"truncate": {
25-
"type": "boolean",
31+
"type": [
32+
"boolean",
33+
"null"
34+
],
2635
"description": "Parameter truncate for the jina embedding function"
2736
},
2837
"dimensions": {
29-
"type": "integer",
38+
"type": [
39+
"integer",
40+
"null"
41+
],
3042
"description": "Parameter dimensions for the jina embedding function"
3143
},
3244
"embedding_type": {
33-
"type": "string",
45+
"type": [
46+
"string",
47+
"null"
48+
],
3449
"description": "Parameter embedding_type for the jina embedding function"
3550
},
3651
"normalized": {
37-
"type": "boolean",
52+
"type": [
53+
"boolean",
54+
"null"
55+
],
3856
"description": "Parameter normalized for the jina embedding function"
57+
},
58+
"query_config": {
59+
"type": [
60+
"object",
61+
"null"
62+
],
63+
"description": "Parameter query_config for the jina embedding function"
3964
}
4065
},
4166
"required": [

schemas/embedding_functions/nomic.json

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,19 @@
1616
"task_type": {
1717
"type": "string",
1818
"description": "Parameter task_type for the Nomic embedding function"
19+
},
20+
"query_config": {
21+
"type": [
22+
"object",
23+
"null"
24+
],
25+
"description": "Parameter query_config for the Nomic embedding function"
1926
}
20-
}
27+
},
28+
"required": [
29+
"model",
30+
"api_key_env_var",
31+
"task_type"
32+
],
33+
"additionalProperties": false
2134
}

schemas/embedding_functions/onnx_mini_lm_l6_v2.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66
"type": "object",
77
"properties": {
88
"preferred_providers": {
9-
"type": "array",
9+
"type": [
10+
"array",
11+
"null"
12+
],
1013
"items": {
1114
"type": "string"
1215
},

schemas/embedding_functions/open_clip.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@
1414
"description": "Parameter checkpoint for the open_clip embedding function"
1515
},
1616
"device": {
17-
"type": "string",
17+
"type": [
18+
"string",
19+
"null"
20+
],
1821
"description": "Parameter device for the open_clip embedding function"
1922
}
2023
},

schemas/embedding_functions/voyageai.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@
1414
"description": "Parameter api_key_env_var for the voyageai embedding function"
1515
},
1616
"input_type": {
17-
"type": "string",
17+
"type": [
18+
"string",
19+
"null"
20+
],
1821
"description": "Parameter input_type for the voyageai embedding function"
1922
},
2023
"truncation": {

0 commit comments

Comments
 (0)