@f-inverse/jammi-client 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +68 -0
- package/dist/gen/jammi/v1/audit_pb.d.ts +213 -0
- package/dist/gen/jammi/v1/audit_pb.d.ts.map +1 -0
- package/dist/gen/jammi/v1/audit_pb.js +63 -0
- package/dist/gen/jammi/v1/audit_pb.js.map +1 -0
- package/dist/gen/jammi/v1/channel_pb.d.ts +158 -0
- package/dist/gen/jammi/v1/channel_pb.d.ts.map +1 -0
- package/dist/gen/jammi/v1/channel_pb.js +87 -0
- package/dist/gen/jammi/v1/channel_pb.js.map +1 -0
- package/dist/gen/jammi/v1/embedding_pb.d.ts +514 -0
- package/dist/gen/jammi/v1/embedding_pb.d.ts.map +1 -0
- package/dist/gen/jammi/v1/embedding_pb.js +178 -0
- package/dist/gen/jammi/v1/embedding_pb.js.map +1 -0
- package/dist/gen/jammi/v1/error_pb.d.ts +739 -0
- package/dist/gen/jammi/v1/error_pb.d.ts.map +1 -0
- package/dist/gen/jammi/v1/error_pb.js +94 -0
- package/dist/gen/jammi/v1/error_pb.js.map +1 -0
- package/dist/gen/jammi/v1/eval_pb.d.ts +821 -0
- package/dist/gen/jammi/v1/eval_pb.d.ts.map +1 -0
- package/dist/gen/jammi/v1/eval_pb.js +187 -0
- package/dist/gen/jammi/v1/eval_pb.js.map +1 -0
- package/dist/gen/jammi/v1/fine_tune_pb.d.ts +513 -0
- package/dist/gen/jammi/v1/fine_tune_pb.d.ts.map +1 -0
- package/dist/gen/jammi/v1/fine_tune_pb.js +231 -0
- package/dist/gen/jammi/v1/fine_tune_pb.js.map +1 -0
- package/dist/gen/jammi/v1/inference_pb.d.ts +144 -0
- package/dist/gen/jammi/v1/inference_pb.d.ts.map +1 -0
- package/dist/gen/jammi/v1/inference_pb.js +78 -0
- package/dist/gen/jammi/v1/inference_pb.js.map +1 -0
- package/dist/gen/jammi/v1/mutable_table_pb.d.ts +183 -0
- package/dist/gen/jammi/v1/mutable_table_pb.d.ts.map +1 -0
- package/dist/gen/jammi/v1/mutable_table_pb.js +59 -0
- package/dist/gen/jammi/v1/mutable_table_pb.js.map +1 -0
- package/dist/gen/jammi/v1/session_pb.d.ts +104 -0
- package/dist/gen/jammi/v1/session_pb.d.ts.map +1 -0
- package/dist/gen/jammi/v1/session_pb.js +38 -0
- package/dist/gen/jammi/v1/session_pb.js.map +1 -0
- package/dist/gen/jammi/v1/trigger_pb.d.ts +399 -0
- package/dist/gen/jammi/v1/trigger_pb.d.ts.map +1 -0
- package/dist/gen/jammi/v1/trigger_pb.js +80 -0
- package/dist/gen/jammi/v1/trigger_pb.js.map +1 -0
- package/dist/index.d.ts +68 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +89 -0
- package/dist/index.js.map +1 -0
- package/package.json +45 -0
|
@@ -0,0 +1,514 @@
|
|
|
1
|
+
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { EmptySchema } from "@bufbuild/protobuf/wkt";
|
|
3
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
4
|
+
/**
|
|
5
|
+
* Describes the file jammi/v1/embedding.proto.
|
|
6
|
+
*/
|
|
7
|
+
export declare const file_jammi_v1_embedding: GenFile;
|
|
8
|
+
/**
|
|
9
|
+
* Connection parameters for a source. Maps onto the engine's
|
|
10
|
+
* `SourceConnection`; only the fields a wire client needs to register a
|
|
11
|
+
* file-shaped corpus are exposed (storage URL + format). Cloud credentials
|
|
12
|
+
* are configured server-side, not carried on the wire.
|
|
13
|
+
*
|
|
14
|
+
* @generated from message jammi.v1.embedding.SourceConnection
|
|
15
|
+
*/
|
|
16
|
+
export type SourceConnection = Message<"jammi.v1.embedding.SourceConnection"> & {
|
|
17
|
+
/**
|
|
18
|
+
* Storage URL (file://, s3://, gs://, azure://) or external-source
|
|
19
|
+
* connection string (postgres://, mysql://).
|
|
20
|
+
*
|
|
21
|
+
* @generated from field: string url = 1;
|
|
22
|
+
*/
|
|
23
|
+
url: string;
|
|
24
|
+
/**
|
|
25
|
+
* File format — required for a FILE source, ignored otherwise.
|
|
26
|
+
*
|
|
27
|
+
* @generated from field: jammi.v1.embedding.FileFormat format = 2;
|
|
28
|
+
*/
|
|
29
|
+
format: FileFormat;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Describes the message jammi.v1.embedding.SourceConnection.
|
|
33
|
+
* Use `create(SourceConnectionSchema)` to create a new message.
|
|
34
|
+
*/
|
|
35
|
+
export declare const SourceConnectionSchema: GenMessage<SourceConnection>;
|
|
36
|
+
/**
|
|
37
|
+
* @generated from message jammi.v1.embedding.AddSourceRequest
|
|
38
|
+
*/
|
|
39
|
+
export type AddSourceRequest = Message<"jammi.v1.embedding.AddSourceRequest"> & {
|
|
40
|
+
/**
|
|
41
|
+
* @generated from field: string source_id = 1;
|
|
42
|
+
*/
|
|
43
|
+
sourceId: string;
|
|
44
|
+
/**
|
|
45
|
+
* @generated from field: jammi.v1.embedding.SourceKind source_kind = 2;
|
|
46
|
+
*/
|
|
47
|
+
sourceKind: SourceKind;
|
|
48
|
+
/**
|
|
49
|
+
* @generated from field: jammi.v1.embedding.SourceConnection connection = 3;
|
|
50
|
+
*/
|
|
51
|
+
connection?: SourceConnection | undefined;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* Describes the message jammi.v1.embedding.AddSourceRequest.
|
|
55
|
+
* Use `create(AddSourceRequestSchema)` to create a new message.
|
|
56
|
+
*/
|
|
57
|
+
export declare const AddSourceRequestSchema: GenMessage<AddSourceRequest>;
|
|
58
|
+
/**
|
|
59
|
+
* @generated from message jammi.v1.embedding.RemoveSourceRequest
|
|
60
|
+
*/
|
|
61
|
+
export type RemoveSourceRequest = Message<"jammi.v1.embedding.RemoveSourceRequest"> & {
|
|
62
|
+
/**
|
|
63
|
+
* @generated from field: string source_id = 1;
|
|
64
|
+
*/
|
|
65
|
+
sourceId: string;
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* Describes the message jammi.v1.embedding.RemoveSourceRequest.
|
|
69
|
+
* Use `create(RemoveSourceRequestSchema)` to create a new message.
|
|
70
|
+
*/
|
|
71
|
+
export declare const RemoveSourceRequestSchema: GenMessage<RemoveSourceRequest>;
|
|
72
|
+
/**
|
|
73
|
+
* @generated from message jammi.v1.embedding.GenerateEmbeddingsRequest
|
|
74
|
+
*/
|
|
75
|
+
export type GenerateEmbeddingsRequest = Message<"jammi.v1.embedding.GenerateEmbeddingsRequest"> & {
|
|
76
|
+
/**
|
|
77
|
+
* Registered source to scan.
|
|
78
|
+
*
|
|
79
|
+
* @generated from field: string source_id = 1;
|
|
80
|
+
*/
|
|
81
|
+
sourceId: string;
|
|
82
|
+
/**
|
|
83
|
+
* Encoder model. `local:<path>`, an HF repo id, or a fine-tuned id.
|
|
84
|
+
*
|
|
85
|
+
* @generated from field: string model_id = 2;
|
|
86
|
+
*/
|
|
87
|
+
modelId: string;
|
|
88
|
+
/**
|
|
89
|
+
* Content columns to embed. The TEXT tower embeds the listed columns; the
|
|
90
|
+
* IMAGE and AUDIO towers take exactly one content column.
|
|
91
|
+
*
|
|
92
|
+
* @generated from field: repeated string columns = 3;
|
|
93
|
+
*/
|
|
94
|
+
columns: string[];
|
|
95
|
+
/**
|
|
96
|
+
* Column whose value becomes each embedding row's key.
|
|
97
|
+
*
|
|
98
|
+
* @generated from field: string key_column = 4;
|
|
99
|
+
*/
|
|
100
|
+
keyColumn: string;
|
|
101
|
+
/**
|
|
102
|
+
* Which tower to run over the columns.
|
|
103
|
+
*
|
|
104
|
+
* @generated from field: jammi.v1.embedding.Modality modality = 5;
|
|
105
|
+
*/
|
|
106
|
+
modality: Modality;
|
|
107
|
+
};
|
|
108
|
+
/**
|
|
109
|
+
* Describes the message jammi.v1.embedding.GenerateEmbeddingsRequest.
|
|
110
|
+
* Use `create(GenerateEmbeddingsRequestSchema)` to create a new message.
|
|
111
|
+
*/
|
|
112
|
+
export declare const GenerateEmbeddingsRequestSchema: GenMessage<GenerateEmbeddingsRequest>;
|
|
113
|
+
/**
|
|
114
|
+
* Subset of the engine's `ResultTableRecord` a client needs to locate and
|
|
115
|
+
* query the persisted embedding table. Internal bookkeeping columns
|
|
116
|
+
* (parquet/index paths, timestamps) stay server-side.
|
|
117
|
+
*
|
|
118
|
+
* @generated from message jammi.v1.embedding.ResultTable
|
|
119
|
+
*/
|
|
120
|
+
export type ResultTable = Message<"jammi.v1.embedding.ResultTable"> & {
|
|
121
|
+
/**
|
|
122
|
+
* @generated from field: string table_name = 1;
|
|
123
|
+
*/
|
|
124
|
+
tableName: string;
|
|
125
|
+
/**
|
|
126
|
+
* @generated from field: string source_id = 2;
|
|
127
|
+
*/
|
|
128
|
+
sourceId: string;
|
|
129
|
+
/**
|
|
130
|
+
* @generated from field: string model_id = 3;
|
|
131
|
+
*/
|
|
132
|
+
modelId: string;
|
|
133
|
+
/**
|
|
134
|
+
* Embedding dimensionality; unset on the wire as 0 when the engine did
|
|
135
|
+
* not record one (an empty source produces no vectors).
|
|
136
|
+
*
|
|
137
|
+
* @generated from field: int32 dimensions = 4;
|
|
138
|
+
*/
|
|
139
|
+
dimensions: number;
|
|
140
|
+
/**
|
|
141
|
+
* @generated from field: uint64 row_count = 5;
|
|
142
|
+
*/
|
|
143
|
+
rowCount: bigint;
|
|
144
|
+
/**
|
|
145
|
+
* Lifecycle status reported by the engine ("ready" on success).
|
|
146
|
+
*
|
|
147
|
+
* @generated from field: string status = 6;
|
|
148
|
+
*/
|
|
149
|
+
status: string;
|
|
150
|
+
};
|
|
151
|
+
/**
|
|
152
|
+
* Describes the message jammi.v1.embedding.ResultTable.
|
|
153
|
+
* Use `create(ResultTableSchema)` to create a new message.
|
|
154
|
+
*/
|
|
155
|
+
export declare const ResultTableSchema: GenMessage<ResultTable>;
|
|
156
|
+
/**
|
|
157
|
+
* @generated from message jammi.v1.embedding.EncodeQueryRequest
|
|
158
|
+
*/
|
|
159
|
+
export type EncodeQueryRequest = Message<"jammi.v1.embedding.EncodeQueryRequest"> & {
|
|
160
|
+
/**
|
|
161
|
+
* @generated from field: string model_id = 1;
|
|
162
|
+
*/
|
|
163
|
+
modelId: string;
|
|
164
|
+
/**
|
|
165
|
+
* Which tower to encode the input with.
|
|
166
|
+
*
|
|
167
|
+
* @generated from field: jammi.v1.embedding.Modality modality = 2;
|
|
168
|
+
*/
|
|
169
|
+
modality: Modality;
|
|
170
|
+
/**
|
|
171
|
+
* The query input. `text` for TEXT; `data` (raw encoded bytes — an image
|
|
172
|
+
* file or an audio clip) for IMAGE/AUDIO. Must match `modality`.
|
|
173
|
+
*
|
|
174
|
+
* @generated from oneof jammi.v1.embedding.EncodeQueryRequest.input
|
|
175
|
+
*/
|
|
176
|
+
input: {
|
|
177
|
+
/**
|
|
178
|
+
* @generated from field: string text = 3;
|
|
179
|
+
*/
|
|
180
|
+
value: string;
|
|
181
|
+
case: "text";
|
|
182
|
+
} | {
|
|
183
|
+
/**
|
|
184
|
+
* @generated from field: bytes data = 4;
|
|
185
|
+
*/
|
|
186
|
+
value: Uint8Array;
|
|
187
|
+
case: "data";
|
|
188
|
+
} | {
|
|
189
|
+
case: undefined;
|
|
190
|
+
value?: undefined;
|
|
191
|
+
};
|
|
192
|
+
};
|
|
193
|
+
/**
|
|
194
|
+
* Describes the message jammi.v1.embedding.EncodeQueryRequest.
|
|
195
|
+
* Use `create(EncodeQueryRequestSchema)` to create a new message.
|
|
196
|
+
*/
|
|
197
|
+
export declare const EncodeQueryRequestSchema: GenMessage<EncodeQueryRequest>;
|
|
198
|
+
/**
|
|
199
|
+
* @generated from message jammi.v1.embedding.EncodeQueryResponse
|
|
200
|
+
*/
|
|
201
|
+
export type EncodeQueryResponse = Message<"jammi.v1.embedding.EncodeQueryResponse"> & {
|
|
202
|
+
/**
|
|
203
|
+
* The L2-normalized embedding for the query.
|
|
204
|
+
*
|
|
205
|
+
* @generated from field: repeated float embedding = 1;
|
|
206
|
+
*/
|
|
207
|
+
embedding: number[];
|
|
208
|
+
};
|
|
209
|
+
/**
|
|
210
|
+
* Describes the message jammi.v1.embedding.EncodeQueryResponse.
|
|
211
|
+
* Use `create(EncodeQueryResponseSchema)` to create a new message.
|
|
212
|
+
*/
|
|
213
|
+
export declare const EncodeQueryResponseSchema: GenMessage<EncodeQueryResponse>;
|
|
214
|
+
/**
|
|
215
|
+
* A packed f32 query vector — the output of `EncodeQuery` (or any client-side
|
|
216
|
+
* encoder) fed back as a search query.
|
|
217
|
+
*
|
|
218
|
+
* @generated from message jammi.v1.embedding.QueryVector
|
|
219
|
+
*/
|
|
220
|
+
export type QueryVector = Message<"jammi.v1.embedding.QueryVector"> & {
|
|
221
|
+
/**
|
|
222
|
+
* @generated from field: repeated float values = 1;
|
|
223
|
+
*/
|
|
224
|
+
values: number[];
|
|
225
|
+
};
|
|
226
|
+
/**
|
|
227
|
+
* Describes the message jammi.v1.embedding.QueryVector.
|
|
228
|
+
* Use `create(QueryVectorSchema)` to create a new message.
|
|
229
|
+
*/
|
|
230
|
+
export declare const QueryVectorSchema: GenMessage<QueryVector>;
|
|
231
|
+
/**
|
|
232
|
+
* @generated from message jammi.v1.embedding.SearchRequest
|
|
233
|
+
*/
|
|
234
|
+
export type SearchRequest = Message<"jammi.v1.embedding.SearchRequest"> & {
|
|
235
|
+
/**
|
|
236
|
+
* Source whose embedding table is searched.
|
|
237
|
+
*
|
|
238
|
+
* @generated from field: string source_id = 1;
|
|
239
|
+
*/
|
|
240
|
+
sourceId: string;
|
|
241
|
+
/**
|
|
242
|
+
* Either a precomputed query vector or an existing row's key. A row_key
|
|
243
|
+
* resolves that row's stored vector inside the engine (query-by-example);
|
|
244
|
+
* the vector is never carried on the wire.
|
|
245
|
+
*
|
|
246
|
+
* @generated from oneof jammi.v1.embedding.SearchRequest.query
|
|
247
|
+
*/
|
|
248
|
+
query: {
|
|
249
|
+
/**
|
|
250
|
+
* @generated from field: jammi.v1.embedding.QueryVector query_vector = 2;
|
|
251
|
+
*/
|
|
252
|
+
value: QueryVector;
|
|
253
|
+
case: "queryVector";
|
|
254
|
+
} | {
|
|
255
|
+
/**
|
|
256
|
+
* @generated from field: string row_key = 3;
|
|
257
|
+
*/
|
|
258
|
+
value: string;
|
|
259
|
+
case: "rowKey";
|
|
260
|
+
} | {
|
|
261
|
+
case: undefined;
|
|
262
|
+
value?: undefined;
|
|
263
|
+
};
|
|
264
|
+
/**
|
|
265
|
+
* Number of nearest neighbors to return.
|
|
266
|
+
*
|
|
267
|
+
* @generated from field: uint32 k = 4;
|
|
268
|
+
*/
|
|
269
|
+
k: number;
|
|
270
|
+
/**
|
|
271
|
+
* Optional SQL predicate pushed into the search (predicate pushdown). The
|
|
272
|
+
* engine treats it as an opaque expression over the result columns; it
|
|
273
|
+
* carries no domain semantics.
|
|
274
|
+
*
|
|
275
|
+
* @generated from field: optional string filter = 5;
|
|
276
|
+
*/
|
|
277
|
+
filter?: string | undefined;
|
|
278
|
+
/**
|
|
279
|
+
* Columns to project into each hit's `columns` map. Empty = key + score
|
|
280
|
+
* only (no projected columns).
|
|
281
|
+
*
|
|
282
|
+
* @generated from field: repeated string select = 6;
|
|
283
|
+
*/
|
|
284
|
+
select: string[];
|
|
285
|
+
};
|
|
286
|
+
/**
|
|
287
|
+
* Describes the message jammi.v1.embedding.SearchRequest.
|
|
288
|
+
* Use `create(SearchRequestSchema)` to create a new message.
|
|
289
|
+
*/
|
|
290
|
+
export declare const SearchRequestSchema: GenMessage<SearchRequest>;
|
|
291
|
+
/**
|
|
292
|
+
* @generated from message jammi.v1.embedding.SearchResponse
|
|
293
|
+
*/
|
|
294
|
+
export type SearchResponse = Message<"jammi.v1.embedding.SearchResponse"> & {
|
|
295
|
+
/**
|
|
296
|
+
* @generated from field: repeated jammi.v1.embedding.SearchHit hits = 1;
|
|
297
|
+
*/
|
|
298
|
+
hits: SearchHit[];
|
|
299
|
+
};
|
|
300
|
+
/**
|
|
301
|
+
* Describes the message jammi.v1.embedding.SearchResponse.
|
|
302
|
+
* Use `create(SearchResponseSchema)` to create a new message.
|
|
303
|
+
*/
|
|
304
|
+
export declare const SearchResponseSchema: GenMessage<SearchResponse>;
|
|
305
|
+
/**
|
|
306
|
+
* @generated from message jammi.v1.embedding.SearchHit
|
|
307
|
+
*/
|
|
308
|
+
export type SearchHit = Message<"jammi.v1.embedding.SearchHit"> & {
|
|
309
|
+
/**
|
|
310
|
+
* The matched row's key (the source's key-column value).
|
|
311
|
+
*
|
|
312
|
+
* @generated from field: string key = 1;
|
|
313
|
+
*/
|
|
314
|
+
key: string;
|
|
315
|
+
/**
|
|
316
|
+
* Similarity score from the ANN search.
|
|
317
|
+
*
|
|
318
|
+
* @generated from field: float score = 2;
|
|
319
|
+
*/
|
|
320
|
+
score: number;
|
|
321
|
+
/**
|
|
322
|
+
* Projected scalar columns, stringified, when `select` is non-empty.
|
|
323
|
+
*
|
|
324
|
+
* @generated from field: map<string, string> columns = 3;
|
|
325
|
+
*/
|
|
326
|
+
columns: {
|
|
327
|
+
[key: string]: string;
|
|
328
|
+
};
|
|
329
|
+
};
|
|
330
|
+
/**
|
|
331
|
+
* Describes the message jammi.v1.embedding.SearchHit.
|
|
332
|
+
* Use `create(SearchHitSchema)` to create a new message.
|
|
333
|
+
*/
|
|
334
|
+
export declare const SearchHitSchema: GenMessage<SearchHit>;
|
|
335
|
+
/**
|
|
336
|
+
* Which embedding tower a GenerateEmbeddings / EncodeQuery call targets.
|
|
337
|
+
* Mirrors the abstraction's `Modality`; unifying the three per-modality verbs
|
|
338
|
+
* into one parameter is what lets the service carry one embedding verb pair.
|
|
339
|
+
*
|
|
340
|
+
* @generated from enum jammi.v1.embedding.Modality
|
|
341
|
+
*/
|
|
342
|
+
export declare enum Modality {
|
|
343
|
+
/**
|
|
344
|
+
* @generated from enum value: MODALITY_UNSPECIFIED = 0;
|
|
345
|
+
*/
|
|
346
|
+
MODALITY_UNSPECIFIED = 0,
|
|
347
|
+
/**
|
|
348
|
+
* @generated from enum value: TEXT = 1;
|
|
349
|
+
*/
|
|
350
|
+
TEXT = 1,
|
|
351
|
+
/**
|
|
352
|
+
* @generated from enum value: IMAGE = 2;
|
|
353
|
+
*/
|
|
354
|
+
IMAGE = 2,
|
|
355
|
+
/**
|
|
356
|
+
* @generated from enum value: AUDIO = 3;
|
|
357
|
+
*/
|
|
358
|
+
AUDIO = 3
|
|
359
|
+
}
|
|
360
|
+
/**
|
|
361
|
+
* Describes the enum jammi.v1.embedding.Modality.
|
|
362
|
+
*/
|
|
363
|
+
export declare const ModalitySchema: GenEnum<Modality>;
|
|
364
|
+
/**
|
|
365
|
+
* Source backend kind. Mirrors the engine's `SourceType`. The kind is the
|
|
366
|
+
* storage backend, independent of the content modality embedded out of it.
|
|
367
|
+
*
|
|
368
|
+
* @generated from enum jammi.v1.embedding.SourceKind
|
|
369
|
+
*/
|
|
370
|
+
export declare enum SourceKind {
|
|
371
|
+
/**
|
|
372
|
+
* @generated from enum value: SOURCE_KIND_UNSPECIFIED = 0;
|
|
373
|
+
*/
|
|
374
|
+
UNSPECIFIED = 0,
|
|
375
|
+
/**
|
|
376
|
+
* @generated from enum value: SOURCE_KIND_FILE = 1;
|
|
377
|
+
*/
|
|
378
|
+
FILE = 1,
|
|
379
|
+
/**
|
|
380
|
+
* @generated from enum value: SOURCE_KIND_POSTGRES = 2;
|
|
381
|
+
*/
|
|
382
|
+
POSTGRES = 2,
|
|
383
|
+
/**
|
|
384
|
+
* @generated from enum value: SOURCE_KIND_MYSQL = 3;
|
|
385
|
+
*/
|
|
386
|
+
MYSQL = 3
|
|
387
|
+
}
|
|
388
|
+
/**
|
|
389
|
+
* Describes the enum jammi.v1.embedding.SourceKind.
|
|
390
|
+
*/
|
|
391
|
+
export declare const SourceKindSchema: GenEnum<SourceKind>;
|
|
392
|
+
/**
|
|
393
|
+
* File format for a file-shaped source. Mirrors the engine's `FileFormat`.
|
|
394
|
+
*
|
|
395
|
+
* @generated from enum jammi.v1.embedding.FileFormat
|
|
396
|
+
*/
|
|
397
|
+
export declare enum FileFormat {
|
|
398
|
+
/**
|
|
399
|
+
* @generated from enum value: FILE_FORMAT_UNSPECIFIED = 0;
|
|
400
|
+
*/
|
|
401
|
+
UNSPECIFIED = 0,
|
|
402
|
+
/**
|
|
403
|
+
* @generated from enum value: FILE_FORMAT_PARQUET = 1;
|
|
404
|
+
*/
|
|
405
|
+
PARQUET = 1,
|
|
406
|
+
/**
|
|
407
|
+
* @generated from enum value: FILE_FORMAT_CSV = 2;
|
|
408
|
+
*/
|
|
409
|
+
CSV = 2,
|
|
410
|
+
/**
|
|
411
|
+
* @generated from enum value: FILE_FORMAT_JSON = 3;
|
|
412
|
+
*/
|
|
413
|
+
JSON = 3,
|
|
414
|
+
/**
|
|
415
|
+
* @generated from enum value: FILE_FORMAT_AVRO = 4;
|
|
416
|
+
*/
|
|
417
|
+
AVRO = 4
|
|
418
|
+
}
|
|
419
|
+
/**
|
|
420
|
+
* Describes the enum jammi.v1.embedding.FileFormat.
|
|
421
|
+
*/
|
|
422
|
+
export declare const FileFormatSchema: GenEnum<FileFormat>;
|
|
423
|
+
/**
|
|
424
|
+
* EmbeddingService — the wire surface for the engine's embedding verbs.
|
|
425
|
+
* These are imperative session methods, not SQL queries, so they live as
|
|
426
|
+
* typed gRPC RPCs alongside SessionService / TriggerService rather than on
|
|
427
|
+
* the Flight SQL surface (which carries query/result only, per ADR-01 §3.2).
|
|
428
|
+
*
|
|
429
|
+
* The surface is modality-agnostic: one GenerateEmbeddings / EncodeQuery pair
|
|
430
|
+
* keyed by a `Modality` selects the text, image, or audio tower, rather than a
|
|
431
|
+
* verb per modality. Each verb delegates 1:1 to the consumer-facing
|
|
432
|
+
* `Session`/`LocalSession` abstraction, which dispatches the modality onto the
|
|
433
|
+
* engine's concrete tower method — the service reimplements no decode,
|
|
434
|
+
* feature-extraction, or forward logic; it is purely a wire adapter over the
|
|
435
|
+
* in-process engine. Jammi stays non-generative: these encode input → vector,
|
|
436
|
+
* never generate.
|
|
437
|
+
*
|
|
438
|
+
* Tenant scope is read from the request's `SessionTenant` extension, set by
|
|
439
|
+
* the shared TenantInterceptor from the `jammi-session-id` header — the same
|
|
440
|
+
* mechanism SessionService / TriggerService / Flight SQL already use.
|
|
441
|
+
*
|
|
442
|
+
* @generated from service jammi.v1.embedding.EmbeddingService
|
|
443
|
+
*/
|
|
444
|
+
export declare const EmbeddingService: GenService<{
|
|
445
|
+
/**
|
|
446
|
+
* Register a data source so a later GenerateEmbeddings call can scan it.
|
|
447
|
+
* Peer of the abstraction's `add_source`. The source carries any modality
|
|
448
|
+
* the engine supports; the kind here is the storage backend, not the
|
|
449
|
+
* content modality. Idempotent only insofar as the engine allows —
|
|
450
|
+
* re-registering an id that already exists is an error.
|
|
451
|
+
*
|
|
452
|
+
* @generated from rpc jammi.v1.embedding.EmbeddingService.AddSource
|
|
453
|
+
*/
|
|
454
|
+
addSource: {
|
|
455
|
+
methodKind: "unary";
|
|
456
|
+
input: typeof AddSourceRequestSchema;
|
|
457
|
+
output: typeof EmptySchema;
|
|
458
|
+
};
|
|
459
|
+
/**
|
|
460
|
+
* Remove a registered source and all associated state (embedding tables,
|
|
461
|
+
* indexes). Peer of the abstraction's `remove_source`.
|
|
462
|
+
*
|
|
463
|
+
* @generated from rpc jammi.v1.embedding.EmbeddingService.RemoveSource
|
|
464
|
+
*/
|
|
465
|
+
removeSource: {
|
|
466
|
+
methodKind: "unary";
|
|
467
|
+
input: typeof RemoveSourceRequestSchema;
|
|
468
|
+
output: typeof EmptySchema;
|
|
469
|
+
};
|
|
470
|
+
/**
|
|
471
|
+
* Scan `columns` on a registered source, run the modality's tower over
|
|
472
|
+
* every row (decode/feature-extraction as the modality requires → forward
|
|
473
|
+
* pass), persist one L2-normalized vector per row keyed by `key_column`,
|
|
474
|
+
* and return the result-table record. The `modality` selects which tower.
|
|
475
|
+
* Peer of the abstraction's `generate_embeddings`.
|
|
476
|
+
*
|
|
477
|
+
* @generated from rpc jammi.v1.embedding.EmbeddingService.GenerateEmbeddings
|
|
478
|
+
*/
|
|
479
|
+
generateEmbeddings: {
|
|
480
|
+
methodKind: "unary";
|
|
481
|
+
input: typeof GenerateEmbeddingsRequestSchema;
|
|
482
|
+
output: typeof ResultTableSchema;
|
|
483
|
+
};
|
|
484
|
+
/**
|
|
485
|
+
* Encode a single query into one L2-normalized embedding with the modality's
|
|
486
|
+
* tower. The `modality` selects the tower; the `input` oneof must match it —
|
|
487
|
+
* `text` for TEXT, `data` (raw encoded bytes) for IMAGE/AUDIO. Peer of the
|
|
488
|
+
* abstraction's `encode_query`.
|
|
489
|
+
*
|
|
490
|
+
* @generated from rpc jammi.v1.embedding.EmbeddingService.EncodeQuery
|
|
491
|
+
*/
|
|
492
|
+
encodeQuery: {
|
|
493
|
+
methodKind: "unary";
|
|
494
|
+
input: typeof EncodeQueryRequestSchema;
|
|
495
|
+
output: typeof EncodeQueryResponseSchema;
|
|
496
|
+
};
|
|
497
|
+
/**
|
|
498
|
+
* Nearest-neighbor search over a source's embedding table. The query is
|
|
499
|
+
* either a precomputed vector (encode-then-search) or an existing row's key
|
|
500
|
+
* (query-by-example; the engine resolves that row's stored vector
|
|
501
|
+
* internally — the vector never crosses the wire). Peer of the
|
|
502
|
+
* abstraction's flat `search`. This is the embedding-consumption verb on the
|
|
503
|
+
* gRPC surface edge runtimes reach (gRPC-web); it adds no new consumption
|
|
504
|
+
* model, only an additional transport for the existing capability.
|
|
505
|
+
*
|
|
506
|
+
* @generated from rpc jammi.v1.embedding.EmbeddingService.Search
|
|
507
|
+
*/
|
|
508
|
+
search: {
|
|
509
|
+
methodKind: "unary";
|
|
510
|
+
input: typeof SearchRequestSchema;
|
|
511
|
+
output: typeof SearchResponseSchema;
|
|
512
|
+
};
|
|
513
|
+
}>;
|
|
514
|
+
//# sourceMappingURL=embedding_pb.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"embedding_pb.d.ts","sourceRoot":"","sources":["../../../../src/gen/jammi/v1/embedding_pb.ts"],"names":[],"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