@abhishek944/pi-embeddings 0.1.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +59 -9
- package/dist/execute.js +56 -3
- package/dist/extension.js +8 -39
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/mcp-server.js +1 -14
- package/dist/providers.d.ts +13 -2
- package/dist/providers.js +263 -3
- package/dist/response.d.ts +21 -0
- package/dist/response.js +115 -0
- package/dist/runtime.d.ts +22 -2
- package/dist/runtime.js +12 -3
- package/dist/schemas.d.ts +703 -81
- package/dist/schemas.js +137 -16
- package/dist/settings-write.js +2 -2
- package/dist/settings.js +8 -1
- package/dist/tool-contracts.d.ts +459 -184
- package/dist/tool-contracts.js +2 -11
- package/dist/vertex-provider.d.ts +18 -0
- package/dist/vertex-provider.js +139 -0
- package/package.json +9 -2
- package/src/execute.ts +59 -3
- package/src/extension.ts +12 -47
- package/src/index.ts +11 -2
- package/src/mcp-server.ts +0 -19
- package/src/providers.ts +322 -3
- package/src/response.ts +135 -0
- package/src/runtime.ts +44 -6
- package/src/schemas.ts +180 -26
- package/src/settings-write.ts +2 -2
- package/src/settings.ts +10 -0
- package/src/tool-contracts.ts +1 -13
- package/src/vertex-provider.ts +152 -0
package/dist/tool-contracts.d.ts
CHANGED
|
@@ -1,200 +1,475 @@
|
|
|
1
|
-
import { Type } from 'typebox';
|
|
2
1
|
export declare const EMBED_TOOL = "embed";
|
|
3
2
|
export declare const EMBED_COMPARE_TOOL = "embed_compare";
|
|
4
|
-
export declare const EMBEDDINGS_DESCRIBE_TOOL = "embeddings_describe";
|
|
5
3
|
export declare const EMBED_TOOL_DESCRIPTION = "Embed one or more text inputs with the server-configured embedding route. Provider, model, fallback routes and credentials stay in trusted settings; this tool cannot override them. Returns vectors and their actual generating space as structured data. Full text is preserved; the package owns prefixing and provider batching. Use embed_compare only for an explicit comparison.";
|
|
6
4
|
export declare const EMBED_COMPARE_TOOL_DESCRIPTION = "Explicitly compare the same text inputs using exactly the configured compare routes. Every entry is a separate request and may incur charges. No implicit default, fallback, ranking or settings mutation.";
|
|
7
|
-
export declare const
|
|
8
|
-
|
|
9
|
-
inputs: Type.TArray<Type.TString>;
|
|
5
|
+
export declare const embedParameters: import("typebox").TObject<{
|
|
6
|
+
inputs: import("typebox").TArray<import("typebox").TString>;
|
|
10
7
|
}>;
|
|
11
|
-
export declare const embedCompareParameters:
|
|
12
|
-
inputs:
|
|
8
|
+
export declare const embedCompareParameters: import("typebox").TObject<{
|
|
9
|
+
inputs: import("typebox").TArray<import("typebox").TString>;
|
|
13
10
|
}>;
|
|
14
|
-
export declare const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
11
|
+
export declare const embedOutput: import("typebox").TObject<{
|
|
12
|
+
schemaVersion: import("typebox").TLiteral<2>;
|
|
13
|
+
provider: import("typebox").TUnion<[import("typebox").TUnion<[import("typebox").TLiteral<"local">, import("typebox").TLiteral<"openai">, import("typebox").TLiteral<"sarvam">, import("typebox").TLiteral<"gateway">, import("typebox").TLiteral<"openrouter">, import("typebox").TLiteral<"cloudflare">, import("typebox").TLiteral<"gemini">, import("typebox").TLiteral<"vertex">]>, import("typebox").TNull]>;
|
|
14
|
+
model: import("typebox").TUnion<[import("typebox").TString, import("typebox").TNull]>;
|
|
15
|
+
space: import("typebox").TUnion<[import("typebox").TUnion<[import("typebox").TObject<{
|
|
16
|
+
provider: import("typebox").TLiteral<"local">;
|
|
17
|
+
model: import("typebox").TLiteral<"embeddinggemma-2">;
|
|
18
|
+
revision: import("typebox").TString;
|
|
19
|
+
quantization: import("typebox").TLiteral<"Q8_0">;
|
|
20
|
+
runtime: import("typebox").TString;
|
|
21
|
+
dimensions: import("typebox").TLiteral<768>;
|
|
22
|
+
format: import("typebox").TLiteral<"host-display-attributes-v1">;
|
|
23
|
+
prefix: import("typebox").TLiteral<"title: none | text: ">;
|
|
24
|
+
normalization: import("typebox").TLiteral<"finite-nonzero-l2-v1">;
|
|
25
|
+
}>, import("typebox").TObject<{
|
|
26
|
+
provider: import("typebox").TLiteral<"openai">;
|
|
27
|
+
model: import("typebox").TLiteral<"text-embedding-3-small">;
|
|
28
|
+
revision: import("typebox").TNull;
|
|
29
|
+
quantization: import("typebox").TNull;
|
|
30
|
+
runtime: import("typebox").TNull;
|
|
31
|
+
dimensions: import("typebox").TLiteral<1536>;
|
|
32
|
+
format: import("typebox").TLiteral<"host-display-attributes-v1">;
|
|
33
|
+
prefix: import("typebox").TLiteral<"title: none | text: ">;
|
|
34
|
+
normalization: import("typebox").TLiteral<"finite-nonzero-l2-v1">;
|
|
35
|
+
}>, import("typebox").TObject<{
|
|
36
|
+
provider: import("typebox").TLiteral<"sarvam">;
|
|
37
|
+
model: import("typebox").TLiteral<"embeddinggemma-2">;
|
|
38
|
+
revision: import("typebox").TNull;
|
|
39
|
+
quantization: import("typebox").TNull;
|
|
40
|
+
runtime: import("typebox").TLiteral<"sarvam-v2">;
|
|
41
|
+
dimensions: import("typebox").TLiteral<768>;
|
|
42
|
+
format: import("typebox").TLiteral<"host-display-attributes-v1">;
|
|
43
|
+
prefix: import("typebox").TLiteral<"title: none | text: ">;
|
|
44
|
+
normalization: import("typebox").TLiteral<"finite-nonzero-l2-v1">;
|
|
45
|
+
}>, import("typebox").TObject<{
|
|
46
|
+
provider: import("typebox").TLiteral<"gemini">;
|
|
47
|
+
runtime: import("typebox").TLiteral<"gemini-api-v1beta">;
|
|
48
|
+
format: import("typebox").TLiteral<"host-display-attributes-v1">;
|
|
49
|
+
prefix: import("typebox").TUnion<[import("typebox").TLiteral<"title: none | text: ">, import("typebox").TLiteral<"task: search result | query: ">, import("typebox").TLiteral<"task: question answering | query: ">, import("typebox").TLiteral<"task: fact checking | query: ">, import("typebox").TLiteral<"task: code retrieval | query: ">, import("typebox").TLiteral<"task: classification | query: ">, import("typebox").TLiteral<"task: clustering | query: ">, import("typebox").TLiteral<"task: sentence similarity | query: ">]>;
|
|
50
|
+
normalization: import("typebox").TLiteral<"finite-nonzero-l2-v1">;
|
|
51
|
+
model: import("typebox").TLiteral<"gemini-embedding-2">;
|
|
52
|
+
revision: import("typebox").TNull;
|
|
53
|
+
quantization: import("typebox").TNull;
|
|
54
|
+
dimensions: import("typebox").TInteger;
|
|
55
|
+
taskFormat: import("typebox").TUnion<[import("typebox").TLiteral<"retrieval-document">, import("typebox").TLiteral<"search-query">, import("typebox").TLiteral<"question-answering">, import("typebox").TLiteral<"fact-checking">, import("typebox").TLiteral<"code-retrieval">, import("typebox").TLiteral<"classification">, import("typebox").TLiteral<"clustering">, import("typebox").TLiteral<"sentence-similarity">]>;
|
|
56
|
+
}>, import("typebox").TObject<{
|
|
57
|
+
provider: import("typebox").TLiteral<"vertex">;
|
|
58
|
+
runtime: import("typebox").TLiteral<"vertex-ai-v1">;
|
|
59
|
+
format: import("typebox").TLiteral<"host-display-attributes-v1">;
|
|
60
|
+
prefix: import("typebox").TUnion<[import("typebox").TLiteral<"title: none | text: ">, import("typebox").TLiteral<"task: search result | query: ">, import("typebox").TLiteral<"task: question answering | query: ">, import("typebox").TLiteral<"task: fact checking | query: ">, import("typebox").TLiteral<"task: code retrieval | query: ">, import("typebox").TLiteral<"task: classification | query: ">, import("typebox").TLiteral<"task: clustering | query: ">, import("typebox").TLiteral<"task: sentence similarity | query: ">]>;
|
|
61
|
+
normalization: import("typebox").TLiteral<"finite-nonzero-l2-v1">;
|
|
62
|
+
model: import("typebox").TLiteral<"gemini-embedding-2">;
|
|
63
|
+
revision: import("typebox").TNull;
|
|
64
|
+
quantization: import("typebox").TNull;
|
|
65
|
+
dimensions: import("typebox").TInteger;
|
|
66
|
+
taskFormat: import("typebox").TUnion<[import("typebox").TLiteral<"retrieval-document">, import("typebox").TLiteral<"search-query">, import("typebox").TLiteral<"question-answering">, import("typebox").TLiteral<"fact-checking">, import("typebox").TLiteral<"code-retrieval">, import("typebox").TLiteral<"classification">, import("typebox").TLiteral<"clustering">, import("typebox").TLiteral<"sentence-similarity">]>;
|
|
67
|
+
}>, import("typebox").TObject<{
|
|
68
|
+
provider: import("typebox").TLiteral<"cloudflare">;
|
|
69
|
+
model: import("typebox").TLiteral<"@cf/baai/bge-base-en-v1.5">;
|
|
70
|
+
revision: import("typebox").TNull;
|
|
71
|
+
quantization: import("typebox").TNull;
|
|
72
|
+
runtime: import("typebox").TLiteral<"cloudflare-workers-ai">;
|
|
73
|
+
dimensions: import("typebox").TLiteral<768>;
|
|
74
|
+
pooling: import("typebox").TUnion<[import("typebox").TLiteral<"mean">, import("typebox").TLiteral<"cls">]>;
|
|
75
|
+
format: import("typebox").TLiteral<"host-display-attributes-v1">;
|
|
76
|
+
prefix: import("typebox").TLiteral<"title: none | text: ">;
|
|
77
|
+
normalization: import("typebox").TLiteral<"finite-nonzero-l2-v1">;
|
|
78
|
+
}>]>, import("typebox").TNull]>;
|
|
79
|
+
generations: import("typebox").TArray<import("typebox").TObject<{
|
|
80
|
+
provider: import("typebox").TUnion<[import("typebox").TLiteral<"local">, import("typebox").TLiteral<"openai">, import("typebox").TLiteral<"sarvam">, import("typebox").TLiteral<"gateway">, import("typebox").TLiteral<"openrouter">, import("typebox").TLiteral<"cloudflare">, import("typebox").TLiteral<"gemini">, import("typebox").TLiteral<"vertex">]>;
|
|
81
|
+
model: import("typebox").TString;
|
|
82
|
+
space: import("typebox").TUnion<[import("typebox").TObject<{
|
|
83
|
+
provider: import("typebox").TLiteral<"local">;
|
|
84
|
+
model: import("typebox").TLiteral<"embeddinggemma-2">;
|
|
85
|
+
revision: import("typebox").TString;
|
|
86
|
+
quantization: import("typebox").TLiteral<"Q8_0">;
|
|
87
|
+
runtime: import("typebox").TString;
|
|
88
|
+
dimensions: import("typebox").TLiteral<768>;
|
|
89
|
+
format: import("typebox").TLiteral<"host-display-attributes-v1">;
|
|
90
|
+
prefix: import("typebox").TLiteral<"title: none | text: ">;
|
|
91
|
+
normalization: import("typebox").TLiteral<"finite-nonzero-l2-v1">;
|
|
92
|
+
}>, import("typebox").TObject<{
|
|
93
|
+
provider: import("typebox").TLiteral<"openai">;
|
|
94
|
+
model: import("typebox").TLiteral<"text-embedding-3-small">;
|
|
95
|
+
revision: import("typebox").TNull;
|
|
96
|
+
quantization: import("typebox").TNull;
|
|
97
|
+
runtime: import("typebox").TNull;
|
|
98
|
+
dimensions: import("typebox").TLiteral<1536>;
|
|
99
|
+
format: import("typebox").TLiteral<"host-display-attributes-v1">;
|
|
100
|
+
prefix: import("typebox").TLiteral<"title: none | text: ">;
|
|
101
|
+
normalization: import("typebox").TLiteral<"finite-nonzero-l2-v1">;
|
|
102
|
+
}>, import("typebox").TObject<{
|
|
103
|
+
provider: import("typebox").TLiteral<"sarvam">;
|
|
104
|
+
model: import("typebox").TLiteral<"embeddinggemma-2">;
|
|
105
|
+
revision: import("typebox").TNull;
|
|
106
|
+
quantization: import("typebox").TNull;
|
|
107
|
+
runtime: import("typebox").TLiteral<"sarvam-v2">;
|
|
108
|
+
dimensions: import("typebox").TLiteral<768>;
|
|
109
|
+
format: import("typebox").TLiteral<"host-display-attributes-v1">;
|
|
110
|
+
prefix: import("typebox").TLiteral<"title: none | text: ">;
|
|
111
|
+
normalization: import("typebox").TLiteral<"finite-nonzero-l2-v1">;
|
|
112
|
+
}>, import("typebox").TObject<{
|
|
113
|
+
provider: import("typebox").TLiteral<"gemini">;
|
|
114
|
+
runtime: import("typebox").TLiteral<"gemini-api-v1beta">;
|
|
115
|
+
format: import("typebox").TLiteral<"host-display-attributes-v1">;
|
|
116
|
+
prefix: import("typebox").TUnion<[import("typebox").TLiteral<"title: none | text: ">, import("typebox").TLiteral<"task: search result | query: ">, import("typebox").TLiteral<"task: question answering | query: ">, import("typebox").TLiteral<"task: fact checking | query: ">, import("typebox").TLiteral<"task: code retrieval | query: ">, import("typebox").TLiteral<"task: classification | query: ">, import("typebox").TLiteral<"task: clustering | query: ">, import("typebox").TLiteral<"task: sentence similarity | query: ">]>;
|
|
117
|
+
normalization: import("typebox").TLiteral<"finite-nonzero-l2-v1">;
|
|
118
|
+
model: import("typebox").TLiteral<"gemini-embedding-2">;
|
|
119
|
+
revision: import("typebox").TNull;
|
|
120
|
+
quantization: import("typebox").TNull;
|
|
121
|
+
dimensions: import("typebox").TInteger;
|
|
122
|
+
taskFormat: import("typebox").TUnion<[import("typebox").TLiteral<"retrieval-document">, import("typebox").TLiteral<"search-query">, import("typebox").TLiteral<"question-answering">, import("typebox").TLiteral<"fact-checking">, import("typebox").TLiteral<"code-retrieval">, import("typebox").TLiteral<"classification">, import("typebox").TLiteral<"clustering">, import("typebox").TLiteral<"sentence-similarity">]>;
|
|
123
|
+
}>, import("typebox").TObject<{
|
|
124
|
+
provider: import("typebox").TLiteral<"vertex">;
|
|
125
|
+
runtime: import("typebox").TLiteral<"vertex-ai-v1">;
|
|
126
|
+
format: import("typebox").TLiteral<"host-display-attributes-v1">;
|
|
127
|
+
prefix: import("typebox").TUnion<[import("typebox").TLiteral<"title: none | text: ">, import("typebox").TLiteral<"task: search result | query: ">, import("typebox").TLiteral<"task: question answering | query: ">, import("typebox").TLiteral<"task: fact checking | query: ">, import("typebox").TLiteral<"task: code retrieval | query: ">, import("typebox").TLiteral<"task: classification | query: ">, import("typebox").TLiteral<"task: clustering | query: ">, import("typebox").TLiteral<"task: sentence similarity | query: ">]>;
|
|
128
|
+
normalization: import("typebox").TLiteral<"finite-nonzero-l2-v1">;
|
|
129
|
+
model: import("typebox").TLiteral<"gemini-embedding-2">;
|
|
130
|
+
revision: import("typebox").TNull;
|
|
131
|
+
quantization: import("typebox").TNull;
|
|
132
|
+
dimensions: import("typebox").TInteger;
|
|
133
|
+
taskFormat: import("typebox").TUnion<[import("typebox").TLiteral<"retrieval-document">, import("typebox").TLiteral<"search-query">, import("typebox").TLiteral<"question-answering">, import("typebox").TLiteral<"fact-checking">, import("typebox").TLiteral<"code-retrieval">, import("typebox").TLiteral<"classification">, import("typebox").TLiteral<"clustering">, import("typebox").TLiteral<"sentence-similarity">]>;
|
|
134
|
+
}>, import("typebox").TObject<{
|
|
135
|
+
provider: import("typebox").TLiteral<"cloudflare">;
|
|
136
|
+
model: import("typebox").TLiteral<"@cf/baai/bge-base-en-v1.5">;
|
|
137
|
+
revision: import("typebox").TNull;
|
|
138
|
+
quantization: import("typebox").TNull;
|
|
139
|
+
runtime: import("typebox").TLiteral<"cloudflare-workers-ai">;
|
|
140
|
+
dimensions: import("typebox").TLiteral<768>;
|
|
141
|
+
pooling: import("typebox").TUnion<[import("typebox").TLiteral<"mean">, import("typebox").TLiteral<"cls">]>;
|
|
142
|
+
format: import("typebox").TLiteral<"host-display-attributes-v1">;
|
|
143
|
+
prefix: import("typebox").TLiteral<"title: none | text: ">;
|
|
144
|
+
normalization: import("typebox").TLiteral<"finite-nonzero-l2-v1">;
|
|
53
145
|
}>]>;
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
146
|
+
}>>;
|
|
147
|
+
outcomes: import("typebox").TArray<import("typebox").TUnion<[import("typebox").TObject<{
|
|
148
|
+
status: import("typebox").TLiteral<"success">;
|
|
149
|
+
index: import("typebox").TInteger;
|
|
150
|
+
vector: import("typebox").TArray<import("typebox").TNumber>;
|
|
151
|
+
route: import("typebox").TUnion<[import("typebox").TLiteral<"local">, import("typebox").TLiteral<"openai">, import("typebox").TLiteral<"sarvam">, import("typebox").TLiteral<"gateway">, import("typebox").TLiteral<"openrouter">, import("typebox").TLiteral<"cloudflare">, import("typebox").TLiteral<"gemini">, import("typebox").TLiteral<"vertex">]>;
|
|
152
|
+
model: import("typebox").TString;
|
|
153
|
+
space: import("typebox").TUnion<[import("typebox").TObject<{
|
|
154
|
+
provider: import("typebox").TLiteral<"local">;
|
|
155
|
+
model: import("typebox").TLiteral<"embeddinggemma-2">;
|
|
156
|
+
revision: import("typebox").TString;
|
|
157
|
+
quantization: import("typebox").TLiteral<"Q8_0">;
|
|
158
|
+
runtime: import("typebox").TString;
|
|
159
|
+
dimensions: import("typebox").TLiteral<768>;
|
|
160
|
+
format: import("typebox").TLiteral<"host-display-attributes-v1">;
|
|
161
|
+
prefix: import("typebox").TLiteral<"title: none | text: ">;
|
|
162
|
+
normalization: import("typebox").TLiteral<"finite-nonzero-l2-v1">;
|
|
163
|
+
}>, import("typebox").TObject<{
|
|
164
|
+
provider: import("typebox").TLiteral<"openai">;
|
|
165
|
+
model: import("typebox").TLiteral<"text-embedding-3-small">;
|
|
166
|
+
revision: import("typebox").TNull;
|
|
167
|
+
quantization: import("typebox").TNull;
|
|
168
|
+
runtime: import("typebox").TNull;
|
|
169
|
+
dimensions: import("typebox").TLiteral<1536>;
|
|
170
|
+
format: import("typebox").TLiteral<"host-display-attributes-v1">;
|
|
171
|
+
prefix: import("typebox").TLiteral<"title: none | text: ">;
|
|
172
|
+
normalization: import("typebox").TLiteral<"finite-nonzero-l2-v1">;
|
|
173
|
+
}>, import("typebox").TObject<{
|
|
174
|
+
provider: import("typebox").TLiteral<"sarvam">;
|
|
175
|
+
model: import("typebox").TLiteral<"embeddinggemma-2">;
|
|
176
|
+
revision: import("typebox").TNull;
|
|
177
|
+
quantization: import("typebox").TNull;
|
|
178
|
+
runtime: import("typebox").TLiteral<"sarvam-v2">;
|
|
179
|
+
dimensions: import("typebox").TLiteral<768>;
|
|
180
|
+
format: import("typebox").TLiteral<"host-display-attributes-v1">;
|
|
181
|
+
prefix: import("typebox").TLiteral<"title: none | text: ">;
|
|
182
|
+
normalization: import("typebox").TLiteral<"finite-nonzero-l2-v1">;
|
|
183
|
+
}>, import("typebox").TObject<{
|
|
184
|
+
provider: import("typebox").TLiteral<"gemini">;
|
|
185
|
+
runtime: import("typebox").TLiteral<"gemini-api-v1beta">;
|
|
186
|
+
format: import("typebox").TLiteral<"host-display-attributes-v1">;
|
|
187
|
+
prefix: import("typebox").TUnion<[import("typebox").TLiteral<"title: none | text: ">, import("typebox").TLiteral<"task: search result | query: ">, import("typebox").TLiteral<"task: question answering | query: ">, import("typebox").TLiteral<"task: fact checking | query: ">, import("typebox").TLiteral<"task: code retrieval | query: ">, import("typebox").TLiteral<"task: classification | query: ">, import("typebox").TLiteral<"task: clustering | query: ">, import("typebox").TLiteral<"task: sentence similarity | query: ">]>;
|
|
188
|
+
normalization: import("typebox").TLiteral<"finite-nonzero-l2-v1">;
|
|
189
|
+
model: import("typebox").TLiteral<"gemini-embedding-2">;
|
|
190
|
+
revision: import("typebox").TNull;
|
|
191
|
+
quantization: import("typebox").TNull;
|
|
192
|
+
dimensions: import("typebox").TInteger;
|
|
193
|
+
taskFormat: import("typebox").TUnion<[import("typebox").TLiteral<"retrieval-document">, import("typebox").TLiteral<"search-query">, import("typebox").TLiteral<"question-answering">, import("typebox").TLiteral<"fact-checking">, import("typebox").TLiteral<"code-retrieval">, import("typebox").TLiteral<"classification">, import("typebox").TLiteral<"clustering">, import("typebox").TLiteral<"sentence-similarity">]>;
|
|
194
|
+
}>, import("typebox").TObject<{
|
|
195
|
+
provider: import("typebox").TLiteral<"vertex">;
|
|
196
|
+
runtime: import("typebox").TLiteral<"vertex-ai-v1">;
|
|
197
|
+
format: import("typebox").TLiteral<"host-display-attributes-v1">;
|
|
198
|
+
prefix: import("typebox").TUnion<[import("typebox").TLiteral<"title: none | text: ">, import("typebox").TLiteral<"task: search result | query: ">, import("typebox").TLiteral<"task: question answering | query: ">, import("typebox").TLiteral<"task: fact checking | query: ">, import("typebox").TLiteral<"task: code retrieval | query: ">, import("typebox").TLiteral<"task: classification | query: ">, import("typebox").TLiteral<"task: clustering | query: ">, import("typebox").TLiteral<"task: sentence similarity | query: ">]>;
|
|
199
|
+
normalization: import("typebox").TLiteral<"finite-nonzero-l2-v1">;
|
|
200
|
+
model: import("typebox").TLiteral<"gemini-embedding-2">;
|
|
201
|
+
revision: import("typebox").TNull;
|
|
202
|
+
quantization: import("typebox").TNull;
|
|
203
|
+
dimensions: import("typebox").TInteger;
|
|
204
|
+
taskFormat: import("typebox").TUnion<[import("typebox").TLiteral<"retrieval-document">, import("typebox").TLiteral<"search-query">, import("typebox").TLiteral<"question-answering">, import("typebox").TLiteral<"fact-checking">, import("typebox").TLiteral<"code-retrieval">, import("typebox").TLiteral<"classification">, import("typebox").TLiteral<"clustering">, import("typebox").TLiteral<"sentence-similarity">]>;
|
|
205
|
+
}>, import("typebox").TObject<{
|
|
206
|
+
provider: import("typebox").TLiteral<"cloudflare">;
|
|
207
|
+
model: import("typebox").TLiteral<"@cf/baai/bge-base-en-v1.5">;
|
|
208
|
+
revision: import("typebox").TNull;
|
|
209
|
+
quantization: import("typebox").TNull;
|
|
210
|
+
runtime: import("typebox").TLiteral<"cloudflare-workers-ai">;
|
|
211
|
+
dimensions: import("typebox").TLiteral<768>;
|
|
212
|
+
pooling: import("typebox").TUnion<[import("typebox").TLiteral<"mean">, import("typebox").TLiteral<"cls">]>;
|
|
213
|
+
format: import("typebox").TLiteral<"host-display-attributes-v1">;
|
|
214
|
+
prefix: import("typebox").TLiteral<"title: none | text: ">;
|
|
215
|
+
normalization: import("typebox").TLiteral<"finite-nonzero-l2-v1">;
|
|
216
|
+
}>]>;
|
|
217
|
+
attemptId: import("typebox").TString;
|
|
218
|
+
normalization: import("typebox").TLiteral<"finite-nonzero-l2-v1">;
|
|
219
|
+
}>, import("typebox").TObject<{
|
|
220
|
+
status: import("typebox").TLiteral<"error">;
|
|
221
|
+
index: import("typebox").TInteger;
|
|
222
|
+
code: import("typebox").TUnion<[import("typebox").TLiteral<"configuration-invalid">, import("typebox").TLiteral<"route-unconfigured">, import("typebox").TLiteral<"missing-credentials">, import("typebox").TLiteral<"http-auth">, import("typebox").TLiteral<"http-not-found">, import("typebox").TLiteral<"http-rate-limit">, import("typebox").TLiteral<"http-forbidden">, import("typebox").TLiteral<"http-bad-request">, import("typebox").TLiteral<"http-server-error">, import("typebox").TLiteral<"transport-failed">, import("typebox").TLiteral<"provider-response-invalid">, import("typebox").TLiteral<"provider-response-mismatch">, import("typebox").TLiteral<"vector-invalid">, import("typebox").TLiteral<"vector-zero">, import("typebox").TLiteral<"input-empty">, import("typebox").TLiteral<"input-too-long">, import("typebox").TLiteral<"tokenizer-roundtrip-failed">, import("typebox").TLiteral<"attribution-unavailable">, import("typebox").TLiteral<"local-resources-unavailable">, import("typebox").TLiteral<"local-model-mismatch">, import("typebox").TLiteral<"local-runtime-mismatch">, import("typebox").TLiteral<"local-startup-failed">, import("typebox").TLiteral<"local-cpu-startup-invalid">, import("typebox").TLiteral<"cancelled">, import("typebox").TLiteral<"unstarted">]>;
|
|
223
|
+
attemptId: import("typebox").TUnion<[import("typebox").TString, import("typebox").TNull]>;
|
|
61
224
|
}>]>>;
|
|
62
|
-
attempts:
|
|
63
|
-
id:
|
|
64
|
-
route:
|
|
65
|
-
model:
|
|
66
|
-
routeIndex:
|
|
67
|
-
status:
|
|
68
|
-
usage:
|
|
69
|
-
providerReportedInputTokens:
|
|
70
|
-
preparedInputTokens:
|
|
71
|
-
billedTokens:
|
|
72
|
-
}>,
|
|
73
|
-
errorCode:
|
|
225
|
+
attempts: import("typebox").TArray<import("typebox").TObject<{
|
|
226
|
+
id: import("typebox").TString;
|
|
227
|
+
route: import("typebox").TUnion<[import("typebox").TLiteral<"local">, import("typebox").TLiteral<"openai">, import("typebox").TLiteral<"sarvam">, import("typebox").TLiteral<"gateway">, import("typebox").TLiteral<"openrouter">, import("typebox").TLiteral<"cloudflare">, import("typebox").TLiteral<"gemini">, import("typebox").TLiteral<"vertex">]>;
|
|
228
|
+
model: import("typebox").TString;
|
|
229
|
+
routeIndex: import("typebox").TInteger;
|
|
230
|
+
status: import("typebox").TUnion<[import("typebox").TLiteral<"success">, import("typebox").TLiteral<"error">, import("typebox").TLiteral<"cancelled">]>;
|
|
231
|
+
usage: import("typebox").TUnion<[import("typebox").TObject<{
|
|
232
|
+
providerReportedInputTokens: import("typebox").TUnion<[import("typebox").TInteger, import("typebox").TNull]>;
|
|
233
|
+
preparedInputTokens: import("typebox").TUnion<[import("typebox").TInteger, import("typebox").TNull]>;
|
|
234
|
+
billedTokens: import("typebox").TUnion<[import("typebox").TInteger, import("typebox").TNull]>;
|
|
235
|
+
}>, import("typebox").TNull]>;
|
|
236
|
+
errorCode: import("typebox").TOptional<import("typebox").TUnion<[import("typebox").TLiteral<"configuration-invalid">, import("typebox").TLiteral<"route-unconfigured">, import("typebox").TLiteral<"missing-credentials">, import("typebox").TLiteral<"http-auth">, import("typebox").TLiteral<"http-not-found">, import("typebox").TLiteral<"http-rate-limit">, import("typebox").TLiteral<"http-forbidden">, import("typebox").TLiteral<"http-bad-request">, import("typebox").TLiteral<"http-server-error">, import("typebox").TLiteral<"transport-failed">, import("typebox").TLiteral<"provider-response-invalid">, import("typebox").TLiteral<"provider-response-mismatch">, import("typebox").TLiteral<"vector-invalid">, import("typebox").TLiteral<"vector-zero">, import("typebox").TLiteral<"input-empty">, import("typebox").TLiteral<"input-too-long">, import("typebox").TLiteral<"tokenizer-roundtrip-failed">, import("typebox").TLiteral<"attribution-unavailable">, import("typebox").TLiteral<"local-resources-unavailable">, import("typebox").TLiteral<"local-model-mismatch">, import("typebox").TLiteral<"local-runtime-mismatch">, import("typebox").TLiteral<"local-startup-failed">, import("typebox").TLiteral<"local-cpu-startup-invalid">, import("typebox").TLiteral<"cancelled">, import("typebox").TLiteral<"unstarted">]>>;
|
|
74
237
|
}>>;
|
|
75
238
|
}>;
|
|
76
|
-
export declare const embedCompareOutput:
|
|
77
|
-
schemaVersion:
|
|
78
|
-
entries:
|
|
79
|
-
route:
|
|
80
|
-
model:
|
|
81
|
-
status:
|
|
82
|
-
result:
|
|
83
|
-
schemaVersion:
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
239
|
+
export declare const embedCompareOutput: import("typebox").TObject<{
|
|
240
|
+
schemaVersion: import("typebox").TLiteral<2>;
|
|
241
|
+
entries: import("typebox").TArray<import("typebox").TObject<{
|
|
242
|
+
route: import("typebox").TUnion<[import("typebox").TLiteral<"local">, import("typebox").TLiteral<"openai">, import("typebox").TLiteral<"sarvam">, import("typebox").TLiteral<"gateway">, import("typebox").TLiteral<"openrouter">, import("typebox").TLiteral<"cloudflare">, import("typebox").TLiteral<"gemini">, import("typebox").TLiteral<"vertex">]>;
|
|
243
|
+
model: import("typebox").TString;
|
|
244
|
+
status: import("typebox").TUnion<[import("typebox").TLiteral<"success">, import("typebox").TLiteral<"error">, import("typebox").TLiteral<"cancelled">]>;
|
|
245
|
+
result: import("typebox").TObject<{
|
|
246
|
+
schemaVersion: import("typebox").TLiteral<2>;
|
|
247
|
+
provider: import("typebox").TUnion<[import("typebox").TUnion<[import("typebox").TLiteral<"local">, import("typebox").TLiteral<"openai">, import("typebox").TLiteral<"sarvam">, import("typebox").TLiteral<"gateway">, import("typebox").TLiteral<"openrouter">, import("typebox").TLiteral<"cloudflare">, import("typebox").TLiteral<"gemini">, import("typebox").TLiteral<"vertex">]>, import("typebox").TNull]>;
|
|
248
|
+
model: import("typebox").TUnion<[import("typebox").TString, import("typebox").TNull]>;
|
|
249
|
+
space: import("typebox").TUnion<[import("typebox").TUnion<[import("typebox").TObject<{
|
|
250
|
+
provider: import("typebox").TLiteral<"local">;
|
|
251
|
+
model: import("typebox").TLiteral<"embeddinggemma-2">;
|
|
252
|
+
revision: import("typebox").TString;
|
|
253
|
+
quantization: import("typebox").TLiteral<"Q8_0">;
|
|
254
|
+
runtime: import("typebox").TString;
|
|
255
|
+
dimensions: import("typebox").TLiteral<768>;
|
|
256
|
+
format: import("typebox").TLiteral<"host-display-attributes-v1">;
|
|
257
|
+
prefix: import("typebox").TLiteral<"title: none | text: ">;
|
|
258
|
+
normalization: import("typebox").TLiteral<"finite-nonzero-l2-v1">;
|
|
259
|
+
}>, import("typebox").TObject<{
|
|
260
|
+
provider: import("typebox").TLiteral<"openai">;
|
|
261
|
+
model: import("typebox").TLiteral<"text-embedding-3-small">;
|
|
262
|
+
revision: import("typebox").TNull;
|
|
263
|
+
quantization: import("typebox").TNull;
|
|
264
|
+
runtime: import("typebox").TNull;
|
|
265
|
+
dimensions: import("typebox").TLiteral<1536>;
|
|
266
|
+
format: import("typebox").TLiteral<"host-display-attributes-v1">;
|
|
267
|
+
prefix: import("typebox").TLiteral<"title: none | text: ">;
|
|
268
|
+
normalization: import("typebox").TLiteral<"finite-nonzero-l2-v1">;
|
|
269
|
+
}>, import("typebox").TObject<{
|
|
270
|
+
provider: import("typebox").TLiteral<"sarvam">;
|
|
271
|
+
model: import("typebox").TLiteral<"embeddinggemma-2">;
|
|
272
|
+
revision: import("typebox").TNull;
|
|
273
|
+
quantization: import("typebox").TNull;
|
|
274
|
+
runtime: import("typebox").TLiteral<"sarvam-v2">;
|
|
275
|
+
dimensions: import("typebox").TLiteral<768>;
|
|
276
|
+
format: import("typebox").TLiteral<"host-display-attributes-v1">;
|
|
277
|
+
prefix: import("typebox").TLiteral<"title: none | text: ">;
|
|
278
|
+
normalization: import("typebox").TLiteral<"finite-nonzero-l2-v1">;
|
|
279
|
+
}>, import("typebox").TObject<{
|
|
280
|
+
provider: import("typebox").TLiteral<"gemini">;
|
|
281
|
+
runtime: import("typebox").TLiteral<"gemini-api-v1beta">;
|
|
282
|
+
format: import("typebox").TLiteral<"host-display-attributes-v1">;
|
|
283
|
+
prefix: import("typebox").TUnion<[import("typebox").TLiteral<"title: none | text: ">, import("typebox").TLiteral<"task: search result | query: ">, import("typebox").TLiteral<"task: question answering | query: ">, import("typebox").TLiteral<"task: fact checking | query: ">, import("typebox").TLiteral<"task: code retrieval | query: ">, import("typebox").TLiteral<"task: classification | query: ">, import("typebox").TLiteral<"task: clustering | query: ">, import("typebox").TLiteral<"task: sentence similarity | query: ">]>;
|
|
284
|
+
normalization: import("typebox").TLiteral<"finite-nonzero-l2-v1">;
|
|
285
|
+
model: import("typebox").TLiteral<"gemini-embedding-2">;
|
|
286
|
+
revision: import("typebox").TNull;
|
|
287
|
+
quantization: import("typebox").TNull;
|
|
288
|
+
dimensions: import("typebox").TInteger;
|
|
289
|
+
taskFormat: import("typebox").TUnion<[import("typebox").TLiteral<"retrieval-document">, import("typebox").TLiteral<"search-query">, import("typebox").TLiteral<"question-answering">, import("typebox").TLiteral<"fact-checking">, import("typebox").TLiteral<"code-retrieval">, import("typebox").TLiteral<"classification">, import("typebox").TLiteral<"clustering">, import("typebox").TLiteral<"sentence-similarity">]>;
|
|
290
|
+
}>, import("typebox").TObject<{
|
|
291
|
+
provider: import("typebox").TLiteral<"vertex">;
|
|
292
|
+
runtime: import("typebox").TLiteral<"vertex-ai-v1">;
|
|
293
|
+
format: import("typebox").TLiteral<"host-display-attributes-v1">;
|
|
294
|
+
prefix: import("typebox").TUnion<[import("typebox").TLiteral<"title: none | text: ">, import("typebox").TLiteral<"task: search result | query: ">, import("typebox").TLiteral<"task: question answering | query: ">, import("typebox").TLiteral<"task: fact checking | query: ">, import("typebox").TLiteral<"task: code retrieval | query: ">, import("typebox").TLiteral<"task: classification | query: ">, import("typebox").TLiteral<"task: clustering | query: ">, import("typebox").TLiteral<"task: sentence similarity | query: ">]>;
|
|
295
|
+
normalization: import("typebox").TLiteral<"finite-nonzero-l2-v1">;
|
|
296
|
+
model: import("typebox").TLiteral<"gemini-embedding-2">;
|
|
297
|
+
revision: import("typebox").TNull;
|
|
298
|
+
quantization: import("typebox").TNull;
|
|
299
|
+
dimensions: import("typebox").TInteger;
|
|
300
|
+
taskFormat: import("typebox").TUnion<[import("typebox").TLiteral<"retrieval-document">, import("typebox").TLiteral<"search-query">, import("typebox").TLiteral<"question-answering">, import("typebox").TLiteral<"fact-checking">, import("typebox").TLiteral<"code-retrieval">, import("typebox").TLiteral<"classification">, import("typebox").TLiteral<"clustering">, import("typebox").TLiteral<"sentence-similarity">]>;
|
|
301
|
+
}>, import("typebox").TObject<{
|
|
302
|
+
provider: import("typebox").TLiteral<"cloudflare">;
|
|
303
|
+
model: import("typebox").TLiteral<"@cf/baai/bge-base-en-v1.5">;
|
|
304
|
+
revision: import("typebox").TNull;
|
|
305
|
+
quantization: import("typebox").TNull;
|
|
306
|
+
runtime: import("typebox").TLiteral<"cloudflare-workers-ai">;
|
|
307
|
+
dimensions: import("typebox").TLiteral<768>;
|
|
308
|
+
pooling: import("typebox").TUnion<[import("typebox").TLiteral<"mean">, import("typebox").TLiteral<"cls">]>;
|
|
309
|
+
format: import("typebox").TLiteral<"host-display-attributes-v1">;
|
|
310
|
+
prefix: import("typebox").TLiteral<"title: none | text: ">;
|
|
311
|
+
normalization: import("typebox").TLiteral<"finite-nonzero-l2-v1">;
|
|
312
|
+
}>]>, import("typebox").TNull]>;
|
|
313
|
+
generations: import("typebox").TArray<import("typebox").TObject<{
|
|
314
|
+
provider: import("typebox").TUnion<[import("typebox").TLiteral<"local">, import("typebox").TLiteral<"openai">, import("typebox").TLiteral<"sarvam">, import("typebox").TLiteral<"gateway">, import("typebox").TLiteral<"openrouter">, import("typebox").TLiteral<"cloudflare">, import("typebox").TLiteral<"gemini">, import("typebox").TLiteral<"vertex">]>;
|
|
315
|
+
model: import("typebox").TString;
|
|
316
|
+
space: import("typebox").TUnion<[import("typebox").TObject<{
|
|
317
|
+
provider: import("typebox").TLiteral<"local">;
|
|
318
|
+
model: import("typebox").TLiteral<"embeddinggemma-2">;
|
|
319
|
+
revision: import("typebox").TString;
|
|
320
|
+
quantization: import("typebox").TLiteral<"Q8_0">;
|
|
321
|
+
runtime: import("typebox").TString;
|
|
322
|
+
dimensions: import("typebox").TLiteral<768>;
|
|
323
|
+
format: import("typebox").TLiteral<"host-display-attributes-v1">;
|
|
324
|
+
prefix: import("typebox").TLiteral<"title: none | text: ">;
|
|
325
|
+
normalization: import("typebox").TLiteral<"finite-nonzero-l2-v1">;
|
|
326
|
+
}>, import("typebox").TObject<{
|
|
327
|
+
provider: import("typebox").TLiteral<"openai">;
|
|
328
|
+
model: import("typebox").TLiteral<"text-embedding-3-small">;
|
|
329
|
+
revision: import("typebox").TNull;
|
|
330
|
+
quantization: import("typebox").TNull;
|
|
331
|
+
runtime: import("typebox").TNull;
|
|
332
|
+
dimensions: import("typebox").TLiteral<1536>;
|
|
333
|
+
format: import("typebox").TLiteral<"host-display-attributes-v1">;
|
|
334
|
+
prefix: import("typebox").TLiteral<"title: none | text: ">;
|
|
335
|
+
normalization: import("typebox").TLiteral<"finite-nonzero-l2-v1">;
|
|
336
|
+
}>, import("typebox").TObject<{
|
|
337
|
+
provider: import("typebox").TLiteral<"sarvam">;
|
|
338
|
+
model: import("typebox").TLiteral<"embeddinggemma-2">;
|
|
339
|
+
revision: import("typebox").TNull;
|
|
340
|
+
quantization: import("typebox").TNull;
|
|
341
|
+
runtime: import("typebox").TLiteral<"sarvam-v2">;
|
|
342
|
+
dimensions: import("typebox").TLiteral<768>;
|
|
343
|
+
format: import("typebox").TLiteral<"host-display-attributes-v1">;
|
|
344
|
+
prefix: import("typebox").TLiteral<"title: none | text: ">;
|
|
345
|
+
normalization: import("typebox").TLiteral<"finite-nonzero-l2-v1">;
|
|
346
|
+
}>, import("typebox").TObject<{
|
|
347
|
+
provider: import("typebox").TLiteral<"gemini">;
|
|
348
|
+
runtime: import("typebox").TLiteral<"gemini-api-v1beta">;
|
|
349
|
+
format: import("typebox").TLiteral<"host-display-attributes-v1">;
|
|
350
|
+
prefix: import("typebox").TUnion<[import("typebox").TLiteral<"title: none | text: ">, import("typebox").TLiteral<"task: search result | query: ">, import("typebox").TLiteral<"task: question answering | query: ">, import("typebox").TLiteral<"task: fact checking | query: ">, import("typebox").TLiteral<"task: code retrieval | query: ">, import("typebox").TLiteral<"task: classification | query: ">, import("typebox").TLiteral<"task: clustering | query: ">, import("typebox").TLiteral<"task: sentence similarity | query: ">]>;
|
|
351
|
+
normalization: import("typebox").TLiteral<"finite-nonzero-l2-v1">;
|
|
352
|
+
model: import("typebox").TLiteral<"gemini-embedding-2">;
|
|
353
|
+
revision: import("typebox").TNull;
|
|
354
|
+
quantization: import("typebox").TNull;
|
|
355
|
+
dimensions: import("typebox").TInteger;
|
|
356
|
+
taskFormat: import("typebox").TUnion<[import("typebox").TLiteral<"retrieval-document">, import("typebox").TLiteral<"search-query">, import("typebox").TLiteral<"question-answering">, import("typebox").TLiteral<"fact-checking">, import("typebox").TLiteral<"code-retrieval">, import("typebox").TLiteral<"classification">, import("typebox").TLiteral<"clustering">, import("typebox").TLiteral<"sentence-similarity">]>;
|
|
357
|
+
}>, import("typebox").TObject<{
|
|
358
|
+
provider: import("typebox").TLiteral<"vertex">;
|
|
359
|
+
runtime: import("typebox").TLiteral<"vertex-ai-v1">;
|
|
360
|
+
format: import("typebox").TLiteral<"host-display-attributes-v1">;
|
|
361
|
+
prefix: import("typebox").TUnion<[import("typebox").TLiteral<"title: none | text: ">, import("typebox").TLiteral<"task: search result | query: ">, import("typebox").TLiteral<"task: question answering | query: ">, import("typebox").TLiteral<"task: fact checking | query: ">, import("typebox").TLiteral<"task: code retrieval | query: ">, import("typebox").TLiteral<"task: classification | query: ">, import("typebox").TLiteral<"task: clustering | query: ">, import("typebox").TLiteral<"task: sentence similarity | query: ">]>;
|
|
362
|
+
normalization: import("typebox").TLiteral<"finite-nonzero-l2-v1">;
|
|
363
|
+
model: import("typebox").TLiteral<"gemini-embedding-2">;
|
|
364
|
+
revision: import("typebox").TNull;
|
|
365
|
+
quantization: import("typebox").TNull;
|
|
366
|
+
dimensions: import("typebox").TInteger;
|
|
367
|
+
taskFormat: import("typebox").TUnion<[import("typebox").TLiteral<"retrieval-document">, import("typebox").TLiteral<"search-query">, import("typebox").TLiteral<"question-answering">, import("typebox").TLiteral<"fact-checking">, import("typebox").TLiteral<"code-retrieval">, import("typebox").TLiteral<"classification">, import("typebox").TLiteral<"clustering">, import("typebox").TLiteral<"sentence-similarity">]>;
|
|
368
|
+
}>, import("typebox").TObject<{
|
|
369
|
+
provider: import("typebox").TLiteral<"cloudflare">;
|
|
370
|
+
model: import("typebox").TLiteral<"@cf/baai/bge-base-en-v1.5">;
|
|
371
|
+
revision: import("typebox").TNull;
|
|
372
|
+
quantization: import("typebox").TNull;
|
|
373
|
+
runtime: import("typebox").TLiteral<"cloudflare-workers-ai">;
|
|
374
|
+
dimensions: import("typebox").TLiteral<768>;
|
|
375
|
+
pooling: import("typebox").TUnion<[import("typebox").TLiteral<"mean">, import("typebox").TLiteral<"cls">]>;
|
|
376
|
+
format: import("typebox").TLiteral<"host-display-attributes-v1">;
|
|
377
|
+
prefix: import("typebox").TLiteral<"title: none | text: ">;
|
|
378
|
+
normalization: import("typebox").TLiteral<"finite-nonzero-l2-v1">;
|
|
379
|
+
}>]>;
|
|
380
|
+
}>>;
|
|
381
|
+
outcomes: import("typebox").TArray<import("typebox").TUnion<[import("typebox").TObject<{
|
|
382
|
+
status: import("typebox").TLiteral<"success">;
|
|
383
|
+
index: import("typebox").TInteger;
|
|
384
|
+
vector: import("typebox").TArray<import("typebox").TNumber>;
|
|
385
|
+
route: import("typebox").TUnion<[import("typebox").TLiteral<"local">, import("typebox").TLiteral<"openai">, import("typebox").TLiteral<"sarvam">, import("typebox").TLiteral<"gateway">, import("typebox").TLiteral<"openrouter">, import("typebox").TLiteral<"cloudflare">, import("typebox").TLiteral<"gemini">, import("typebox").TLiteral<"vertex">]>;
|
|
386
|
+
model: import("typebox").TString;
|
|
387
|
+
space: import("typebox").TUnion<[import("typebox").TObject<{
|
|
388
|
+
provider: import("typebox").TLiteral<"local">;
|
|
389
|
+
model: import("typebox").TLiteral<"embeddinggemma-2">;
|
|
390
|
+
revision: import("typebox").TString;
|
|
391
|
+
quantization: import("typebox").TLiteral<"Q8_0">;
|
|
392
|
+
runtime: import("typebox").TString;
|
|
393
|
+
dimensions: import("typebox").TLiteral<768>;
|
|
394
|
+
format: import("typebox").TLiteral<"host-display-attributes-v1">;
|
|
395
|
+
prefix: import("typebox").TLiteral<"title: none | text: ">;
|
|
396
|
+
normalization: import("typebox").TLiteral<"finite-nonzero-l2-v1">;
|
|
397
|
+
}>, import("typebox").TObject<{
|
|
398
|
+
provider: import("typebox").TLiteral<"openai">;
|
|
399
|
+
model: import("typebox").TLiteral<"text-embedding-3-small">;
|
|
400
|
+
revision: import("typebox").TNull;
|
|
401
|
+
quantization: import("typebox").TNull;
|
|
402
|
+
runtime: import("typebox").TNull;
|
|
403
|
+
dimensions: import("typebox").TLiteral<1536>;
|
|
404
|
+
format: import("typebox").TLiteral<"host-display-attributes-v1">;
|
|
405
|
+
prefix: import("typebox").TLiteral<"title: none | text: ">;
|
|
406
|
+
normalization: import("typebox").TLiteral<"finite-nonzero-l2-v1">;
|
|
407
|
+
}>, import("typebox").TObject<{
|
|
408
|
+
provider: import("typebox").TLiteral<"sarvam">;
|
|
409
|
+
model: import("typebox").TLiteral<"embeddinggemma-2">;
|
|
410
|
+
revision: import("typebox").TNull;
|
|
411
|
+
quantization: import("typebox").TNull;
|
|
412
|
+
runtime: import("typebox").TLiteral<"sarvam-v2">;
|
|
413
|
+
dimensions: import("typebox").TLiteral<768>;
|
|
414
|
+
format: import("typebox").TLiteral<"host-display-attributes-v1">;
|
|
415
|
+
prefix: import("typebox").TLiteral<"title: none | text: ">;
|
|
416
|
+
normalization: import("typebox").TLiteral<"finite-nonzero-l2-v1">;
|
|
417
|
+
}>, import("typebox").TObject<{
|
|
418
|
+
provider: import("typebox").TLiteral<"gemini">;
|
|
419
|
+
runtime: import("typebox").TLiteral<"gemini-api-v1beta">;
|
|
420
|
+
format: import("typebox").TLiteral<"host-display-attributes-v1">;
|
|
421
|
+
prefix: import("typebox").TUnion<[import("typebox").TLiteral<"title: none | text: ">, import("typebox").TLiteral<"task: search result | query: ">, import("typebox").TLiteral<"task: question answering | query: ">, import("typebox").TLiteral<"task: fact checking | query: ">, import("typebox").TLiteral<"task: code retrieval | query: ">, import("typebox").TLiteral<"task: classification | query: ">, import("typebox").TLiteral<"task: clustering | query: ">, import("typebox").TLiteral<"task: sentence similarity | query: ">]>;
|
|
422
|
+
normalization: import("typebox").TLiteral<"finite-nonzero-l2-v1">;
|
|
423
|
+
model: import("typebox").TLiteral<"gemini-embedding-2">;
|
|
424
|
+
revision: import("typebox").TNull;
|
|
425
|
+
quantization: import("typebox").TNull;
|
|
426
|
+
dimensions: import("typebox").TInteger;
|
|
427
|
+
taskFormat: import("typebox").TUnion<[import("typebox").TLiteral<"retrieval-document">, import("typebox").TLiteral<"search-query">, import("typebox").TLiteral<"question-answering">, import("typebox").TLiteral<"fact-checking">, import("typebox").TLiteral<"code-retrieval">, import("typebox").TLiteral<"classification">, import("typebox").TLiteral<"clustering">, import("typebox").TLiteral<"sentence-similarity">]>;
|
|
428
|
+
}>, import("typebox").TObject<{
|
|
429
|
+
provider: import("typebox").TLiteral<"vertex">;
|
|
430
|
+
runtime: import("typebox").TLiteral<"vertex-ai-v1">;
|
|
431
|
+
format: import("typebox").TLiteral<"host-display-attributes-v1">;
|
|
432
|
+
prefix: import("typebox").TUnion<[import("typebox").TLiteral<"title: none | text: ">, import("typebox").TLiteral<"task: search result | query: ">, import("typebox").TLiteral<"task: question answering | query: ">, import("typebox").TLiteral<"task: fact checking | query: ">, import("typebox").TLiteral<"task: code retrieval | query: ">, import("typebox").TLiteral<"task: classification | query: ">, import("typebox").TLiteral<"task: clustering | query: ">, import("typebox").TLiteral<"task: sentence similarity | query: ">]>;
|
|
433
|
+
normalization: import("typebox").TLiteral<"finite-nonzero-l2-v1">;
|
|
434
|
+
model: import("typebox").TLiteral<"gemini-embedding-2">;
|
|
435
|
+
revision: import("typebox").TNull;
|
|
436
|
+
quantization: import("typebox").TNull;
|
|
437
|
+
dimensions: import("typebox").TInteger;
|
|
438
|
+
taskFormat: import("typebox").TUnion<[import("typebox").TLiteral<"retrieval-document">, import("typebox").TLiteral<"search-query">, import("typebox").TLiteral<"question-answering">, import("typebox").TLiteral<"fact-checking">, import("typebox").TLiteral<"code-retrieval">, import("typebox").TLiteral<"classification">, import("typebox").TLiteral<"clustering">, import("typebox").TLiteral<"sentence-similarity">]>;
|
|
439
|
+
}>, import("typebox").TObject<{
|
|
440
|
+
provider: import("typebox").TLiteral<"cloudflare">;
|
|
441
|
+
model: import("typebox").TLiteral<"@cf/baai/bge-base-en-v1.5">;
|
|
442
|
+
revision: import("typebox").TNull;
|
|
443
|
+
quantization: import("typebox").TNull;
|
|
444
|
+
runtime: import("typebox").TLiteral<"cloudflare-workers-ai">;
|
|
445
|
+
dimensions: import("typebox").TLiteral<768>;
|
|
446
|
+
pooling: import("typebox").TUnion<[import("typebox").TLiteral<"mean">, import("typebox").TLiteral<"cls">]>;
|
|
447
|
+
format: import("typebox").TLiteral<"host-display-attributes-v1">;
|
|
448
|
+
prefix: import("typebox").TLiteral<"title: none | text: ">;
|
|
449
|
+
normalization: import("typebox").TLiteral<"finite-nonzero-l2-v1">;
|
|
120
450
|
}>]>;
|
|
121
|
-
attemptId:
|
|
122
|
-
normalization:
|
|
123
|
-
}>,
|
|
124
|
-
status:
|
|
125
|
-
index:
|
|
126
|
-
code:
|
|
127
|
-
attemptId:
|
|
451
|
+
attemptId: import("typebox").TString;
|
|
452
|
+
normalization: import("typebox").TLiteral<"finite-nonzero-l2-v1">;
|
|
453
|
+
}>, import("typebox").TObject<{
|
|
454
|
+
status: import("typebox").TLiteral<"error">;
|
|
455
|
+
index: import("typebox").TInteger;
|
|
456
|
+
code: import("typebox").TUnion<[import("typebox").TLiteral<"configuration-invalid">, import("typebox").TLiteral<"route-unconfigured">, import("typebox").TLiteral<"missing-credentials">, import("typebox").TLiteral<"http-auth">, import("typebox").TLiteral<"http-not-found">, import("typebox").TLiteral<"http-rate-limit">, import("typebox").TLiteral<"http-forbidden">, import("typebox").TLiteral<"http-bad-request">, import("typebox").TLiteral<"http-server-error">, import("typebox").TLiteral<"transport-failed">, import("typebox").TLiteral<"provider-response-invalid">, import("typebox").TLiteral<"provider-response-mismatch">, import("typebox").TLiteral<"vector-invalid">, import("typebox").TLiteral<"vector-zero">, import("typebox").TLiteral<"input-empty">, import("typebox").TLiteral<"input-too-long">, import("typebox").TLiteral<"tokenizer-roundtrip-failed">, import("typebox").TLiteral<"attribution-unavailable">, import("typebox").TLiteral<"local-resources-unavailable">, import("typebox").TLiteral<"local-model-mismatch">, import("typebox").TLiteral<"local-runtime-mismatch">, import("typebox").TLiteral<"local-startup-failed">, import("typebox").TLiteral<"local-cpu-startup-invalid">, import("typebox").TLiteral<"cancelled">, import("typebox").TLiteral<"unstarted">]>;
|
|
457
|
+
attemptId: import("typebox").TUnion<[import("typebox").TString, import("typebox").TNull]>;
|
|
128
458
|
}>]>>;
|
|
129
|
-
attempts:
|
|
130
|
-
id:
|
|
131
|
-
route:
|
|
132
|
-
model:
|
|
133
|
-
routeIndex:
|
|
134
|
-
status:
|
|
135
|
-
usage:
|
|
136
|
-
providerReportedInputTokens:
|
|
137
|
-
preparedInputTokens:
|
|
138
|
-
billedTokens:
|
|
139
|
-
}>,
|
|
140
|
-
errorCode:
|
|
459
|
+
attempts: import("typebox").TArray<import("typebox").TObject<{
|
|
460
|
+
id: import("typebox").TString;
|
|
461
|
+
route: import("typebox").TUnion<[import("typebox").TLiteral<"local">, import("typebox").TLiteral<"openai">, import("typebox").TLiteral<"sarvam">, import("typebox").TLiteral<"gateway">, import("typebox").TLiteral<"openrouter">, import("typebox").TLiteral<"cloudflare">, import("typebox").TLiteral<"gemini">, import("typebox").TLiteral<"vertex">]>;
|
|
462
|
+
model: import("typebox").TString;
|
|
463
|
+
routeIndex: import("typebox").TInteger;
|
|
464
|
+
status: import("typebox").TUnion<[import("typebox").TLiteral<"success">, import("typebox").TLiteral<"error">, import("typebox").TLiteral<"cancelled">]>;
|
|
465
|
+
usage: import("typebox").TUnion<[import("typebox").TObject<{
|
|
466
|
+
providerReportedInputTokens: import("typebox").TUnion<[import("typebox").TInteger, import("typebox").TNull]>;
|
|
467
|
+
preparedInputTokens: import("typebox").TUnion<[import("typebox").TInteger, import("typebox").TNull]>;
|
|
468
|
+
billedTokens: import("typebox").TUnion<[import("typebox").TInteger, import("typebox").TNull]>;
|
|
469
|
+
}>, import("typebox").TNull]>;
|
|
470
|
+
errorCode: import("typebox").TOptional<import("typebox").TUnion<[import("typebox").TLiteral<"configuration-invalid">, import("typebox").TLiteral<"route-unconfigured">, import("typebox").TLiteral<"missing-credentials">, import("typebox").TLiteral<"http-auth">, import("typebox").TLiteral<"http-not-found">, import("typebox").TLiteral<"http-rate-limit">, import("typebox").TLiteral<"http-forbidden">, import("typebox").TLiteral<"http-bad-request">, import("typebox").TLiteral<"http-server-error">, import("typebox").TLiteral<"transport-failed">, import("typebox").TLiteral<"provider-response-invalid">, import("typebox").TLiteral<"provider-response-mismatch">, import("typebox").TLiteral<"vector-invalid">, import("typebox").TLiteral<"vector-zero">, import("typebox").TLiteral<"input-empty">, import("typebox").TLiteral<"input-too-long">, import("typebox").TLiteral<"tokenizer-roundtrip-failed">, import("typebox").TLiteral<"attribution-unavailable">, import("typebox").TLiteral<"local-resources-unavailable">, import("typebox").TLiteral<"local-model-mismatch">, import("typebox").TLiteral<"local-runtime-mismatch">, import("typebox").TLiteral<"local-startup-failed">, import("typebox").TLiteral<"local-cpu-startup-invalid">, import("typebox").TLiteral<"cancelled">, import("typebox").TLiteral<"unstarted">]>>;
|
|
141
471
|
}>>;
|
|
142
472
|
}>;
|
|
143
473
|
}>>;
|
|
144
474
|
}>;
|
|
145
|
-
export declare const
|
|
146
|
-
schemaVersion: Type.TLiteral<1>;
|
|
147
|
-
ready: Type.TBoolean;
|
|
148
|
-
selected: Type.TObject<{
|
|
149
|
-
provider: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">]>;
|
|
150
|
-
model: Type.TString;
|
|
151
|
-
}>;
|
|
152
|
-
space: Type.TUnion<[Type.TUnion<[Type.TObject<{
|
|
153
|
-
provider: Type.TLiteral<"local">;
|
|
154
|
-
model: Type.TLiteral<"embeddinggemma-2">;
|
|
155
|
-
revision: Type.TString;
|
|
156
|
-
quantization: Type.TLiteral<"Q8_0">;
|
|
157
|
-
runtime: Type.TString;
|
|
158
|
-
dimensions: Type.TLiteral<768>;
|
|
159
|
-
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
160
|
-
prefix: Type.TLiteral<"title: none | text: ">;
|
|
161
|
-
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
162
|
-
}>, Type.TObject<{
|
|
163
|
-
provider: Type.TLiteral<"openai">;
|
|
164
|
-
model: Type.TLiteral<"text-embedding-3-small">;
|
|
165
|
-
revision: Type.TNull;
|
|
166
|
-
quantization: Type.TNull;
|
|
167
|
-
runtime: Type.TNull;
|
|
168
|
-
dimensions: Type.TLiteral<1536>;
|
|
169
|
-
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
170
|
-
prefix: Type.TLiteral<"title: none | text: ">;
|
|
171
|
-
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
172
|
-
}>, Type.TObject<{
|
|
173
|
-
provider: Type.TLiteral<"sarvam">;
|
|
174
|
-
model: Type.TLiteral<"embeddinggemma-2">;
|
|
175
|
-
revision: Type.TNull;
|
|
176
|
-
quantization: Type.TNull;
|
|
177
|
-
runtime: Type.TLiteral<"sarvam-v2">;
|
|
178
|
-
dimensions: Type.TLiteral<768>;
|
|
179
|
-
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
180
|
-
prefix: Type.TLiteral<"title: none | text: ">;
|
|
181
|
-
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
182
|
-
}>]>, Type.TNull]>;
|
|
183
|
-
default: Type.TObject<{
|
|
184
|
-
provider: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">]>;
|
|
185
|
-
model: Type.TString;
|
|
186
|
-
}>;
|
|
187
|
-
fallback: Type.TArray<Type.TObject<{
|
|
188
|
-
provider: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">]>;
|
|
189
|
-
model: Type.TString;
|
|
190
|
-
}>>;
|
|
191
|
-
compare: Type.TArray<Type.TObject<{
|
|
192
|
-
provider: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">]>;
|
|
193
|
-
model: Type.TString;
|
|
194
|
-
}>>;
|
|
195
|
-
diagnostics: Type.TArray<Type.TObject<{
|
|
196
|
-
code: Type.TString;
|
|
197
|
-
severity: Type.TUnion<[Type.TLiteral<"error">, Type.TLiteral<"warning">, Type.TLiteral<"info">]>;
|
|
198
|
-
}>>;
|
|
199
|
-
}>;
|
|
200
|
-
export declare const EMBEDDINGS_TOOL_NAMES: readonly ["embed", "embed_compare", "embeddings_describe"];
|
|
475
|
+
export declare const EMBEDDINGS_TOOL_NAMES: readonly ["embed", "embed_compare"];
|