@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.
@@ -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 EMBEDDINGS_DESCRIBE_TOOL_DESCRIPTION = "Report the selected configured embedding route, generating space and provider-free readiness diagnostics without inference or credentials. Information is not a reservation or a caller storage policy.";
8
- export declare const embedParameters: Type.TObject<{
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: Type.TObject<{
12
- inputs: Type.TArray<Type.TString>;
8
+ export declare const embedCompareParameters: import("typebox").TObject<{
9
+ inputs: import("typebox").TArray<import("typebox").TString>;
13
10
  }>;
14
- export declare const embeddingsDescribeParameters: Type.TObject<{}>;
15
- export declare const embedOutput: Type.TObject<{
16
- schemaVersion: Type.TLiteral<1>;
17
- outcomes: Type.TArray<Type.TUnion<[Type.TObject<{
18
- status: Type.TLiteral<"success">;
19
- index: Type.TInteger;
20
- vector: Type.TArray<Type.TNumber>;
21
- route: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">]>;
22
- model: Type.TString;
23
- space: Type.TUnion<[Type.TObject<{
24
- provider: Type.TLiteral<"local">;
25
- model: Type.TLiteral<"embeddinggemma-2">;
26
- revision: Type.TString;
27
- quantization: Type.TLiteral<"Q8_0">;
28
- runtime: Type.TString;
29
- dimensions: Type.TLiteral<768>;
30
- format: Type.TLiteral<"host-display-attributes-v1">;
31
- prefix: Type.TLiteral<"title: none | text: ">;
32
- normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
33
- }>, Type.TObject<{
34
- provider: Type.TLiteral<"openai">;
35
- model: Type.TLiteral<"text-embedding-3-small">;
36
- revision: Type.TNull;
37
- quantization: Type.TNull;
38
- runtime: Type.TNull;
39
- dimensions: Type.TLiteral<1536>;
40
- format: Type.TLiteral<"host-display-attributes-v1">;
41
- prefix: Type.TLiteral<"title: none | text: ">;
42
- normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
43
- }>, Type.TObject<{
44
- provider: Type.TLiteral<"sarvam">;
45
- model: Type.TLiteral<"embeddinggemma-2">;
46
- revision: Type.TNull;
47
- quantization: Type.TNull;
48
- runtime: Type.TLiteral<"sarvam-v2">;
49
- dimensions: Type.TLiteral<768>;
50
- format: Type.TLiteral<"host-display-attributes-v1">;
51
- prefix: Type.TLiteral<"title: none | text: ">;
52
- normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
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
- attemptId: Type.TString;
55
- normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
56
- }>, Type.TObject<{
57
- status: Type.TLiteral<"error">;
58
- index: Type.TInteger;
59
- 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">]>;
60
- attemptId: Type.TUnion<[Type.TString, Type.TNull]>;
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: Type.TArray<Type.TObject<{
63
- id: Type.TString;
64
- route: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">]>;
65
- model: Type.TString;
66
- routeIndex: Type.TInteger;
67
- status: Type.TUnion<[Type.TLiteral<"success">, Type.TLiteral<"error">, Type.TLiteral<"cancelled">]>;
68
- usage: Type.TUnion<[Type.TObject<{
69
- providerReportedInputTokens: Type.TUnion<[Type.TInteger, Type.TNull]>;
70
- preparedInputTokens: Type.TUnion<[Type.TInteger, Type.TNull]>;
71
- billedTokens: Type.TUnion<[Type.TInteger, Type.TNull]>;
72
- }>, Type.TNull]>;
73
- errorCode: Type.TOptional<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">]>>;
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: Type.TObject<{
77
- schemaVersion: Type.TLiteral<1>;
78
- entries: Type.TArray<Type.TObject<{
79
- route: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">]>;
80
- model: Type.TString;
81
- status: Type.TUnion<[Type.TLiteral<"success">, Type.TLiteral<"error">, Type.TLiteral<"cancelled">]>;
82
- result: Type.TObject<{
83
- schemaVersion: Type.TLiteral<1>;
84
- outcomes: Type.TArray<Type.TUnion<[Type.TObject<{
85
- status: Type.TLiteral<"success">;
86
- index: Type.TInteger;
87
- vector: Type.TArray<Type.TNumber>;
88
- route: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">]>;
89
- model: Type.TString;
90
- space: Type.TUnion<[Type.TObject<{
91
- provider: Type.TLiteral<"local">;
92
- model: Type.TLiteral<"embeddinggemma-2">;
93
- revision: Type.TString;
94
- quantization: Type.TLiteral<"Q8_0">;
95
- runtime: Type.TString;
96
- dimensions: Type.TLiteral<768>;
97
- format: Type.TLiteral<"host-display-attributes-v1">;
98
- prefix: Type.TLiteral<"title: none | text: ">;
99
- normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
100
- }>, Type.TObject<{
101
- provider: Type.TLiteral<"openai">;
102
- model: Type.TLiteral<"text-embedding-3-small">;
103
- revision: Type.TNull;
104
- quantization: Type.TNull;
105
- runtime: Type.TNull;
106
- dimensions: Type.TLiteral<1536>;
107
- format: Type.TLiteral<"host-display-attributes-v1">;
108
- prefix: Type.TLiteral<"title: none | text: ">;
109
- normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
110
- }>, Type.TObject<{
111
- provider: Type.TLiteral<"sarvam">;
112
- model: Type.TLiteral<"embeddinggemma-2">;
113
- revision: Type.TNull;
114
- quantization: Type.TNull;
115
- runtime: Type.TLiteral<"sarvam-v2">;
116
- dimensions: Type.TLiteral<768>;
117
- format: Type.TLiteral<"host-display-attributes-v1">;
118
- prefix: Type.TLiteral<"title: none | text: ">;
119
- normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
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: Type.TString;
122
- normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
123
- }>, Type.TObject<{
124
- status: Type.TLiteral<"error">;
125
- index: Type.TInteger;
126
- 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">]>;
127
- attemptId: Type.TUnion<[Type.TString, Type.TNull]>;
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: Type.TArray<Type.TObject<{
130
- id: Type.TString;
131
- route: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">]>;
132
- model: Type.TString;
133
- routeIndex: Type.TInteger;
134
- status: Type.TUnion<[Type.TLiteral<"success">, Type.TLiteral<"error">, Type.TLiteral<"cancelled">]>;
135
- usage: Type.TUnion<[Type.TObject<{
136
- providerReportedInputTokens: Type.TUnion<[Type.TInteger, Type.TNull]>;
137
- preparedInputTokens: Type.TUnion<[Type.TInteger, Type.TNull]>;
138
- billedTokens: Type.TUnion<[Type.TInteger, Type.TNull]>;
139
- }>, Type.TNull]>;
140
- errorCode: Type.TOptional<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">]>>;
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 embeddingsDescribeOutput: Type.TObject<{
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"];