@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/schemas.d.ts
CHANGED
|
@@ -7,18 +7,40 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { Type, type Static } from 'typebox';
|
|
9
9
|
export declare const EMBEDDINGS_SETTINGS_KEY = "pi-embeddings";
|
|
10
|
-
export declare const EMBEDDINGS_PROTOCOL_VERSION =
|
|
10
|
+
export declare const EMBEDDINGS_PROTOCOL_VERSION = 2;
|
|
11
11
|
export declare const EMBEDDING_FORMAT_VERSION = "host-display-attributes-v1";
|
|
12
12
|
export declare const EMBEDDING_DOCUMENT_PREFIX = "title: none | text: ";
|
|
13
13
|
export declare const EMBEDDING_NORMALIZATION_VERSION = "finite-nonzero-l2-v1";
|
|
14
14
|
export declare const EMBEDDING_CONTEXT_META_KEY = "pi-embeddings/context";
|
|
15
|
-
export declare const EMBEDDING_ROUTE_IDS: readonly ["local", "openai", "sarvam", "gateway"];
|
|
15
|
+
export declare const EMBEDDING_ROUTE_IDS: readonly ["local", "openai", "sarvam", "gateway", "openrouter", "cloudflare", "gemini", "vertex"];
|
|
16
16
|
export type EmbeddingRouteId = (typeof EMBEDDING_ROUTE_IDS)[number];
|
|
17
17
|
export declare const GATEWAY_EMBEDDING_MODELS: readonly ["text-embedding-3-small", "openai/text-embedding-3-small"];
|
|
18
|
+
export declare const OPENROUTER_EMBEDDING_MODELS: readonly ["openai/text-embedding-3-small"];
|
|
19
|
+
export declare const CLOUDFLARE_EMBEDDING_MODELS: readonly ["@cf/baai/bge-base-en-v1.5"];
|
|
20
|
+
export declare const GEMINI_EMBEDDING_MODELS: readonly ["gemini-embedding-2"];
|
|
21
|
+
export declare const GEMINI_EMBEDDING_MIN_DIMENSIONS = 128;
|
|
22
|
+
export declare const GEMINI_EMBEDDING_MAX_DIMENSIONS = 3072;
|
|
23
|
+
export declare const DEFAULT_GEMINI_DIMENSIONS = 3072;
|
|
24
|
+
export declare const GEMINI_EMBEDDING_TASK_FORMATS: readonly ["retrieval-document", "search-query", "question-answering", "fact-checking", "code-retrieval", "classification", "clustering", "sentence-similarity"];
|
|
25
|
+
export declare const DEFAULT_GEMINI_TASK_FORMAT: GeminiEmbeddingTaskFormat;
|
|
26
|
+
export type GeminiEmbeddingDimension = number;
|
|
27
|
+
export type GeminiEmbeddingTaskFormat = (typeof GEMINI_EMBEDDING_TASK_FORMATS)[number];
|
|
28
|
+
/** Official Gemini Embedding 2 text task prefixes. `task_type` is not used for this model. */
|
|
29
|
+
export declare const GEMINI_TASK_PREFIXES: {
|
|
30
|
+
readonly 'retrieval-document': "title: none | text: ";
|
|
31
|
+
readonly 'search-query': "task: search result | query: ";
|
|
32
|
+
readonly 'question-answering': "task: question answering | query: ";
|
|
33
|
+
readonly 'fact-checking': "task: fact checking | query: ";
|
|
34
|
+
readonly 'code-retrieval': "task: code retrieval | query: ";
|
|
35
|
+
readonly classification: "task: classification | query: ";
|
|
36
|
+
readonly clustering: "task: clustering | query: ";
|
|
37
|
+
readonly 'sentence-similarity': "task: sentence similarity | query: ";
|
|
38
|
+
};
|
|
39
|
+
export declare const VERTEX_EMBEDDING_LOCATIONS: readonly ["us", "eu", "global"];
|
|
18
40
|
export declare const EMBEDDING_ERROR_CODES: readonly ["configuration-invalid", "route-unconfigured", "missing-credentials", "http-auth", "http-not-found", "http-rate-limit", "http-forbidden", "http-bad-request", "http-server-error", "transport-failed", "provider-response-invalid", "provider-response-mismatch", "vector-invalid", "vector-zero", "input-empty", "input-too-long", "tokenizer-roundtrip-failed", "attribution-unavailable", "local-resources-unavailable", "local-model-mismatch", "local-runtime-mismatch", "local-startup-failed", "local-cpu-startup-invalid", "cancelled", "unstarted"];
|
|
19
41
|
export type EmbeddingErrorCode = (typeof EMBEDDING_ERROR_CODES)[number];
|
|
20
42
|
export declare const embeddingRouteSchema: Type.TObject<{
|
|
21
|
-
provider: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">]>;
|
|
43
|
+
provider: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">, Type.TLiteral<"gemini">, Type.TLiteral<"vertex">]>;
|
|
22
44
|
model: Type.TString;
|
|
23
45
|
}>;
|
|
24
46
|
/**
|
|
@@ -55,19 +77,52 @@ export declare const embeddingSpaceSchema: Type.TUnion<[Type.TObject<{
|
|
|
55
77
|
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
56
78
|
prefix: Type.TLiteral<"title: none | text: ">;
|
|
57
79
|
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
80
|
+
}>, Type.TObject<{
|
|
81
|
+
provider: Type.TLiteral<"gemini">;
|
|
82
|
+
runtime: Type.TLiteral<"gemini-api-v1beta">;
|
|
83
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
84
|
+
prefix: Type.TUnion<[Type.TLiteral<"title: none | text: ">, Type.TLiteral<"task: search result | query: ">, Type.TLiteral<"task: question answering | query: ">, Type.TLiteral<"task: fact checking | query: ">, Type.TLiteral<"task: code retrieval | query: ">, Type.TLiteral<"task: classification | query: ">, Type.TLiteral<"task: clustering | query: ">, Type.TLiteral<"task: sentence similarity | query: ">]>;
|
|
85
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
86
|
+
model: Type.TLiteral<"gemini-embedding-2">;
|
|
87
|
+
revision: Type.TNull;
|
|
88
|
+
quantization: Type.TNull;
|
|
89
|
+
dimensions: Type.TInteger;
|
|
90
|
+
taskFormat: Type.TUnion<[Type.TLiteral<"retrieval-document">, Type.TLiteral<"search-query">, Type.TLiteral<"question-answering">, Type.TLiteral<"fact-checking">, Type.TLiteral<"code-retrieval">, Type.TLiteral<"classification">, Type.TLiteral<"clustering">, Type.TLiteral<"sentence-similarity">]>;
|
|
91
|
+
}>, Type.TObject<{
|
|
92
|
+
provider: Type.TLiteral<"vertex">;
|
|
93
|
+
runtime: Type.TLiteral<"vertex-ai-v1">;
|
|
94
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
95
|
+
prefix: Type.TUnion<[Type.TLiteral<"title: none | text: ">, Type.TLiteral<"task: search result | query: ">, Type.TLiteral<"task: question answering | query: ">, Type.TLiteral<"task: fact checking | query: ">, Type.TLiteral<"task: code retrieval | query: ">, Type.TLiteral<"task: classification | query: ">, Type.TLiteral<"task: clustering | query: ">, Type.TLiteral<"task: sentence similarity | query: ">]>;
|
|
96
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
97
|
+
model: Type.TLiteral<"gemini-embedding-2">;
|
|
98
|
+
revision: Type.TNull;
|
|
99
|
+
quantization: Type.TNull;
|
|
100
|
+
dimensions: Type.TInteger;
|
|
101
|
+
taskFormat: Type.TUnion<[Type.TLiteral<"retrieval-document">, Type.TLiteral<"search-query">, Type.TLiteral<"question-answering">, Type.TLiteral<"fact-checking">, Type.TLiteral<"code-retrieval">, Type.TLiteral<"classification">, Type.TLiteral<"clustering">, Type.TLiteral<"sentence-similarity">]>;
|
|
102
|
+
}>, Type.TObject<{
|
|
103
|
+
provider: Type.TLiteral<"cloudflare">;
|
|
104
|
+
model: Type.TLiteral<"@cf/baai/bge-base-en-v1.5">;
|
|
105
|
+
revision: Type.TNull;
|
|
106
|
+
quantization: Type.TNull;
|
|
107
|
+
runtime: Type.TLiteral<"cloudflare-workers-ai">;
|
|
108
|
+
dimensions: Type.TLiteral<768>;
|
|
109
|
+
pooling: Type.TUnion<[Type.TLiteral<"mean">, Type.TLiteral<"cls">]>;
|
|
110
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
111
|
+
prefix: Type.TLiteral<"title: none | text: ">;
|
|
112
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
58
113
|
}>]>;
|
|
59
114
|
export declare const embeddingSettingsSchema: Type.TObject<{
|
|
60
115
|
version: Type.TOptional<Type.TLiteral<1>>;
|
|
61
116
|
default: Type.TObject<{
|
|
62
|
-
provider: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">]>;
|
|
117
|
+
provider: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">, Type.TLiteral<"gemini">, Type.TLiteral<"vertex">]>;
|
|
63
118
|
model: Type.TString;
|
|
64
119
|
}>;
|
|
65
120
|
fallback: Type.TOptional<Type.TArray<Type.TObject<{
|
|
66
|
-
provider: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">]>;
|
|
121
|
+
provider: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">, Type.TLiteral<"gemini">, Type.TLiteral<"vertex">]>;
|
|
67
122
|
model: Type.TString;
|
|
68
123
|
}>>>;
|
|
69
124
|
compare: Type.TOptional<Type.TArray<Type.TObject<{
|
|
70
|
-
provider: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">]>;
|
|
125
|
+
provider: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">, Type.TLiteral<"gemini">, Type.TLiteral<"vertex">]>;
|
|
71
126
|
model: Type.TString;
|
|
72
127
|
}>>>;
|
|
73
128
|
providers: Type.TOptional<Type.TObject<{
|
|
@@ -88,6 +143,27 @@ export declare const embeddingSettingsSchema: Type.TObject<{
|
|
|
88
143
|
model: Type.TUnion<[Type.TLiteral<"text-embedding-3-small">, Type.TLiteral<"openai/text-embedding-3-small">]>;
|
|
89
144
|
stage: Type.TUnion<[Type.TLiteral<"dev">, Type.TLiteral<"prod">]>;
|
|
90
145
|
}>>;
|
|
146
|
+
openrouter: Type.TOptional<Type.TObject<{
|
|
147
|
+
apiKey: Type.TOptional<Type.TString>;
|
|
148
|
+
}>>;
|
|
149
|
+
cloudflare: Type.TOptional<Type.TObject<{
|
|
150
|
+
accountId: Type.TOptional<Type.TString>;
|
|
151
|
+
apiKey: Type.TOptional<Type.TString>;
|
|
152
|
+
gatewayId: Type.TOptional<Type.TString>;
|
|
153
|
+
model: Type.TOptional<Type.TLiteral<"@cf/baai/bge-base-en-v1.5">>;
|
|
154
|
+
pooling: Type.TOptional<Type.TUnion<[Type.TLiteral<"mean">, Type.TLiteral<"cls">]>>;
|
|
155
|
+
}>>;
|
|
156
|
+
vertex: Type.TOptional<Type.TObject<{
|
|
157
|
+
project: Type.TString;
|
|
158
|
+
location: Type.TUnion<[Type.TLiteral<"us">, Type.TLiteral<"eu">, Type.TLiteral<"global">]>;
|
|
159
|
+
dimensions: Type.TInteger;
|
|
160
|
+
taskFormat: Type.TUnion<[Type.TLiteral<"retrieval-document">, Type.TLiteral<"search-query">, Type.TLiteral<"question-answering">, Type.TLiteral<"fact-checking">, Type.TLiteral<"code-retrieval">, Type.TLiteral<"classification">, Type.TLiteral<"clustering">, Type.TLiteral<"sentence-similarity">]>;
|
|
161
|
+
}>>;
|
|
162
|
+
gemini: Type.TOptional<Type.TObject<{
|
|
163
|
+
apiKey: Type.TOptional<Type.TString>;
|
|
164
|
+
dimensions: Type.TOptional<Type.TInteger>;
|
|
165
|
+
taskFormat: Type.TOptional<Type.TUnion<[Type.TLiteral<"retrieval-document">, Type.TLiteral<"search-query">, Type.TLiteral<"question-answering">, Type.TLiteral<"fact-checking">, Type.TLiteral<"code-retrieval">, Type.TLiteral<"classification">, Type.TLiteral<"clustering">, Type.TLiteral<"sentence-similarity">]>>;
|
|
166
|
+
}>>;
|
|
91
167
|
}>>;
|
|
92
168
|
}>;
|
|
93
169
|
export declare const embeddingRequestSchema: Type.TObject<{
|
|
@@ -105,7 +181,7 @@ export declare const embeddingUsageSchema: Type.TObject<{
|
|
|
105
181
|
}>;
|
|
106
182
|
export declare const embeddingAttemptSchema: Type.TObject<{
|
|
107
183
|
id: Type.TString;
|
|
108
|
-
route: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">]>;
|
|
184
|
+
route: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">, Type.TLiteral<"gemini">, Type.TLiteral<"vertex">]>;
|
|
109
185
|
model: Type.TString;
|
|
110
186
|
routeIndex: Type.TInteger;
|
|
111
187
|
status: Type.TUnion<[Type.TLiteral<"success">, Type.TLiteral<"error">, Type.TLiteral<"cancelled">]>;
|
|
@@ -120,7 +196,7 @@ export declare const embeddingOutcomeSchema: Type.TUnion<[Type.TObject<{
|
|
|
120
196
|
status: Type.TLiteral<"success">;
|
|
121
197
|
index: Type.TInteger;
|
|
122
198
|
vector: Type.TArray<Type.TNumber>;
|
|
123
|
-
route: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">]>;
|
|
199
|
+
route: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">, Type.TLiteral<"gemini">, Type.TLiteral<"vertex">]>;
|
|
124
200
|
model: Type.TString;
|
|
125
201
|
space: Type.TUnion<[Type.TObject<{
|
|
126
202
|
provider: Type.TLiteral<"local">;
|
|
@@ -152,6 +228,39 @@ export declare const embeddingOutcomeSchema: Type.TUnion<[Type.TObject<{
|
|
|
152
228
|
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
153
229
|
prefix: Type.TLiteral<"title: none | text: ">;
|
|
154
230
|
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
231
|
+
}>, Type.TObject<{
|
|
232
|
+
provider: Type.TLiteral<"gemini">;
|
|
233
|
+
runtime: Type.TLiteral<"gemini-api-v1beta">;
|
|
234
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
235
|
+
prefix: Type.TUnion<[Type.TLiteral<"title: none | text: ">, Type.TLiteral<"task: search result | query: ">, Type.TLiteral<"task: question answering | query: ">, Type.TLiteral<"task: fact checking | query: ">, Type.TLiteral<"task: code retrieval | query: ">, Type.TLiteral<"task: classification | query: ">, Type.TLiteral<"task: clustering | query: ">, Type.TLiteral<"task: sentence similarity | query: ">]>;
|
|
236
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
237
|
+
model: Type.TLiteral<"gemini-embedding-2">;
|
|
238
|
+
revision: Type.TNull;
|
|
239
|
+
quantization: Type.TNull;
|
|
240
|
+
dimensions: Type.TInteger;
|
|
241
|
+
taskFormat: Type.TUnion<[Type.TLiteral<"retrieval-document">, Type.TLiteral<"search-query">, Type.TLiteral<"question-answering">, Type.TLiteral<"fact-checking">, Type.TLiteral<"code-retrieval">, Type.TLiteral<"classification">, Type.TLiteral<"clustering">, Type.TLiteral<"sentence-similarity">]>;
|
|
242
|
+
}>, Type.TObject<{
|
|
243
|
+
provider: Type.TLiteral<"vertex">;
|
|
244
|
+
runtime: Type.TLiteral<"vertex-ai-v1">;
|
|
245
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
246
|
+
prefix: Type.TUnion<[Type.TLiteral<"title: none | text: ">, Type.TLiteral<"task: search result | query: ">, Type.TLiteral<"task: question answering | query: ">, Type.TLiteral<"task: fact checking | query: ">, Type.TLiteral<"task: code retrieval | query: ">, Type.TLiteral<"task: classification | query: ">, Type.TLiteral<"task: clustering | query: ">, Type.TLiteral<"task: sentence similarity | query: ">]>;
|
|
247
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
248
|
+
model: Type.TLiteral<"gemini-embedding-2">;
|
|
249
|
+
revision: Type.TNull;
|
|
250
|
+
quantization: Type.TNull;
|
|
251
|
+
dimensions: Type.TInteger;
|
|
252
|
+
taskFormat: Type.TUnion<[Type.TLiteral<"retrieval-document">, Type.TLiteral<"search-query">, Type.TLiteral<"question-answering">, Type.TLiteral<"fact-checking">, Type.TLiteral<"code-retrieval">, Type.TLiteral<"classification">, Type.TLiteral<"clustering">, Type.TLiteral<"sentence-similarity">]>;
|
|
253
|
+
}>, Type.TObject<{
|
|
254
|
+
provider: Type.TLiteral<"cloudflare">;
|
|
255
|
+
model: Type.TLiteral<"@cf/baai/bge-base-en-v1.5">;
|
|
256
|
+
revision: Type.TNull;
|
|
257
|
+
quantization: Type.TNull;
|
|
258
|
+
runtime: Type.TLiteral<"cloudflare-workers-ai">;
|
|
259
|
+
dimensions: Type.TLiteral<768>;
|
|
260
|
+
pooling: Type.TUnion<[Type.TLiteral<"mean">, Type.TLiteral<"cls">]>;
|
|
261
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
262
|
+
prefix: Type.TLiteral<"title: none | text: ">;
|
|
263
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
155
264
|
}>]>;
|
|
156
265
|
attemptId: Type.TString;
|
|
157
266
|
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
@@ -161,13 +270,219 @@ export declare const embeddingOutcomeSchema: Type.TUnion<[Type.TObject<{
|
|
|
161
270
|
code: Type.TUnion<[Type.TLiteral<"configuration-invalid">, Type.TLiteral<"route-unconfigured">, Type.TLiteral<"missing-credentials">, Type.TLiteral<"http-auth">, Type.TLiteral<"http-not-found">, Type.TLiteral<"http-rate-limit">, Type.TLiteral<"http-forbidden">, Type.TLiteral<"http-bad-request">, Type.TLiteral<"http-server-error">, Type.TLiteral<"transport-failed">, Type.TLiteral<"provider-response-invalid">, Type.TLiteral<"provider-response-mismatch">, Type.TLiteral<"vector-invalid">, Type.TLiteral<"vector-zero">, Type.TLiteral<"input-empty">, Type.TLiteral<"input-too-long">, Type.TLiteral<"tokenizer-roundtrip-failed">, Type.TLiteral<"attribution-unavailable">, Type.TLiteral<"local-resources-unavailable">, Type.TLiteral<"local-model-mismatch">, Type.TLiteral<"local-runtime-mismatch">, Type.TLiteral<"local-startup-failed">, Type.TLiteral<"local-cpu-startup-invalid">, Type.TLiteral<"cancelled">, Type.TLiteral<"unstarted">]>;
|
|
162
271
|
attemptId: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
163
272
|
}>]>;
|
|
273
|
+
/**
|
|
274
|
+
* Actual generating identity observed on successful outcomes. `generations` is the complete set;
|
|
275
|
+
* the singular fields are populated only when every successful vector came from one generation.
|
|
276
|
+
*/
|
|
277
|
+
export declare const embeddingGenerationSchema: Type.TObject<{
|
|
278
|
+
provider: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">, Type.TLiteral<"gemini">, Type.TLiteral<"vertex">]>;
|
|
279
|
+
model: Type.TString;
|
|
280
|
+
space: Type.TUnion<[Type.TObject<{
|
|
281
|
+
provider: Type.TLiteral<"local">;
|
|
282
|
+
model: Type.TLiteral<"embeddinggemma-2">;
|
|
283
|
+
revision: Type.TString;
|
|
284
|
+
quantization: Type.TLiteral<"Q8_0">;
|
|
285
|
+
runtime: Type.TString;
|
|
286
|
+
dimensions: Type.TLiteral<768>;
|
|
287
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
288
|
+
prefix: Type.TLiteral<"title: none | text: ">;
|
|
289
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
290
|
+
}>, Type.TObject<{
|
|
291
|
+
provider: Type.TLiteral<"openai">;
|
|
292
|
+
model: Type.TLiteral<"text-embedding-3-small">;
|
|
293
|
+
revision: Type.TNull;
|
|
294
|
+
quantization: Type.TNull;
|
|
295
|
+
runtime: Type.TNull;
|
|
296
|
+
dimensions: Type.TLiteral<1536>;
|
|
297
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
298
|
+
prefix: Type.TLiteral<"title: none | text: ">;
|
|
299
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
300
|
+
}>, Type.TObject<{
|
|
301
|
+
provider: Type.TLiteral<"sarvam">;
|
|
302
|
+
model: Type.TLiteral<"embeddinggemma-2">;
|
|
303
|
+
revision: Type.TNull;
|
|
304
|
+
quantization: Type.TNull;
|
|
305
|
+
runtime: Type.TLiteral<"sarvam-v2">;
|
|
306
|
+
dimensions: Type.TLiteral<768>;
|
|
307
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
308
|
+
prefix: Type.TLiteral<"title: none | text: ">;
|
|
309
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
310
|
+
}>, Type.TObject<{
|
|
311
|
+
provider: Type.TLiteral<"gemini">;
|
|
312
|
+
runtime: Type.TLiteral<"gemini-api-v1beta">;
|
|
313
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
314
|
+
prefix: Type.TUnion<[Type.TLiteral<"title: none | text: ">, Type.TLiteral<"task: search result | query: ">, Type.TLiteral<"task: question answering | query: ">, Type.TLiteral<"task: fact checking | query: ">, Type.TLiteral<"task: code retrieval | query: ">, Type.TLiteral<"task: classification | query: ">, Type.TLiteral<"task: clustering | query: ">, Type.TLiteral<"task: sentence similarity | query: ">]>;
|
|
315
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
316
|
+
model: Type.TLiteral<"gemini-embedding-2">;
|
|
317
|
+
revision: Type.TNull;
|
|
318
|
+
quantization: Type.TNull;
|
|
319
|
+
dimensions: Type.TInteger;
|
|
320
|
+
taskFormat: Type.TUnion<[Type.TLiteral<"retrieval-document">, Type.TLiteral<"search-query">, Type.TLiteral<"question-answering">, Type.TLiteral<"fact-checking">, Type.TLiteral<"code-retrieval">, Type.TLiteral<"classification">, Type.TLiteral<"clustering">, Type.TLiteral<"sentence-similarity">]>;
|
|
321
|
+
}>, Type.TObject<{
|
|
322
|
+
provider: Type.TLiteral<"vertex">;
|
|
323
|
+
runtime: Type.TLiteral<"vertex-ai-v1">;
|
|
324
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
325
|
+
prefix: Type.TUnion<[Type.TLiteral<"title: none | text: ">, Type.TLiteral<"task: search result | query: ">, Type.TLiteral<"task: question answering | query: ">, Type.TLiteral<"task: fact checking | query: ">, Type.TLiteral<"task: code retrieval | query: ">, Type.TLiteral<"task: classification | query: ">, Type.TLiteral<"task: clustering | query: ">, Type.TLiteral<"task: sentence similarity | query: ">]>;
|
|
326
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
327
|
+
model: Type.TLiteral<"gemini-embedding-2">;
|
|
328
|
+
revision: Type.TNull;
|
|
329
|
+
quantization: Type.TNull;
|
|
330
|
+
dimensions: Type.TInteger;
|
|
331
|
+
taskFormat: Type.TUnion<[Type.TLiteral<"retrieval-document">, Type.TLiteral<"search-query">, Type.TLiteral<"question-answering">, Type.TLiteral<"fact-checking">, Type.TLiteral<"code-retrieval">, Type.TLiteral<"classification">, Type.TLiteral<"clustering">, Type.TLiteral<"sentence-similarity">]>;
|
|
332
|
+
}>, Type.TObject<{
|
|
333
|
+
provider: Type.TLiteral<"cloudflare">;
|
|
334
|
+
model: Type.TLiteral<"@cf/baai/bge-base-en-v1.5">;
|
|
335
|
+
revision: Type.TNull;
|
|
336
|
+
quantization: Type.TNull;
|
|
337
|
+
runtime: Type.TLiteral<"cloudflare-workers-ai">;
|
|
338
|
+
dimensions: Type.TLiteral<768>;
|
|
339
|
+
pooling: Type.TUnion<[Type.TLiteral<"mean">, Type.TLiteral<"cls">]>;
|
|
340
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
341
|
+
prefix: Type.TLiteral<"title: none | text: ">;
|
|
342
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
343
|
+
}>]>;
|
|
344
|
+
}>;
|
|
164
345
|
export declare const embeddingResultSchema: Type.TObject<{
|
|
165
|
-
schemaVersion: Type.TLiteral<
|
|
346
|
+
schemaVersion: Type.TLiteral<2>;
|
|
347
|
+
provider: Type.TUnion<[Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">, Type.TLiteral<"gemini">, Type.TLiteral<"vertex">]>, Type.TNull]>;
|
|
348
|
+
model: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
349
|
+
space: Type.TUnion<[Type.TUnion<[Type.TObject<{
|
|
350
|
+
provider: Type.TLiteral<"local">;
|
|
351
|
+
model: Type.TLiteral<"embeddinggemma-2">;
|
|
352
|
+
revision: Type.TString;
|
|
353
|
+
quantization: Type.TLiteral<"Q8_0">;
|
|
354
|
+
runtime: Type.TString;
|
|
355
|
+
dimensions: Type.TLiteral<768>;
|
|
356
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
357
|
+
prefix: Type.TLiteral<"title: none | text: ">;
|
|
358
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
359
|
+
}>, Type.TObject<{
|
|
360
|
+
provider: Type.TLiteral<"openai">;
|
|
361
|
+
model: Type.TLiteral<"text-embedding-3-small">;
|
|
362
|
+
revision: Type.TNull;
|
|
363
|
+
quantization: Type.TNull;
|
|
364
|
+
runtime: Type.TNull;
|
|
365
|
+
dimensions: Type.TLiteral<1536>;
|
|
366
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
367
|
+
prefix: Type.TLiteral<"title: none | text: ">;
|
|
368
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
369
|
+
}>, Type.TObject<{
|
|
370
|
+
provider: Type.TLiteral<"sarvam">;
|
|
371
|
+
model: Type.TLiteral<"embeddinggemma-2">;
|
|
372
|
+
revision: Type.TNull;
|
|
373
|
+
quantization: Type.TNull;
|
|
374
|
+
runtime: Type.TLiteral<"sarvam-v2">;
|
|
375
|
+
dimensions: Type.TLiteral<768>;
|
|
376
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
377
|
+
prefix: Type.TLiteral<"title: none | text: ">;
|
|
378
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
379
|
+
}>, Type.TObject<{
|
|
380
|
+
provider: Type.TLiteral<"gemini">;
|
|
381
|
+
runtime: Type.TLiteral<"gemini-api-v1beta">;
|
|
382
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
383
|
+
prefix: Type.TUnion<[Type.TLiteral<"title: none | text: ">, Type.TLiteral<"task: search result | query: ">, Type.TLiteral<"task: question answering | query: ">, Type.TLiteral<"task: fact checking | query: ">, Type.TLiteral<"task: code retrieval | query: ">, Type.TLiteral<"task: classification | query: ">, Type.TLiteral<"task: clustering | query: ">, Type.TLiteral<"task: sentence similarity | query: ">]>;
|
|
384
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
385
|
+
model: Type.TLiteral<"gemini-embedding-2">;
|
|
386
|
+
revision: Type.TNull;
|
|
387
|
+
quantization: Type.TNull;
|
|
388
|
+
dimensions: Type.TInteger;
|
|
389
|
+
taskFormat: Type.TUnion<[Type.TLiteral<"retrieval-document">, Type.TLiteral<"search-query">, Type.TLiteral<"question-answering">, Type.TLiteral<"fact-checking">, Type.TLiteral<"code-retrieval">, Type.TLiteral<"classification">, Type.TLiteral<"clustering">, Type.TLiteral<"sentence-similarity">]>;
|
|
390
|
+
}>, Type.TObject<{
|
|
391
|
+
provider: Type.TLiteral<"vertex">;
|
|
392
|
+
runtime: Type.TLiteral<"vertex-ai-v1">;
|
|
393
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
394
|
+
prefix: Type.TUnion<[Type.TLiteral<"title: none | text: ">, Type.TLiteral<"task: search result | query: ">, Type.TLiteral<"task: question answering | query: ">, Type.TLiteral<"task: fact checking | query: ">, Type.TLiteral<"task: code retrieval | query: ">, Type.TLiteral<"task: classification | query: ">, Type.TLiteral<"task: clustering | query: ">, Type.TLiteral<"task: sentence similarity | query: ">]>;
|
|
395
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
396
|
+
model: Type.TLiteral<"gemini-embedding-2">;
|
|
397
|
+
revision: Type.TNull;
|
|
398
|
+
quantization: Type.TNull;
|
|
399
|
+
dimensions: Type.TInteger;
|
|
400
|
+
taskFormat: Type.TUnion<[Type.TLiteral<"retrieval-document">, Type.TLiteral<"search-query">, Type.TLiteral<"question-answering">, Type.TLiteral<"fact-checking">, Type.TLiteral<"code-retrieval">, Type.TLiteral<"classification">, Type.TLiteral<"clustering">, Type.TLiteral<"sentence-similarity">]>;
|
|
401
|
+
}>, Type.TObject<{
|
|
402
|
+
provider: Type.TLiteral<"cloudflare">;
|
|
403
|
+
model: Type.TLiteral<"@cf/baai/bge-base-en-v1.5">;
|
|
404
|
+
revision: Type.TNull;
|
|
405
|
+
quantization: Type.TNull;
|
|
406
|
+
runtime: Type.TLiteral<"cloudflare-workers-ai">;
|
|
407
|
+
dimensions: Type.TLiteral<768>;
|
|
408
|
+
pooling: Type.TUnion<[Type.TLiteral<"mean">, Type.TLiteral<"cls">]>;
|
|
409
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
410
|
+
prefix: Type.TLiteral<"title: none | text: ">;
|
|
411
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
412
|
+
}>]>, Type.TNull]>;
|
|
413
|
+
generations: Type.TArray<Type.TObject<{
|
|
414
|
+
provider: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">, Type.TLiteral<"gemini">, Type.TLiteral<"vertex">]>;
|
|
415
|
+
model: Type.TString;
|
|
416
|
+
space: Type.TUnion<[Type.TObject<{
|
|
417
|
+
provider: Type.TLiteral<"local">;
|
|
418
|
+
model: Type.TLiteral<"embeddinggemma-2">;
|
|
419
|
+
revision: Type.TString;
|
|
420
|
+
quantization: Type.TLiteral<"Q8_0">;
|
|
421
|
+
runtime: Type.TString;
|
|
422
|
+
dimensions: Type.TLiteral<768>;
|
|
423
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
424
|
+
prefix: Type.TLiteral<"title: none | text: ">;
|
|
425
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
426
|
+
}>, Type.TObject<{
|
|
427
|
+
provider: Type.TLiteral<"openai">;
|
|
428
|
+
model: Type.TLiteral<"text-embedding-3-small">;
|
|
429
|
+
revision: Type.TNull;
|
|
430
|
+
quantization: Type.TNull;
|
|
431
|
+
runtime: Type.TNull;
|
|
432
|
+
dimensions: Type.TLiteral<1536>;
|
|
433
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
434
|
+
prefix: Type.TLiteral<"title: none | text: ">;
|
|
435
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
436
|
+
}>, Type.TObject<{
|
|
437
|
+
provider: Type.TLiteral<"sarvam">;
|
|
438
|
+
model: Type.TLiteral<"embeddinggemma-2">;
|
|
439
|
+
revision: Type.TNull;
|
|
440
|
+
quantization: Type.TNull;
|
|
441
|
+
runtime: Type.TLiteral<"sarvam-v2">;
|
|
442
|
+
dimensions: Type.TLiteral<768>;
|
|
443
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
444
|
+
prefix: Type.TLiteral<"title: none | text: ">;
|
|
445
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
446
|
+
}>, Type.TObject<{
|
|
447
|
+
provider: Type.TLiteral<"gemini">;
|
|
448
|
+
runtime: Type.TLiteral<"gemini-api-v1beta">;
|
|
449
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
450
|
+
prefix: Type.TUnion<[Type.TLiteral<"title: none | text: ">, Type.TLiteral<"task: search result | query: ">, Type.TLiteral<"task: question answering | query: ">, Type.TLiteral<"task: fact checking | query: ">, Type.TLiteral<"task: code retrieval | query: ">, Type.TLiteral<"task: classification | query: ">, Type.TLiteral<"task: clustering | query: ">, Type.TLiteral<"task: sentence similarity | query: ">]>;
|
|
451
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
452
|
+
model: Type.TLiteral<"gemini-embedding-2">;
|
|
453
|
+
revision: Type.TNull;
|
|
454
|
+
quantization: Type.TNull;
|
|
455
|
+
dimensions: Type.TInteger;
|
|
456
|
+
taskFormat: Type.TUnion<[Type.TLiteral<"retrieval-document">, Type.TLiteral<"search-query">, Type.TLiteral<"question-answering">, Type.TLiteral<"fact-checking">, Type.TLiteral<"code-retrieval">, Type.TLiteral<"classification">, Type.TLiteral<"clustering">, Type.TLiteral<"sentence-similarity">]>;
|
|
457
|
+
}>, Type.TObject<{
|
|
458
|
+
provider: Type.TLiteral<"vertex">;
|
|
459
|
+
runtime: Type.TLiteral<"vertex-ai-v1">;
|
|
460
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
461
|
+
prefix: Type.TUnion<[Type.TLiteral<"title: none | text: ">, Type.TLiteral<"task: search result | query: ">, Type.TLiteral<"task: question answering | query: ">, Type.TLiteral<"task: fact checking | query: ">, Type.TLiteral<"task: code retrieval | query: ">, Type.TLiteral<"task: classification | query: ">, Type.TLiteral<"task: clustering | query: ">, Type.TLiteral<"task: sentence similarity | query: ">]>;
|
|
462
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
463
|
+
model: Type.TLiteral<"gemini-embedding-2">;
|
|
464
|
+
revision: Type.TNull;
|
|
465
|
+
quantization: Type.TNull;
|
|
466
|
+
dimensions: Type.TInteger;
|
|
467
|
+
taskFormat: Type.TUnion<[Type.TLiteral<"retrieval-document">, Type.TLiteral<"search-query">, Type.TLiteral<"question-answering">, Type.TLiteral<"fact-checking">, Type.TLiteral<"code-retrieval">, Type.TLiteral<"classification">, Type.TLiteral<"clustering">, Type.TLiteral<"sentence-similarity">]>;
|
|
468
|
+
}>, Type.TObject<{
|
|
469
|
+
provider: Type.TLiteral<"cloudflare">;
|
|
470
|
+
model: Type.TLiteral<"@cf/baai/bge-base-en-v1.5">;
|
|
471
|
+
revision: Type.TNull;
|
|
472
|
+
quantization: Type.TNull;
|
|
473
|
+
runtime: Type.TLiteral<"cloudflare-workers-ai">;
|
|
474
|
+
dimensions: Type.TLiteral<768>;
|
|
475
|
+
pooling: Type.TUnion<[Type.TLiteral<"mean">, Type.TLiteral<"cls">]>;
|
|
476
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
477
|
+
prefix: Type.TLiteral<"title: none | text: ">;
|
|
478
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
479
|
+
}>]>;
|
|
480
|
+
}>>;
|
|
166
481
|
outcomes: Type.TArray<Type.TUnion<[Type.TObject<{
|
|
167
482
|
status: Type.TLiteral<"success">;
|
|
168
483
|
index: Type.TInteger;
|
|
169
484
|
vector: Type.TArray<Type.TNumber>;
|
|
170
|
-
route: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">]>;
|
|
485
|
+
route: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">, Type.TLiteral<"gemini">, Type.TLiteral<"vertex">]>;
|
|
171
486
|
model: Type.TString;
|
|
172
487
|
space: Type.TUnion<[Type.TObject<{
|
|
173
488
|
provider: Type.TLiteral<"local">;
|
|
@@ -199,6 +514,39 @@ export declare const embeddingResultSchema: Type.TObject<{
|
|
|
199
514
|
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
200
515
|
prefix: Type.TLiteral<"title: none | text: ">;
|
|
201
516
|
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
517
|
+
}>, Type.TObject<{
|
|
518
|
+
provider: Type.TLiteral<"gemini">;
|
|
519
|
+
runtime: Type.TLiteral<"gemini-api-v1beta">;
|
|
520
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
521
|
+
prefix: Type.TUnion<[Type.TLiteral<"title: none | text: ">, Type.TLiteral<"task: search result | query: ">, Type.TLiteral<"task: question answering | query: ">, Type.TLiteral<"task: fact checking | query: ">, Type.TLiteral<"task: code retrieval | query: ">, Type.TLiteral<"task: classification | query: ">, Type.TLiteral<"task: clustering | query: ">, Type.TLiteral<"task: sentence similarity | query: ">]>;
|
|
522
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
523
|
+
model: Type.TLiteral<"gemini-embedding-2">;
|
|
524
|
+
revision: Type.TNull;
|
|
525
|
+
quantization: Type.TNull;
|
|
526
|
+
dimensions: Type.TInteger;
|
|
527
|
+
taskFormat: Type.TUnion<[Type.TLiteral<"retrieval-document">, Type.TLiteral<"search-query">, Type.TLiteral<"question-answering">, Type.TLiteral<"fact-checking">, Type.TLiteral<"code-retrieval">, Type.TLiteral<"classification">, Type.TLiteral<"clustering">, Type.TLiteral<"sentence-similarity">]>;
|
|
528
|
+
}>, Type.TObject<{
|
|
529
|
+
provider: Type.TLiteral<"vertex">;
|
|
530
|
+
runtime: Type.TLiteral<"vertex-ai-v1">;
|
|
531
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
532
|
+
prefix: Type.TUnion<[Type.TLiteral<"title: none | text: ">, Type.TLiteral<"task: search result | query: ">, Type.TLiteral<"task: question answering | query: ">, Type.TLiteral<"task: fact checking | query: ">, Type.TLiteral<"task: code retrieval | query: ">, Type.TLiteral<"task: classification | query: ">, Type.TLiteral<"task: clustering | query: ">, Type.TLiteral<"task: sentence similarity | query: ">]>;
|
|
533
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
534
|
+
model: Type.TLiteral<"gemini-embedding-2">;
|
|
535
|
+
revision: Type.TNull;
|
|
536
|
+
quantization: Type.TNull;
|
|
537
|
+
dimensions: Type.TInteger;
|
|
538
|
+
taskFormat: Type.TUnion<[Type.TLiteral<"retrieval-document">, Type.TLiteral<"search-query">, Type.TLiteral<"question-answering">, Type.TLiteral<"fact-checking">, Type.TLiteral<"code-retrieval">, Type.TLiteral<"classification">, Type.TLiteral<"clustering">, Type.TLiteral<"sentence-similarity">]>;
|
|
539
|
+
}>, Type.TObject<{
|
|
540
|
+
provider: Type.TLiteral<"cloudflare">;
|
|
541
|
+
model: Type.TLiteral<"@cf/baai/bge-base-en-v1.5">;
|
|
542
|
+
revision: Type.TNull;
|
|
543
|
+
quantization: Type.TNull;
|
|
544
|
+
runtime: Type.TLiteral<"cloudflare-workers-ai">;
|
|
545
|
+
dimensions: Type.TLiteral<768>;
|
|
546
|
+
pooling: Type.TUnion<[Type.TLiteral<"mean">, Type.TLiteral<"cls">]>;
|
|
547
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
548
|
+
prefix: Type.TLiteral<"title: none | text: ">;
|
|
549
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
202
550
|
}>]>;
|
|
203
551
|
attemptId: Type.TString;
|
|
204
552
|
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
@@ -210,7 +558,7 @@ export declare const embeddingResultSchema: Type.TObject<{
|
|
|
210
558
|
}>]>>;
|
|
211
559
|
attempts: Type.TArray<Type.TObject<{
|
|
212
560
|
id: Type.TString;
|
|
213
|
-
route: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">]>;
|
|
561
|
+
route: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">, Type.TLiteral<"gemini">, Type.TLiteral<"vertex">]>;
|
|
214
562
|
model: Type.TString;
|
|
215
563
|
routeIndex: Type.TInteger;
|
|
216
564
|
status: Type.TUnion<[Type.TLiteral<"success">, Type.TLiteral<"error">, Type.TLiteral<"cancelled">]>;
|
|
@@ -223,16 +571,150 @@ export declare const embeddingResultSchema: Type.TObject<{
|
|
|
223
571
|
}>>;
|
|
224
572
|
}>;
|
|
225
573
|
export declare const embeddingCompareEntrySchema: Type.TObject<{
|
|
226
|
-
route: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">]>;
|
|
574
|
+
route: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">, Type.TLiteral<"gemini">, Type.TLiteral<"vertex">]>;
|
|
227
575
|
model: Type.TString;
|
|
228
576
|
status: Type.TUnion<[Type.TLiteral<"success">, Type.TLiteral<"error">, Type.TLiteral<"cancelled">]>;
|
|
229
577
|
result: Type.TObject<{
|
|
230
|
-
schemaVersion: Type.TLiteral<
|
|
578
|
+
schemaVersion: Type.TLiteral<2>;
|
|
579
|
+
provider: Type.TUnion<[Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">, Type.TLiteral<"gemini">, Type.TLiteral<"vertex">]>, Type.TNull]>;
|
|
580
|
+
model: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
581
|
+
space: Type.TUnion<[Type.TUnion<[Type.TObject<{
|
|
582
|
+
provider: Type.TLiteral<"local">;
|
|
583
|
+
model: Type.TLiteral<"embeddinggemma-2">;
|
|
584
|
+
revision: Type.TString;
|
|
585
|
+
quantization: Type.TLiteral<"Q8_0">;
|
|
586
|
+
runtime: Type.TString;
|
|
587
|
+
dimensions: Type.TLiteral<768>;
|
|
588
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
589
|
+
prefix: Type.TLiteral<"title: none | text: ">;
|
|
590
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
591
|
+
}>, Type.TObject<{
|
|
592
|
+
provider: Type.TLiteral<"openai">;
|
|
593
|
+
model: Type.TLiteral<"text-embedding-3-small">;
|
|
594
|
+
revision: Type.TNull;
|
|
595
|
+
quantization: Type.TNull;
|
|
596
|
+
runtime: Type.TNull;
|
|
597
|
+
dimensions: Type.TLiteral<1536>;
|
|
598
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
599
|
+
prefix: Type.TLiteral<"title: none | text: ">;
|
|
600
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
601
|
+
}>, Type.TObject<{
|
|
602
|
+
provider: Type.TLiteral<"sarvam">;
|
|
603
|
+
model: Type.TLiteral<"embeddinggemma-2">;
|
|
604
|
+
revision: Type.TNull;
|
|
605
|
+
quantization: Type.TNull;
|
|
606
|
+
runtime: Type.TLiteral<"sarvam-v2">;
|
|
607
|
+
dimensions: Type.TLiteral<768>;
|
|
608
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
609
|
+
prefix: Type.TLiteral<"title: none | text: ">;
|
|
610
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
611
|
+
}>, Type.TObject<{
|
|
612
|
+
provider: Type.TLiteral<"gemini">;
|
|
613
|
+
runtime: Type.TLiteral<"gemini-api-v1beta">;
|
|
614
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
615
|
+
prefix: Type.TUnion<[Type.TLiteral<"title: none | text: ">, Type.TLiteral<"task: search result | query: ">, Type.TLiteral<"task: question answering | query: ">, Type.TLiteral<"task: fact checking | query: ">, Type.TLiteral<"task: code retrieval | query: ">, Type.TLiteral<"task: classification | query: ">, Type.TLiteral<"task: clustering | query: ">, Type.TLiteral<"task: sentence similarity | query: ">]>;
|
|
616
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
617
|
+
model: Type.TLiteral<"gemini-embedding-2">;
|
|
618
|
+
revision: Type.TNull;
|
|
619
|
+
quantization: Type.TNull;
|
|
620
|
+
dimensions: Type.TInteger;
|
|
621
|
+
taskFormat: Type.TUnion<[Type.TLiteral<"retrieval-document">, Type.TLiteral<"search-query">, Type.TLiteral<"question-answering">, Type.TLiteral<"fact-checking">, Type.TLiteral<"code-retrieval">, Type.TLiteral<"classification">, Type.TLiteral<"clustering">, Type.TLiteral<"sentence-similarity">]>;
|
|
622
|
+
}>, Type.TObject<{
|
|
623
|
+
provider: Type.TLiteral<"vertex">;
|
|
624
|
+
runtime: Type.TLiteral<"vertex-ai-v1">;
|
|
625
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
626
|
+
prefix: Type.TUnion<[Type.TLiteral<"title: none | text: ">, Type.TLiteral<"task: search result | query: ">, Type.TLiteral<"task: question answering | query: ">, Type.TLiteral<"task: fact checking | query: ">, Type.TLiteral<"task: code retrieval | query: ">, Type.TLiteral<"task: classification | query: ">, Type.TLiteral<"task: clustering | query: ">, Type.TLiteral<"task: sentence similarity | query: ">]>;
|
|
627
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
628
|
+
model: Type.TLiteral<"gemini-embedding-2">;
|
|
629
|
+
revision: Type.TNull;
|
|
630
|
+
quantization: Type.TNull;
|
|
631
|
+
dimensions: Type.TInteger;
|
|
632
|
+
taskFormat: Type.TUnion<[Type.TLiteral<"retrieval-document">, Type.TLiteral<"search-query">, Type.TLiteral<"question-answering">, Type.TLiteral<"fact-checking">, Type.TLiteral<"code-retrieval">, Type.TLiteral<"classification">, Type.TLiteral<"clustering">, Type.TLiteral<"sentence-similarity">]>;
|
|
633
|
+
}>, Type.TObject<{
|
|
634
|
+
provider: Type.TLiteral<"cloudflare">;
|
|
635
|
+
model: Type.TLiteral<"@cf/baai/bge-base-en-v1.5">;
|
|
636
|
+
revision: Type.TNull;
|
|
637
|
+
quantization: Type.TNull;
|
|
638
|
+
runtime: Type.TLiteral<"cloudflare-workers-ai">;
|
|
639
|
+
dimensions: Type.TLiteral<768>;
|
|
640
|
+
pooling: Type.TUnion<[Type.TLiteral<"mean">, Type.TLiteral<"cls">]>;
|
|
641
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
642
|
+
prefix: Type.TLiteral<"title: none | text: ">;
|
|
643
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
644
|
+
}>]>, Type.TNull]>;
|
|
645
|
+
generations: Type.TArray<Type.TObject<{
|
|
646
|
+
provider: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">, Type.TLiteral<"gemini">, Type.TLiteral<"vertex">]>;
|
|
647
|
+
model: Type.TString;
|
|
648
|
+
space: Type.TUnion<[Type.TObject<{
|
|
649
|
+
provider: Type.TLiteral<"local">;
|
|
650
|
+
model: Type.TLiteral<"embeddinggemma-2">;
|
|
651
|
+
revision: Type.TString;
|
|
652
|
+
quantization: Type.TLiteral<"Q8_0">;
|
|
653
|
+
runtime: Type.TString;
|
|
654
|
+
dimensions: Type.TLiteral<768>;
|
|
655
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
656
|
+
prefix: Type.TLiteral<"title: none | text: ">;
|
|
657
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
658
|
+
}>, Type.TObject<{
|
|
659
|
+
provider: Type.TLiteral<"openai">;
|
|
660
|
+
model: Type.TLiteral<"text-embedding-3-small">;
|
|
661
|
+
revision: Type.TNull;
|
|
662
|
+
quantization: Type.TNull;
|
|
663
|
+
runtime: Type.TNull;
|
|
664
|
+
dimensions: Type.TLiteral<1536>;
|
|
665
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
666
|
+
prefix: Type.TLiteral<"title: none | text: ">;
|
|
667
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
668
|
+
}>, Type.TObject<{
|
|
669
|
+
provider: Type.TLiteral<"sarvam">;
|
|
670
|
+
model: Type.TLiteral<"embeddinggemma-2">;
|
|
671
|
+
revision: Type.TNull;
|
|
672
|
+
quantization: Type.TNull;
|
|
673
|
+
runtime: Type.TLiteral<"sarvam-v2">;
|
|
674
|
+
dimensions: Type.TLiteral<768>;
|
|
675
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
676
|
+
prefix: Type.TLiteral<"title: none | text: ">;
|
|
677
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
678
|
+
}>, Type.TObject<{
|
|
679
|
+
provider: Type.TLiteral<"gemini">;
|
|
680
|
+
runtime: Type.TLiteral<"gemini-api-v1beta">;
|
|
681
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
682
|
+
prefix: Type.TUnion<[Type.TLiteral<"title: none | text: ">, Type.TLiteral<"task: search result | query: ">, Type.TLiteral<"task: question answering | query: ">, Type.TLiteral<"task: fact checking | query: ">, Type.TLiteral<"task: code retrieval | query: ">, Type.TLiteral<"task: classification | query: ">, Type.TLiteral<"task: clustering | query: ">, Type.TLiteral<"task: sentence similarity | query: ">]>;
|
|
683
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
684
|
+
model: Type.TLiteral<"gemini-embedding-2">;
|
|
685
|
+
revision: Type.TNull;
|
|
686
|
+
quantization: Type.TNull;
|
|
687
|
+
dimensions: Type.TInteger;
|
|
688
|
+
taskFormat: Type.TUnion<[Type.TLiteral<"retrieval-document">, Type.TLiteral<"search-query">, Type.TLiteral<"question-answering">, Type.TLiteral<"fact-checking">, Type.TLiteral<"code-retrieval">, Type.TLiteral<"classification">, Type.TLiteral<"clustering">, Type.TLiteral<"sentence-similarity">]>;
|
|
689
|
+
}>, Type.TObject<{
|
|
690
|
+
provider: Type.TLiteral<"vertex">;
|
|
691
|
+
runtime: Type.TLiteral<"vertex-ai-v1">;
|
|
692
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
693
|
+
prefix: Type.TUnion<[Type.TLiteral<"title: none | text: ">, Type.TLiteral<"task: search result | query: ">, Type.TLiteral<"task: question answering | query: ">, Type.TLiteral<"task: fact checking | query: ">, Type.TLiteral<"task: code retrieval | query: ">, Type.TLiteral<"task: classification | query: ">, Type.TLiteral<"task: clustering | query: ">, Type.TLiteral<"task: sentence similarity | query: ">]>;
|
|
694
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
695
|
+
model: Type.TLiteral<"gemini-embedding-2">;
|
|
696
|
+
revision: Type.TNull;
|
|
697
|
+
quantization: Type.TNull;
|
|
698
|
+
dimensions: Type.TInteger;
|
|
699
|
+
taskFormat: Type.TUnion<[Type.TLiteral<"retrieval-document">, Type.TLiteral<"search-query">, Type.TLiteral<"question-answering">, Type.TLiteral<"fact-checking">, Type.TLiteral<"code-retrieval">, Type.TLiteral<"classification">, Type.TLiteral<"clustering">, Type.TLiteral<"sentence-similarity">]>;
|
|
700
|
+
}>, Type.TObject<{
|
|
701
|
+
provider: Type.TLiteral<"cloudflare">;
|
|
702
|
+
model: Type.TLiteral<"@cf/baai/bge-base-en-v1.5">;
|
|
703
|
+
revision: Type.TNull;
|
|
704
|
+
quantization: Type.TNull;
|
|
705
|
+
runtime: Type.TLiteral<"cloudflare-workers-ai">;
|
|
706
|
+
dimensions: Type.TLiteral<768>;
|
|
707
|
+
pooling: Type.TUnion<[Type.TLiteral<"mean">, Type.TLiteral<"cls">]>;
|
|
708
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
709
|
+
prefix: Type.TLiteral<"title: none | text: ">;
|
|
710
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
711
|
+
}>]>;
|
|
712
|
+
}>>;
|
|
231
713
|
outcomes: Type.TArray<Type.TUnion<[Type.TObject<{
|
|
232
714
|
status: Type.TLiteral<"success">;
|
|
233
715
|
index: Type.TInteger;
|
|
234
716
|
vector: Type.TArray<Type.TNumber>;
|
|
235
|
-
route: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">]>;
|
|
717
|
+
route: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">, Type.TLiteral<"gemini">, Type.TLiteral<"vertex">]>;
|
|
236
718
|
model: Type.TString;
|
|
237
719
|
space: Type.TUnion<[Type.TObject<{
|
|
238
720
|
provider: Type.TLiteral<"local">;
|
|
@@ -264,6 +746,39 @@ export declare const embeddingCompareEntrySchema: Type.TObject<{
|
|
|
264
746
|
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
265
747
|
prefix: Type.TLiteral<"title: none | text: ">;
|
|
266
748
|
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
749
|
+
}>, Type.TObject<{
|
|
750
|
+
provider: Type.TLiteral<"gemini">;
|
|
751
|
+
runtime: Type.TLiteral<"gemini-api-v1beta">;
|
|
752
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
753
|
+
prefix: Type.TUnion<[Type.TLiteral<"title: none | text: ">, Type.TLiteral<"task: search result | query: ">, Type.TLiteral<"task: question answering | query: ">, Type.TLiteral<"task: fact checking | query: ">, Type.TLiteral<"task: code retrieval | query: ">, Type.TLiteral<"task: classification | query: ">, Type.TLiteral<"task: clustering | query: ">, Type.TLiteral<"task: sentence similarity | query: ">]>;
|
|
754
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
755
|
+
model: Type.TLiteral<"gemini-embedding-2">;
|
|
756
|
+
revision: Type.TNull;
|
|
757
|
+
quantization: Type.TNull;
|
|
758
|
+
dimensions: Type.TInteger;
|
|
759
|
+
taskFormat: Type.TUnion<[Type.TLiteral<"retrieval-document">, Type.TLiteral<"search-query">, Type.TLiteral<"question-answering">, Type.TLiteral<"fact-checking">, Type.TLiteral<"code-retrieval">, Type.TLiteral<"classification">, Type.TLiteral<"clustering">, Type.TLiteral<"sentence-similarity">]>;
|
|
760
|
+
}>, Type.TObject<{
|
|
761
|
+
provider: Type.TLiteral<"vertex">;
|
|
762
|
+
runtime: Type.TLiteral<"vertex-ai-v1">;
|
|
763
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
764
|
+
prefix: Type.TUnion<[Type.TLiteral<"title: none | text: ">, Type.TLiteral<"task: search result | query: ">, Type.TLiteral<"task: question answering | query: ">, Type.TLiteral<"task: fact checking | query: ">, Type.TLiteral<"task: code retrieval | query: ">, Type.TLiteral<"task: classification | query: ">, Type.TLiteral<"task: clustering | query: ">, Type.TLiteral<"task: sentence similarity | query: ">]>;
|
|
765
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
766
|
+
model: Type.TLiteral<"gemini-embedding-2">;
|
|
767
|
+
revision: Type.TNull;
|
|
768
|
+
quantization: Type.TNull;
|
|
769
|
+
dimensions: Type.TInteger;
|
|
770
|
+
taskFormat: Type.TUnion<[Type.TLiteral<"retrieval-document">, Type.TLiteral<"search-query">, Type.TLiteral<"question-answering">, Type.TLiteral<"fact-checking">, Type.TLiteral<"code-retrieval">, Type.TLiteral<"classification">, Type.TLiteral<"clustering">, Type.TLiteral<"sentence-similarity">]>;
|
|
771
|
+
}>, Type.TObject<{
|
|
772
|
+
provider: Type.TLiteral<"cloudflare">;
|
|
773
|
+
model: Type.TLiteral<"@cf/baai/bge-base-en-v1.5">;
|
|
774
|
+
revision: Type.TNull;
|
|
775
|
+
quantization: Type.TNull;
|
|
776
|
+
runtime: Type.TLiteral<"cloudflare-workers-ai">;
|
|
777
|
+
dimensions: Type.TLiteral<768>;
|
|
778
|
+
pooling: Type.TUnion<[Type.TLiteral<"mean">, Type.TLiteral<"cls">]>;
|
|
779
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
780
|
+
prefix: Type.TLiteral<"title: none | text: ">;
|
|
781
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
267
782
|
}>]>;
|
|
268
783
|
attemptId: Type.TString;
|
|
269
784
|
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
@@ -275,7 +790,7 @@ export declare const embeddingCompareEntrySchema: Type.TObject<{
|
|
|
275
790
|
}>]>>;
|
|
276
791
|
attempts: Type.TArray<Type.TObject<{
|
|
277
792
|
id: Type.TString;
|
|
278
|
-
route: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">]>;
|
|
793
|
+
route: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">, Type.TLiteral<"gemini">, Type.TLiteral<"vertex">]>;
|
|
279
794
|
model: Type.TString;
|
|
280
795
|
routeIndex: Type.TInteger;
|
|
281
796
|
status: Type.TUnion<[Type.TLiteral<"success">, Type.TLiteral<"error">, Type.TLiteral<"cancelled">]>;
|
|
@@ -289,18 +804,152 @@ export declare const embeddingCompareEntrySchema: Type.TObject<{
|
|
|
289
804
|
}>;
|
|
290
805
|
}>;
|
|
291
806
|
export declare const embeddingCompareResultSchema: Type.TObject<{
|
|
292
|
-
schemaVersion: Type.TLiteral<
|
|
807
|
+
schemaVersion: Type.TLiteral<2>;
|
|
293
808
|
entries: Type.TArray<Type.TObject<{
|
|
294
|
-
route: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">]>;
|
|
809
|
+
route: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">, Type.TLiteral<"gemini">, Type.TLiteral<"vertex">]>;
|
|
295
810
|
model: Type.TString;
|
|
296
811
|
status: Type.TUnion<[Type.TLiteral<"success">, Type.TLiteral<"error">, Type.TLiteral<"cancelled">]>;
|
|
297
812
|
result: Type.TObject<{
|
|
298
|
-
schemaVersion: Type.TLiteral<
|
|
813
|
+
schemaVersion: Type.TLiteral<2>;
|
|
814
|
+
provider: Type.TUnion<[Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">, Type.TLiteral<"gemini">, Type.TLiteral<"vertex">]>, Type.TNull]>;
|
|
815
|
+
model: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
816
|
+
space: Type.TUnion<[Type.TUnion<[Type.TObject<{
|
|
817
|
+
provider: Type.TLiteral<"local">;
|
|
818
|
+
model: Type.TLiteral<"embeddinggemma-2">;
|
|
819
|
+
revision: Type.TString;
|
|
820
|
+
quantization: Type.TLiteral<"Q8_0">;
|
|
821
|
+
runtime: Type.TString;
|
|
822
|
+
dimensions: Type.TLiteral<768>;
|
|
823
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
824
|
+
prefix: Type.TLiteral<"title: none | text: ">;
|
|
825
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
826
|
+
}>, Type.TObject<{
|
|
827
|
+
provider: Type.TLiteral<"openai">;
|
|
828
|
+
model: Type.TLiteral<"text-embedding-3-small">;
|
|
829
|
+
revision: Type.TNull;
|
|
830
|
+
quantization: Type.TNull;
|
|
831
|
+
runtime: Type.TNull;
|
|
832
|
+
dimensions: Type.TLiteral<1536>;
|
|
833
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
834
|
+
prefix: Type.TLiteral<"title: none | text: ">;
|
|
835
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
836
|
+
}>, Type.TObject<{
|
|
837
|
+
provider: Type.TLiteral<"sarvam">;
|
|
838
|
+
model: Type.TLiteral<"embeddinggemma-2">;
|
|
839
|
+
revision: Type.TNull;
|
|
840
|
+
quantization: Type.TNull;
|
|
841
|
+
runtime: Type.TLiteral<"sarvam-v2">;
|
|
842
|
+
dimensions: Type.TLiteral<768>;
|
|
843
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
844
|
+
prefix: Type.TLiteral<"title: none | text: ">;
|
|
845
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
846
|
+
}>, Type.TObject<{
|
|
847
|
+
provider: Type.TLiteral<"gemini">;
|
|
848
|
+
runtime: Type.TLiteral<"gemini-api-v1beta">;
|
|
849
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
850
|
+
prefix: Type.TUnion<[Type.TLiteral<"title: none | text: ">, Type.TLiteral<"task: search result | query: ">, Type.TLiteral<"task: question answering | query: ">, Type.TLiteral<"task: fact checking | query: ">, Type.TLiteral<"task: code retrieval | query: ">, Type.TLiteral<"task: classification | query: ">, Type.TLiteral<"task: clustering | query: ">, Type.TLiteral<"task: sentence similarity | query: ">]>;
|
|
851
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
852
|
+
model: Type.TLiteral<"gemini-embedding-2">;
|
|
853
|
+
revision: Type.TNull;
|
|
854
|
+
quantization: Type.TNull;
|
|
855
|
+
dimensions: Type.TInteger;
|
|
856
|
+
taskFormat: Type.TUnion<[Type.TLiteral<"retrieval-document">, Type.TLiteral<"search-query">, Type.TLiteral<"question-answering">, Type.TLiteral<"fact-checking">, Type.TLiteral<"code-retrieval">, Type.TLiteral<"classification">, Type.TLiteral<"clustering">, Type.TLiteral<"sentence-similarity">]>;
|
|
857
|
+
}>, Type.TObject<{
|
|
858
|
+
provider: Type.TLiteral<"vertex">;
|
|
859
|
+
runtime: Type.TLiteral<"vertex-ai-v1">;
|
|
860
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
861
|
+
prefix: Type.TUnion<[Type.TLiteral<"title: none | text: ">, Type.TLiteral<"task: search result | query: ">, Type.TLiteral<"task: question answering | query: ">, Type.TLiteral<"task: fact checking | query: ">, Type.TLiteral<"task: code retrieval | query: ">, Type.TLiteral<"task: classification | query: ">, Type.TLiteral<"task: clustering | query: ">, Type.TLiteral<"task: sentence similarity | query: ">]>;
|
|
862
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
863
|
+
model: Type.TLiteral<"gemini-embedding-2">;
|
|
864
|
+
revision: Type.TNull;
|
|
865
|
+
quantization: Type.TNull;
|
|
866
|
+
dimensions: Type.TInteger;
|
|
867
|
+
taskFormat: Type.TUnion<[Type.TLiteral<"retrieval-document">, Type.TLiteral<"search-query">, Type.TLiteral<"question-answering">, Type.TLiteral<"fact-checking">, Type.TLiteral<"code-retrieval">, Type.TLiteral<"classification">, Type.TLiteral<"clustering">, Type.TLiteral<"sentence-similarity">]>;
|
|
868
|
+
}>, Type.TObject<{
|
|
869
|
+
provider: Type.TLiteral<"cloudflare">;
|
|
870
|
+
model: Type.TLiteral<"@cf/baai/bge-base-en-v1.5">;
|
|
871
|
+
revision: Type.TNull;
|
|
872
|
+
quantization: Type.TNull;
|
|
873
|
+
runtime: Type.TLiteral<"cloudflare-workers-ai">;
|
|
874
|
+
dimensions: Type.TLiteral<768>;
|
|
875
|
+
pooling: Type.TUnion<[Type.TLiteral<"mean">, Type.TLiteral<"cls">]>;
|
|
876
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
877
|
+
prefix: Type.TLiteral<"title: none | text: ">;
|
|
878
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
879
|
+
}>]>, Type.TNull]>;
|
|
880
|
+
generations: Type.TArray<Type.TObject<{
|
|
881
|
+
provider: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">, Type.TLiteral<"gemini">, Type.TLiteral<"vertex">]>;
|
|
882
|
+
model: Type.TString;
|
|
883
|
+
space: Type.TUnion<[Type.TObject<{
|
|
884
|
+
provider: Type.TLiteral<"local">;
|
|
885
|
+
model: Type.TLiteral<"embeddinggemma-2">;
|
|
886
|
+
revision: Type.TString;
|
|
887
|
+
quantization: Type.TLiteral<"Q8_0">;
|
|
888
|
+
runtime: Type.TString;
|
|
889
|
+
dimensions: Type.TLiteral<768>;
|
|
890
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
891
|
+
prefix: Type.TLiteral<"title: none | text: ">;
|
|
892
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
893
|
+
}>, Type.TObject<{
|
|
894
|
+
provider: Type.TLiteral<"openai">;
|
|
895
|
+
model: Type.TLiteral<"text-embedding-3-small">;
|
|
896
|
+
revision: Type.TNull;
|
|
897
|
+
quantization: Type.TNull;
|
|
898
|
+
runtime: Type.TNull;
|
|
899
|
+
dimensions: Type.TLiteral<1536>;
|
|
900
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
901
|
+
prefix: Type.TLiteral<"title: none | text: ">;
|
|
902
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
903
|
+
}>, Type.TObject<{
|
|
904
|
+
provider: Type.TLiteral<"sarvam">;
|
|
905
|
+
model: Type.TLiteral<"embeddinggemma-2">;
|
|
906
|
+
revision: Type.TNull;
|
|
907
|
+
quantization: Type.TNull;
|
|
908
|
+
runtime: Type.TLiteral<"sarvam-v2">;
|
|
909
|
+
dimensions: Type.TLiteral<768>;
|
|
910
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
911
|
+
prefix: Type.TLiteral<"title: none | text: ">;
|
|
912
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
913
|
+
}>, Type.TObject<{
|
|
914
|
+
provider: Type.TLiteral<"gemini">;
|
|
915
|
+
runtime: Type.TLiteral<"gemini-api-v1beta">;
|
|
916
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
917
|
+
prefix: Type.TUnion<[Type.TLiteral<"title: none | text: ">, Type.TLiteral<"task: search result | query: ">, Type.TLiteral<"task: question answering | query: ">, Type.TLiteral<"task: fact checking | query: ">, Type.TLiteral<"task: code retrieval | query: ">, Type.TLiteral<"task: classification | query: ">, Type.TLiteral<"task: clustering | query: ">, Type.TLiteral<"task: sentence similarity | query: ">]>;
|
|
918
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
919
|
+
model: Type.TLiteral<"gemini-embedding-2">;
|
|
920
|
+
revision: Type.TNull;
|
|
921
|
+
quantization: Type.TNull;
|
|
922
|
+
dimensions: Type.TInteger;
|
|
923
|
+
taskFormat: Type.TUnion<[Type.TLiteral<"retrieval-document">, Type.TLiteral<"search-query">, Type.TLiteral<"question-answering">, Type.TLiteral<"fact-checking">, Type.TLiteral<"code-retrieval">, Type.TLiteral<"classification">, Type.TLiteral<"clustering">, Type.TLiteral<"sentence-similarity">]>;
|
|
924
|
+
}>, Type.TObject<{
|
|
925
|
+
provider: Type.TLiteral<"vertex">;
|
|
926
|
+
runtime: Type.TLiteral<"vertex-ai-v1">;
|
|
927
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
928
|
+
prefix: Type.TUnion<[Type.TLiteral<"title: none | text: ">, Type.TLiteral<"task: search result | query: ">, Type.TLiteral<"task: question answering | query: ">, Type.TLiteral<"task: fact checking | query: ">, Type.TLiteral<"task: code retrieval | query: ">, Type.TLiteral<"task: classification | query: ">, Type.TLiteral<"task: clustering | query: ">, Type.TLiteral<"task: sentence similarity | query: ">]>;
|
|
929
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
930
|
+
model: Type.TLiteral<"gemini-embedding-2">;
|
|
931
|
+
revision: Type.TNull;
|
|
932
|
+
quantization: Type.TNull;
|
|
933
|
+
dimensions: Type.TInteger;
|
|
934
|
+
taskFormat: Type.TUnion<[Type.TLiteral<"retrieval-document">, Type.TLiteral<"search-query">, Type.TLiteral<"question-answering">, Type.TLiteral<"fact-checking">, Type.TLiteral<"code-retrieval">, Type.TLiteral<"classification">, Type.TLiteral<"clustering">, Type.TLiteral<"sentence-similarity">]>;
|
|
935
|
+
}>, Type.TObject<{
|
|
936
|
+
provider: Type.TLiteral<"cloudflare">;
|
|
937
|
+
model: Type.TLiteral<"@cf/baai/bge-base-en-v1.5">;
|
|
938
|
+
revision: Type.TNull;
|
|
939
|
+
quantization: Type.TNull;
|
|
940
|
+
runtime: Type.TLiteral<"cloudflare-workers-ai">;
|
|
941
|
+
dimensions: Type.TLiteral<768>;
|
|
942
|
+
pooling: Type.TUnion<[Type.TLiteral<"mean">, Type.TLiteral<"cls">]>;
|
|
943
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
944
|
+
prefix: Type.TLiteral<"title: none | text: ">;
|
|
945
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
946
|
+
}>]>;
|
|
947
|
+
}>>;
|
|
299
948
|
outcomes: Type.TArray<Type.TUnion<[Type.TObject<{
|
|
300
949
|
status: Type.TLiteral<"success">;
|
|
301
950
|
index: Type.TInteger;
|
|
302
951
|
vector: Type.TArray<Type.TNumber>;
|
|
303
|
-
route: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">]>;
|
|
952
|
+
route: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">, Type.TLiteral<"gemini">, Type.TLiteral<"vertex">]>;
|
|
304
953
|
model: Type.TString;
|
|
305
954
|
space: Type.TUnion<[Type.TObject<{
|
|
306
955
|
provider: Type.TLiteral<"local">;
|
|
@@ -332,6 +981,39 @@ export declare const embeddingCompareResultSchema: Type.TObject<{
|
|
|
332
981
|
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
333
982
|
prefix: Type.TLiteral<"title: none | text: ">;
|
|
334
983
|
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
984
|
+
}>, Type.TObject<{
|
|
985
|
+
provider: Type.TLiteral<"gemini">;
|
|
986
|
+
runtime: Type.TLiteral<"gemini-api-v1beta">;
|
|
987
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
988
|
+
prefix: Type.TUnion<[Type.TLiteral<"title: none | text: ">, Type.TLiteral<"task: search result | query: ">, Type.TLiteral<"task: question answering | query: ">, Type.TLiteral<"task: fact checking | query: ">, Type.TLiteral<"task: code retrieval | query: ">, Type.TLiteral<"task: classification | query: ">, Type.TLiteral<"task: clustering | query: ">, Type.TLiteral<"task: sentence similarity | query: ">]>;
|
|
989
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
990
|
+
model: Type.TLiteral<"gemini-embedding-2">;
|
|
991
|
+
revision: Type.TNull;
|
|
992
|
+
quantization: Type.TNull;
|
|
993
|
+
dimensions: Type.TInteger;
|
|
994
|
+
taskFormat: Type.TUnion<[Type.TLiteral<"retrieval-document">, Type.TLiteral<"search-query">, Type.TLiteral<"question-answering">, Type.TLiteral<"fact-checking">, Type.TLiteral<"code-retrieval">, Type.TLiteral<"classification">, Type.TLiteral<"clustering">, Type.TLiteral<"sentence-similarity">]>;
|
|
995
|
+
}>, Type.TObject<{
|
|
996
|
+
provider: Type.TLiteral<"vertex">;
|
|
997
|
+
runtime: Type.TLiteral<"vertex-ai-v1">;
|
|
998
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
999
|
+
prefix: Type.TUnion<[Type.TLiteral<"title: none | text: ">, Type.TLiteral<"task: search result | query: ">, Type.TLiteral<"task: question answering | query: ">, Type.TLiteral<"task: fact checking | query: ">, Type.TLiteral<"task: code retrieval | query: ">, Type.TLiteral<"task: classification | query: ">, Type.TLiteral<"task: clustering | query: ">, Type.TLiteral<"task: sentence similarity | query: ">]>;
|
|
1000
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
1001
|
+
model: Type.TLiteral<"gemini-embedding-2">;
|
|
1002
|
+
revision: Type.TNull;
|
|
1003
|
+
quantization: Type.TNull;
|
|
1004
|
+
dimensions: Type.TInteger;
|
|
1005
|
+
taskFormat: Type.TUnion<[Type.TLiteral<"retrieval-document">, Type.TLiteral<"search-query">, Type.TLiteral<"question-answering">, Type.TLiteral<"fact-checking">, Type.TLiteral<"code-retrieval">, Type.TLiteral<"classification">, Type.TLiteral<"clustering">, Type.TLiteral<"sentence-similarity">]>;
|
|
1006
|
+
}>, Type.TObject<{
|
|
1007
|
+
provider: Type.TLiteral<"cloudflare">;
|
|
1008
|
+
model: Type.TLiteral<"@cf/baai/bge-base-en-v1.5">;
|
|
1009
|
+
revision: Type.TNull;
|
|
1010
|
+
quantization: Type.TNull;
|
|
1011
|
+
runtime: Type.TLiteral<"cloudflare-workers-ai">;
|
|
1012
|
+
dimensions: Type.TLiteral<768>;
|
|
1013
|
+
pooling: Type.TUnion<[Type.TLiteral<"mean">, Type.TLiteral<"cls">]>;
|
|
1014
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
1015
|
+
prefix: Type.TLiteral<"title: none | text: ">;
|
|
1016
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
335
1017
|
}>]>;
|
|
336
1018
|
attemptId: Type.TString;
|
|
337
1019
|
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
@@ -343,7 +1025,7 @@ export declare const embeddingCompareResultSchema: Type.TObject<{
|
|
|
343
1025
|
}>]>>;
|
|
344
1026
|
attempts: Type.TArray<Type.TObject<{
|
|
345
1027
|
id: Type.TString;
|
|
346
|
-
route: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">]>;
|
|
1028
|
+
route: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">, Type.TLiteral<"gemini">, Type.TLiteral<"vertex">]>;
|
|
347
1029
|
model: Type.TString;
|
|
348
1030
|
routeIndex: Type.TInteger;
|
|
349
1031
|
status: Type.TUnion<[Type.TLiteral<"success">, Type.TLiteral<"error">, Type.TLiteral<"cancelled">]>;
|
|
@@ -357,65 +1039,6 @@ export declare const embeddingCompareResultSchema: Type.TObject<{
|
|
|
357
1039
|
}>;
|
|
358
1040
|
}>>;
|
|
359
1041
|
}>;
|
|
360
|
-
export declare const embeddingDiagnosticSchema: Type.TObject<{
|
|
361
|
-
code: Type.TString;
|
|
362
|
-
severity: Type.TUnion<[Type.TLiteral<"error">, Type.TLiteral<"warning">, Type.TLiteral<"info">]>;
|
|
363
|
-
}>;
|
|
364
|
-
export declare const embeddingDescribeSchema: Type.TObject<{
|
|
365
|
-
schemaVersion: Type.TLiteral<1>;
|
|
366
|
-
ready: Type.TBoolean;
|
|
367
|
-
selected: Type.TObject<{
|
|
368
|
-
provider: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">]>;
|
|
369
|
-
model: Type.TString;
|
|
370
|
-
}>;
|
|
371
|
-
space: Type.TUnion<[Type.TUnion<[Type.TObject<{
|
|
372
|
-
provider: Type.TLiteral<"local">;
|
|
373
|
-
model: Type.TLiteral<"embeddinggemma-2">;
|
|
374
|
-
revision: Type.TString;
|
|
375
|
-
quantization: Type.TLiteral<"Q8_0">;
|
|
376
|
-
runtime: Type.TString;
|
|
377
|
-
dimensions: Type.TLiteral<768>;
|
|
378
|
-
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
379
|
-
prefix: Type.TLiteral<"title: none | text: ">;
|
|
380
|
-
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
381
|
-
}>, Type.TObject<{
|
|
382
|
-
provider: Type.TLiteral<"openai">;
|
|
383
|
-
model: Type.TLiteral<"text-embedding-3-small">;
|
|
384
|
-
revision: Type.TNull;
|
|
385
|
-
quantization: Type.TNull;
|
|
386
|
-
runtime: Type.TNull;
|
|
387
|
-
dimensions: Type.TLiteral<1536>;
|
|
388
|
-
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
389
|
-
prefix: Type.TLiteral<"title: none | text: ">;
|
|
390
|
-
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
391
|
-
}>, Type.TObject<{
|
|
392
|
-
provider: Type.TLiteral<"sarvam">;
|
|
393
|
-
model: Type.TLiteral<"embeddinggemma-2">;
|
|
394
|
-
revision: Type.TNull;
|
|
395
|
-
quantization: Type.TNull;
|
|
396
|
-
runtime: Type.TLiteral<"sarvam-v2">;
|
|
397
|
-
dimensions: Type.TLiteral<768>;
|
|
398
|
-
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
399
|
-
prefix: Type.TLiteral<"title: none | text: ">;
|
|
400
|
-
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
401
|
-
}>]>, Type.TNull]>;
|
|
402
|
-
default: Type.TObject<{
|
|
403
|
-
provider: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">]>;
|
|
404
|
-
model: Type.TString;
|
|
405
|
-
}>;
|
|
406
|
-
fallback: Type.TArray<Type.TObject<{
|
|
407
|
-
provider: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">]>;
|
|
408
|
-
model: Type.TString;
|
|
409
|
-
}>>;
|
|
410
|
-
compare: Type.TArray<Type.TObject<{
|
|
411
|
-
provider: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">]>;
|
|
412
|
-
model: Type.TString;
|
|
413
|
-
}>>;
|
|
414
|
-
diagnostics: Type.TArray<Type.TObject<{
|
|
415
|
-
code: Type.TString;
|
|
416
|
-
severity: Type.TUnion<[Type.TLiteral<"error">, Type.TLiteral<"warning">, Type.TLiteral<"info">]>;
|
|
417
|
-
}>>;
|
|
418
|
-
}>;
|
|
419
1042
|
export type EmbeddingSettings = Static<typeof embeddingSettingsSchema>;
|
|
420
1043
|
export type EmbeddingRoute = Static<typeof embeddingRouteSchema>;
|
|
421
1044
|
export type EmbeddingSpace = Static<typeof embeddingSpaceSchema>;
|
|
@@ -424,8 +1047,7 @@ export type EmbeddingContext = Static<typeof embeddingContextSchema>;
|
|
|
424
1047
|
export type EmbeddingUsage = Static<typeof embeddingUsageSchema>;
|
|
425
1048
|
export type EmbeddingAttempt = Static<typeof embeddingAttemptSchema>;
|
|
426
1049
|
export type EmbeddingOutcome = Static<typeof embeddingOutcomeSchema>;
|
|
1050
|
+
export type EmbeddingGeneration = Static<typeof embeddingGenerationSchema>;
|
|
427
1051
|
export type EmbeddingResult = Static<typeof embeddingResultSchema>;
|
|
428
1052
|
export type EmbeddingCompareEntry = Static<typeof embeddingCompareEntrySchema>;
|
|
429
1053
|
export type EmbeddingCompareResult = Static<typeof embeddingCompareResultSchema>;
|
|
430
|
-
export type EmbeddingDiagnostic = Static<typeof embeddingDiagnosticSchema>;
|
|
431
|
-
export type EmbeddingDescribe = Static<typeof embeddingDescribeSchema>;
|