@dailydotdev/schema 0.2.36 → 0.2.37
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/dist/bragi/pipelines_pb.cjs +1 -1
- package/dist/bragi/pipelines_pb.d.cts +107 -1
- package/dist/bragi/pipelines_pb.d.ts +107 -1
- package/dist/bragi/pipelines_pb.js +1 -1
- package/dist/daily-api/opportunity_pb.cjs +1 -1
- package/dist/daily-api/opportunity_pb.d.cts +10 -2
- package/dist/daily-api/opportunity_pb.d.ts +10 -2
- package/dist/daily-api/opportunity_pb.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +1 -1
- package/dist/tei/embedding_connect.cjs +1 -0
- package/dist/tei/embedding_connect.d.cts +199 -0
- package/dist/tei/embedding_connect.d.ts +199 -0
- package/dist/tei/embedding_connect.js +1 -0
- package/dist/tei/embedding_pb.cjs +1 -0
- package/dist/tei/embedding_pb.d.cts +682 -0
- package/dist/tei/embedding_pb.d.ts +682 -0
- package/dist/tei/embedding_pb.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,682 @@
|
|
|
1
|
+
import { Message, PartialMessage, proto3, FieldList, BinaryReadOptions, JsonValue, JsonReadOptions, PlainMessage } from '@bufbuild/protobuf';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @generated from enum tei.v1.ModelType
|
|
5
|
+
*/
|
|
6
|
+
declare enum ModelType {
|
|
7
|
+
/**
|
|
8
|
+
* @generated from enum value: MODEL_TYPE_EMBEDDING = 0;
|
|
9
|
+
*/
|
|
10
|
+
EMBEDDING = 0,
|
|
11
|
+
/**
|
|
12
|
+
* @generated from enum value: MODEL_TYPE_CLASSIFIER = 1;
|
|
13
|
+
*/
|
|
14
|
+
CLASSIFIER = 1,
|
|
15
|
+
/**
|
|
16
|
+
* @generated from enum value: MODEL_TYPE_RERANKER = 2;
|
|
17
|
+
*/
|
|
18
|
+
RERANKER = 2
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* @generated from enum tei.v1.TruncationDirection
|
|
22
|
+
*/
|
|
23
|
+
declare enum TruncationDirection {
|
|
24
|
+
/**
|
|
25
|
+
* @generated from enum value: TRUNCATION_DIRECTION_RIGHT = 0;
|
|
26
|
+
*/
|
|
27
|
+
RIGHT = 0,
|
|
28
|
+
/**
|
|
29
|
+
* @generated from enum value: TRUNCATION_DIRECTION_LEFT = 1;
|
|
30
|
+
*/
|
|
31
|
+
LEFT = 1
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* @generated from message tei.v1.InfoRequest
|
|
35
|
+
*/
|
|
36
|
+
declare class InfoRequest extends Message<InfoRequest> {
|
|
37
|
+
constructor(data?: PartialMessage<InfoRequest>);
|
|
38
|
+
static readonly runtime: typeof proto3;
|
|
39
|
+
static readonly typeName = "tei.v1.InfoRequest";
|
|
40
|
+
static readonly fields: FieldList;
|
|
41
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): InfoRequest;
|
|
42
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): InfoRequest;
|
|
43
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): InfoRequest;
|
|
44
|
+
static equals(a: InfoRequest | PlainMessage<InfoRequest> | undefined, b: InfoRequest | PlainMessage<InfoRequest> | undefined): boolean;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* @generated from message tei.v1.InfoResponse
|
|
48
|
+
*/
|
|
49
|
+
declare class InfoResponse extends Message<InfoResponse> {
|
|
50
|
+
/**
|
|
51
|
+
* @generated from field: string version = 1;
|
|
52
|
+
*/
|
|
53
|
+
version: string;
|
|
54
|
+
/**
|
|
55
|
+
* @generated from field: optional string sha = 2;
|
|
56
|
+
*/
|
|
57
|
+
sha?: string;
|
|
58
|
+
/**
|
|
59
|
+
* @generated from field: optional string docker_label = 3;
|
|
60
|
+
*/
|
|
61
|
+
dockerLabel?: string;
|
|
62
|
+
/**
|
|
63
|
+
* @generated from field: string model_id = 4;
|
|
64
|
+
*/
|
|
65
|
+
modelId: string;
|
|
66
|
+
/**
|
|
67
|
+
* @generated from field: optional string model_sha = 5;
|
|
68
|
+
*/
|
|
69
|
+
modelSha?: string;
|
|
70
|
+
/**
|
|
71
|
+
* @generated from field: string model_dtype = 6;
|
|
72
|
+
*/
|
|
73
|
+
modelDtype: string;
|
|
74
|
+
/**
|
|
75
|
+
* @generated from field: tei.v1.ModelType model_type = 7;
|
|
76
|
+
*/
|
|
77
|
+
modelType: ModelType;
|
|
78
|
+
/**
|
|
79
|
+
* @generated from field: uint32 max_concurrent_requests = 8;
|
|
80
|
+
*/
|
|
81
|
+
maxConcurrentRequests: number;
|
|
82
|
+
/**
|
|
83
|
+
* @generated from field: uint32 max_input_length = 9;
|
|
84
|
+
*/
|
|
85
|
+
maxInputLength: number;
|
|
86
|
+
/**
|
|
87
|
+
* @generated from field: uint32 max_batch_tokens = 10;
|
|
88
|
+
*/
|
|
89
|
+
maxBatchTokens: number;
|
|
90
|
+
/**
|
|
91
|
+
* @generated from field: optional uint32 max_batch_requests = 11;
|
|
92
|
+
*/
|
|
93
|
+
maxBatchRequests?: number;
|
|
94
|
+
/**
|
|
95
|
+
* @generated from field: uint32 max_client_batch_size = 12;
|
|
96
|
+
*/
|
|
97
|
+
maxClientBatchSize: number;
|
|
98
|
+
/**
|
|
99
|
+
* @generated from field: uint32 tokenization_workers = 13;
|
|
100
|
+
*/
|
|
101
|
+
tokenizationWorkers: number;
|
|
102
|
+
constructor(data?: PartialMessage<InfoResponse>);
|
|
103
|
+
static readonly runtime: typeof proto3;
|
|
104
|
+
static readonly typeName = "tei.v1.InfoResponse";
|
|
105
|
+
static readonly fields: FieldList;
|
|
106
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): InfoResponse;
|
|
107
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): InfoResponse;
|
|
108
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): InfoResponse;
|
|
109
|
+
static equals(a: InfoResponse | PlainMessage<InfoResponse> | undefined, b: InfoResponse | PlainMessage<InfoResponse> | undefined): boolean;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* @generated from message tei.v1.Metadata
|
|
113
|
+
*/
|
|
114
|
+
declare class Metadata extends Message<Metadata> {
|
|
115
|
+
/**
|
|
116
|
+
* @generated from field: uint32 compute_chars = 1;
|
|
117
|
+
*/
|
|
118
|
+
computeChars: number;
|
|
119
|
+
/**
|
|
120
|
+
* @generated from field: uint32 compute_tokens = 2;
|
|
121
|
+
*/
|
|
122
|
+
computeTokens: number;
|
|
123
|
+
/**
|
|
124
|
+
* @generated from field: uint64 total_time_ns = 3;
|
|
125
|
+
*/
|
|
126
|
+
totalTimeNs: any;
|
|
127
|
+
/**
|
|
128
|
+
* @generated from field: uint64 tokenization_time_ns = 4;
|
|
129
|
+
*/
|
|
130
|
+
tokenizationTimeNs: any;
|
|
131
|
+
/**
|
|
132
|
+
* @generated from field: uint64 queue_time_ns = 5;
|
|
133
|
+
*/
|
|
134
|
+
queueTimeNs: any;
|
|
135
|
+
/**
|
|
136
|
+
* @generated from field: uint64 inference_time_ns = 6;
|
|
137
|
+
*/
|
|
138
|
+
inferenceTimeNs: any;
|
|
139
|
+
constructor(data?: PartialMessage<Metadata>);
|
|
140
|
+
static readonly runtime: typeof proto3;
|
|
141
|
+
static readonly typeName = "tei.v1.Metadata";
|
|
142
|
+
static readonly fields: FieldList;
|
|
143
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Metadata;
|
|
144
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Metadata;
|
|
145
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Metadata;
|
|
146
|
+
static equals(a: Metadata | PlainMessage<Metadata> | undefined, b: Metadata | PlainMessage<Metadata> | undefined): boolean;
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* @generated from message tei.v1.EmbedRequest
|
|
150
|
+
*/
|
|
151
|
+
declare class EmbedRequest extends Message<EmbedRequest> {
|
|
152
|
+
/**
|
|
153
|
+
* @generated from field: string inputs = 1;
|
|
154
|
+
*/
|
|
155
|
+
inputs: string;
|
|
156
|
+
/**
|
|
157
|
+
* @generated from field: bool truncate = 2;
|
|
158
|
+
*/
|
|
159
|
+
truncate: boolean;
|
|
160
|
+
/**
|
|
161
|
+
* @generated from field: bool normalize = 3;
|
|
162
|
+
*/
|
|
163
|
+
normalize: boolean;
|
|
164
|
+
/**
|
|
165
|
+
* @generated from field: tei.v1.TruncationDirection truncation_direction = 4;
|
|
166
|
+
*/
|
|
167
|
+
truncationDirection: TruncationDirection;
|
|
168
|
+
/**
|
|
169
|
+
* @generated from field: optional string prompt_name = 5;
|
|
170
|
+
*/
|
|
171
|
+
promptName?: string;
|
|
172
|
+
/**
|
|
173
|
+
* @generated from field: optional uint32 dimensions = 6;
|
|
174
|
+
*/
|
|
175
|
+
dimensions?: number;
|
|
176
|
+
constructor(data?: PartialMessage<EmbedRequest>);
|
|
177
|
+
static readonly runtime: typeof proto3;
|
|
178
|
+
static readonly typeName = "tei.v1.EmbedRequest";
|
|
179
|
+
static readonly fields: FieldList;
|
|
180
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EmbedRequest;
|
|
181
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EmbedRequest;
|
|
182
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EmbedRequest;
|
|
183
|
+
static equals(a: EmbedRequest | PlainMessage<EmbedRequest> | undefined, b: EmbedRequest | PlainMessage<EmbedRequest> | undefined): boolean;
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* @generated from message tei.v1.EmbedResponse
|
|
187
|
+
*/
|
|
188
|
+
declare class EmbedResponse extends Message<EmbedResponse> {
|
|
189
|
+
/**
|
|
190
|
+
* @generated from field: repeated float embeddings = 1;
|
|
191
|
+
*/
|
|
192
|
+
embeddings: number[];
|
|
193
|
+
/**
|
|
194
|
+
* @generated from field: tei.v1.Metadata metadata = 2;
|
|
195
|
+
*/
|
|
196
|
+
metadata?: Metadata;
|
|
197
|
+
constructor(data?: PartialMessage<EmbedResponse>);
|
|
198
|
+
static readonly runtime: typeof proto3;
|
|
199
|
+
static readonly typeName = "tei.v1.EmbedResponse";
|
|
200
|
+
static readonly fields: FieldList;
|
|
201
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EmbedResponse;
|
|
202
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EmbedResponse;
|
|
203
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EmbedResponse;
|
|
204
|
+
static equals(a: EmbedResponse | PlainMessage<EmbedResponse> | undefined, b: EmbedResponse | PlainMessage<EmbedResponse> | undefined): boolean;
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* @generated from message tei.v1.EmbedSparseRequest
|
|
208
|
+
*/
|
|
209
|
+
declare class EmbedSparseRequest extends Message<EmbedSparseRequest> {
|
|
210
|
+
/**
|
|
211
|
+
* @generated from field: string inputs = 1;
|
|
212
|
+
*/
|
|
213
|
+
inputs: string;
|
|
214
|
+
/**
|
|
215
|
+
* @generated from field: bool truncate = 2;
|
|
216
|
+
*/
|
|
217
|
+
truncate: boolean;
|
|
218
|
+
/**
|
|
219
|
+
* @generated from field: tei.v1.TruncationDirection truncation_direction = 3;
|
|
220
|
+
*/
|
|
221
|
+
truncationDirection: TruncationDirection;
|
|
222
|
+
/**
|
|
223
|
+
* @generated from field: optional string prompt_name = 4;
|
|
224
|
+
*/
|
|
225
|
+
promptName?: string;
|
|
226
|
+
constructor(data?: PartialMessage<EmbedSparseRequest>);
|
|
227
|
+
static readonly runtime: typeof proto3;
|
|
228
|
+
static readonly typeName = "tei.v1.EmbedSparseRequest";
|
|
229
|
+
static readonly fields: FieldList;
|
|
230
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EmbedSparseRequest;
|
|
231
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EmbedSparseRequest;
|
|
232
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EmbedSparseRequest;
|
|
233
|
+
static equals(a: EmbedSparseRequest | PlainMessage<EmbedSparseRequest> | undefined, b: EmbedSparseRequest | PlainMessage<EmbedSparseRequest> | undefined): boolean;
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* @generated from message tei.v1.SparseValue
|
|
237
|
+
*/
|
|
238
|
+
declare class SparseValue extends Message<SparseValue> {
|
|
239
|
+
/**
|
|
240
|
+
* @generated from field: uint32 index = 1;
|
|
241
|
+
*/
|
|
242
|
+
index: number;
|
|
243
|
+
/**
|
|
244
|
+
* @generated from field: float value = 2;
|
|
245
|
+
*/
|
|
246
|
+
value: number;
|
|
247
|
+
constructor(data?: PartialMessage<SparseValue>);
|
|
248
|
+
static readonly runtime: typeof proto3;
|
|
249
|
+
static readonly typeName = "tei.v1.SparseValue";
|
|
250
|
+
static readonly fields: FieldList;
|
|
251
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SparseValue;
|
|
252
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SparseValue;
|
|
253
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SparseValue;
|
|
254
|
+
static equals(a: SparseValue | PlainMessage<SparseValue> | undefined, b: SparseValue | PlainMessage<SparseValue> | undefined): boolean;
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* @generated from message tei.v1.EmbedSparseResponse
|
|
258
|
+
*/
|
|
259
|
+
declare class EmbedSparseResponse extends Message<EmbedSparseResponse> {
|
|
260
|
+
/**
|
|
261
|
+
* @generated from field: repeated tei.v1.SparseValue sparse_embeddings = 1;
|
|
262
|
+
*/
|
|
263
|
+
sparseEmbeddings: SparseValue[];
|
|
264
|
+
/**
|
|
265
|
+
* @generated from field: tei.v1.Metadata metadata = 2;
|
|
266
|
+
*/
|
|
267
|
+
metadata?: Metadata;
|
|
268
|
+
constructor(data?: PartialMessage<EmbedSparseResponse>);
|
|
269
|
+
static readonly runtime: typeof proto3;
|
|
270
|
+
static readonly typeName = "tei.v1.EmbedSparseResponse";
|
|
271
|
+
static readonly fields: FieldList;
|
|
272
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EmbedSparseResponse;
|
|
273
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EmbedSparseResponse;
|
|
274
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EmbedSparseResponse;
|
|
275
|
+
static equals(a: EmbedSparseResponse | PlainMessage<EmbedSparseResponse> | undefined, b: EmbedSparseResponse | PlainMessage<EmbedSparseResponse> | undefined): boolean;
|
|
276
|
+
}
|
|
277
|
+
/**
|
|
278
|
+
* @generated from message tei.v1.EmbedAllRequest
|
|
279
|
+
*/
|
|
280
|
+
declare class EmbedAllRequest extends Message<EmbedAllRequest> {
|
|
281
|
+
/**
|
|
282
|
+
* @generated from field: string inputs = 1;
|
|
283
|
+
*/
|
|
284
|
+
inputs: string;
|
|
285
|
+
/**
|
|
286
|
+
* @generated from field: bool truncate = 2;
|
|
287
|
+
*/
|
|
288
|
+
truncate: boolean;
|
|
289
|
+
/**
|
|
290
|
+
* @generated from field: tei.v1.TruncationDirection truncation_direction = 3;
|
|
291
|
+
*/
|
|
292
|
+
truncationDirection: TruncationDirection;
|
|
293
|
+
/**
|
|
294
|
+
* @generated from field: optional string prompt_name = 4;
|
|
295
|
+
*/
|
|
296
|
+
promptName?: string;
|
|
297
|
+
constructor(data?: PartialMessage<EmbedAllRequest>);
|
|
298
|
+
static readonly runtime: typeof proto3;
|
|
299
|
+
static readonly typeName = "tei.v1.EmbedAllRequest";
|
|
300
|
+
static readonly fields: FieldList;
|
|
301
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EmbedAllRequest;
|
|
302
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EmbedAllRequest;
|
|
303
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EmbedAllRequest;
|
|
304
|
+
static equals(a: EmbedAllRequest | PlainMessage<EmbedAllRequest> | undefined, b: EmbedAllRequest | PlainMessage<EmbedAllRequest> | undefined): boolean;
|
|
305
|
+
}
|
|
306
|
+
/**
|
|
307
|
+
* @generated from message tei.v1.TokenEmbedding
|
|
308
|
+
*/
|
|
309
|
+
declare class TokenEmbedding extends Message<TokenEmbedding> {
|
|
310
|
+
/**
|
|
311
|
+
* @generated from field: repeated float embeddings = 1;
|
|
312
|
+
*/
|
|
313
|
+
embeddings: number[];
|
|
314
|
+
constructor(data?: PartialMessage<TokenEmbedding>);
|
|
315
|
+
static readonly runtime: typeof proto3;
|
|
316
|
+
static readonly typeName = "tei.v1.TokenEmbedding";
|
|
317
|
+
static readonly fields: FieldList;
|
|
318
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TokenEmbedding;
|
|
319
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TokenEmbedding;
|
|
320
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TokenEmbedding;
|
|
321
|
+
static equals(a: TokenEmbedding | PlainMessage<TokenEmbedding> | undefined, b: TokenEmbedding | PlainMessage<TokenEmbedding> | undefined): boolean;
|
|
322
|
+
}
|
|
323
|
+
/**
|
|
324
|
+
* @generated from message tei.v1.EmbedAllResponse
|
|
325
|
+
*/
|
|
326
|
+
declare class EmbedAllResponse extends Message<EmbedAllResponse> {
|
|
327
|
+
/**
|
|
328
|
+
* @generated from field: repeated tei.v1.TokenEmbedding token_embeddings = 1;
|
|
329
|
+
*/
|
|
330
|
+
tokenEmbeddings: TokenEmbedding[];
|
|
331
|
+
/**
|
|
332
|
+
* @generated from field: tei.v1.Metadata metadata = 2;
|
|
333
|
+
*/
|
|
334
|
+
metadata?: Metadata;
|
|
335
|
+
constructor(data?: PartialMessage<EmbedAllResponse>);
|
|
336
|
+
static readonly runtime: typeof proto3;
|
|
337
|
+
static readonly typeName = "tei.v1.EmbedAllResponse";
|
|
338
|
+
static readonly fields: FieldList;
|
|
339
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EmbedAllResponse;
|
|
340
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EmbedAllResponse;
|
|
341
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EmbedAllResponse;
|
|
342
|
+
static equals(a: EmbedAllResponse | PlainMessage<EmbedAllResponse> | undefined, b: EmbedAllResponse | PlainMessage<EmbedAllResponse> | undefined): boolean;
|
|
343
|
+
}
|
|
344
|
+
/**
|
|
345
|
+
* @generated from message tei.v1.PredictRequest
|
|
346
|
+
*/
|
|
347
|
+
declare class PredictRequest extends Message<PredictRequest> {
|
|
348
|
+
/**
|
|
349
|
+
* @generated from field: string inputs = 1;
|
|
350
|
+
*/
|
|
351
|
+
inputs: string;
|
|
352
|
+
/**
|
|
353
|
+
* @generated from field: bool truncate = 2;
|
|
354
|
+
*/
|
|
355
|
+
truncate: boolean;
|
|
356
|
+
/**
|
|
357
|
+
* @generated from field: bool raw_scores = 3;
|
|
358
|
+
*/
|
|
359
|
+
rawScores: boolean;
|
|
360
|
+
/**
|
|
361
|
+
* @generated from field: tei.v1.TruncationDirection truncation_direction = 4;
|
|
362
|
+
*/
|
|
363
|
+
truncationDirection: TruncationDirection;
|
|
364
|
+
constructor(data?: PartialMessage<PredictRequest>);
|
|
365
|
+
static readonly runtime: typeof proto3;
|
|
366
|
+
static readonly typeName = "tei.v1.PredictRequest";
|
|
367
|
+
static readonly fields: FieldList;
|
|
368
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PredictRequest;
|
|
369
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PredictRequest;
|
|
370
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PredictRequest;
|
|
371
|
+
static equals(a: PredictRequest | PlainMessage<PredictRequest> | undefined, b: PredictRequest | PlainMessage<PredictRequest> | undefined): boolean;
|
|
372
|
+
}
|
|
373
|
+
/**
|
|
374
|
+
* @generated from message tei.v1.PredictPairRequest
|
|
375
|
+
*/
|
|
376
|
+
declare class PredictPairRequest extends Message<PredictPairRequest> {
|
|
377
|
+
/**
|
|
378
|
+
* @generated from field: repeated string inputs = 1;
|
|
379
|
+
*/
|
|
380
|
+
inputs: string[];
|
|
381
|
+
/**
|
|
382
|
+
* @generated from field: bool truncate = 2;
|
|
383
|
+
*/
|
|
384
|
+
truncate: boolean;
|
|
385
|
+
/**
|
|
386
|
+
* @generated from field: bool raw_scores = 3;
|
|
387
|
+
*/
|
|
388
|
+
rawScores: boolean;
|
|
389
|
+
/**
|
|
390
|
+
* @generated from field: tei.v1.TruncationDirection truncation_direction = 4;
|
|
391
|
+
*/
|
|
392
|
+
truncationDirection: TruncationDirection;
|
|
393
|
+
constructor(data?: PartialMessage<PredictPairRequest>);
|
|
394
|
+
static readonly runtime: typeof proto3;
|
|
395
|
+
static readonly typeName = "tei.v1.PredictPairRequest";
|
|
396
|
+
static readonly fields: FieldList;
|
|
397
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PredictPairRequest;
|
|
398
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PredictPairRequest;
|
|
399
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PredictPairRequest;
|
|
400
|
+
static equals(a: PredictPairRequest | PlainMessage<PredictPairRequest> | undefined, b: PredictPairRequest | PlainMessage<PredictPairRequest> | undefined): boolean;
|
|
401
|
+
}
|
|
402
|
+
/**
|
|
403
|
+
* @generated from message tei.v1.Prediction
|
|
404
|
+
*/
|
|
405
|
+
declare class Prediction extends Message<Prediction> {
|
|
406
|
+
/**
|
|
407
|
+
* @generated from field: float score = 1;
|
|
408
|
+
*/
|
|
409
|
+
score: number;
|
|
410
|
+
/**
|
|
411
|
+
* @generated from field: string label = 2;
|
|
412
|
+
*/
|
|
413
|
+
label: string;
|
|
414
|
+
constructor(data?: PartialMessage<Prediction>);
|
|
415
|
+
static readonly runtime: typeof proto3;
|
|
416
|
+
static readonly typeName = "tei.v1.Prediction";
|
|
417
|
+
static readonly fields: FieldList;
|
|
418
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Prediction;
|
|
419
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Prediction;
|
|
420
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Prediction;
|
|
421
|
+
static equals(a: Prediction | PlainMessage<Prediction> | undefined, b: Prediction | PlainMessage<Prediction> | undefined): boolean;
|
|
422
|
+
}
|
|
423
|
+
/**
|
|
424
|
+
* @generated from message tei.v1.PredictResponse
|
|
425
|
+
*/
|
|
426
|
+
declare class PredictResponse extends Message<PredictResponse> {
|
|
427
|
+
/**
|
|
428
|
+
* @generated from field: repeated tei.v1.Prediction predictions = 1;
|
|
429
|
+
*/
|
|
430
|
+
predictions: Prediction[];
|
|
431
|
+
/**
|
|
432
|
+
* @generated from field: tei.v1.Metadata metadata = 2;
|
|
433
|
+
*/
|
|
434
|
+
metadata?: Metadata;
|
|
435
|
+
constructor(data?: PartialMessage<PredictResponse>);
|
|
436
|
+
static readonly runtime: typeof proto3;
|
|
437
|
+
static readonly typeName = "tei.v1.PredictResponse";
|
|
438
|
+
static readonly fields: FieldList;
|
|
439
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PredictResponse;
|
|
440
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PredictResponse;
|
|
441
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PredictResponse;
|
|
442
|
+
static equals(a: PredictResponse | PlainMessage<PredictResponse> | undefined, b: PredictResponse | PlainMessage<PredictResponse> | undefined): boolean;
|
|
443
|
+
}
|
|
444
|
+
/**
|
|
445
|
+
* @generated from message tei.v1.RerankRequest
|
|
446
|
+
*/
|
|
447
|
+
declare class RerankRequest extends Message<RerankRequest> {
|
|
448
|
+
/**
|
|
449
|
+
* @generated from field: string query = 1;
|
|
450
|
+
*/
|
|
451
|
+
query: string;
|
|
452
|
+
/**
|
|
453
|
+
* @generated from field: repeated string texts = 2;
|
|
454
|
+
*/
|
|
455
|
+
texts: string[];
|
|
456
|
+
/**
|
|
457
|
+
* @generated from field: bool truncate = 3;
|
|
458
|
+
*/
|
|
459
|
+
truncate: boolean;
|
|
460
|
+
/**
|
|
461
|
+
* @generated from field: bool raw_scores = 4;
|
|
462
|
+
*/
|
|
463
|
+
rawScores: boolean;
|
|
464
|
+
/**
|
|
465
|
+
* @generated from field: bool return_text = 5;
|
|
466
|
+
*/
|
|
467
|
+
returnText: boolean;
|
|
468
|
+
/**
|
|
469
|
+
* @generated from field: tei.v1.TruncationDirection truncation_direction = 6;
|
|
470
|
+
*/
|
|
471
|
+
truncationDirection: TruncationDirection;
|
|
472
|
+
constructor(data?: PartialMessage<RerankRequest>);
|
|
473
|
+
static readonly runtime: typeof proto3;
|
|
474
|
+
static readonly typeName = "tei.v1.RerankRequest";
|
|
475
|
+
static readonly fields: FieldList;
|
|
476
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RerankRequest;
|
|
477
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RerankRequest;
|
|
478
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RerankRequest;
|
|
479
|
+
static equals(a: RerankRequest | PlainMessage<RerankRequest> | undefined, b: RerankRequest | PlainMessage<RerankRequest> | undefined): boolean;
|
|
480
|
+
}
|
|
481
|
+
/**
|
|
482
|
+
* @generated from message tei.v1.RerankStreamRequest
|
|
483
|
+
*/
|
|
484
|
+
declare class RerankStreamRequest extends Message<RerankStreamRequest> {
|
|
485
|
+
/**
|
|
486
|
+
* @generated from field: string query = 1;
|
|
487
|
+
*/
|
|
488
|
+
query: string;
|
|
489
|
+
/**
|
|
490
|
+
* @generated from field: string text = 2;
|
|
491
|
+
*/
|
|
492
|
+
text: string;
|
|
493
|
+
/**
|
|
494
|
+
* @generated from field: bool truncate = 3;
|
|
495
|
+
*/
|
|
496
|
+
truncate: boolean;
|
|
497
|
+
/**
|
|
498
|
+
* The server will only consider the first value
|
|
499
|
+
*
|
|
500
|
+
* @generated from field: bool raw_scores = 4;
|
|
501
|
+
*/
|
|
502
|
+
rawScores: boolean;
|
|
503
|
+
/**
|
|
504
|
+
* The server will only consider the first value
|
|
505
|
+
*
|
|
506
|
+
* @generated from field: bool return_text = 5;
|
|
507
|
+
*/
|
|
508
|
+
returnText: boolean;
|
|
509
|
+
/**
|
|
510
|
+
* @generated from field: tei.v1.TruncationDirection truncation_direction = 6;
|
|
511
|
+
*/
|
|
512
|
+
truncationDirection: TruncationDirection;
|
|
513
|
+
constructor(data?: PartialMessage<RerankStreamRequest>);
|
|
514
|
+
static readonly runtime: typeof proto3;
|
|
515
|
+
static readonly typeName = "tei.v1.RerankStreamRequest";
|
|
516
|
+
static readonly fields: FieldList;
|
|
517
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RerankStreamRequest;
|
|
518
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RerankStreamRequest;
|
|
519
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RerankStreamRequest;
|
|
520
|
+
static equals(a: RerankStreamRequest | PlainMessage<RerankStreamRequest> | undefined, b: RerankStreamRequest | PlainMessage<RerankStreamRequest> | undefined): boolean;
|
|
521
|
+
}
|
|
522
|
+
/**
|
|
523
|
+
* @generated from message tei.v1.Rank
|
|
524
|
+
*/
|
|
525
|
+
declare class Rank extends Message<Rank> {
|
|
526
|
+
/**
|
|
527
|
+
* @generated from field: uint32 index = 1;
|
|
528
|
+
*/
|
|
529
|
+
index: number;
|
|
530
|
+
/**
|
|
531
|
+
* @generated from field: optional string text = 2;
|
|
532
|
+
*/
|
|
533
|
+
text?: string;
|
|
534
|
+
/**
|
|
535
|
+
* @generated from field: float score = 3;
|
|
536
|
+
*/
|
|
537
|
+
score: number;
|
|
538
|
+
constructor(data?: PartialMessage<Rank>);
|
|
539
|
+
static readonly runtime: typeof proto3;
|
|
540
|
+
static readonly typeName = "tei.v1.Rank";
|
|
541
|
+
static readonly fields: FieldList;
|
|
542
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Rank;
|
|
543
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Rank;
|
|
544
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Rank;
|
|
545
|
+
static equals(a: Rank | PlainMessage<Rank> | undefined, b: Rank | PlainMessage<Rank> | undefined): boolean;
|
|
546
|
+
}
|
|
547
|
+
/**
|
|
548
|
+
* @generated from message tei.v1.RerankResponse
|
|
549
|
+
*/
|
|
550
|
+
declare class RerankResponse extends Message<RerankResponse> {
|
|
551
|
+
/**
|
|
552
|
+
* @generated from field: repeated tei.v1.Rank ranks = 1;
|
|
553
|
+
*/
|
|
554
|
+
ranks: Rank[];
|
|
555
|
+
/**
|
|
556
|
+
* @generated from field: tei.v1.Metadata metadata = 2;
|
|
557
|
+
*/
|
|
558
|
+
metadata?: Metadata;
|
|
559
|
+
constructor(data?: PartialMessage<RerankResponse>);
|
|
560
|
+
static readonly runtime: typeof proto3;
|
|
561
|
+
static readonly typeName = "tei.v1.RerankResponse";
|
|
562
|
+
static readonly fields: FieldList;
|
|
563
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RerankResponse;
|
|
564
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RerankResponse;
|
|
565
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RerankResponse;
|
|
566
|
+
static equals(a: RerankResponse | PlainMessage<RerankResponse> | undefined, b: RerankResponse | PlainMessage<RerankResponse> | undefined): boolean;
|
|
567
|
+
}
|
|
568
|
+
/**
|
|
569
|
+
* @generated from message tei.v1.EncodeRequest
|
|
570
|
+
*/
|
|
571
|
+
declare class EncodeRequest extends Message<EncodeRequest> {
|
|
572
|
+
/**
|
|
573
|
+
* @generated from field: string inputs = 1;
|
|
574
|
+
*/
|
|
575
|
+
inputs: string;
|
|
576
|
+
/**
|
|
577
|
+
* @generated from field: bool add_special_tokens = 2;
|
|
578
|
+
*/
|
|
579
|
+
addSpecialTokens: boolean;
|
|
580
|
+
/**
|
|
581
|
+
* @generated from field: optional string prompt_name = 3;
|
|
582
|
+
*/
|
|
583
|
+
promptName?: string;
|
|
584
|
+
constructor(data?: PartialMessage<EncodeRequest>);
|
|
585
|
+
static readonly runtime: typeof proto3;
|
|
586
|
+
static readonly typeName = "tei.v1.EncodeRequest";
|
|
587
|
+
static readonly fields: FieldList;
|
|
588
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EncodeRequest;
|
|
589
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EncodeRequest;
|
|
590
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EncodeRequest;
|
|
591
|
+
static equals(a: EncodeRequest | PlainMessage<EncodeRequest> | undefined, b: EncodeRequest | PlainMessage<EncodeRequest> | undefined): boolean;
|
|
592
|
+
}
|
|
593
|
+
/**
|
|
594
|
+
* @generated from message tei.v1.SimpleToken
|
|
595
|
+
*/
|
|
596
|
+
declare class SimpleToken extends Message<SimpleToken> {
|
|
597
|
+
/**
|
|
598
|
+
* @generated from field: uint32 id = 1;
|
|
599
|
+
*/
|
|
600
|
+
id: number;
|
|
601
|
+
/**
|
|
602
|
+
* @generated from field: string text = 2;
|
|
603
|
+
*/
|
|
604
|
+
text: string;
|
|
605
|
+
/**
|
|
606
|
+
* @generated from field: bool special = 3;
|
|
607
|
+
*/
|
|
608
|
+
special: boolean;
|
|
609
|
+
/**
|
|
610
|
+
* @generated from field: optional uint32 start = 4;
|
|
611
|
+
*/
|
|
612
|
+
start?: number;
|
|
613
|
+
/**
|
|
614
|
+
* @generated from field: optional uint32 stop = 5;
|
|
615
|
+
*/
|
|
616
|
+
stop?: number;
|
|
617
|
+
constructor(data?: PartialMessage<SimpleToken>);
|
|
618
|
+
static readonly runtime: typeof proto3;
|
|
619
|
+
static readonly typeName = "tei.v1.SimpleToken";
|
|
620
|
+
static readonly fields: FieldList;
|
|
621
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SimpleToken;
|
|
622
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SimpleToken;
|
|
623
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SimpleToken;
|
|
624
|
+
static equals(a: SimpleToken | PlainMessage<SimpleToken> | undefined, b: SimpleToken | PlainMessage<SimpleToken> | undefined): boolean;
|
|
625
|
+
}
|
|
626
|
+
/**
|
|
627
|
+
* @generated from message tei.v1.EncodeResponse
|
|
628
|
+
*/
|
|
629
|
+
declare class EncodeResponse extends Message<EncodeResponse> {
|
|
630
|
+
/**
|
|
631
|
+
* @generated from field: repeated tei.v1.SimpleToken tokens = 1;
|
|
632
|
+
*/
|
|
633
|
+
tokens: SimpleToken[];
|
|
634
|
+
constructor(data?: PartialMessage<EncodeResponse>);
|
|
635
|
+
static readonly runtime: typeof proto3;
|
|
636
|
+
static readonly typeName = "tei.v1.EncodeResponse";
|
|
637
|
+
static readonly fields: FieldList;
|
|
638
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EncodeResponse;
|
|
639
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EncodeResponse;
|
|
640
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EncodeResponse;
|
|
641
|
+
static equals(a: EncodeResponse | PlainMessage<EncodeResponse> | undefined, b: EncodeResponse | PlainMessage<EncodeResponse> | undefined): boolean;
|
|
642
|
+
}
|
|
643
|
+
/**
|
|
644
|
+
* @generated from message tei.v1.DecodeRequest
|
|
645
|
+
*/
|
|
646
|
+
declare class DecodeRequest extends Message<DecodeRequest> {
|
|
647
|
+
/**
|
|
648
|
+
* @generated from field: repeated uint32 ids = 1;
|
|
649
|
+
*/
|
|
650
|
+
ids: number[];
|
|
651
|
+
/**
|
|
652
|
+
* @generated from field: bool skip_special_tokens = 2;
|
|
653
|
+
*/
|
|
654
|
+
skipSpecialTokens: boolean;
|
|
655
|
+
constructor(data?: PartialMessage<DecodeRequest>);
|
|
656
|
+
static readonly runtime: typeof proto3;
|
|
657
|
+
static readonly typeName = "tei.v1.DecodeRequest";
|
|
658
|
+
static readonly fields: FieldList;
|
|
659
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DecodeRequest;
|
|
660
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DecodeRequest;
|
|
661
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DecodeRequest;
|
|
662
|
+
static equals(a: DecodeRequest | PlainMessage<DecodeRequest> | undefined, b: DecodeRequest | PlainMessage<DecodeRequest> | undefined): boolean;
|
|
663
|
+
}
|
|
664
|
+
/**
|
|
665
|
+
* @generated from message tei.v1.DecodeResponse
|
|
666
|
+
*/
|
|
667
|
+
declare class DecodeResponse extends Message<DecodeResponse> {
|
|
668
|
+
/**
|
|
669
|
+
* @generated from field: string text = 1;
|
|
670
|
+
*/
|
|
671
|
+
text: string;
|
|
672
|
+
constructor(data?: PartialMessage<DecodeResponse>);
|
|
673
|
+
static readonly runtime: typeof proto3;
|
|
674
|
+
static readonly typeName = "tei.v1.DecodeResponse";
|
|
675
|
+
static readonly fields: FieldList;
|
|
676
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DecodeResponse;
|
|
677
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DecodeResponse;
|
|
678
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DecodeResponse;
|
|
679
|
+
static equals(a: DecodeResponse | PlainMessage<DecodeResponse> | undefined, b: DecodeResponse | PlainMessage<DecodeResponse> | undefined): boolean;
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
export { DecodeRequest, DecodeResponse, EmbedAllRequest, EmbedAllResponse, EmbedRequest, EmbedResponse, EmbedSparseRequest, EmbedSparseResponse, EncodeRequest, EncodeResponse, InfoRequest, InfoResponse, Metadata, ModelType, PredictPairRequest, PredictRequest, PredictResponse, Prediction, Rank, RerankRequest, RerankResponse, RerankStreamRequest, SimpleToken, SparseValue, TokenEmbedding, TruncationDirection };
|