@mixedbread/sdk 0.50.2 → 0.51.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/CHANGELOG.md +31 -0
- package/bin/migration-config.json +0 -70
- package/client.d.mts +5 -7
- package/client.d.mts.map +1 -1
- package/client.d.ts +5 -7
- package/client.d.ts.map +1 -1
- package/client.js +11 -6
- package/client.js.map +1 -1
- package/client.mjs +11 -6
- package/client.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +5 -0
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +5 -0
- package/internal/parse.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/index.d.mts +1 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +0 -1
- package/resources/index.mjs.map +1 -1
- package/resources/stores/files.d.mts +94 -20
- package/resources/stores/files.d.mts.map +1 -1
- package/resources/stores/files.d.ts +94 -20
- package/resources/stores/files.d.ts.map +1 -1
- package/resources/stores/index.d.mts +1 -1
- package/resources/stores/index.d.mts.map +1 -1
- package/resources/stores/index.d.ts +1 -1
- package/resources/stores/index.d.ts.map +1 -1
- package/resources/stores/index.js.map +1 -1
- package/resources/stores/index.mjs.map +1 -1
- package/resources/stores/stores.d.mts +599 -10
- package/resources/stores/stores.d.mts.map +1 -1
- package/resources/stores/stores.d.ts +599 -10
- package/resources/stores/stores.d.ts.map +1 -1
- package/resources/stores/stores.js.map +1 -1
- package/resources/stores/stores.mjs.map +1 -1
- package/src/client.ts +23 -42
- package/src/internal/parse.ts +6 -0
- package/src/resources/index.ts +5 -19
- package/src/resources/stores/files.ts +132 -19
- package/src/resources/stores/index.ts +5 -0
- package/src/resources/stores/stores.ts +898 -15
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/vector-stores/files.d.mts +0 -1379
- package/resources/vector-stores/files.d.mts.map +0 -1
- package/resources/vector-stores/files.d.ts +0 -1379
- package/resources/vector-stores/files.d.ts.map +0 -1
- package/resources/vector-stores/files.js +0 -126
- package/resources/vector-stores/files.js.map +0 -1
- package/resources/vector-stores/files.mjs +0 -121
- package/resources/vector-stores/files.mjs.map +0 -1
- package/resources/vector-stores/index.d.mts +0 -3
- package/resources/vector-stores/index.d.mts.map +0 -1
- package/resources/vector-stores/index.d.ts +0 -3
- package/resources/vector-stores/index.d.ts.map +0 -1
- package/resources/vector-stores/index.js +0 -9
- package/resources/vector-stores/index.js.map +0 -1
- package/resources/vector-stores/index.mjs +0 -4
- package/resources/vector-stores/index.mjs.map +0 -1
- package/resources/vector-stores/vector-stores.d.mts +0 -1885
- package/resources/vector-stores/vector-stores.d.mts.map +0 -1
- package/resources/vector-stores/vector-stores.d.ts +0 -1885
- package/resources/vector-stores/vector-stores.d.ts.map +0 -1
- package/resources/vector-stores/vector-stores.js +0 -75
- package/resources/vector-stores/vector-stores.js.map +0 -1
- package/resources/vector-stores/vector-stores.mjs +0 -70
- package/resources/vector-stores/vector-stores.mjs.map +0 -1
- package/resources/vector-stores.d.mts +0 -2
- package/resources/vector-stores.d.mts.map +0 -1
- package/resources/vector-stores.d.ts +0 -2
- package/resources/vector-stores.d.ts.map +0 -1
- package/resources/vector-stores.js +0 -6
- package/resources/vector-stores.js.map +0 -1
- package/resources/vector-stores.mjs +0 -3
- package/resources/vector-stores.mjs.map +0 -1
- package/src/resources/vector-stores/files.ts +0 -2062
- package/src/resources/vector-stores/index.ts +0 -36
- package/src/resources/vector-stores/vector-stores.ts +0 -2809
- package/src/resources/vector-stores.ts +0 -3
|
@@ -1,1379 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
-
import * as VectorStoresFilesAPI from "./files.mjs";
|
|
3
|
-
import * as Shared from "../shared.mjs";
|
|
4
|
-
import * as FilesAPI from "../stores/files.mjs";
|
|
5
|
-
import { APIPromise } from "../../core/api-promise.mjs";
|
|
6
|
-
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
7
|
-
import { Uploadable } from "../../uploads.mjs";
|
|
8
|
-
export declare class Files extends APIResource {
|
|
9
|
-
/**
|
|
10
|
-
* DEPRECATED: Use POST /stores/{store_identifier}/files instead
|
|
11
|
-
*
|
|
12
|
-
* @deprecated Use post stores.files instead
|
|
13
|
-
*/
|
|
14
|
-
create(vectorStoreIdentifier: string, body: FileCreateParams, options?: RequestOptions): APIPromise<VectorStoreFile>;
|
|
15
|
-
/**
|
|
16
|
-
* DEPRECATED: Use GET /stores/{store_identifier}/files/{file_id} instead
|
|
17
|
-
*
|
|
18
|
-
* @deprecated Use stores.files instead
|
|
19
|
-
*/
|
|
20
|
-
retrieve(fileID: string, params: FileRetrieveParams, options?: RequestOptions): APIPromise<VectorStoreFile>;
|
|
21
|
-
/**
|
|
22
|
-
* DEPRECATED: Use POST /stores/{store_identifier}/files/list instead
|
|
23
|
-
*
|
|
24
|
-
* @deprecated Use post stores.files.list instead
|
|
25
|
-
*/
|
|
26
|
-
list(vectorStoreIdentifier: string, body: FileListParams, options?: RequestOptions): APIPromise<FileListResponse>;
|
|
27
|
-
/**
|
|
28
|
-
* DEPRECATED: Use DELETE /stores/{store_identifier}/files/{file_id} instead
|
|
29
|
-
*
|
|
30
|
-
* @deprecated Use stores.files instead
|
|
31
|
-
*/
|
|
32
|
-
delete(fileID: string, params: FileDeleteParams, options?: RequestOptions): APIPromise<FileDeleteResponse>;
|
|
33
|
-
/**
|
|
34
|
-
* DEPRECATED: Use POST /stores/{store_identifier}/files/search instead
|
|
35
|
-
*
|
|
36
|
-
* @deprecated Use stores.files.search instead
|
|
37
|
-
*/
|
|
38
|
-
search(body: FileSearchParams, options?: RequestOptions): APIPromise<FileSearchResponse>;
|
|
39
|
-
/**
|
|
40
|
-
* Poll for a file's processing status until it reaches a terminal state.
|
|
41
|
-
*
|
|
42
|
-
* @param vectorStoreIdentifier - The identifier of the vector store
|
|
43
|
-
* @param fileId - The ID of the file to poll
|
|
44
|
-
* @param pollIntervalMs - The interval between polls in milliseconds (default: 500)
|
|
45
|
-
* @param pollTimeoutMs - The maximum time to poll for in milliseconds (default: no timeout)
|
|
46
|
-
* @param options - Additional request options
|
|
47
|
-
* @returns The file object once it reaches a terminal state
|
|
48
|
-
*/
|
|
49
|
-
poll(vectorStoreIdentifier: string, fileId: string, pollIntervalMs?: number, pollTimeoutMs?: number, options?: RequestOptions): Promise<VectorStoreFile>;
|
|
50
|
-
/**
|
|
51
|
-
* Create a file in a vector store and wait for it to be processed.
|
|
52
|
-
*
|
|
53
|
-
* @param vectorStoreIdentifier - The identifier of the vector store to upload to
|
|
54
|
-
* @param body - The file creation parameters
|
|
55
|
-
* @param pollIntervalMs - The interval between polls in milliseconds (default: 500)
|
|
56
|
-
* @param pollTimeoutMs - The maximum time to poll for in milliseconds (default: no timeout)
|
|
57
|
-
* @param options - Additional request options
|
|
58
|
-
* @returns The file object once it reaches a terminal state
|
|
59
|
-
*/
|
|
60
|
-
createAndPoll(vectorStoreIdentifier: string, body: FileCreateParams, pollIntervalMs?: number, pollTimeoutMs?: number, options?: RequestOptions): Promise<VectorStoreFile>;
|
|
61
|
-
/**
|
|
62
|
-
* Upload a file to the files API and then create a file in a vector store.
|
|
63
|
-
* Note the file will be asynchronously processed.
|
|
64
|
-
*
|
|
65
|
-
* @param vectorStoreIdentifier - The identifier of the vector store to add the file to
|
|
66
|
-
* @param file - The file to upload
|
|
67
|
-
* @param body - Additional parameters for the vector store file
|
|
68
|
-
* @param options - Additional request options
|
|
69
|
-
* @returns The created vector store file
|
|
70
|
-
*/
|
|
71
|
-
upload(vectorStoreIdentifier: string, file: Uploadable, body?: Omit<FileCreateParams, 'file_id'>, options?: RequestOptions): Promise<VectorStoreFile>;
|
|
72
|
-
/**
|
|
73
|
-
* Upload a file to files API, create a file in a vector store, and poll until processing is complete.
|
|
74
|
-
*
|
|
75
|
-
* @param vectorStoreIdentifier - The identifier of the vector store to add the file to
|
|
76
|
-
* @param file - The file to upload
|
|
77
|
-
* @param body - Additional parameters for the vector store file
|
|
78
|
-
* @param pollIntervalMs - The interval between polls in milliseconds (default: 500)
|
|
79
|
-
* @param pollTimeoutMs - The maximum time to poll for in milliseconds (default: no timeout)
|
|
80
|
-
* @param options - Additional request options
|
|
81
|
-
* @returns The vector store file object once it reaches a terminal state
|
|
82
|
-
*/
|
|
83
|
-
uploadAndPoll(vectorStoreIdentifier: string, file: Uploadable, body?: Omit<FileCreateParams, 'file_id'>, pollIntervalMs?: number, pollTimeoutMs?: number, options?: RequestOptions): Promise<VectorStoreFile>;
|
|
84
|
-
}
|
|
85
|
-
/**
|
|
86
|
-
* Represents a reranking configuration.
|
|
87
|
-
*/
|
|
88
|
-
export interface RerankConfig {
|
|
89
|
-
/**
|
|
90
|
-
* The name of the reranking model
|
|
91
|
-
*/
|
|
92
|
-
model?: string;
|
|
93
|
-
/**
|
|
94
|
-
* Whether to include metadata in the reranked results
|
|
95
|
-
*/
|
|
96
|
-
with_metadata?: boolean | Array<string>;
|
|
97
|
-
/**
|
|
98
|
-
* Maximum number of results to return after reranking. If None, returns all
|
|
99
|
-
* reranked results.
|
|
100
|
-
*/
|
|
101
|
-
top_k?: number | null;
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
* Represents a scored store file.
|
|
105
|
-
*/
|
|
106
|
-
export interface ScoredVectorStoreFile {
|
|
107
|
-
/**
|
|
108
|
-
* Unique identifier for the file
|
|
109
|
-
*/
|
|
110
|
-
id: string;
|
|
111
|
-
/**
|
|
112
|
-
* Name of the file
|
|
113
|
-
*/
|
|
114
|
-
filename?: string;
|
|
115
|
-
/**
|
|
116
|
-
* Optional file metadata
|
|
117
|
-
*/
|
|
118
|
-
metadata?: unknown;
|
|
119
|
-
/**
|
|
120
|
-
* Processing status of the file
|
|
121
|
-
*/
|
|
122
|
-
status?: FilesAPI.StoreFileStatus;
|
|
123
|
-
/**
|
|
124
|
-
* Last error message if processing failed
|
|
125
|
-
*/
|
|
126
|
-
last_error?: unknown;
|
|
127
|
-
/**
|
|
128
|
-
* ID of the containing store
|
|
129
|
-
*/
|
|
130
|
-
vector_store_id: string;
|
|
131
|
-
/**
|
|
132
|
-
* Timestamp of store file creation
|
|
133
|
-
*/
|
|
134
|
-
created_at: string;
|
|
135
|
-
/**
|
|
136
|
-
* Version number of the file
|
|
137
|
-
*/
|
|
138
|
-
version?: number | null;
|
|
139
|
-
/**
|
|
140
|
-
* Storage usage in bytes
|
|
141
|
-
*/
|
|
142
|
-
usage_bytes?: number | null;
|
|
143
|
-
/**
|
|
144
|
-
* Type of the object
|
|
145
|
-
*/
|
|
146
|
-
object?: 'vector_store.file';
|
|
147
|
-
/**
|
|
148
|
-
* Array of scored file chunks
|
|
149
|
-
*/
|
|
150
|
-
chunks: Array<ScoredVectorStoreFile.MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk | ScoredVectorStoreFile.MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredImageURLInputChunk | ScoredVectorStoreFile.MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredAudioURLInputChunk | ScoredVectorStoreFile.MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredVideoURLInputChunk> | null;
|
|
151
|
-
/**
|
|
152
|
-
* score of the file
|
|
153
|
-
*/
|
|
154
|
-
score: number;
|
|
155
|
-
}
|
|
156
|
-
export declare namespace ScoredVectorStoreFile {
|
|
157
|
-
/**
|
|
158
|
-
* Scored text chunk for deprecated API.
|
|
159
|
-
*/
|
|
160
|
-
interface MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk {
|
|
161
|
-
/**
|
|
162
|
-
* position of the chunk in a file
|
|
163
|
-
*/
|
|
164
|
-
chunk_index: number;
|
|
165
|
-
/**
|
|
166
|
-
* mime type of the chunk
|
|
167
|
-
*/
|
|
168
|
-
mime_type?: string;
|
|
169
|
-
/**
|
|
170
|
-
* metadata of the chunk
|
|
171
|
-
*/
|
|
172
|
-
generated_metadata?: MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk.MarkdownChunkGeneratedMetadata | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk.TextChunkGeneratedMetadata | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk.PdfChunkGeneratedMetadata | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk.CodeChunkGeneratedMetadata | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk.AudioChunkGeneratedMetadata | null;
|
|
173
|
-
/**
|
|
174
|
-
* model used for this chunk
|
|
175
|
-
*/
|
|
176
|
-
model?: string | null;
|
|
177
|
-
/**
|
|
178
|
-
* score of the chunk
|
|
179
|
-
*/
|
|
180
|
-
score: number;
|
|
181
|
-
/**
|
|
182
|
-
* file id
|
|
183
|
-
*/
|
|
184
|
-
file_id: string;
|
|
185
|
-
/**
|
|
186
|
-
* filename
|
|
187
|
-
*/
|
|
188
|
-
filename: string;
|
|
189
|
-
/**
|
|
190
|
-
* store id
|
|
191
|
-
*/
|
|
192
|
-
vector_store_id: string;
|
|
193
|
-
/**
|
|
194
|
-
* file metadata
|
|
195
|
-
*/
|
|
196
|
-
metadata?: unknown;
|
|
197
|
-
/**
|
|
198
|
-
* Input type identifier
|
|
199
|
-
*/
|
|
200
|
-
type?: 'text';
|
|
201
|
-
/**
|
|
202
|
-
* The offset of the text in the file relative to the start of the file.
|
|
203
|
-
*/
|
|
204
|
-
offset?: number;
|
|
205
|
-
/**
|
|
206
|
-
* Text content to process
|
|
207
|
-
*/
|
|
208
|
-
text: string;
|
|
209
|
-
}
|
|
210
|
-
namespace MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk {
|
|
211
|
-
interface MarkdownChunkGeneratedMetadata {
|
|
212
|
-
type?: 'markdown';
|
|
213
|
-
file_type?: 'text/markdown';
|
|
214
|
-
language: string;
|
|
215
|
-
word_count: number;
|
|
216
|
-
file_size: number;
|
|
217
|
-
chunk_headings?: Array<MarkdownChunkGeneratedMetadata.ChunkHeading>;
|
|
218
|
-
heading_context?: Array<MarkdownChunkGeneratedMetadata.HeadingContext>;
|
|
219
|
-
start_line?: number;
|
|
220
|
-
num_lines?: number;
|
|
221
|
-
[k: string]: unknown;
|
|
222
|
-
}
|
|
223
|
-
namespace MarkdownChunkGeneratedMetadata {
|
|
224
|
-
interface ChunkHeading {
|
|
225
|
-
level: number;
|
|
226
|
-
text: string;
|
|
227
|
-
}
|
|
228
|
-
interface HeadingContext {
|
|
229
|
-
level: number;
|
|
230
|
-
text: string;
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
interface TextChunkGeneratedMetadata {
|
|
234
|
-
type?: 'text';
|
|
235
|
-
file_type?: 'text/plain';
|
|
236
|
-
language: string;
|
|
237
|
-
word_count: number;
|
|
238
|
-
file_size: number;
|
|
239
|
-
start_line?: number;
|
|
240
|
-
num_lines?: number;
|
|
241
|
-
[k: string]: unknown;
|
|
242
|
-
}
|
|
243
|
-
interface PdfChunkGeneratedMetadata {
|
|
244
|
-
type?: 'pdf';
|
|
245
|
-
file_type?: 'application/pdf';
|
|
246
|
-
total_pages: number;
|
|
247
|
-
total_size: number;
|
|
248
|
-
[k: string]: unknown;
|
|
249
|
-
}
|
|
250
|
-
interface CodeChunkGeneratedMetadata {
|
|
251
|
-
type?: 'code';
|
|
252
|
-
file_type: string;
|
|
253
|
-
language: string;
|
|
254
|
-
word_count: number;
|
|
255
|
-
file_size: number;
|
|
256
|
-
start_line?: number;
|
|
257
|
-
num_lines?: number;
|
|
258
|
-
[k: string]: unknown;
|
|
259
|
-
}
|
|
260
|
-
interface AudioChunkGeneratedMetadata {
|
|
261
|
-
type?: 'audio';
|
|
262
|
-
file_type: string;
|
|
263
|
-
file_size: number;
|
|
264
|
-
total_duration_seconds: number;
|
|
265
|
-
sample_rate: number;
|
|
266
|
-
channels: number;
|
|
267
|
-
audio_format: number;
|
|
268
|
-
[k: string]: unknown;
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
/**
|
|
272
|
-
* Scored image chunk for deprecated API.
|
|
273
|
-
*/
|
|
274
|
-
interface MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredImageURLInputChunk {
|
|
275
|
-
/**
|
|
276
|
-
* position of the chunk in a file
|
|
277
|
-
*/
|
|
278
|
-
chunk_index: number;
|
|
279
|
-
/**
|
|
280
|
-
* mime type of the chunk
|
|
281
|
-
*/
|
|
282
|
-
mime_type?: string;
|
|
283
|
-
/**
|
|
284
|
-
* metadata of the chunk
|
|
285
|
-
*/
|
|
286
|
-
generated_metadata?: MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredImageURLInputChunk.MarkdownChunkGeneratedMetadata | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredImageURLInputChunk.TextChunkGeneratedMetadata | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredImageURLInputChunk.PdfChunkGeneratedMetadata | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredImageURLInputChunk.CodeChunkGeneratedMetadata | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredImageURLInputChunk.AudioChunkGeneratedMetadata | null;
|
|
287
|
-
/**
|
|
288
|
-
* model used for this chunk
|
|
289
|
-
*/
|
|
290
|
-
model?: string | null;
|
|
291
|
-
/**
|
|
292
|
-
* score of the chunk
|
|
293
|
-
*/
|
|
294
|
-
score: number;
|
|
295
|
-
/**
|
|
296
|
-
* file id
|
|
297
|
-
*/
|
|
298
|
-
file_id: string;
|
|
299
|
-
/**
|
|
300
|
-
* filename
|
|
301
|
-
*/
|
|
302
|
-
filename: string;
|
|
303
|
-
/**
|
|
304
|
-
* store id
|
|
305
|
-
*/
|
|
306
|
-
vector_store_id: string;
|
|
307
|
-
/**
|
|
308
|
-
* file metadata
|
|
309
|
-
*/
|
|
310
|
-
metadata?: unknown;
|
|
311
|
-
/**
|
|
312
|
-
* Input type identifier
|
|
313
|
-
*/
|
|
314
|
-
type?: 'image_url';
|
|
315
|
-
/**
|
|
316
|
-
* ocr text of the image
|
|
317
|
-
*/
|
|
318
|
-
ocr_text?: string | null;
|
|
319
|
-
/**
|
|
320
|
-
* summary of the image
|
|
321
|
-
*/
|
|
322
|
-
summary?: string | null;
|
|
323
|
-
/**
|
|
324
|
-
* The image input specification.
|
|
325
|
-
*/
|
|
326
|
-
image_url: MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredImageURLInputChunk.ImageURL;
|
|
327
|
-
}
|
|
328
|
-
namespace MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredImageURLInputChunk {
|
|
329
|
-
interface MarkdownChunkGeneratedMetadata {
|
|
330
|
-
type?: 'markdown';
|
|
331
|
-
file_type?: 'text/markdown';
|
|
332
|
-
language: string;
|
|
333
|
-
word_count: number;
|
|
334
|
-
file_size: number;
|
|
335
|
-
chunk_headings?: Array<MarkdownChunkGeneratedMetadata.ChunkHeading>;
|
|
336
|
-
heading_context?: Array<MarkdownChunkGeneratedMetadata.HeadingContext>;
|
|
337
|
-
start_line?: number;
|
|
338
|
-
num_lines?: number;
|
|
339
|
-
[k: string]: unknown;
|
|
340
|
-
}
|
|
341
|
-
namespace MarkdownChunkGeneratedMetadata {
|
|
342
|
-
interface ChunkHeading {
|
|
343
|
-
level: number;
|
|
344
|
-
text: string;
|
|
345
|
-
}
|
|
346
|
-
interface HeadingContext {
|
|
347
|
-
level: number;
|
|
348
|
-
text: string;
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
interface TextChunkGeneratedMetadata {
|
|
352
|
-
type?: 'text';
|
|
353
|
-
file_type?: 'text/plain';
|
|
354
|
-
language: string;
|
|
355
|
-
word_count: number;
|
|
356
|
-
file_size: number;
|
|
357
|
-
start_line?: number;
|
|
358
|
-
num_lines?: number;
|
|
359
|
-
[k: string]: unknown;
|
|
360
|
-
}
|
|
361
|
-
interface PdfChunkGeneratedMetadata {
|
|
362
|
-
type?: 'pdf';
|
|
363
|
-
file_type?: 'application/pdf';
|
|
364
|
-
total_pages: number;
|
|
365
|
-
total_size: number;
|
|
366
|
-
[k: string]: unknown;
|
|
367
|
-
}
|
|
368
|
-
interface CodeChunkGeneratedMetadata {
|
|
369
|
-
type?: 'code';
|
|
370
|
-
file_type: string;
|
|
371
|
-
language: string;
|
|
372
|
-
word_count: number;
|
|
373
|
-
file_size: number;
|
|
374
|
-
start_line?: number;
|
|
375
|
-
num_lines?: number;
|
|
376
|
-
[k: string]: unknown;
|
|
377
|
-
}
|
|
378
|
-
interface AudioChunkGeneratedMetadata {
|
|
379
|
-
type?: 'audio';
|
|
380
|
-
file_type: string;
|
|
381
|
-
file_size: number;
|
|
382
|
-
total_duration_seconds: number;
|
|
383
|
-
sample_rate: number;
|
|
384
|
-
channels: number;
|
|
385
|
-
audio_format: number;
|
|
386
|
-
[k: string]: unknown;
|
|
387
|
-
}
|
|
388
|
-
/**
|
|
389
|
-
* The image input specification.
|
|
390
|
-
*/
|
|
391
|
-
interface ImageURL {
|
|
392
|
-
/**
|
|
393
|
-
* The image URL. Can be either a URL or a Data URI.
|
|
394
|
-
*/
|
|
395
|
-
url: string;
|
|
396
|
-
/**
|
|
397
|
-
* The image format/mimetype
|
|
398
|
-
*/
|
|
399
|
-
format?: string;
|
|
400
|
-
}
|
|
401
|
-
}
|
|
402
|
-
/**
|
|
403
|
-
* Scored audio chunk for deprecated API.
|
|
404
|
-
*/
|
|
405
|
-
interface MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredAudioURLInputChunk {
|
|
406
|
-
/**
|
|
407
|
-
* position of the chunk in a file
|
|
408
|
-
*/
|
|
409
|
-
chunk_index: number;
|
|
410
|
-
/**
|
|
411
|
-
* mime type of the chunk
|
|
412
|
-
*/
|
|
413
|
-
mime_type?: string;
|
|
414
|
-
/**
|
|
415
|
-
* metadata of the chunk
|
|
416
|
-
*/
|
|
417
|
-
generated_metadata?: MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredAudioURLInputChunk.MarkdownChunkGeneratedMetadata | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredAudioURLInputChunk.TextChunkGeneratedMetadata | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredAudioURLInputChunk.PdfChunkGeneratedMetadata | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredAudioURLInputChunk.CodeChunkGeneratedMetadata | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredAudioURLInputChunk.AudioChunkGeneratedMetadata | null;
|
|
418
|
-
/**
|
|
419
|
-
* model used for this chunk
|
|
420
|
-
*/
|
|
421
|
-
model?: string | null;
|
|
422
|
-
/**
|
|
423
|
-
* score of the chunk
|
|
424
|
-
*/
|
|
425
|
-
score: number;
|
|
426
|
-
/**
|
|
427
|
-
* file id
|
|
428
|
-
*/
|
|
429
|
-
file_id: string;
|
|
430
|
-
/**
|
|
431
|
-
* filename
|
|
432
|
-
*/
|
|
433
|
-
filename: string;
|
|
434
|
-
/**
|
|
435
|
-
* store id
|
|
436
|
-
*/
|
|
437
|
-
vector_store_id: string;
|
|
438
|
-
/**
|
|
439
|
-
* file metadata
|
|
440
|
-
*/
|
|
441
|
-
metadata?: unknown;
|
|
442
|
-
/**
|
|
443
|
-
* Input type identifier
|
|
444
|
-
*/
|
|
445
|
-
type?: 'audio_url';
|
|
446
|
-
/**
|
|
447
|
-
* speech recognition (sr) text of the audio
|
|
448
|
-
*/
|
|
449
|
-
transcription?: string | null;
|
|
450
|
-
/**
|
|
451
|
-
* summary of the audio
|
|
452
|
-
*/
|
|
453
|
-
summary?: string | null;
|
|
454
|
-
/**
|
|
455
|
-
* The audio input specification.
|
|
456
|
-
*/
|
|
457
|
-
audio_url: MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredAudioURLInputChunk.AudioURL;
|
|
458
|
-
/**
|
|
459
|
-
* The sampling rate of the audio.
|
|
460
|
-
*/
|
|
461
|
-
sampling_rate: number;
|
|
462
|
-
}
|
|
463
|
-
namespace MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredAudioURLInputChunk {
|
|
464
|
-
interface MarkdownChunkGeneratedMetadata {
|
|
465
|
-
type?: 'markdown';
|
|
466
|
-
file_type?: 'text/markdown';
|
|
467
|
-
language: string;
|
|
468
|
-
word_count: number;
|
|
469
|
-
file_size: number;
|
|
470
|
-
chunk_headings?: Array<MarkdownChunkGeneratedMetadata.ChunkHeading>;
|
|
471
|
-
heading_context?: Array<MarkdownChunkGeneratedMetadata.HeadingContext>;
|
|
472
|
-
start_line?: number;
|
|
473
|
-
num_lines?: number;
|
|
474
|
-
[k: string]: unknown;
|
|
475
|
-
}
|
|
476
|
-
namespace MarkdownChunkGeneratedMetadata {
|
|
477
|
-
interface ChunkHeading {
|
|
478
|
-
level: number;
|
|
479
|
-
text: string;
|
|
480
|
-
}
|
|
481
|
-
interface HeadingContext {
|
|
482
|
-
level: number;
|
|
483
|
-
text: string;
|
|
484
|
-
}
|
|
485
|
-
}
|
|
486
|
-
interface TextChunkGeneratedMetadata {
|
|
487
|
-
type?: 'text';
|
|
488
|
-
file_type?: 'text/plain';
|
|
489
|
-
language: string;
|
|
490
|
-
word_count: number;
|
|
491
|
-
file_size: number;
|
|
492
|
-
start_line?: number;
|
|
493
|
-
num_lines?: number;
|
|
494
|
-
[k: string]: unknown;
|
|
495
|
-
}
|
|
496
|
-
interface PdfChunkGeneratedMetadata {
|
|
497
|
-
type?: 'pdf';
|
|
498
|
-
file_type?: 'application/pdf';
|
|
499
|
-
total_pages: number;
|
|
500
|
-
total_size: number;
|
|
501
|
-
[k: string]: unknown;
|
|
502
|
-
}
|
|
503
|
-
interface CodeChunkGeneratedMetadata {
|
|
504
|
-
type?: 'code';
|
|
505
|
-
file_type: string;
|
|
506
|
-
language: string;
|
|
507
|
-
word_count: number;
|
|
508
|
-
file_size: number;
|
|
509
|
-
start_line?: number;
|
|
510
|
-
num_lines?: number;
|
|
511
|
-
[k: string]: unknown;
|
|
512
|
-
}
|
|
513
|
-
interface AudioChunkGeneratedMetadata {
|
|
514
|
-
type?: 'audio';
|
|
515
|
-
file_type: string;
|
|
516
|
-
file_size: number;
|
|
517
|
-
total_duration_seconds: number;
|
|
518
|
-
sample_rate: number;
|
|
519
|
-
channels: number;
|
|
520
|
-
audio_format: number;
|
|
521
|
-
[k: string]: unknown;
|
|
522
|
-
}
|
|
523
|
-
/**
|
|
524
|
-
* The audio input specification.
|
|
525
|
-
*/
|
|
526
|
-
interface AudioURL {
|
|
527
|
-
/**
|
|
528
|
-
* The audio URL. Can be either a URL or a Data URI.
|
|
529
|
-
*/
|
|
530
|
-
url: string;
|
|
531
|
-
}
|
|
532
|
-
}
|
|
533
|
-
/**
|
|
534
|
-
* Scored video chunk for deprecated API.
|
|
535
|
-
*/
|
|
536
|
-
interface MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredVideoURLInputChunk {
|
|
537
|
-
/**
|
|
538
|
-
* position of the chunk in a file
|
|
539
|
-
*/
|
|
540
|
-
chunk_index: number;
|
|
541
|
-
/**
|
|
542
|
-
* mime type of the chunk
|
|
543
|
-
*/
|
|
544
|
-
mime_type?: string;
|
|
545
|
-
/**
|
|
546
|
-
* metadata of the chunk
|
|
547
|
-
*/
|
|
548
|
-
generated_metadata?: MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredVideoURLInputChunk.MarkdownChunkGeneratedMetadata | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredVideoURLInputChunk.TextChunkGeneratedMetadata | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredVideoURLInputChunk.PdfChunkGeneratedMetadata | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredVideoURLInputChunk.CodeChunkGeneratedMetadata | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredVideoURLInputChunk.AudioChunkGeneratedMetadata | null;
|
|
549
|
-
/**
|
|
550
|
-
* model used for this chunk
|
|
551
|
-
*/
|
|
552
|
-
model?: string | null;
|
|
553
|
-
/**
|
|
554
|
-
* score of the chunk
|
|
555
|
-
*/
|
|
556
|
-
score: number;
|
|
557
|
-
/**
|
|
558
|
-
* file id
|
|
559
|
-
*/
|
|
560
|
-
file_id: string;
|
|
561
|
-
/**
|
|
562
|
-
* filename
|
|
563
|
-
*/
|
|
564
|
-
filename: string;
|
|
565
|
-
/**
|
|
566
|
-
* store id
|
|
567
|
-
*/
|
|
568
|
-
vector_store_id: string;
|
|
569
|
-
/**
|
|
570
|
-
* file metadata
|
|
571
|
-
*/
|
|
572
|
-
metadata?: unknown;
|
|
573
|
-
/**
|
|
574
|
-
* Input type identifier
|
|
575
|
-
*/
|
|
576
|
-
type?: 'video_url';
|
|
577
|
-
/**
|
|
578
|
-
* speech recognition (sr) text of the video
|
|
579
|
-
*/
|
|
580
|
-
transcription?: string | null;
|
|
581
|
-
/**
|
|
582
|
-
* summary of the video
|
|
583
|
-
*/
|
|
584
|
-
summary?: string | null;
|
|
585
|
-
/**
|
|
586
|
-
* The video input specification.
|
|
587
|
-
*/
|
|
588
|
-
video_url: MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredVideoURLInputChunk.VideoURL;
|
|
589
|
-
}
|
|
590
|
-
namespace MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredVideoURLInputChunk {
|
|
591
|
-
interface MarkdownChunkGeneratedMetadata {
|
|
592
|
-
type?: 'markdown';
|
|
593
|
-
file_type?: 'text/markdown';
|
|
594
|
-
language: string;
|
|
595
|
-
word_count: number;
|
|
596
|
-
file_size: number;
|
|
597
|
-
chunk_headings?: Array<MarkdownChunkGeneratedMetadata.ChunkHeading>;
|
|
598
|
-
heading_context?: Array<MarkdownChunkGeneratedMetadata.HeadingContext>;
|
|
599
|
-
start_line?: number;
|
|
600
|
-
num_lines?: number;
|
|
601
|
-
[k: string]: unknown;
|
|
602
|
-
}
|
|
603
|
-
namespace MarkdownChunkGeneratedMetadata {
|
|
604
|
-
interface ChunkHeading {
|
|
605
|
-
level: number;
|
|
606
|
-
text: string;
|
|
607
|
-
}
|
|
608
|
-
interface HeadingContext {
|
|
609
|
-
level: number;
|
|
610
|
-
text: string;
|
|
611
|
-
}
|
|
612
|
-
}
|
|
613
|
-
interface TextChunkGeneratedMetadata {
|
|
614
|
-
type?: 'text';
|
|
615
|
-
file_type?: 'text/plain';
|
|
616
|
-
language: string;
|
|
617
|
-
word_count: number;
|
|
618
|
-
file_size: number;
|
|
619
|
-
start_line?: number;
|
|
620
|
-
num_lines?: number;
|
|
621
|
-
[k: string]: unknown;
|
|
622
|
-
}
|
|
623
|
-
interface PdfChunkGeneratedMetadata {
|
|
624
|
-
type?: 'pdf';
|
|
625
|
-
file_type?: 'application/pdf';
|
|
626
|
-
total_pages: number;
|
|
627
|
-
total_size: number;
|
|
628
|
-
[k: string]: unknown;
|
|
629
|
-
}
|
|
630
|
-
interface CodeChunkGeneratedMetadata {
|
|
631
|
-
type?: 'code';
|
|
632
|
-
file_type: string;
|
|
633
|
-
language: string;
|
|
634
|
-
word_count: number;
|
|
635
|
-
file_size: number;
|
|
636
|
-
start_line?: number;
|
|
637
|
-
num_lines?: number;
|
|
638
|
-
[k: string]: unknown;
|
|
639
|
-
}
|
|
640
|
-
interface AudioChunkGeneratedMetadata {
|
|
641
|
-
type?: 'audio';
|
|
642
|
-
file_type: string;
|
|
643
|
-
file_size: number;
|
|
644
|
-
total_duration_seconds: number;
|
|
645
|
-
sample_rate: number;
|
|
646
|
-
channels: number;
|
|
647
|
-
audio_format: number;
|
|
648
|
-
[k: string]: unknown;
|
|
649
|
-
}
|
|
650
|
-
/**
|
|
651
|
-
* The video input specification.
|
|
652
|
-
*/
|
|
653
|
-
interface VideoURL {
|
|
654
|
-
/**
|
|
655
|
-
* The video URL. Can be either a URL or a Data URI.
|
|
656
|
-
*/
|
|
657
|
-
url: string;
|
|
658
|
-
}
|
|
659
|
-
}
|
|
660
|
-
}
|
|
661
|
-
export type VectorStoreFileStatus = 'pending' | 'in_progress' | 'cancelled' | 'completed' | 'failed';
|
|
662
|
-
/**
|
|
663
|
-
* Represents a file stored in a store.
|
|
664
|
-
*/
|
|
665
|
-
export interface VectorStoreFile {
|
|
666
|
-
/**
|
|
667
|
-
* Unique identifier for the file
|
|
668
|
-
*/
|
|
669
|
-
id: string;
|
|
670
|
-
/**
|
|
671
|
-
* Name of the file
|
|
672
|
-
*/
|
|
673
|
-
filename?: string;
|
|
674
|
-
/**
|
|
675
|
-
* Optional file metadata
|
|
676
|
-
*/
|
|
677
|
-
metadata?: unknown;
|
|
678
|
-
/**
|
|
679
|
-
* Processing status of the file
|
|
680
|
-
*/
|
|
681
|
-
status?: FilesAPI.StoreFileStatus;
|
|
682
|
-
/**
|
|
683
|
-
* Last error message if processing failed
|
|
684
|
-
*/
|
|
685
|
-
last_error?: unknown;
|
|
686
|
-
/**
|
|
687
|
-
* ID of the containing store
|
|
688
|
-
*/
|
|
689
|
-
vector_store_id: string;
|
|
690
|
-
/**
|
|
691
|
-
* Timestamp of store file creation
|
|
692
|
-
*/
|
|
693
|
-
created_at: string;
|
|
694
|
-
/**
|
|
695
|
-
* Version number of the file
|
|
696
|
-
*/
|
|
697
|
-
version?: number | null;
|
|
698
|
-
/**
|
|
699
|
-
* Storage usage in bytes
|
|
700
|
-
*/
|
|
701
|
-
usage_bytes?: number | null;
|
|
702
|
-
/**
|
|
703
|
-
* Type of the object
|
|
704
|
-
*/
|
|
705
|
-
object?: 'vector_store.file';
|
|
706
|
-
/**
|
|
707
|
-
* chunks
|
|
708
|
-
*/
|
|
709
|
-
chunks?: Array<VectorStoreFile.TextInputChunk | VectorStoreFile.ImageURLInputChunk | VectorStoreFile.AudioURLInputChunk | VectorStoreFile.VideoURLInputChunk> | null;
|
|
710
|
-
}
|
|
711
|
-
export declare namespace VectorStoreFile {
|
|
712
|
-
interface TextInputChunk {
|
|
713
|
-
/**
|
|
714
|
-
* position of the chunk in a file
|
|
715
|
-
*/
|
|
716
|
-
chunk_index: number;
|
|
717
|
-
/**
|
|
718
|
-
* mime type of the chunk
|
|
719
|
-
*/
|
|
720
|
-
mime_type?: string;
|
|
721
|
-
/**
|
|
722
|
-
* metadata of the chunk
|
|
723
|
-
*/
|
|
724
|
-
generated_metadata?: TextInputChunk.MarkdownChunkGeneratedMetadata | TextInputChunk.TextChunkGeneratedMetadata | TextInputChunk.PdfChunkGeneratedMetadata | TextInputChunk.CodeChunkGeneratedMetadata | TextInputChunk.AudioChunkGeneratedMetadata | null;
|
|
725
|
-
/**
|
|
726
|
-
* model used for this chunk
|
|
727
|
-
*/
|
|
728
|
-
model?: string | null;
|
|
729
|
-
/**
|
|
730
|
-
* Input type identifier
|
|
731
|
-
*/
|
|
732
|
-
type?: 'text';
|
|
733
|
-
/**
|
|
734
|
-
* The offset of the text in the file relative to the start of the file.
|
|
735
|
-
*/
|
|
736
|
-
offset?: number;
|
|
737
|
-
/**
|
|
738
|
-
* Text content to process
|
|
739
|
-
*/
|
|
740
|
-
text: string;
|
|
741
|
-
}
|
|
742
|
-
namespace TextInputChunk {
|
|
743
|
-
interface MarkdownChunkGeneratedMetadata {
|
|
744
|
-
type?: 'markdown';
|
|
745
|
-
file_type?: 'text/markdown';
|
|
746
|
-
language: string;
|
|
747
|
-
word_count: number;
|
|
748
|
-
file_size: number;
|
|
749
|
-
chunk_headings?: Array<MarkdownChunkGeneratedMetadata.ChunkHeading>;
|
|
750
|
-
heading_context?: Array<MarkdownChunkGeneratedMetadata.HeadingContext>;
|
|
751
|
-
start_line?: number;
|
|
752
|
-
num_lines?: number;
|
|
753
|
-
[k: string]: unknown;
|
|
754
|
-
}
|
|
755
|
-
namespace MarkdownChunkGeneratedMetadata {
|
|
756
|
-
interface ChunkHeading {
|
|
757
|
-
level: number;
|
|
758
|
-
text: string;
|
|
759
|
-
}
|
|
760
|
-
interface HeadingContext {
|
|
761
|
-
level: number;
|
|
762
|
-
text: string;
|
|
763
|
-
}
|
|
764
|
-
}
|
|
765
|
-
interface TextChunkGeneratedMetadata {
|
|
766
|
-
type?: 'text';
|
|
767
|
-
file_type?: 'text/plain';
|
|
768
|
-
language: string;
|
|
769
|
-
word_count: number;
|
|
770
|
-
file_size: number;
|
|
771
|
-
start_line?: number;
|
|
772
|
-
num_lines?: number;
|
|
773
|
-
[k: string]: unknown;
|
|
774
|
-
}
|
|
775
|
-
interface PdfChunkGeneratedMetadata {
|
|
776
|
-
type?: 'pdf';
|
|
777
|
-
file_type?: 'application/pdf';
|
|
778
|
-
total_pages: number;
|
|
779
|
-
total_size: number;
|
|
780
|
-
[k: string]: unknown;
|
|
781
|
-
}
|
|
782
|
-
interface CodeChunkGeneratedMetadata {
|
|
783
|
-
type?: 'code';
|
|
784
|
-
file_type: string;
|
|
785
|
-
language: string;
|
|
786
|
-
word_count: number;
|
|
787
|
-
file_size: number;
|
|
788
|
-
start_line?: number;
|
|
789
|
-
num_lines?: number;
|
|
790
|
-
[k: string]: unknown;
|
|
791
|
-
}
|
|
792
|
-
interface AudioChunkGeneratedMetadata {
|
|
793
|
-
type?: 'audio';
|
|
794
|
-
file_type: string;
|
|
795
|
-
file_size: number;
|
|
796
|
-
total_duration_seconds: number;
|
|
797
|
-
sample_rate: number;
|
|
798
|
-
channels: number;
|
|
799
|
-
audio_format: number;
|
|
800
|
-
[k: string]: unknown;
|
|
801
|
-
}
|
|
802
|
-
}
|
|
803
|
-
interface ImageURLInputChunk {
|
|
804
|
-
/**
|
|
805
|
-
* position of the chunk in a file
|
|
806
|
-
*/
|
|
807
|
-
chunk_index: number;
|
|
808
|
-
/**
|
|
809
|
-
* mime type of the chunk
|
|
810
|
-
*/
|
|
811
|
-
mime_type?: string;
|
|
812
|
-
/**
|
|
813
|
-
* metadata of the chunk
|
|
814
|
-
*/
|
|
815
|
-
generated_metadata?: ImageURLInputChunk.MarkdownChunkGeneratedMetadata | ImageURLInputChunk.TextChunkGeneratedMetadata | ImageURLInputChunk.PdfChunkGeneratedMetadata | ImageURLInputChunk.CodeChunkGeneratedMetadata | ImageURLInputChunk.AudioChunkGeneratedMetadata | null;
|
|
816
|
-
/**
|
|
817
|
-
* model used for this chunk
|
|
818
|
-
*/
|
|
819
|
-
model?: string | null;
|
|
820
|
-
/**
|
|
821
|
-
* Input type identifier
|
|
822
|
-
*/
|
|
823
|
-
type?: 'image_url';
|
|
824
|
-
/**
|
|
825
|
-
* ocr text of the image
|
|
826
|
-
*/
|
|
827
|
-
ocr_text?: string | null;
|
|
828
|
-
/**
|
|
829
|
-
* summary of the image
|
|
830
|
-
*/
|
|
831
|
-
summary?: string | null;
|
|
832
|
-
/**
|
|
833
|
-
* The image input specification.
|
|
834
|
-
*/
|
|
835
|
-
image_url: ImageURLInputChunk.ImageURL;
|
|
836
|
-
}
|
|
837
|
-
namespace ImageURLInputChunk {
|
|
838
|
-
interface MarkdownChunkGeneratedMetadata {
|
|
839
|
-
type?: 'markdown';
|
|
840
|
-
file_type?: 'text/markdown';
|
|
841
|
-
language: string;
|
|
842
|
-
word_count: number;
|
|
843
|
-
file_size: number;
|
|
844
|
-
chunk_headings?: Array<MarkdownChunkGeneratedMetadata.ChunkHeading>;
|
|
845
|
-
heading_context?: Array<MarkdownChunkGeneratedMetadata.HeadingContext>;
|
|
846
|
-
start_line?: number;
|
|
847
|
-
num_lines?: number;
|
|
848
|
-
[k: string]: unknown;
|
|
849
|
-
}
|
|
850
|
-
namespace MarkdownChunkGeneratedMetadata {
|
|
851
|
-
interface ChunkHeading {
|
|
852
|
-
level: number;
|
|
853
|
-
text: string;
|
|
854
|
-
}
|
|
855
|
-
interface HeadingContext {
|
|
856
|
-
level: number;
|
|
857
|
-
text: string;
|
|
858
|
-
}
|
|
859
|
-
}
|
|
860
|
-
interface TextChunkGeneratedMetadata {
|
|
861
|
-
type?: 'text';
|
|
862
|
-
file_type?: 'text/plain';
|
|
863
|
-
language: string;
|
|
864
|
-
word_count: number;
|
|
865
|
-
file_size: number;
|
|
866
|
-
start_line?: number;
|
|
867
|
-
num_lines?: number;
|
|
868
|
-
[k: string]: unknown;
|
|
869
|
-
}
|
|
870
|
-
interface PdfChunkGeneratedMetadata {
|
|
871
|
-
type?: 'pdf';
|
|
872
|
-
file_type?: 'application/pdf';
|
|
873
|
-
total_pages: number;
|
|
874
|
-
total_size: number;
|
|
875
|
-
[k: string]: unknown;
|
|
876
|
-
}
|
|
877
|
-
interface CodeChunkGeneratedMetadata {
|
|
878
|
-
type?: 'code';
|
|
879
|
-
file_type: string;
|
|
880
|
-
language: string;
|
|
881
|
-
word_count: number;
|
|
882
|
-
file_size: number;
|
|
883
|
-
start_line?: number;
|
|
884
|
-
num_lines?: number;
|
|
885
|
-
[k: string]: unknown;
|
|
886
|
-
}
|
|
887
|
-
interface AudioChunkGeneratedMetadata {
|
|
888
|
-
type?: 'audio';
|
|
889
|
-
file_type: string;
|
|
890
|
-
file_size: number;
|
|
891
|
-
total_duration_seconds: number;
|
|
892
|
-
sample_rate: number;
|
|
893
|
-
channels: number;
|
|
894
|
-
audio_format: number;
|
|
895
|
-
[k: string]: unknown;
|
|
896
|
-
}
|
|
897
|
-
/**
|
|
898
|
-
* The image input specification.
|
|
899
|
-
*/
|
|
900
|
-
interface ImageURL {
|
|
901
|
-
/**
|
|
902
|
-
* The image URL. Can be either a URL or a Data URI.
|
|
903
|
-
*/
|
|
904
|
-
url: string;
|
|
905
|
-
/**
|
|
906
|
-
* The image format/mimetype
|
|
907
|
-
*/
|
|
908
|
-
format?: string;
|
|
909
|
-
}
|
|
910
|
-
}
|
|
911
|
-
interface AudioURLInputChunk {
|
|
912
|
-
/**
|
|
913
|
-
* position of the chunk in a file
|
|
914
|
-
*/
|
|
915
|
-
chunk_index: number;
|
|
916
|
-
/**
|
|
917
|
-
* mime type of the chunk
|
|
918
|
-
*/
|
|
919
|
-
mime_type?: string;
|
|
920
|
-
/**
|
|
921
|
-
* metadata of the chunk
|
|
922
|
-
*/
|
|
923
|
-
generated_metadata?: AudioURLInputChunk.MarkdownChunkGeneratedMetadata | AudioURLInputChunk.TextChunkGeneratedMetadata | AudioURLInputChunk.PdfChunkGeneratedMetadata | AudioURLInputChunk.CodeChunkGeneratedMetadata | AudioURLInputChunk.AudioChunkGeneratedMetadata | null;
|
|
924
|
-
/**
|
|
925
|
-
* model used for this chunk
|
|
926
|
-
*/
|
|
927
|
-
model?: string | null;
|
|
928
|
-
/**
|
|
929
|
-
* Input type identifier
|
|
930
|
-
*/
|
|
931
|
-
type?: 'audio_url';
|
|
932
|
-
/**
|
|
933
|
-
* speech recognition (sr) text of the audio
|
|
934
|
-
*/
|
|
935
|
-
transcription?: string | null;
|
|
936
|
-
/**
|
|
937
|
-
* summary of the audio
|
|
938
|
-
*/
|
|
939
|
-
summary?: string | null;
|
|
940
|
-
/**
|
|
941
|
-
* The audio input specification.
|
|
942
|
-
*/
|
|
943
|
-
audio_url: AudioURLInputChunk.AudioURL;
|
|
944
|
-
/**
|
|
945
|
-
* The sampling rate of the audio.
|
|
946
|
-
*/
|
|
947
|
-
sampling_rate: number;
|
|
948
|
-
}
|
|
949
|
-
namespace AudioURLInputChunk {
|
|
950
|
-
interface MarkdownChunkGeneratedMetadata {
|
|
951
|
-
type?: 'markdown';
|
|
952
|
-
file_type?: 'text/markdown';
|
|
953
|
-
language: string;
|
|
954
|
-
word_count: number;
|
|
955
|
-
file_size: number;
|
|
956
|
-
chunk_headings?: Array<MarkdownChunkGeneratedMetadata.ChunkHeading>;
|
|
957
|
-
heading_context?: Array<MarkdownChunkGeneratedMetadata.HeadingContext>;
|
|
958
|
-
start_line?: number;
|
|
959
|
-
num_lines?: number;
|
|
960
|
-
[k: string]: unknown;
|
|
961
|
-
}
|
|
962
|
-
namespace MarkdownChunkGeneratedMetadata {
|
|
963
|
-
interface ChunkHeading {
|
|
964
|
-
level: number;
|
|
965
|
-
text: string;
|
|
966
|
-
}
|
|
967
|
-
interface HeadingContext {
|
|
968
|
-
level: number;
|
|
969
|
-
text: string;
|
|
970
|
-
}
|
|
971
|
-
}
|
|
972
|
-
interface TextChunkGeneratedMetadata {
|
|
973
|
-
type?: 'text';
|
|
974
|
-
file_type?: 'text/plain';
|
|
975
|
-
language: string;
|
|
976
|
-
word_count: number;
|
|
977
|
-
file_size: number;
|
|
978
|
-
start_line?: number;
|
|
979
|
-
num_lines?: number;
|
|
980
|
-
[k: string]: unknown;
|
|
981
|
-
}
|
|
982
|
-
interface PdfChunkGeneratedMetadata {
|
|
983
|
-
type?: 'pdf';
|
|
984
|
-
file_type?: 'application/pdf';
|
|
985
|
-
total_pages: number;
|
|
986
|
-
total_size: number;
|
|
987
|
-
[k: string]: unknown;
|
|
988
|
-
}
|
|
989
|
-
interface CodeChunkGeneratedMetadata {
|
|
990
|
-
type?: 'code';
|
|
991
|
-
file_type: string;
|
|
992
|
-
language: string;
|
|
993
|
-
word_count: number;
|
|
994
|
-
file_size: number;
|
|
995
|
-
start_line?: number;
|
|
996
|
-
num_lines?: number;
|
|
997
|
-
[k: string]: unknown;
|
|
998
|
-
}
|
|
999
|
-
interface AudioChunkGeneratedMetadata {
|
|
1000
|
-
type?: 'audio';
|
|
1001
|
-
file_type: string;
|
|
1002
|
-
file_size: number;
|
|
1003
|
-
total_duration_seconds: number;
|
|
1004
|
-
sample_rate: number;
|
|
1005
|
-
channels: number;
|
|
1006
|
-
audio_format: number;
|
|
1007
|
-
[k: string]: unknown;
|
|
1008
|
-
}
|
|
1009
|
-
/**
|
|
1010
|
-
* The audio input specification.
|
|
1011
|
-
*/
|
|
1012
|
-
interface AudioURL {
|
|
1013
|
-
/**
|
|
1014
|
-
* The audio URL. Can be either a URL or a Data URI.
|
|
1015
|
-
*/
|
|
1016
|
-
url: string;
|
|
1017
|
-
}
|
|
1018
|
-
}
|
|
1019
|
-
interface VideoURLInputChunk {
|
|
1020
|
-
/**
|
|
1021
|
-
* position of the chunk in a file
|
|
1022
|
-
*/
|
|
1023
|
-
chunk_index: number;
|
|
1024
|
-
/**
|
|
1025
|
-
* mime type of the chunk
|
|
1026
|
-
*/
|
|
1027
|
-
mime_type?: string;
|
|
1028
|
-
/**
|
|
1029
|
-
* metadata of the chunk
|
|
1030
|
-
*/
|
|
1031
|
-
generated_metadata?: VideoURLInputChunk.MarkdownChunkGeneratedMetadata | VideoURLInputChunk.TextChunkGeneratedMetadata | VideoURLInputChunk.PdfChunkGeneratedMetadata | VideoURLInputChunk.CodeChunkGeneratedMetadata | VideoURLInputChunk.AudioChunkGeneratedMetadata | null;
|
|
1032
|
-
/**
|
|
1033
|
-
* model used for this chunk
|
|
1034
|
-
*/
|
|
1035
|
-
model?: string | null;
|
|
1036
|
-
/**
|
|
1037
|
-
* Input type identifier
|
|
1038
|
-
*/
|
|
1039
|
-
type?: 'video_url';
|
|
1040
|
-
/**
|
|
1041
|
-
* speech recognition (sr) text of the video
|
|
1042
|
-
*/
|
|
1043
|
-
transcription?: string | null;
|
|
1044
|
-
/**
|
|
1045
|
-
* summary of the video
|
|
1046
|
-
*/
|
|
1047
|
-
summary?: string | null;
|
|
1048
|
-
/**
|
|
1049
|
-
* The video input specification.
|
|
1050
|
-
*/
|
|
1051
|
-
video_url: VideoURLInputChunk.VideoURL;
|
|
1052
|
-
}
|
|
1053
|
-
namespace VideoURLInputChunk {
|
|
1054
|
-
interface MarkdownChunkGeneratedMetadata {
|
|
1055
|
-
type?: 'markdown';
|
|
1056
|
-
file_type?: 'text/markdown';
|
|
1057
|
-
language: string;
|
|
1058
|
-
word_count: number;
|
|
1059
|
-
file_size: number;
|
|
1060
|
-
chunk_headings?: Array<MarkdownChunkGeneratedMetadata.ChunkHeading>;
|
|
1061
|
-
heading_context?: Array<MarkdownChunkGeneratedMetadata.HeadingContext>;
|
|
1062
|
-
start_line?: number;
|
|
1063
|
-
num_lines?: number;
|
|
1064
|
-
[k: string]: unknown;
|
|
1065
|
-
}
|
|
1066
|
-
namespace MarkdownChunkGeneratedMetadata {
|
|
1067
|
-
interface ChunkHeading {
|
|
1068
|
-
level: number;
|
|
1069
|
-
text: string;
|
|
1070
|
-
}
|
|
1071
|
-
interface HeadingContext {
|
|
1072
|
-
level: number;
|
|
1073
|
-
text: string;
|
|
1074
|
-
}
|
|
1075
|
-
}
|
|
1076
|
-
interface TextChunkGeneratedMetadata {
|
|
1077
|
-
type?: 'text';
|
|
1078
|
-
file_type?: 'text/plain';
|
|
1079
|
-
language: string;
|
|
1080
|
-
word_count: number;
|
|
1081
|
-
file_size: number;
|
|
1082
|
-
start_line?: number;
|
|
1083
|
-
num_lines?: number;
|
|
1084
|
-
[k: string]: unknown;
|
|
1085
|
-
}
|
|
1086
|
-
interface PdfChunkGeneratedMetadata {
|
|
1087
|
-
type?: 'pdf';
|
|
1088
|
-
file_type?: 'application/pdf';
|
|
1089
|
-
total_pages: number;
|
|
1090
|
-
total_size: number;
|
|
1091
|
-
[k: string]: unknown;
|
|
1092
|
-
}
|
|
1093
|
-
interface CodeChunkGeneratedMetadata {
|
|
1094
|
-
type?: 'code';
|
|
1095
|
-
file_type: string;
|
|
1096
|
-
language: string;
|
|
1097
|
-
word_count: number;
|
|
1098
|
-
file_size: number;
|
|
1099
|
-
start_line?: number;
|
|
1100
|
-
num_lines?: number;
|
|
1101
|
-
[k: string]: unknown;
|
|
1102
|
-
}
|
|
1103
|
-
interface AudioChunkGeneratedMetadata {
|
|
1104
|
-
type?: 'audio';
|
|
1105
|
-
file_type: string;
|
|
1106
|
-
file_size: number;
|
|
1107
|
-
total_duration_seconds: number;
|
|
1108
|
-
sample_rate: number;
|
|
1109
|
-
channels: number;
|
|
1110
|
-
audio_format: number;
|
|
1111
|
-
[k: string]: unknown;
|
|
1112
|
-
}
|
|
1113
|
-
/**
|
|
1114
|
-
* The video input specification.
|
|
1115
|
-
*/
|
|
1116
|
-
interface VideoURL {
|
|
1117
|
-
/**
|
|
1118
|
-
* The video URL. Can be either a URL or a Data URI.
|
|
1119
|
-
*/
|
|
1120
|
-
url: string;
|
|
1121
|
-
}
|
|
1122
|
-
}
|
|
1123
|
-
}
|
|
1124
|
-
/**
|
|
1125
|
-
* List response wrapper for vector store files.
|
|
1126
|
-
*/
|
|
1127
|
-
export interface FileListResponse {
|
|
1128
|
-
/**
|
|
1129
|
-
* Response model for cursor-based pagination.
|
|
1130
|
-
*/
|
|
1131
|
-
pagination: FileListResponse.Pagination;
|
|
1132
|
-
/**
|
|
1133
|
-
* The object type of the response
|
|
1134
|
-
*/
|
|
1135
|
-
object?: 'list';
|
|
1136
|
-
/**
|
|
1137
|
-
* The list of vector store files
|
|
1138
|
-
*/
|
|
1139
|
-
data: Array<VectorStoreFile>;
|
|
1140
|
-
}
|
|
1141
|
-
export declare namespace FileListResponse {
|
|
1142
|
-
/**
|
|
1143
|
-
* Response model for cursor-based pagination.
|
|
1144
|
-
*/
|
|
1145
|
-
interface Pagination {
|
|
1146
|
-
/**
|
|
1147
|
-
* Contextual direction-aware flag: True if more items exist in the requested
|
|
1148
|
-
* pagination direction. For 'after': more items after this page. For 'before':
|
|
1149
|
-
* more items before this page.
|
|
1150
|
-
*/
|
|
1151
|
-
has_more: boolean;
|
|
1152
|
-
/**
|
|
1153
|
-
* Cursor of the first item in this page. Use for backward pagination. None if page
|
|
1154
|
-
* is empty.
|
|
1155
|
-
*/
|
|
1156
|
-
first_cursor: string | null;
|
|
1157
|
-
/**
|
|
1158
|
-
* Cursor of the last item in this page. Use for forward pagination. None if page
|
|
1159
|
-
* is empty.
|
|
1160
|
-
*/
|
|
1161
|
-
last_cursor: string | null;
|
|
1162
|
-
/**
|
|
1163
|
-
* Total number of items available across all pages. Only included when
|
|
1164
|
-
* include_total=true was requested. Expensive operation - use sparingly.
|
|
1165
|
-
*/
|
|
1166
|
-
total?: number | null;
|
|
1167
|
-
}
|
|
1168
|
-
}
|
|
1169
|
-
/**
|
|
1170
|
-
* Response model for file deletion.
|
|
1171
|
-
*/
|
|
1172
|
-
export interface FileDeleteResponse {
|
|
1173
|
-
/**
|
|
1174
|
-
* ID of the deleted file
|
|
1175
|
-
*/
|
|
1176
|
-
id: string;
|
|
1177
|
-
/**
|
|
1178
|
-
* Whether the deletion was successful
|
|
1179
|
-
*/
|
|
1180
|
-
deleted?: boolean;
|
|
1181
|
-
/**
|
|
1182
|
-
* Type of the deleted object
|
|
1183
|
-
*/
|
|
1184
|
-
object?: 'vector_store.file';
|
|
1185
|
-
}
|
|
1186
|
-
/**
|
|
1187
|
-
* Search response wrapper for vector store files.
|
|
1188
|
-
*/
|
|
1189
|
-
export interface FileSearchResponse {
|
|
1190
|
-
/**
|
|
1191
|
-
* The object type of the response
|
|
1192
|
-
*/
|
|
1193
|
-
object?: 'list';
|
|
1194
|
-
/**
|
|
1195
|
-
* The list of scored vector store files
|
|
1196
|
-
*/
|
|
1197
|
-
data: Array<ScoredVectorStoreFile>;
|
|
1198
|
-
}
|
|
1199
|
-
export interface FileCreateParams {
|
|
1200
|
-
/**
|
|
1201
|
-
* Optional metadata for the file
|
|
1202
|
-
*/
|
|
1203
|
-
metadata?: unknown;
|
|
1204
|
-
/**
|
|
1205
|
-
* Configuration for adding the file
|
|
1206
|
-
*/
|
|
1207
|
-
config?: FileCreateParams.Config;
|
|
1208
|
-
/**
|
|
1209
|
-
* External identifier for this file in the store
|
|
1210
|
-
*/
|
|
1211
|
-
external_id?: string | null;
|
|
1212
|
-
/**
|
|
1213
|
-
* If true, overwrite an existing file with the same external_id
|
|
1214
|
-
*/
|
|
1215
|
-
overwrite?: boolean;
|
|
1216
|
-
/**
|
|
1217
|
-
* ID of the file to add
|
|
1218
|
-
*/
|
|
1219
|
-
file_id: string;
|
|
1220
|
-
/**
|
|
1221
|
-
* @deprecated Configuration for a file.
|
|
1222
|
-
*/
|
|
1223
|
-
experimental?: FileCreateParams.Experimental | null;
|
|
1224
|
-
}
|
|
1225
|
-
export declare namespace FileCreateParams {
|
|
1226
|
-
/**
|
|
1227
|
-
* Configuration for adding the file
|
|
1228
|
-
*/
|
|
1229
|
-
interface Config {
|
|
1230
|
-
/**
|
|
1231
|
-
* Strategy for adding the file, this overrides the store-level default
|
|
1232
|
-
*/
|
|
1233
|
-
parsing_strategy?: 'fast' | 'high_quality';
|
|
1234
|
-
}
|
|
1235
|
-
/**
|
|
1236
|
-
* @deprecated Configuration for a file.
|
|
1237
|
-
*/
|
|
1238
|
-
interface Experimental {
|
|
1239
|
-
/**
|
|
1240
|
-
* Strategy for adding the file, this overrides the store-level default
|
|
1241
|
-
*/
|
|
1242
|
-
parsing_strategy?: 'fast' | 'high_quality';
|
|
1243
|
-
}
|
|
1244
|
-
}
|
|
1245
|
-
export interface FileRetrieveParams {
|
|
1246
|
-
/**
|
|
1247
|
-
* Path param: The ID or name of the vector store
|
|
1248
|
-
*/
|
|
1249
|
-
vector_store_identifier: string;
|
|
1250
|
-
/**
|
|
1251
|
-
* Query param: Whether to return the chunks for the file
|
|
1252
|
-
*/
|
|
1253
|
-
return_chunks?: boolean;
|
|
1254
|
-
}
|
|
1255
|
-
export interface FileListParams {
|
|
1256
|
-
/**
|
|
1257
|
-
* Maximum number of items to return per page (1-100)
|
|
1258
|
-
*/
|
|
1259
|
-
limit?: number;
|
|
1260
|
-
/**
|
|
1261
|
-
* Cursor for forward pagination - get items after this position. Use last_cursor
|
|
1262
|
-
* from previous response.
|
|
1263
|
-
*/
|
|
1264
|
-
after?: string | null;
|
|
1265
|
-
/**
|
|
1266
|
-
* Cursor for backward pagination - get items before this position. Use
|
|
1267
|
-
* first_cursor from previous response.
|
|
1268
|
-
*/
|
|
1269
|
-
before?: string | null;
|
|
1270
|
-
/**
|
|
1271
|
-
* Whether to include total count in response (expensive operation)
|
|
1272
|
-
*/
|
|
1273
|
-
include_total?: boolean;
|
|
1274
|
-
/**
|
|
1275
|
-
* Status to filter by
|
|
1276
|
-
*/
|
|
1277
|
-
statuses?: Array<FilesAPI.StoreFileStatus> | null;
|
|
1278
|
-
/**
|
|
1279
|
-
* Metadata filter to apply to the query
|
|
1280
|
-
*/
|
|
1281
|
-
metadata_filter?: Shared.SearchFilter | Shared.SearchFilterCondition | Array<Shared.SearchFilter | Shared.SearchFilterCondition> | null;
|
|
1282
|
-
}
|
|
1283
|
-
export interface FileDeleteParams {
|
|
1284
|
-
/**
|
|
1285
|
-
* The ID or name of the vector store
|
|
1286
|
-
*/
|
|
1287
|
-
vector_store_identifier: string;
|
|
1288
|
-
}
|
|
1289
|
-
export interface FileSearchParams {
|
|
1290
|
-
/**
|
|
1291
|
-
* Search query text
|
|
1292
|
-
*/
|
|
1293
|
-
query: string;
|
|
1294
|
-
/**
|
|
1295
|
-
* IDs or names of vector stores to search
|
|
1296
|
-
*/
|
|
1297
|
-
vector_store_identifiers: Array<string>;
|
|
1298
|
-
/**
|
|
1299
|
-
* Number of results to return
|
|
1300
|
-
*/
|
|
1301
|
-
top_k?: number;
|
|
1302
|
-
/**
|
|
1303
|
-
* Optional filter conditions
|
|
1304
|
-
*/
|
|
1305
|
-
filters?: Shared.SearchFilter | Shared.SearchFilterCondition | Array<Shared.SearchFilter | Shared.SearchFilterCondition> | null;
|
|
1306
|
-
/**
|
|
1307
|
-
* Optional list of file IDs to filter chunks by (inclusion filter)
|
|
1308
|
-
*/
|
|
1309
|
-
file_ids?: Array<unknown> | Array<string> | null;
|
|
1310
|
-
/**
|
|
1311
|
-
* Search configuration options
|
|
1312
|
-
*/
|
|
1313
|
-
search_options?: FileSearchParams.SearchOptions;
|
|
1314
|
-
}
|
|
1315
|
-
export declare namespace FileSearchParams {
|
|
1316
|
-
/**
|
|
1317
|
-
* Search configuration options
|
|
1318
|
-
*/
|
|
1319
|
-
interface SearchOptions {
|
|
1320
|
-
/**
|
|
1321
|
-
* Minimum similarity score threshold
|
|
1322
|
-
*/
|
|
1323
|
-
score_threshold?: number;
|
|
1324
|
-
/**
|
|
1325
|
-
* Whether to rewrite the query. Ignored when agentic is enabled (the agent handles
|
|
1326
|
-
* query decomposition).
|
|
1327
|
-
*/
|
|
1328
|
-
rewrite_query?: boolean;
|
|
1329
|
-
/**
|
|
1330
|
-
* Whether to rerank results and optional reranking configuration. Ignored when
|
|
1331
|
-
* agentic is enabled (the agent handles ranking).
|
|
1332
|
-
*/
|
|
1333
|
-
rerank?: boolean | VectorStoresFilesAPI.RerankConfig | null;
|
|
1334
|
-
/**
|
|
1335
|
-
* Whether to use agentic multi-query search with automatic query decomposition and
|
|
1336
|
-
* ranking. When enabled, rewrite_query and rerank options are ignored.
|
|
1337
|
-
*/
|
|
1338
|
-
agentic?: boolean | SearchOptions.AgenticSearchConfig | null;
|
|
1339
|
-
/**
|
|
1340
|
-
* Whether to return file metadata
|
|
1341
|
-
*/
|
|
1342
|
-
return_metadata?: boolean;
|
|
1343
|
-
/**
|
|
1344
|
-
* Whether to return matching text chunks
|
|
1345
|
-
*/
|
|
1346
|
-
return_chunks?: boolean;
|
|
1347
|
-
/**
|
|
1348
|
-
* Number of chunks to return for each file
|
|
1349
|
-
*/
|
|
1350
|
-
chunks_per_file?: number;
|
|
1351
|
-
/**
|
|
1352
|
-
* Whether to apply search rules
|
|
1353
|
-
*/
|
|
1354
|
-
apply_search_rules?: boolean;
|
|
1355
|
-
}
|
|
1356
|
-
namespace SearchOptions {
|
|
1357
|
-
/**
|
|
1358
|
-
* Configuration for agentic multi-query search.
|
|
1359
|
-
*/
|
|
1360
|
-
interface AgenticSearchConfig {
|
|
1361
|
-
/**
|
|
1362
|
-
* Maximum number of search rounds
|
|
1363
|
-
*/
|
|
1364
|
-
max_rounds?: number;
|
|
1365
|
-
/**
|
|
1366
|
-
* Maximum queries per round
|
|
1367
|
-
*/
|
|
1368
|
-
queries_per_round?: number;
|
|
1369
|
-
/**
|
|
1370
|
-
* Results to fetch per query
|
|
1371
|
-
*/
|
|
1372
|
-
results_per_query?: number;
|
|
1373
|
-
}
|
|
1374
|
-
}
|
|
1375
|
-
}
|
|
1376
|
-
export declare namespace Files {
|
|
1377
|
-
export { type RerankConfig as RerankConfig, type ScoredVectorStoreFile as ScoredVectorStoreFile, type VectorStoreFileStatus as VectorStoreFileStatus, type VectorStoreFile as VectorStoreFile, type FileListResponse as FileListResponse, type FileDeleteResponse as FileDeleteResponse, type FileSearchResponse as FileSearchResponse, type FileCreateParams as FileCreateParams, type FileRetrieveParams as FileRetrieveParams, type FileListParams as FileListParams, type FileDeleteParams as FileDeleteParams, type FileSearchParams as FileSearchParams, };
|
|
1378
|
-
}
|
|
1379
|
-
//# sourceMappingURL=files.d.mts.map
|