@mixedbread/sdk 0.5.0 → 0.7.2
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 +83 -0
- package/README.md +12 -24
- package/bin/migration-config.json +105 -2
- package/client.d.mts +12 -28
- package/client.d.mts.map +1 -1
- package/client.d.ts +12 -28
- package/client.d.ts.map +1 -1
- package/client.js +6 -22
- package/client.js.map +1 -1
- package/client.mjs +6 -22
- package/client.mjs.map +1 -1
- package/core/pagination.d.mts +1 -1
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts +1 -1
- package/core/pagination.d.ts.map +1 -1
- package/core/resource.d.mts +1 -1
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts +1 -1
- package/core/resource.d.ts.map +1 -1
- package/core/resource.js.map +1 -1
- package/core/resource.mjs.map +1 -1
- package/internal/detect-platform.js +3 -3
- package/internal/detect-platform.js.map +1 -1
- package/internal/detect-platform.mjs +3 -3
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/headers.d.mts.map +1 -1
- package/internal/headers.d.ts.map +1 -1
- package/internal/headers.js +5 -5
- package/internal/headers.js.map +1 -1
- package/internal/headers.mjs +5 -5
- package/internal/headers.mjs.map +1 -1
- package/internal/shim-types.d.mts +11 -22
- package/internal/shim-types.d.mts.map +1 -0
- package/internal/shim-types.d.ts +11 -22
- package/internal/shim-types.d.ts.map +1 -0
- package/internal/shim-types.js +4 -0
- package/internal/shim-types.js.map +1 -0
- package/internal/shim-types.mjs +3 -0
- package/internal/shim-types.mjs.map +1 -0
- package/internal/shims.d.mts +2 -2
- package/internal/shims.d.mts.map +1 -1
- package/internal/shims.d.ts +2 -2
- package/internal/shims.d.ts.map +1 -1
- package/internal/uploads.js +1 -1
- package/internal/uploads.js.map +1 -1
- package/internal/uploads.mjs +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/log.js +1 -1
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +1 -1
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.d.mts.map +1 -1
- package/internal/utils/path.d.ts.map +1 -1
- package/internal/utils/path.js.map +1 -1
- package/internal/utils/path.mjs +1 -1
- package/internal/utils/path.mjs.map +1 -1
- package/internal/utils/values.d.mts +2 -0
- package/internal/utils/values.d.mts.map +1 -1
- package/internal/utils/values.d.ts +2 -0
- package/internal/utils/values.d.ts.map +1 -1
- package/internal/utils/values.js +4 -1
- package/internal/utils/values.js.map +1 -1
- package/internal/utils/values.mjs +2 -0
- package/internal/utils/values.mjs.map +1 -1
- package/package.json +1 -7
- package/resources/api-keys.d.mts +171 -0
- package/resources/api-keys.d.mts.map +1 -0
- package/resources/api-keys.d.ts +171 -0
- package/resources/api-keys.d.ts.map +1 -0
- package/resources/api-keys.js +76 -0
- package/resources/api-keys.js.map +1 -0
- package/resources/api-keys.mjs +72 -0
- package/resources/api-keys.mjs.map +1 -0
- package/resources/data-sources/connectors.d.mts +203 -0
- package/resources/data-sources/connectors.d.mts.map +1 -0
- package/resources/data-sources/connectors.d.ts +203 -0
- package/resources/data-sources/connectors.d.ts.map +1 -0
- package/resources/data-sources/connectors.js +73 -0
- package/resources/data-sources/connectors.js.map +1 -0
- package/resources/data-sources/connectors.mjs +69 -0
- package/resources/data-sources/connectors.mjs.map +1 -0
- package/resources/data-sources/data-sources.d.mts +287 -0
- package/resources/data-sources/data-sources.d.mts.map +1 -0
- package/resources/data-sources/data-sources.d.ts +287 -0
- package/resources/data-sources/data-sources.d.ts.map +1 -0
- package/resources/data-sources/data-sources.js +66 -0
- package/resources/data-sources/data-sources.js.map +1 -0
- package/resources/data-sources/data-sources.mjs +61 -0
- package/resources/data-sources/data-sources.mjs.map +1 -0
- package/resources/data-sources/index.d.mts +3 -0
- package/resources/data-sources/index.d.mts.map +1 -0
- package/resources/data-sources/index.d.ts +3 -0
- package/resources/data-sources/index.d.ts.map +1 -0
- package/resources/data-sources/index.js +9 -0
- package/resources/data-sources/index.js.map +1 -0
- package/resources/data-sources/index.mjs +4 -0
- package/resources/data-sources/index.mjs.map +1 -0
- package/resources/data-sources.d.mts +2 -0
- package/resources/data-sources.d.mts.map +1 -0
- package/resources/data-sources.d.ts +2 -0
- package/resources/data-sources.d.ts.map +1 -0
- package/resources/data-sources.js +6 -0
- package/resources/data-sources.js.map +1 -0
- package/resources/data-sources.mjs +3 -0
- package/resources/data-sources.mjs.map +1 -0
- package/resources/embeddings.d.mts +7 -11
- package/resources/embeddings.d.mts.map +1 -1
- package/resources/embeddings.d.ts +7 -11
- package/resources/embeddings.d.ts.map +1 -1
- package/resources/embeddings.js +0 -9
- package/resources/embeddings.js.map +1 -1
- package/resources/embeddings.mjs +0 -9
- package/resources/embeddings.mjs.map +1 -1
- package/resources/extractions/content.d.mts +44 -42
- package/resources/extractions/content.d.mts.map +1 -1
- package/resources/extractions/content.d.ts +44 -42
- package/resources/extractions/content.d.ts.map +1 -1
- package/resources/extractions/extractions.d.mts +2 -2
- package/resources/extractions/extractions.d.mts.map +1 -1
- package/resources/extractions/extractions.d.ts +2 -2
- package/resources/extractions/extractions.d.ts.map +1 -1
- package/resources/extractions/extractions.js.map +1 -1
- package/resources/extractions/extractions.mjs.map +1 -1
- package/resources/extractions/index.d.mts +1 -1
- package/resources/extractions/index.d.mts.map +1 -1
- package/resources/extractions/index.d.ts +1 -1
- package/resources/extractions/index.d.ts.map +1 -1
- package/resources/extractions/index.js.map +1 -1
- package/resources/extractions/index.mjs +1 -1
- package/resources/extractions/index.mjs.map +1 -1
- package/resources/extractions/jobs.d.mts +2 -1
- package/resources/extractions/jobs.d.mts.map +1 -1
- package/resources/extractions/jobs.d.ts +2 -1
- package/resources/extractions/jobs.d.ts.map +1 -1
- package/resources/extractions/jobs.js.map +1 -1
- package/resources/extractions/jobs.mjs.map +1 -1
- package/resources/files.d.mts +18 -1
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +18 -1
- package/resources/files.d.ts.map +1 -1
- package/resources/index.d.mts +5 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +5 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -0
- package/resources/index.mjs.map +1 -1
- package/resources/parsing/index.d.mts +1 -1
- package/resources/parsing/index.d.mts.map +1 -1
- package/resources/parsing/index.d.ts +1 -1
- package/resources/parsing/index.d.ts.map +1 -1
- package/resources/parsing/index.js.map +1 -1
- package/resources/parsing/index.mjs.map +1 -1
- package/resources/parsing/jobs.d.mts +24 -10
- package/resources/parsing/jobs.d.mts.map +1 -1
- package/resources/parsing/jobs.d.ts +24 -10
- package/resources/parsing/jobs.d.ts.map +1 -1
- package/resources/parsing/jobs.js.map +1 -1
- package/resources/parsing/jobs.mjs.map +1 -1
- package/resources/parsing/parsing.d.mts +2 -2
- package/resources/parsing/parsing.d.mts.map +1 -1
- package/resources/parsing/parsing.d.ts +2 -2
- package/resources/parsing/parsing.d.ts.map +1 -1
- package/resources/parsing/parsing.js.map +1 -1
- package/resources/parsing/parsing.mjs.map +1 -1
- package/resources/top-level.d.mts +5 -4
- package/resources/top-level.d.mts.map +1 -1
- package/resources/top-level.d.ts +5 -4
- package/resources/top-level.d.ts.map +1 -1
- package/resources/vector-stores/files.d.mts +79 -19
- package/resources/vector-stores/files.d.mts.map +1 -1
- package/resources/vector-stores/files.d.ts +79 -19
- package/resources/vector-stores/files.d.ts.map +1 -1
- package/resources/vector-stores/files.js +19 -18
- package/resources/vector-stores/files.js.map +1 -1
- package/resources/vector-stores/files.mjs +19 -18
- package/resources/vector-stores/files.mjs.map +1 -1
- package/resources/vector-stores/index.d.mts +1 -1
- package/resources/vector-stores/index.d.mts.map +1 -1
- package/resources/vector-stores/index.d.ts +1 -1
- package/resources/vector-stores/index.d.ts.map +1 -1
- package/resources/vector-stores/index.js.map +1 -1
- package/resources/vector-stores/index.mjs.map +1 -1
- package/resources/vector-stores/vector-stores.d.mts +275 -90
- package/resources/vector-stores/vector-stores.d.mts.map +1 -1
- package/resources/vector-stores/vector-stores.d.ts +275 -90
- package/resources/vector-stores/vector-stores.d.ts.map +1 -1
- package/resources/vector-stores/vector-stores.js +18 -15
- package/resources/vector-stores/vector-stores.js.map +1 -1
- package/resources/vector-stores/vector-stores.mjs +18 -15
- package/resources/vector-stores/vector-stores.mjs.map +1 -1
- package/src/client.ts +63 -30
- package/src/core/pagination.ts +1 -1
- package/src/core/resource.ts +1 -1
- package/src/internal/detect-platform.ts +3 -3
- package/src/internal/headers.ts +6 -6
- package/src/internal/shim-types.ts +26 -0
- package/src/internal/shims.ts +2 -2
- package/src/internal/uploads.ts +2 -2
- package/src/internal/utils/log.ts +1 -1
- package/src/internal/utils/path.ts +1 -1
- package/src/internal/utils/values.ts +3 -0
- package/src/resources/api-keys.ts +225 -0
- package/src/resources/data-sources/connectors.ts +290 -0
- package/src/resources/data-sources/data-sources.ts +404 -0
- package/src/resources/data-sources/index.ts +24 -0
- package/src/resources/data-sources.ts +3 -0
- package/src/resources/embeddings.ts +25 -19
- package/src/resources/extractions/content.ts +51 -43
- package/src/resources/extractions/extractions.ts +3 -1
- package/src/resources/extractions/index.ts +7 -1
- package/src/resources/extractions/jobs.ts +2 -1
- package/src/resources/files.ts +21 -0
- package/src/resources/index.ts +26 -4
- package/src/resources/parsing/index.ts +4 -0
- package/src/resources/parsing/jobs.ts +42 -44
- package/src/resources/parsing/parsing.ts +8 -0
- package/src/resources/top-level.ts +5 -44
- package/src/resources/vector-stores/files.ts +104 -28
- package/src/resources/vector-stores/index.ts +4 -3
- package/src/resources/vector-stores/vector-stores.ts +330 -102
- 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/src/internal/shim-types.d.ts +0 -28
@@ -9,16 +9,17 @@ export declare class Files extends APIResource {
|
|
9
9
|
/**
|
10
10
|
* Upload a new file to a vector store for indexing.
|
11
11
|
*
|
12
|
-
* Args:
|
13
|
-
* upload and index
|
12
|
+
* Args: vector_store_identifier: The ID or name of the vector store to upload to
|
13
|
+
* file: The file to upload and index
|
14
14
|
*
|
15
15
|
* Returns: VectorStoreFile: Details of the uploaded and indexed file
|
16
16
|
*/
|
17
|
-
create(
|
17
|
+
create(vectorStoreIdentifier: string, body: FileCreateParams, options?: RequestOptions): APIPromise<VectorStoreFile>;
|
18
18
|
/**
|
19
19
|
* Get details of a specific file in a vector store.
|
20
20
|
*
|
21
|
-
* Args:
|
21
|
+
* Args: vector_store_identifier: The ID or name of the vector store file_id: The
|
22
|
+
* ID of the file
|
22
23
|
*
|
23
24
|
* Returns: VectorStoreFile: Details of the vector store file
|
24
25
|
*/
|
@@ -26,17 +27,17 @@ export declare class Files extends APIResource {
|
|
26
27
|
/**
|
27
28
|
* List files indexed in a vector store with pagination.
|
28
29
|
*
|
29
|
-
* Args:
|
30
|
-
* parameters
|
30
|
+
* Args: vector_store_identifier: The ID or name of the vector store pagination:
|
31
|
+
* Pagination parameters
|
31
32
|
*
|
32
33
|
* Returns: VectorStoreFileListResponse: Paginated list of vector store files
|
33
34
|
*/
|
34
|
-
list(
|
35
|
+
list(vectorStoreIdentifier: string, query?: FileListParams | null | undefined, options?: RequestOptions): PagePromise<VectorStoreFilesLimitOffset, VectorStoreFile>;
|
35
36
|
/**
|
36
37
|
* Delete a file from a vector store.
|
37
38
|
*
|
38
|
-
* Args:
|
39
|
-
* delete
|
39
|
+
* Args: vector_store_identifier: The ID or name of the vector store file_id: The
|
40
|
+
* ID of the file to delete
|
40
41
|
*
|
41
42
|
* Returns: VectorStoreFileDeleted: The deleted file
|
42
43
|
*/
|
@@ -126,7 +127,7 @@ export interface ScoredVectorStoreFile {
|
|
126
127
|
/**
|
127
128
|
* Processing status of the file
|
128
129
|
*/
|
129
|
-
status?:
|
130
|
+
status?: 'pending' | 'in_progress' | 'cancelled' | 'completed' | 'failed';
|
130
131
|
/**
|
131
132
|
* Last error message if processing failed
|
132
133
|
*/
|
@@ -158,7 +159,7 @@ export interface ScoredVectorStoreFile {
|
|
158
159
|
/**
|
159
160
|
* chunks
|
160
161
|
*/
|
161
|
-
chunks: Array<VectorStoresAPI.
|
162
|
+
chunks: Array<VectorStoresAPI.ScoredTextInputChunk | VectorStoresAPI.ScoredImageURLInputChunk | VectorStoresAPI.ScoredAudioURLInputChunk | VectorStoresAPI.ScoredVideoURLInputChunk> | null;
|
162
163
|
}
|
163
164
|
/**
|
164
165
|
* Represents a file stored in a vector store.
|
@@ -179,7 +180,7 @@ export interface VectorStoreFile {
|
|
179
180
|
/**
|
180
181
|
* Processing status of the file
|
181
182
|
*/
|
182
|
-
status?:
|
183
|
+
status?: 'pending' | 'in_progress' | 'cancelled' | 'completed' | 'failed';
|
183
184
|
/**
|
184
185
|
* Last error message if processing failed
|
185
186
|
*/
|
@@ -263,17 +264,17 @@ export declare namespace FileCreateParams {
|
|
263
264
|
}
|
264
265
|
export interface FileRetrieveParams {
|
265
266
|
/**
|
266
|
-
* The ID of the vector store
|
267
|
+
* The ID or name of the vector store
|
267
268
|
*/
|
268
|
-
|
269
|
+
vector_store_identifier: string;
|
269
270
|
}
|
270
271
|
export interface FileListParams extends LimitOffsetParams {
|
271
272
|
}
|
272
273
|
export interface FileDeleteParams {
|
273
274
|
/**
|
274
|
-
* The ID of the vector store
|
275
|
+
* The ID or name of the vector store
|
275
276
|
*/
|
276
|
-
|
277
|
+
vector_store_identifier: string;
|
277
278
|
}
|
278
279
|
export interface FileSearchParams {
|
279
280
|
/**
|
@@ -281,9 +282,13 @@ export interface FileSearchParams {
|
|
281
282
|
*/
|
282
283
|
query: string;
|
283
284
|
/**
|
284
|
-
* IDs of vector stores to search
|
285
|
+
* IDs or names of vector stores to search
|
286
|
+
*/
|
287
|
+
vector_store_identifiers?: Array<string> | null;
|
288
|
+
/**
|
289
|
+
* @deprecated
|
285
290
|
*/
|
286
|
-
vector_store_ids
|
291
|
+
vector_store_ids?: Array<string> | null;
|
287
292
|
/**
|
288
293
|
* Number of results to return
|
289
294
|
*/
|
@@ -292,10 +297,65 @@ export interface FileSearchParams {
|
|
292
297
|
* Optional filter conditions
|
293
298
|
*/
|
294
299
|
filters?: Shared.SearchFilter | Shared.SearchFilterCondition | Array<Shared.SearchFilter | Shared.SearchFilterCondition> | null;
|
300
|
+
/**
|
301
|
+
* Optional list of file IDs to filter chunks by (inclusion filter)
|
302
|
+
*/
|
303
|
+
file_ids?: Array<unknown> | Array<string> | null;
|
295
304
|
/**
|
296
305
|
* Search configuration options
|
297
306
|
*/
|
298
|
-
search_options?:
|
307
|
+
search_options?: FileSearchParams.SearchOptions;
|
308
|
+
}
|
309
|
+
export declare namespace FileSearchParams {
|
310
|
+
/**
|
311
|
+
* Search configuration options
|
312
|
+
*/
|
313
|
+
interface SearchOptions {
|
314
|
+
/**
|
315
|
+
* Minimum similarity score threshold
|
316
|
+
*/
|
317
|
+
score_threshold?: number;
|
318
|
+
/**
|
319
|
+
* Whether to rewrite the query
|
320
|
+
*/
|
321
|
+
rewrite_query?: boolean;
|
322
|
+
/**
|
323
|
+
* Whether to rerank results and optional reranking configuration
|
324
|
+
*/
|
325
|
+
rerank?: boolean | SearchOptions.RerankConfig | null;
|
326
|
+
/**
|
327
|
+
* Whether to return file metadata
|
328
|
+
*/
|
329
|
+
return_metadata?: boolean;
|
330
|
+
/**
|
331
|
+
* Whether to return matching text chunks
|
332
|
+
*/
|
333
|
+
return_chunks?: boolean;
|
334
|
+
/**
|
335
|
+
* Number of chunks to return for each file
|
336
|
+
*/
|
337
|
+
chunks_per_file?: number;
|
338
|
+
}
|
339
|
+
namespace SearchOptions {
|
340
|
+
/**
|
341
|
+
* Represents a reranking configuration.
|
342
|
+
*/
|
343
|
+
interface RerankConfig {
|
344
|
+
/**
|
345
|
+
* The name of the reranking model
|
346
|
+
*/
|
347
|
+
model?: string;
|
348
|
+
/**
|
349
|
+
* Whether to include metadata in the reranked results
|
350
|
+
*/
|
351
|
+
with_metadata?: boolean | Array<string>;
|
352
|
+
/**
|
353
|
+
* Maximum number of results to return after reranking. If None, returns all
|
354
|
+
* reranked results.
|
355
|
+
*/
|
356
|
+
top_k?: number | null;
|
357
|
+
}
|
358
|
+
}
|
299
359
|
}
|
300
360
|
export declare namespace Files {
|
301
361
|
export { type ScoredVectorStoreFile as ScoredVectorStoreFile, type VectorStoreFile as VectorStoreFile, type FileDeleteResponse as FileDeleteResponse, type FileSearchResponse as FileSearchResponse, type VectorStoreFilesLimitOffset as VectorStoreFilesLimitOffset, type FileCreateParams as FileCreateParams, type FileRetrieveParams as FileRetrieveParams, type FileListParams as FileListParams, type FileDeleteParams as FileDeleteParams, type FileSearchParams as FileSearchParams, };
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"files.d.mts","sourceRoot":"","sources":["../../src/resources/vector-stores/files.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,KAAK,eAAe;OACpB,EAAE,UAAU,EAAE;OACd,EAAE,WAAW,EAAE,KAAK,iBAAiB,EAAE,WAAW,EAAE;OACpD,EAAE,cAAc,EAAE;
|
1
|
+
{"version":3,"file":"files.d.mts","sourceRoot":"","sources":["../../src/resources/vector-stores/files.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,KAAK,eAAe;OACpB,EAAE,UAAU,EAAE;OACd,EAAE,WAAW,EAAE,KAAK,iBAAiB,EAAE,WAAW,EAAE;OACpD,EAAE,cAAc,EAAE;OAElB,EAAE,UAAU,EAAE;AAGrB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;OAOG;IACH,MAAM,CACJ,qBAAqB,EAAE,MAAM,EAC7B,IAAI,EAAE,gBAAgB,EACtB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,eAAe,CAAC;IAI9B;;;;;;;OAOG;IACH,QAAQ,CACN,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,kBAAkB,EAC1B,OAAO,CAAC,EAAE,cAAc,GACv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C;;;eAGG;YACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;SACvB;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
@@ -9,16 +9,17 @@ export declare class Files extends APIResource {
|
|
9
9
|
/**
|
10
10
|
* Upload a new file to a vector store for indexing.
|
11
11
|
*
|
12
|
-
* Args:
|
13
|
-
* upload and index
|
12
|
+
* Args: vector_store_identifier: The ID or name of the vector store to upload to
|
13
|
+
* file: The file to upload and index
|
14
14
|
*
|
15
15
|
* Returns: VectorStoreFile: Details of the uploaded and indexed file
|
16
16
|
*/
|
17
|
-
create(
|
17
|
+
create(vectorStoreIdentifier: string, body: FileCreateParams, options?: RequestOptions): APIPromise<VectorStoreFile>;
|
18
18
|
/**
|
19
19
|
* Get details of a specific file in a vector store.
|
20
20
|
*
|
21
|
-
* Args:
|
21
|
+
* Args: vector_store_identifier: The ID or name of the vector store file_id: The
|
22
|
+
* ID of the file
|
22
23
|
*
|
23
24
|
* Returns: VectorStoreFile: Details of the vector store file
|
24
25
|
*/
|
@@ -26,17 +27,17 @@ export declare class Files extends APIResource {
|
|
26
27
|
/**
|
27
28
|
* List files indexed in a vector store with pagination.
|
28
29
|
*
|
29
|
-
* Args:
|
30
|
-
* parameters
|
30
|
+
* Args: vector_store_identifier: The ID or name of the vector store pagination:
|
31
|
+
* Pagination parameters
|
31
32
|
*
|
32
33
|
* Returns: VectorStoreFileListResponse: Paginated list of vector store files
|
33
34
|
*/
|
34
|
-
list(
|
35
|
+
list(vectorStoreIdentifier: string, query?: FileListParams | null | undefined, options?: RequestOptions): PagePromise<VectorStoreFilesLimitOffset, VectorStoreFile>;
|
35
36
|
/**
|
36
37
|
* Delete a file from a vector store.
|
37
38
|
*
|
38
|
-
* Args:
|
39
|
-
* delete
|
39
|
+
* Args: vector_store_identifier: The ID or name of the vector store file_id: The
|
40
|
+
* ID of the file to delete
|
40
41
|
*
|
41
42
|
* Returns: VectorStoreFileDeleted: The deleted file
|
42
43
|
*/
|
@@ -126,7 +127,7 @@ export interface ScoredVectorStoreFile {
|
|
126
127
|
/**
|
127
128
|
* Processing status of the file
|
128
129
|
*/
|
129
|
-
status?:
|
130
|
+
status?: 'pending' | 'in_progress' | 'cancelled' | 'completed' | 'failed';
|
130
131
|
/**
|
131
132
|
* Last error message if processing failed
|
132
133
|
*/
|
@@ -158,7 +159,7 @@ export interface ScoredVectorStoreFile {
|
|
158
159
|
/**
|
159
160
|
* chunks
|
160
161
|
*/
|
161
|
-
chunks: Array<VectorStoresAPI.
|
162
|
+
chunks: Array<VectorStoresAPI.ScoredTextInputChunk | VectorStoresAPI.ScoredImageURLInputChunk | VectorStoresAPI.ScoredAudioURLInputChunk | VectorStoresAPI.ScoredVideoURLInputChunk> | null;
|
162
163
|
}
|
163
164
|
/**
|
164
165
|
* Represents a file stored in a vector store.
|
@@ -179,7 +180,7 @@ export interface VectorStoreFile {
|
|
179
180
|
/**
|
180
181
|
* Processing status of the file
|
181
182
|
*/
|
182
|
-
status?:
|
183
|
+
status?: 'pending' | 'in_progress' | 'cancelled' | 'completed' | 'failed';
|
183
184
|
/**
|
184
185
|
* Last error message if processing failed
|
185
186
|
*/
|
@@ -263,17 +264,17 @@ export declare namespace FileCreateParams {
|
|
263
264
|
}
|
264
265
|
export interface FileRetrieveParams {
|
265
266
|
/**
|
266
|
-
* The ID of the vector store
|
267
|
+
* The ID or name of the vector store
|
267
268
|
*/
|
268
|
-
|
269
|
+
vector_store_identifier: string;
|
269
270
|
}
|
270
271
|
export interface FileListParams extends LimitOffsetParams {
|
271
272
|
}
|
272
273
|
export interface FileDeleteParams {
|
273
274
|
/**
|
274
|
-
* The ID of the vector store
|
275
|
+
* The ID or name of the vector store
|
275
276
|
*/
|
276
|
-
|
277
|
+
vector_store_identifier: string;
|
277
278
|
}
|
278
279
|
export interface FileSearchParams {
|
279
280
|
/**
|
@@ -281,9 +282,13 @@ export interface FileSearchParams {
|
|
281
282
|
*/
|
282
283
|
query: string;
|
283
284
|
/**
|
284
|
-
* IDs of vector stores to search
|
285
|
+
* IDs or names of vector stores to search
|
286
|
+
*/
|
287
|
+
vector_store_identifiers?: Array<string> | null;
|
288
|
+
/**
|
289
|
+
* @deprecated
|
285
290
|
*/
|
286
|
-
vector_store_ids
|
291
|
+
vector_store_ids?: Array<string> | null;
|
287
292
|
/**
|
288
293
|
* Number of results to return
|
289
294
|
*/
|
@@ -292,10 +297,65 @@ export interface FileSearchParams {
|
|
292
297
|
* Optional filter conditions
|
293
298
|
*/
|
294
299
|
filters?: Shared.SearchFilter | Shared.SearchFilterCondition | Array<Shared.SearchFilter | Shared.SearchFilterCondition> | null;
|
300
|
+
/**
|
301
|
+
* Optional list of file IDs to filter chunks by (inclusion filter)
|
302
|
+
*/
|
303
|
+
file_ids?: Array<unknown> | Array<string> | null;
|
295
304
|
/**
|
296
305
|
* Search configuration options
|
297
306
|
*/
|
298
|
-
search_options?:
|
307
|
+
search_options?: FileSearchParams.SearchOptions;
|
308
|
+
}
|
309
|
+
export declare namespace FileSearchParams {
|
310
|
+
/**
|
311
|
+
* Search configuration options
|
312
|
+
*/
|
313
|
+
interface SearchOptions {
|
314
|
+
/**
|
315
|
+
* Minimum similarity score threshold
|
316
|
+
*/
|
317
|
+
score_threshold?: number;
|
318
|
+
/**
|
319
|
+
* Whether to rewrite the query
|
320
|
+
*/
|
321
|
+
rewrite_query?: boolean;
|
322
|
+
/**
|
323
|
+
* Whether to rerank results and optional reranking configuration
|
324
|
+
*/
|
325
|
+
rerank?: boolean | SearchOptions.RerankConfig | null;
|
326
|
+
/**
|
327
|
+
* Whether to return file metadata
|
328
|
+
*/
|
329
|
+
return_metadata?: boolean;
|
330
|
+
/**
|
331
|
+
* Whether to return matching text chunks
|
332
|
+
*/
|
333
|
+
return_chunks?: boolean;
|
334
|
+
/**
|
335
|
+
* Number of chunks to return for each file
|
336
|
+
*/
|
337
|
+
chunks_per_file?: number;
|
338
|
+
}
|
339
|
+
namespace SearchOptions {
|
340
|
+
/**
|
341
|
+
* Represents a reranking configuration.
|
342
|
+
*/
|
343
|
+
interface RerankConfig {
|
344
|
+
/**
|
345
|
+
* The name of the reranking model
|
346
|
+
*/
|
347
|
+
model?: string;
|
348
|
+
/**
|
349
|
+
* Whether to include metadata in the reranked results
|
350
|
+
*/
|
351
|
+
with_metadata?: boolean | Array<string>;
|
352
|
+
/**
|
353
|
+
* Maximum number of results to return after reranking. If None, returns all
|
354
|
+
* reranked results.
|
355
|
+
*/
|
356
|
+
top_k?: number | null;
|
357
|
+
}
|
358
|
+
}
|
299
359
|
}
|
300
360
|
export declare namespace Files {
|
301
361
|
export { type ScoredVectorStoreFile as ScoredVectorStoreFile, type VectorStoreFile as VectorStoreFile, type FileDeleteResponse as FileDeleteResponse, type FileSearchResponse as FileSearchResponse, type VectorStoreFilesLimitOffset as VectorStoreFilesLimitOffset, type FileCreateParams as FileCreateParams, type FileRetrieveParams as FileRetrieveParams, type FileListParams as FileListParams, type FileDeleteParams as FileDeleteParams, type FileSearchParams as FileSearchParams, };
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../src/resources/vector-stores/files.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,KAAK,eAAe;OACpB,EAAE,UAAU,EAAE;OACd,EAAE,WAAW,EAAE,KAAK,iBAAi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CAAC,aAAa,CAAC;CACjD;AAED,yBAAiB,gBAAgB,CAAC;IAChC;;OAEG;IACH,UAAiB,aAAa;QAC5B;;WAEG;QACH,eAAe,CAAC,EAAE,MAAM,CAAC;QAEzB;;WAEG;QACH,aAAa,CAAC,EAAE,OAAO,CAAC;QAExB;;WAEG;QACH,MAAM,CAAC,EAAE,OAAO,GAAG,aAAa,CAAC,YAAY,GAAG,IAAI,CAAC;QAErD;;WAEG;QACH,eAAe,CAAC,EAAE,OAAO,CAAC;QAE1B;;WAEG;QACH,aAAa,CAAC,EAAE,OAAO,CAAC;QAExB;;WAEG;QACH,eAAe,CAAC,EAAE,MAAM,CAAC;KAC1B;IAED,UAAiB,aAAa,CAAC;QAC7B;;WAEG;QACH,UAAiB,YAAY;YAC3B;;eAEG;YACH,KAAK,CAAC,EAAE,MAAM,CAAC;YAEf;;eAEG;YACH,aAAa,CAAC,EAAE,OAAO,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;YAExC;;;eAGG;YACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;SACvB;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
@@ -5,53 +5,54 @@ exports.Files = void 0;
|
|
5
5
|
const tslib_1 = require("../../internal/tslib.js");
|
6
6
|
const resource_1 = require("../../core/resource.js");
|
7
7
|
const pagination_1 = require("../../core/pagination.js");
|
8
|
-
const path_1 = require("../../internal/utils/path.js");
|
9
8
|
const polling = tslib_1.__importStar(require("../../lib/polling.js"));
|
9
|
+
const path_1 = require("../../internal/utils/path.js");
|
10
10
|
class Files extends resource_1.APIResource {
|
11
11
|
/**
|
12
12
|
* Upload a new file to a vector store for indexing.
|
13
13
|
*
|
14
|
-
* Args:
|
15
|
-
* upload and index
|
14
|
+
* Args: vector_store_identifier: The ID or name of the vector store to upload to
|
15
|
+
* file: The file to upload and index
|
16
16
|
*
|
17
17
|
* Returns: VectorStoreFile: Details of the uploaded and indexed file
|
18
18
|
*/
|
19
|
-
create(
|
20
|
-
return this._client.post((0, path_1.path) `/v1/vector_stores/${
|
19
|
+
create(vectorStoreIdentifier, body, options) {
|
20
|
+
return this._client.post((0, path_1.path) `/v1/vector_stores/${vectorStoreIdentifier}/files`, { body, ...options });
|
21
21
|
}
|
22
22
|
/**
|
23
23
|
* Get details of a specific file in a vector store.
|
24
24
|
*
|
25
|
-
* Args:
|
25
|
+
* Args: vector_store_identifier: The ID or name of the vector store file_id: The
|
26
|
+
* ID of the file
|
26
27
|
*
|
27
28
|
* Returns: VectorStoreFile: Details of the vector store file
|
28
29
|
*/
|
29
30
|
retrieve(fileID, params, options) {
|
30
|
-
const {
|
31
|
-
return this._client.get((0, path_1.path) `/v1/vector_stores/${
|
31
|
+
const { vector_store_identifier } = params;
|
32
|
+
return this._client.get((0, path_1.path) `/v1/vector_stores/${vector_store_identifier}/files/${fileID}`, options);
|
32
33
|
}
|
33
34
|
/**
|
34
35
|
* List files indexed in a vector store with pagination.
|
35
36
|
*
|
36
|
-
* Args:
|
37
|
-
* parameters
|
37
|
+
* Args: vector_store_identifier: The ID or name of the vector store pagination:
|
38
|
+
* Pagination parameters
|
38
39
|
*
|
39
40
|
* Returns: VectorStoreFileListResponse: Paginated list of vector store files
|
40
41
|
*/
|
41
|
-
list(
|
42
|
-
return this._client.getAPIList((0, path_1.path) `/v1/vector_stores/${
|
42
|
+
list(vectorStoreIdentifier, query = {}, options) {
|
43
|
+
return this._client.getAPIList((0, path_1.path) `/v1/vector_stores/${vectorStoreIdentifier}/files`, (pagination_1.LimitOffset), { query, ...options });
|
43
44
|
}
|
44
45
|
/**
|
45
46
|
* Delete a file from a vector store.
|
46
47
|
*
|
47
|
-
* Args:
|
48
|
-
* delete
|
48
|
+
* Args: vector_store_identifier: The ID or name of the vector store file_id: The
|
49
|
+
* ID of the file to delete
|
49
50
|
*
|
50
51
|
* Returns: VectorStoreFileDeleted: The deleted file
|
51
52
|
*/
|
52
53
|
delete(fileID, params, options) {
|
53
|
-
const {
|
54
|
-
return this._client.delete((0, path_1.path) `/v1/vector_stores/${
|
54
|
+
const { vector_store_identifier } = params;
|
55
|
+
return this._client.delete((0, path_1.path) `/v1/vector_stores/${vector_store_identifier}/files/${fileID}`, options);
|
55
56
|
}
|
56
57
|
/**
|
57
58
|
* Perform semantic search across complete vector store files.
|
@@ -88,8 +89,8 @@ class Files extends resource_1.APIResource {
|
|
88
89
|
const pollingIntervalMs = pollIntervalMs || 500;
|
89
90
|
const pollingTimeoutMs = pollTimeoutMs;
|
90
91
|
return polling.poll({
|
91
|
-
fn: () => this.retrieve(fileId, {
|
92
|
-
condition: (result) => result.status === 'completed' || result.status === 'failed' || result.status === '
|
92
|
+
fn: () => this.retrieve(fileId, { vector_store_identifier: vectorStoreId, ...options }),
|
93
|
+
condition: (result) => result.status === 'completed' || result.status === 'failed' || result.status === 'cancelled',
|
93
94
|
intervalSeconds: pollingIntervalMs / 1000,
|
94
95
|
...(pollingTimeoutMs && { timeoutSeconds: pollingTimeoutMs / 1000 }),
|
95
96
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"files.js","sourceRoot":"","sources":["../../src/resources/vector-stores/files.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAIlD,yDAAyF;AAEzF,
|
1
|
+
{"version":3,"file":"files.js","sourceRoot":"","sources":["../../src/resources/vector-stores/files.ts"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,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC;QAE9E,OAAO,IAAI,CAAC,MAAM,CAChB,aAAa,EACb;YACE,OAAO,EAAE,kBAAkB,CAAC,EAAE;YAC9B,GAAG,IAAI;SACR,EACD,OAAO,CACR,CAAC;IACJ,CAAC;IAED;;;;;;;;;;OAUG;IACH,KAAK,CAAC,aAAa,CACjB,aAAqB,EACrB,IAAgB,EAChB,IAAwC,EACxC,cAAuB,EACvB,aAAsB,EACtB,OAAwB;QAExB,MAAM,eAAe,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,aAAa,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAC9E,OAAO,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,eAAe,CAAC,EAAE,EAAE,cAAc,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC;IAC9F,CAAC;CACF;AA7LD,sBA6LC"}
|
@@ -1,53 +1,54 @@
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
2
2
|
import { APIResource } from "../../core/resource.mjs";
|
3
3
|
import { LimitOffset } from "../../core/pagination.mjs";
|
4
|
-
import { path } from "../../internal/utils/path.mjs";
|
5
4
|
import * as polling from "../../lib/polling.mjs";
|
5
|
+
import { path } from "../../internal/utils/path.mjs";
|
6
6
|
export class Files extends APIResource {
|
7
7
|
/**
|
8
8
|
* Upload a new file to a vector store for indexing.
|
9
9
|
*
|
10
|
-
* Args:
|
11
|
-
* upload and index
|
10
|
+
* Args: vector_store_identifier: The ID or name of the vector store to upload to
|
11
|
+
* file: The file to upload and index
|
12
12
|
*
|
13
13
|
* Returns: VectorStoreFile: Details of the uploaded and indexed file
|
14
14
|
*/
|
15
|
-
create(
|
16
|
-
return this._client.post(path `/v1/vector_stores/${
|
15
|
+
create(vectorStoreIdentifier, body, options) {
|
16
|
+
return this._client.post(path `/v1/vector_stores/${vectorStoreIdentifier}/files`, { body, ...options });
|
17
17
|
}
|
18
18
|
/**
|
19
19
|
* Get details of a specific file in a vector store.
|
20
20
|
*
|
21
|
-
* Args:
|
21
|
+
* Args: vector_store_identifier: The ID or name of the vector store file_id: The
|
22
|
+
* ID of the file
|
22
23
|
*
|
23
24
|
* Returns: VectorStoreFile: Details of the vector store file
|
24
25
|
*/
|
25
26
|
retrieve(fileID, params, options) {
|
26
|
-
const {
|
27
|
-
return this._client.get(path `/v1/vector_stores/${
|
27
|
+
const { vector_store_identifier } = params;
|
28
|
+
return this._client.get(path `/v1/vector_stores/${vector_store_identifier}/files/${fileID}`, options);
|
28
29
|
}
|
29
30
|
/**
|
30
31
|
* List files indexed in a vector store with pagination.
|
31
32
|
*
|
32
|
-
* Args:
|
33
|
-
* parameters
|
33
|
+
* Args: vector_store_identifier: The ID or name of the vector store pagination:
|
34
|
+
* Pagination parameters
|
34
35
|
*
|
35
36
|
* Returns: VectorStoreFileListResponse: Paginated list of vector store files
|
36
37
|
*/
|
37
|
-
list(
|
38
|
-
return this._client.getAPIList(path `/v1/vector_stores/${
|
38
|
+
list(vectorStoreIdentifier, query = {}, options) {
|
39
|
+
return this._client.getAPIList(path `/v1/vector_stores/${vectorStoreIdentifier}/files`, (LimitOffset), { query, ...options });
|
39
40
|
}
|
40
41
|
/**
|
41
42
|
* Delete a file from a vector store.
|
42
43
|
*
|
43
|
-
* Args:
|
44
|
-
* delete
|
44
|
+
* Args: vector_store_identifier: The ID or name of the vector store file_id: The
|
45
|
+
* ID of the file to delete
|
45
46
|
*
|
46
47
|
* Returns: VectorStoreFileDeleted: The deleted file
|
47
48
|
*/
|
48
49
|
delete(fileID, params, options) {
|
49
|
-
const {
|
50
|
-
return this._client.delete(path `/v1/vector_stores/${
|
50
|
+
const { vector_store_identifier } = params;
|
51
|
+
return this._client.delete(path `/v1/vector_stores/${vector_store_identifier}/files/${fileID}`, options);
|
51
52
|
}
|
52
53
|
/**
|
53
54
|
* Perform semantic search across complete vector store files.
|
@@ -84,8 +85,8 @@ export class Files extends APIResource {
|
|
84
85
|
const pollingIntervalMs = pollIntervalMs || 500;
|
85
86
|
const pollingTimeoutMs = pollTimeoutMs;
|
86
87
|
return polling.poll({
|
87
|
-
fn: () => this.retrieve(fileId, {
|
88
|
-
condition: (result) => result.status === 'completed' || result.status === 'failed' || result.status === '
|
88
|
+
fn: () => this.retrieve(fileId, { vector_store_identifier: vectorStoreId, ...options }),
|
89
|
+
condition: (result) => result.status === 'completed' || result.status === 'failed' || result.status === 'cancelled',
|
89
90
|
intervalSeconds: pollingIntervalMs / 1000,
|
90
91
|
...(pollingTimeoutMs && { timeoutSeconds: pollingTimeoutMs / 1000 }),
|
91
92
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"files.mjs","sourceRoot":"","sources":["../../src/resources/vector-stores/files.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,WAAW,EAAuC;OAEpD,EAAE,IAAI,EAAE;
|
1
|
+
{"version":3,"file":"files.mjs","sourceRoot":"","sources":["../../src/resources/vector-stores/files.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,WAAW,EAAuC;OAEpD,KAAK,OAAO;OAEZ,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;;;;;;OAOG;IACH,MAAM,CACJ,qBAA6B,EAC7B,IAAsB,EACtB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,qBAAqB,qBAAqB,QAAQ,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzG,CAAC;IAED;;;;;;;OAOG;IACH,QAAQ,CACN,MAAc,EACd,MAA0B,EAC1B,OAAwB;QAExB,MAAM,EAAE,uBAAuB,EAAE,GAAG,MAAM,CAAC;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG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Aa,EAAE,OAAO,CAAC,CAAC;IAC9F,CAAC;CACF"}
|
@@ -1,3 +1,3 @@
|
|
1
1
|
export { Files, type ScoredVectorStoreFile, type VectorStoreFile, type FileDeleteResponse, type FileSearchResponse, type FileCreateParams, type FileRetrieveParams, type FileListParams, type FileDeleteParams, type FileSearchParams, type VectorStoreFilesLimitOffset, } from "./files.mjs";
|
2
|
-
export { VectorStores, type ExpiresAfter, type
|
2
|
+
export { VectorStores, type ExpiresAfter, type ScoredAudioURLInputChunk, type ScoredImageURLInputChunk, type ScoredTextInputChunk, type ScoredVideoURLInputChunk, type VectorStore, type VectorStoreChunkSearchOptions, type VectorStoreDeleteResponse, type VectorStoreQuestionAnsweringResponse, type VectorStoreSearchResponse, type VectorStoreCreateParams, type VectorStoreUpdateParams, type VectorStoreListParams, type VectorStoreQuestionAnsweringParams, type VectorStoreSearchParams, type VectorStoresLimitOffset, } from "./vector-stores.mjs";
|
3
3
|
//# sourceMappingURL=index.d.mts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/vector-stores/index.ts"],"names":[],"mappings":"OAEO,EACL,KAAK,EACL,KAAK,qBAAqB,EAC1B,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,2BAA2B,GACjC;OACM,EACL,YAAY,EACZ,KAAK,YAAY,EACjB,KAAK,
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/vector-stores/index.ts"],"names":[],"mappings":"OAEO,EACL,KAAK,EACL,KAAK,qBAAqB,EAC1B,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,2BAA2B,GACjC;OACM,EACL,YAAY,EACZ,KAAK,YAAY,EACjB,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,WAAW,EAChB,KAAK,6BAA6B,EAClC,KAAK,yBAAyB,EAC9B,KAAK,oCAAoC,EACzC,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,kCAAkC,EACvC,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,GAC7B"}
|
@@ -1,3 +1,3 @@
|
|
1
1
|
export { Files, type ScoredVectorStoreFile, type VectorStoreFile, type FileDeleteResponse, type FileSearchResponse, type FileCreateParams, type FileRetrieveParams, type FileListParams, type FileDeleteParams, type FileSearchParams, type VectorStoreFilesLimitOffset, } from "./files.js";
|
2
|
-
export { VectorStores, type ExpiresAfter, type
|
2
|
+
export { VectorStores, type ExpiresAfter, type ScoredAudioURLInputChunk, type ScoredImageURLInputChunk, type ScoredTextInputChunk, type ScoredVideoURLInputChunk, type VectorStore, type VectorStoreChunkSearchOptions, type VectorStoreDeleteResponse, type VectorStoreQuestionAnsweringResponse, type VectorStoreSearchResponse, type VectorStoreCreateParams, type VectorStoreUpdateParams, type VectorStoreListParams, type VectorStoreQuestionAnsweringParams, type VectorStoreSearchParams, type VectorStoresLimitOffset, } from "./vector-stores.js";
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/vector-stores/index.ts"],"names":[],"mappings":"OAEO,EACL,KAAK,EACL,KAAK,qBAAqB,EAC1B,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,2BAA2B,GACjC;OACM,EACL,YAAY,EACZ,KAAK,YAAY,EACjB,KAAK,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/vector-stores/index.ts"],"names":[],"mappings":"OAEO,EACL,KAAK,EACL,KAAK,qBAAqB,EAC1B,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,2BAA2B,GACjC;OACM,EACL,YAAY,EACZ,KAAK,YAAY,EACjB,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,WAAW,EAChB,KAAK,6BAA6B,EAClC,KAAK,yBAAyB,EAC9B,KAAK,oCAAoC,EACzC,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,kCAAkC,EACvC,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,GAC7B"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/vector-stores/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oCAYiB;AAXf,8FAAA,KAAK,OAAA;AAYP,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/vector-stores/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oCAYiB;AAXf,8FAAA,KAAK,OAAA;AAYP,oDAkByB;AAjBvB,6GAAA,YAAY,OAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/vector-stores/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,KAAK,GAWN;OACM,EACL,YAAY,
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/vector-stores/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,KAAK,GAWN;OACM,EACL,YAAY,GAiBb"}
|