@mixedbread/sdk 0.6.0 → 0.8.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 +63 -0
- package/README.md +12 -24
- package/bin/migration-config.json +2 -2
- package/client.d.mts +4 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +4 -4
- package/client.d.ts.map +1 -1
- package/client.js +2 -2
- package/client.js.map +1 -1
- package/client.mjs +2 -2
- 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 +4 -4
- package/internal/headers.js.map +1 -1
- package/internal/headers.mjs +4 -4
- 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 -4
- package/resources/data-sources/connectors.d.mts +14 -4
- package/resources/data-sources/connectors.d.mts.map +1 -1
- package/resources/data-sources/connectors.d.ts +14 -4
- package/resources/data-sources/connectors.d.ts.map +1 -1
- package/resources/data-sources/data-sources.d.mts +172 -35
- package/resources/data-sources/data-sources.d.mts.map +1 -1
- package/resources/data-sources/data-sources.d.ts +172 -35
- package/resources/data-sources/data-sources.d.ts.map +1 -1
- package/resources/data-sources/data-sources.js.map +1 -1
- package/resources/data-sources/data-sources.mjs.map +1 -1
- package/resources/data-sources/index.d.mts +1 -1
- package/resources/data-sources/index.d.mts.map +1 -1
- package/resources/data-sources/index.d.ts +1 -1
- package/resources/data-sources/index.d.ts.map +1 -1
- package/resources/data-sources/index.js.map +1 -1
- package/resources/data-sources/index.mjs.map +1 -1
- package/resources/extractions/content.d.mts +4 -0
- package/resources/extractions/content.d.mts.map +1 -1
- package/resources/extractions/content.d.ts +4 -0
- package/resources/extractions/content.d.ts.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/vector-stores/files.d.mts +59 -26
- package/resources/vector-stores/files.d.mts.map +1 -1
- package/resources/vector-stores/files.d.ts +59 -26
- package/resources/vector-stores/files.d.ts.map +1 -1
- package/resources/vector-stores/files.js +32 -31
- package/resources/vector-stores/files.js.map +1 -1
- package/resources/vector-stores/files.mjs +32 -31
- 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 +53 -18
- package/resources/vector-stores/vector-stores.d.mts.map +1 -1
- package/resources/vector-stores/vector-stores.d.ts +53 -18
- 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 +10 -4
- 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 +5 -5
- 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/data-sources/connectors.ts +14 -4
- package/src/resources/data-sources/data-sources.ts +207 -37
- package/src/resources/data-sources/index.ts +3 -0
- package/src/resources/extractions/content.ts +5 -0
- package/src/resources/index.ts +3 -0
- package/src/resources/vector-stores/files.ts +81 -39
- package/src/resources/vector-stores/index.ts +2 -0
- package/src/resources/vector-stores/vector-stores.ts +67 -20
- 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
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"files.js","sourceRoot":"","sources":["../../src/resources/vector-stores/files.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;
|
1
|
+
{"version":3,"file":"files.js","sourceRoot":"","sources":["../../src/resources/vector-stores/files.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAKlD,yDAAyF;AAEzF,sEAA6C;AAE7C,uDAAiD;AAEjD,MAAa,KAAM,SAAQ,sBAAW;IACpC;;;;;;;OAOG;IACH,MAAM,CACJ,qBAA6B,EAC7B,IAAsB,EACtB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,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,CAAC,IAAA,WAAI,EAAA,qBAAqB,uBAAuB,UAAU,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IACvG,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CACF,qBAA6B,EAC7B,QAA2C,EAAE,EAC7C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAA,WAAI,EAAA,qBAAqB,qBAAqB,QAAQ,EACtD,CAAA,wBAA4B,CAAA,EAC5B,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,MAAc,EAAE,MAAwB,EAAE,OAAwB;QACvE,MAAM,EAAE,uBAAuB,EAAE,GAAG,MAAM,CAAC;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,qBAAqB,uBAAuB,UAAU,MAAM,EAAE,EAAE,O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AED;;;;;;;;;OASG;IACH,KAAK,CAAC,MAAM,CACV,qBAA6B,EAC7B,IAAgB,EAChB,IAAwC,EACxC,OAAwB;QAExB,MAAM,kBAAkB,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC;QAE9E,OAAO,IAAI,CAAC,MAAM,CAChB,qBAAqB,EACrB;YACE,OAAO,EAAE,kBAAkB,CAAC,EAAE;YAC9B,GAAG,IAAI;SACR,EACD,OAAO,CACR,CAAC;IACJ,CAAC;IAED;;;;;;;;;;OAUG;IACH,KAAK,CAAC,aAAa,CACjB,qBAA6B,EAC7B,IAAgB,EAChB,IAAwC,EACxC,cAAuB,EACvB,aAAsB,EACtB,OAAwB;QAExB,MAAM,eAAe,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,qBAAqB,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QACtF,OAAO,IAAI,CAAC,IAAI,CAAC,qBAAqB,EAAE,eAAe,CAAC,EAAE,EAAE,cAAc,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC;IACtG,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.
|
@@ -73,19 +74,19 @@ export class Files extends APIResource {
|
|
73
74
|
/**
|
74
75
|
* Poll for a file's processing status until it reaches a terminal state.
|
75
76
|
*
|
76
|
-
* @param
|
77
|
+
* @param vectorStoreIdentifier - The identifier of the vector store
|
77
78
|
* @param fileId - The ID of the file to poll
|
78
79
|
* @param pollIntervalMs - The interval between polls in milliseconds (default: 500)
|
79
80
|
* @param pollTimeoutMs - The maximum time to poll for in milliseconds (default: no timeout)
|
80
81
|
* @param options - Additional request options
|
81
82
|
* @returns The file object once it reaches a terminal state
|
82
83
|
*/
|
83
|
-
async poll(
|
84
|
+
async poll(vectorStoreIdentifier, fileId, pollIntervalMs, pollTimeoutMs, options) {
|
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: vectorStoreIdentifier, ...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
|
});
|
@@ -93,30 +94,30 @@ export class Files extends APIResource {
|
|
93
94
|
/**
|
94
95
|
* Create a file in a vector store and wait for it to be processed.
|
95
96
|
*
|
96
|
-
* @param
|
97
|
+
* @param vectorStoreIdentifier - The identifier of the vector store to upload to
|
97
98
|
* @param body - The file creation parameters
|
98
99
|
* @param pollIntervalMs - The interval between polls in milliseconds (default: 500)
|
99
100
|
* @param pollTimeoutMs - The maximum time to poll for in milliseconds (default: no timeout)
|
100
101
|
* @param options - Additional request options
|
101
102
|
* @returns The file object once it reaches a terminal state
|
102
103
|
*/
|
103
|
-
async createAndPoll(
|
104
|
-
const file = await this.create(
|
105
|
-
return this.poll(
|
104
|
+
async createAndPoll(vectorStoreIdentifier, body, pollIntervalMs, pollTimeoutMs, options) {
|
105
|
+
const file = await this.create(vectorStoreIdentifier, body, options);
|
106
|
+
return this.poll(vectorStoreIdentifier, file.id, pollIntervalMs, pollTimeoutMs, options);
|
106
107
|
}
|
107
108
|
/**
|
108
109
|
* Upload a file to the files API and then create a file in a vector store.
|
109
110
|
* Note the file will be asynchronously processed.
|
110
111
|
*
|
111
|
-
* @param
|
112
|
+
* @param vectorStoreIdentifier - The identifier of the vector store to add the file to
|
112
113
|
* @param file - The file to upload
|
113
114
|
* @param body - Additional parameters for the vector store file
|
114
115
|
* @param options - Additional request options
|
115
116
|
* @returns The created vector store file
|
116
117
|
*/
|
117
|
-
async upload(
|
118
|
+
async upload(vectorStoreIdentifier, file, body, options) {
|
118
119
|
const fileUploadResponse = await this._client.files.create({ file }, options);
|
119
|
-
return this.create(
|
120
|
+
return this.create(vectorStoreIdentifier, {
|
120
121
|
file_id: fileUploadResponse.id,
|
121
122
|
...body,
|
122
123
|
}, options);
|
@@ -124,7 +125,7 @@ export class Files extends APIResource {
|
|
124
125
|
/**
|
125
126
|
* Upload a file to files API, create a file in a vector store, and poll until processing is complete.
|
126
127
|
*
|
127
|
-
* @param
|
128
|
+
* @param vectorStoreIdentifier - The identifier of the vector store to add the file to
|
128
129
|
* @param file - The file to upload
|
129
130
|
* @param body - Additional parameters for the vector store file
|
130
131
|
* @param pollIntervalMs - The interval between polls in milliseconds (default: 500)
|
@@ -132,9 +133,9 @@ export class Files extends APIResource {
|
|
132
133
|
* @param options - Additional request options
|
133
134
|
* @returns The vector store file object once it reaches a terminal state
|
134
135
|
*/
|
135
|
-
async uploadAndPoll(
|
136
|
-
const vectorStoreFile = await this.upload(
|
137
|
-
return this.poll(
|
136
|
+
async uploadAndPoll(vectorStoreIdentifier, file, body, pollIntervalMs, pollTimeoutMs, options) {
|
137
|
+
const vectorStoreFile = await this.upload(vectorStoreIdentifier, file, body, options);
|
138
|
+
return this.poll(vectorStoreIdentifier, vectorStoreFile.id, pollIntervalMs, pollTimeoutMs, options);
|
138
139
|
}
|
139
140
|
}
|
140
141
|
//# sourceMappingURL=files.mjs.map
|
@@ -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;
|
1
|
+
{"version":3,"file":"files.mjs","sourceRoot":"","sources":["../../src/resources/vector-stores/files.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAKf,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,CAAC,IAAI,CAAA,qBAAqB,uBAAuB,UAAU,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IACvG,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CACF,qBAA6B,EAC7B,QAA2C,EAAE,EAC7C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,C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AAC;IACL,CAAC;IAED;;;;;;;;;OASG;IACH,KAAK,CAAC,aAAa,CACjB,qBAA6B,EAC7B,IAAsB,EACtB,cAAuB,EACvB,aAAsB,EACtB,OAAwB;QAExB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,qBAAqB,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QACrE,OAAO,IAAI,CAAC,IAAI,CAAC,qBAAqB,EAAE,IAAI,CAAC,EAAE,EAAE,cAAc,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC;IAC3F,CAAC;IAED;;;;;;;;;OASG;IACH,KAAK,CAAC,MAAM,CACV,qBAA6B,EAC7B,IAAgB,EAChB,IAAwC,EACxC,OAAwB;QAExB,MAAM,kBAAkB,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC;QAE9E,OAAO,IAAI,CAAC,MAAM,CAChB,qBAAqB,EACrB;YACE,OAAO,EAAE,kBAAkB,CAAC,EAAE;YAC9B,GAAG,IAAI;SACR,EACD,OAAO,CACR,CAAC;IACJ,CAAC;IAED;;;;;;;;;;OAUG;IACH,KAAK,CAAC,aAAa,CACjB,qBAA6B,EAC7B,IAAgB,EAChB,IAAwC,EACxC,cAAuB,EACvB,aAAsB,EACtB,OAAwB;QAExB,MAAM,eAAe,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,qBAAqB,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QACtF,OAAO,IAAI,CAAC,IAAI,CAAC,qBAAqB,EAAE,eAAe,CAAC,EAAE,EAAE,cAAc,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC;IACtG,CAAC;CACF"}
|
@@ -1,3 +1,3 @@
|
|
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";
|
1
|
+
export { Files, type RerankConfig, type ScoredVectorStoreFile, type VectorStoreFileStatus, type VectorStoreFile, type FileDeleteResponse, type FileSearchResponse, type FileCreateParams, type FileRetrieveParams, type FileListParams, type FileDeleteParams, type FileSearchParams, type VectorStoreFilesLimitOffset, } from "./files.mjs";
|
2
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,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
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/vector-stores/index.ts"],"names":[],"mappings":"OAEO,EACL,KAAK,EACL,KAAK,YAAY,EACjB,KAAK,qBAAqB,EAC1B,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
|
-
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";
|
1
|
+
export { Files, type RerankConfig, type ScoredVectorStoreFile, type VectorStoreFileStatus, type VectorStoreFile, type FileDeleteResponse, type FileSearchResponse, type FileCreateParams, type FileRetrieveParams, type FileListParams, type FileDeleteParams, type FileSearchParams, type VectorStoreFilesLimitOffset, } from "./files.js";
|
2
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,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
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/vector-stores/index.ts"],"names":[],"mappings":"OAEO,EACL,KAAK,EACL,KAAK,YAAY,EACjB,KAAK,qBAAqB,EAC1B,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,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/vector-stores/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oCAciB;AAbf,8FAAA,KAAK,OAAA;AAcP,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,
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/vector-stores/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,KAAK,GAaN;OACM,EACL,YAAY,GAiBb"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { APIResource } from "../../core/resource.mjs";
|
2
2
|
import * as Shared from "../shared.mjs";
|
3
3
|
import * as FilesAPI from "./files.mjs";
|
4
|
-
import { FileCreateParams, FileDeleteParams, FileDeleteResponse, FileListParams, FileRetrieveParams, FileSearchParams, FileSearchResponse, Files, ScoredVectorStoreFile, VectorStoreFile, VectorStoreFilesLimitOffset } from "./files.mjs";
|
4
|
+
import { FileCreateParams, FileDeleteParams, FileDeleteResponse, FileListParams, FileRetrieveParams, FileSearchParams, FileSearchResponse, Files, RerankConfig, ScoredVectorStoreFile, VectorStoreFile, VectorStoreFileStatus, VectorStoreFilesLimitOffset } from "./files.mjs";
|
5
5
|
import { APIPromise } from "../../core/api-promise.mjs";
|
6
6
|
import { LimitOffset, type LimitOffsetParams, PagePromise } from "../../core/pagination.mjs";
|
7
7
|
import { RequestOptions } from "../../internal/request-options.mjs";
|
@@ -17,39 +17,40 @@ export declare class VectorStores extends APIResource {
|
|
17
17
|
*/
|
18
18
|
create(body: VectorStoreCreateParams, options?: RequestOptions): APIPromise<VectorStore>;
|
19
19
|
/**
|
20
|
-
* Get a vector store by ID.
|
20
|
+
* Get a vector store by ID or name.
|
21
21
|
*
|
22
|
-
* Args:
|
22
|
+
* Args: vector_store_identifier: The ID or name of the vector store to retrieve.
|
23
23
|
*
|
24
24
|
* Returns: VectorStore: The response containing the vector store details.
|
25
25
|
*/
|
26
|
-
retrieve(
|
26
|
+
retrieve(vectorStoreIdentifier: string, options?: RequestOptions): APIPromise<VectorStore>;
|
27
27
|
/**
|
28
|
-
* Update a vector store by ID.
|
28
|
+
* Update a vector store by ID or name.
|
29
29
|
*
|
30
|
-
* Args:
|
30
|
+
* Args: vector_store_identifier: The ID or name of the vector store to update.
|
31
31
|
* vector_store_update: VectorStoreCreate object containing the name, description,
|
32
32
|
* and metadata.
|
33
33
|
*
|
34
34
|
* Returns: VectorStore: The response containing the updated vector store details.
|
35
35
|
*/
|
36
|
-
update(
|
36
|
+
update(vectorStoreIdentifier: string, body: VectorStoreUpdateParams, options?: RequestOptions): APIPromise<VectorStore>;
|
37
37
|
/**
|
38
|
-
* List all vector stores.
|
38
|
+
* List all vector stores with optional search.
|
39
39
|
*
|
40
|
-
* Args: pagination: The pagination options.
|
40
|
+
* Args: pagination: The pagination options. q: Optional search query to filter
|
41
|
+
* vector stores.
|
41
42
|
*
|
42
43
|
* Returns: VectorStoreListResponse: The list of vector stores.
|
43
44
|
*/
|
44
45
|
list(query?: VectorStoreListParams | null | undefined, options?: RequestOptions): PagePromise<VectorStoresLimitOffset, VectorStore>;
|
45
46
|
/**
|
46
|
-
* Delete a vector store by ID.
|
47
|
+
* Delete a vector store by ID or name.
|
47
48
|
*
|
48
|
-
* Args:
|
49
|
+
* Args: vector_store_identifier: The ID or name of the vector store to delete.
|
49
50
|
*
|
50
51
|
* Returns: VectorStore: The response containing the deleted vector store details.
|
51
52
|
*/
|
52
|
-
delete(
|
53
|
+
delete(vectorStoreIdentifier: string, options?: RequestOptions): APIPromise<VectorStoreDeleteResponse>;
|
53
54
|
/**
|
54
55
|
* Question answering
|
55
56
|
*/
|
@@ -62,7 +63,9 @@ export declare class VectorStores extends APIResource {
|
|
62
63
|
* relevance-scored results.
|
63
64
|
*
|
64
65
|
* Args: search_params: Search configuration including: - query text or
|
65
|
-
* embeddings -
|
66
|
+
* embeddings - vector_store_ids: List of vector stores to search - file_ids:
|
67
|
+
* Optional list of file IDs to filter chunks by (or tuple of list and condition
|
68
|
+
* operator) - metadata filters - pagination parameters - sorting preferences
|
66
69
|
* \_state: API state dependency \_ctx: Service context dependency
|
67
70
|
*
|
68
71
|
* Returns: VectorStoreSearchChunkResponse containing: - List of matched chunks
|
@@ -207,6 +210,10 @@ export declare namespace ScoredImageURLInputChunk {
|
|
207
210
|
* The image URL. Can be either a URL or a Data URI.
|
208
211
|
*/
|
209
212
|
url: string;
|
213
|
+
/**
|
214
|
+
* The image format/mimetype
|
215
|
+
*/
|
216
|
+
format?: string;
|
210
217
|
}
|
211
218
|
}
|
212
219
|
export interface ScoredTextInputChunk {
|
@@ -374,6 +381,10 @@ export declare namespace VectorStore {
|
|
374
381
|
* Counts of files in different states
|
375
382
|
*/
|
376
383
|
interface FileCounts {
|
384
|
+
/**
|
385
|
+
* Number of files waiting to be processed
|
386
|
+
*/
|
387
|
+
pending?: number;
|
377
388
|
/**
|
378
389
|
* Number of files currently being processed
|
379
390
|
*/
|
@@ -408,6 +419,10 @@ export interface VectorStoreChunkSearchOptions {
|
|
408
419
|
* Whether to rewrite the query
|
409
420
|
*/
|
410
421
|
rewrite_query?: boolean;
|
422
|
+
/**
|
423
|
+
* Whether to rerank results and optional reranking configuration
|
424
|
+
*/
|
425
|
+
rerank?: boolean | FilesAPI.RerankConfig | null;
|
411
426
|
/**
|
412
427
|
* Whether to return file metadata
|
413
428
|
*/
|
@@ -494,6 +509,10 @@ export interface VectorStoreUpdateParams {
|
|
494
509
|
metadata?: unknown;
|
495
510
|
}
|
496
511
|
export interface VectorStoreListParams extends LimitOffsetParams {
|
512
|
+
/**
|
513
|
+
* Search query for fuzzy matching over name and description fields
|
514
|
+
*/
|
515
|
+
q?: string | null;
|
497
516
|
}
|
498
517
|
export interface VectorStoreQuestionAnsweringParams {
|
499
518
|
/**
|
@@ -502,9 +521,13 @@ export interface VectorStoreQuestionAnsweringParams {
|
|
502
521
|
*/
|
503
522
|
query?: string;
|
504
523
|
/**
|
505
|
-
* IDs of vector stores to search
|
524
|
+
* IDs or names of vector stores to search
|
506
525
|
*/
|
507
|
-
|
526
|
+
vector_store_identifiers?: Array<string> | null;
|
527
|
+
/**
|
528
|
+
* @deprecated
|
529
|
+
*/
|
530
|
+
vector_store_ids?: Array<string> | null;
|
508
531
|
/**
|
509
532
|
* Number of results to return
|
510
533
|
*/
|
@@ -513,6 +536,10 @@ export interface VectorStoreQuestionAnsweringParams {
|
|
513
536
|
* Optional filter conditions
|
514
537
|
*/
|
515
538
|
filters?: Shared.SearchFilter | Shared.SearchFilterCondition | Array<Shared.SearchFilter | Shared.SearchFilterCondition> | null;
|
539
|
+
/**
|
540
|
+
* Optional list of file IDs to filter chunks by (inclusion filter)
|
541
|
+
*/
|
542
|
+
file_ids?: Array<unknown> | Array<string> | null;
|
516
543
|
/**
|
517
544
|
* Search configuration options
|
518
545
|
*/
|
@@ -547,9 +574,13 @@ export interface VectorStoreSearchParams {
|
|
547
574
|
*/
|
548
575
|
query: string;
|
549
576
|
/**
|
550
|
-
* IDs of vector stores to search
|
577
|
+
* IDs or names of vector stores to search
|
551
578
|
*/
|
552
|
-
|
579
|
+
vector_store_identifiers?: Array<string> | null;
|
580
|
+
/**
|
581
|
+
* @deprecated
|
582
|
+
*/
|
583
|
+
vector_store_ids?: Array<string> | null;
|
553
584
|
/**
|
554
585
|
* Number of results to return
|
555
586
|
*/
|
@@ -558,6 +589,10 @@ export interface VectorStoreSearchParams {
|
|
558
589
|
* Optional filter conditions
|
559
590
|
*/
|
560
591
|
filters?: Shared.SearchFilter | Shared.SearchFilterCondition | Array<Shared.SearchFilter | Shared.SearchFilterCondition> | null;
|
592
|
+
/**
|
593
|
+
* Optional list of file IDs to filter chunks by (inclusion filter)
|
594
|
+
*/
|
595
|
+
file_ids?: Array<unknown> | Array<string> | null;
|
561
596
|
/**
|
562
597
|
* Search configuration options
|
563
598
|
*/
|
@@ -565,6 +600,6 @@ export interface VectorStoreSearchParams {
|
|
565
600
|
}
|
566
601
|
export declare namespace VectorStores {
|
567
602
|
export { type ExpiresAfter as ExpiresAfter, type ScoredAudioURLInputChunk as ScoredAudioURLInputChunk, type ScoredImageURLInputChunk as ScoredImageURLInputChunk, type ScoredTextInputChunk as ScoredTextInputChunk, type ScoredVideoURLInputChunk as ScoredVideoURLInputChunk, type VectorStore as VectorStore, type VectorStoreChunkSearchOptions as VectorStoreChunkSearchOptions, type VectorStoreDeleteResponse as VectorStoreDeleteResponse, type VectorStoreQuestionAnsweringResponse as VectorStoreQuestionAnsweringResponse, type VectorStoreSearchResponse as VectorStoreSearchResponse, type VectorStoresLimitOffset as VectorStoresLimitOffset, type VectorStoreCreateParams as VectorStoreCreateParams, type VectorStoreUpdateParams as VectorStoreUpdateParams, type VectorStoreListParams as VectorStoreListParams, type VectorStoreQuestionAnsweringParams as VectorStoreQuestionAnsweringParams, type VectorStoreSearchParams as VectorStoreSearchParams, };
|
568
|
-
export { Files as Files, 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, };
|
603
|
+
export { Files as Files, type RerankConfig as RerankConfig, type ScoredVectorStoreFile as ScoredVectorStoreFile, type VectorStoreFileStatus as VectorStoreFileStatus, 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, };
|
569
604
|
}
|
570
605
|
//# sourceMappingURL=vector-stores.d.mts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"vector-stores.d.mts","sourceRoot":"","sources":["../../src/resources/vector-stores/vector-stores.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,KAAK,QAAQ;OACb,EACL,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,EACd,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EAClB,KAAK,EACL,qBAAqB,EACrB,eAAe,EACf,2BAA2B,EAC5B;OACM,EAAE,UAAU,EAAE;OACd,EAAE,WAAW,EAAE,KAAK,iBAAiB,EAAE,WAAW,EAAE;OACpD,EAAE,cAAc,EAAE;AAGzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;IAEzD;;;;;;;OAOG;IACH,MAAM,CAAC,IAAI,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,WAAW,CAAC;IAIxF;;;;;;OAMG;IACH,QAAQ,CAAC,
|
1
|
+
{"version":3,"file":"vector-stores.d.mts","sourceRoot":"","sources":["../../src/resources/vector-stores/vector-stores.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,KAAK,QAAQ;OACb,EACL,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,EACd,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EAClB,KAAK,EACL,YAAY,EACZ,qBAAqB,EACrB,eAAe,EACf,qBAAqB,EACrB,2BAA2B,EAC5B;OACM,EAAE,UAAU,EAAE;OACd,EAAE,WAAW,EAAE,KAAK,iBAAiB,EAAE,WAAW,EAAE;OACpD,EAAE,cAAc,EAAE;AAGzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;IAEzD;;;;;;;OAOG;IACH,MAAM,CAAC,IAAI,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,WAAW,CAAC;IAIxF;;;;;;OAMG;IACH,QAAQ,CAAC,qBAAqB,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,WAAW,CAAC;IAI1F;;;;;;;;OAQG;IACH,MAAM,CACJ,qBAAqB,EAAE,MAAM,EAC7B,IAAI,EAAE,uBAAuB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,WAAW,CAAC;IAI1B;;;;;;;OAOG;IACH,IAAI,CACF,KAAK,GAAE,qBAAqB,GAAG,IAAI,GAAG,SAAc,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,uBAAuB,EAAE,WAAW,CAAC;IAIpD;;;;;;OAMG;IACH,MAAM,CAAC,qBAAqB,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,yBAAyB,CAAC;IAItG;;OAEG;IACH,iBAAiB,CACf,IAAI,EAAE,kCAAkC,EACxC,OAAO,CAAC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IACpC,OAAO,EACL,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,oCAAoC,IAAI,oCAAoC,EACjF,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;IAEF,OAAO,EACL,KAAK,IAAI,KAAK,EACd,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,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"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { APIResource } from "../../core/resource.js";
|
2
2
|
import * as Shared from "../shared.js";
|
3
3
|
import * as FilesAPI from "./files.js";
|
4
|
-
import { FileCreateParams, FileDeleteParams, FileDeleteResponse, FileListParams, FileRetrieveParams, FileSearchParams, FileSearchResponse, Files, ScoredVectorStoreFile, VectorStoreFile, VectorStoreFilesLimitOffset } from "./files.js";
|
4
|
+
import { FileCreateParams, FileDeleteParams, FileDeleteResponse, FileListParams, FileRetrieveParams, FileSearchParams, FileSearchResponse, Files, RerankConfig, ScoredVectorStoreFile, VectorStoreFile, VectorStoreFileStatus, VectorStoreFilesLimitOffset } from "./files.js";
|
5
5
|
import { APIPromise } from "../../core/api-promise.js";
|
6
6
|
import { LimitOffset, type LimitOffsetParams, PagePromise } from "../../core/pagination.js";
|
7
7
|
import { RequestOptions } from "../../internal/request-options.js";
|
@@ -17,39 +17,40 @@ export declare class VectorStores extends APIResource {
|
|
17
17
|
*/
|
18
18
|
create(body: VectorStoreCreateParams, options?: RequestOptions): APIPromise<VectorStore>;
|
19
19
|
/**
|
20
|
-
* Get a vector store by ID.
|
20
|
+
* Get a vector store by ID or name.
|
21
21
|
*
|
22
|
-
* Args:
|
22
|
+
* Args: vector_store_identifier: The ID or name of the vector store to retrieve.
|
23
23
|
*
|
24
24
|
* Returns: VectorStore: The response containing the vector store details.
|
25
25
|
*/
|
26
|
-
retrieve(
|
26
|
+
retrieve(vectorStoreIdentifier: string, options?: RequestOptions): APIPromise<VectorStore>;
|
27
27
|
/**
|
28
|
-
* Update a vector store by ID.
|
28
|
+
* Update a vector store by ID or name.
|
29
29
|
*
|
30
|
-
* Args:
|
30
|
+
* Args: vector_store_identifier: The ID or name of the vector store to update.
|
31
31
|
* vector_store_update: VectorStoreCreate object containing the name, description,
|
32
32
|
* and metadata.
|
33
33
|
*
|
34
34
|
* Returns: VectorStore: The response containing the updated vector store details.
|
35
35
|
*/
|
36
|
-
update(
|
36
|
+
update(vectorStoreIdentifier: string, body: VectorStoreUpdateParams, options?: RequestOptions): APIPromise<VectorStore>;
|
37
37
|
/**
|
38
|
-
* List all vector stores.
|
38
|
+
* List all vector stores with optional search.
|
39
39
|
*
|
40
|
-
* Args: pagination: The pagination options.
|
40
|
+
* Args: pagination: The pagination options. q: Optional search query to filter
|
41
|
+
* vector stores.
|
41
42
|
*
|
42
43
|
* Returns: VectorStoreListResponse: The list of vector stores.
|
43
44
|
*/
|
44
45
|
list(query?: VectorStoreListParams | null | undefined, options?: RequestOptions): PagePromise<VectorStoresLimitOffset, VectorStore>;
|
45
46
|
/**
|
46
|
-
* Delete a vector store by ID.
|
47
|
+
* Delete a vector store by ID or name.
|
47
48
|
*
|
48
|
-
* Args:
|
49
|
+
* Args: vector_store_identifier: The ID or name of the vector store to delete.
|
49
50
|
*
|
50
51
|
* Returns: VectorStore: The response containing the deleted vector store details.
|
51
52
|
*/
|
52
|
-
delete(
|
53
|
+
delete(vectorStoreIdentifier: string, options?: RequestOptions): APIPromise<VectorStoreDeleteResponse>;
|
53
54
|
/**
|
54
55
|
* Question answering
|
55
56
|
*/
|
@@ -62,7 +63,9 @@ export declare class VectorStores extends APIResource {
|
|
62
63
|
* relevance-scored results.
|
63
64
|
*
|
64
65
|
* Args: search_params: Search configuration including: - query text or
|
65
|
-
* embeddings -
|
66
|
+
* embeddings - vector_store_ids: List of vector stores to search - file_ids:
|
67
|
+
* Optional list of file IDs to filter chunks by (or tuple of list and condition
|
68
|
+
* operator) - metadata filters - pagination parameters - sorting preferences
|
66
69
|
* \_state: API state dependency \_ctx: Service context dependency
|
67
70
|
*
|
68
71
|
* Returns: VectorStoreSearchChunkResponse containing: - List of matched chunks
|
@@ -207,6 +210,10 @@ export declare namespace ScoredImageURLInputChunk {
|
|
207
210
|
* The image URL. Can be either a URL or a Data URI.
|
208
211
|
*/
|
209
212
|
url: string;
|
213
|
+
/**
|
214
|
+
* The image format/mimetype
|
215
|
+
*/
|
216
|
+
format?: string;
|
210
217
|
}
|
211
218
|
}
|
212
219
|
export interface ScoredTextInputChunk {
|
@@ -374,6 +381,10 @@ export declare namespace VectorStore {
|
|
374
381
|
* Counts of files in different states
|
375
382
|
*/
|
376
383
|
interface FileCounts {
|
384
|
+
/**
|
385
|
+
* Number of files waiting to be processed
|
386
|
+
*/
|
387
|
+
pending?: number;
|
377
388
|
/**
|
378
389
|
* Number of files currently being processed
|
379
390
|
*/
|
@@ -408,6 +419,10 @@ export interface VectorStoreChunkSearchOptions {
|
|
408
419
|
* Whether to rewrite the query
|
409
420
|
*/
|
410
421
|
rewrite_query?: boolean;
|
422
|
+
/**
|
423
|
+
* Whether to rerank results and optional reranking configuration
|
424
|
+
*/
|
425
|
+
rerank?: boolean | FilesAPI.RerankConfig | null;
|
411
426
|
/**
|
412
427
|
* Whether to return file metadata
|
413
428
|
*/
|
@@ -494,6 +509,10 @@ export interface VectorStoreUpdateParams {
|
|
494
509
|
metadata?: unknown;
|
495
510
|
}
|
496
511
|
export interface VectorStoreListParams extends LimitOffsetParams {
|
512
|
+
/**
|
513
|
+
* Search query for fuzzy matching over name and description fields
|
514
|
+
*/
|
515
|
+
q?: string | null;
|
497
516
|
}
|
498
517
|
export interface VectorStoreQuestionAnsweringParams {
|
499
518
|
/**
|
@@ -502,9 +521,13 @@ export interface VectorStoreQuestionAnsweringParams {
|
|
502
521
|
*/
|
503
522
|
query?: string;
|
504
523
|
/**
|
505
|
-
* IDs of vector stores to search
|
524
|
+
* IDs or names of vector stores to search
|
506
525
|
*/
|
507
|
-
|
526
|
+
vector_store_identifiers?: Array<string> | null;
|
527
|
+
/**
|
528
|
+
* @deprecated
|
529
|
+
*/
|
530
|
+
vector_store_ids?: Array<string> | null;
|
508
531
|
/**
|
509
532
|
* Number of results to return
|
510
533
|
*/
|
@@ -513,6 +536,10 @@ export interface VectorStoreQuestionAnsweringParams {
|
|
513
536
|
* Optional filter conditions
|
514
537
|
*/
|
515
538
|
filters?: Shared.SearchFilter | Shared.SearchFilterCondition | Array<Shared.SearchFilter | Shared.SearchFilterCondition> | null;
|
539
|
+
/**
|
540
|
+
* Optional list of file IDs to filter chunks by (inclusion filter)
|
541
|
+
*/
|
542
|
+
file_ids?: Array<unknown> | Array<string> | null;
|
516
543
|
/**
|
517
544
|
* Search configuration options
|
518
545
|
*/
|
@@ -547,9 +574,13 @@ export interface VectorStoreSearchParams {
|
|
547
574
|
*/
|
548
575
|
query: string;
|
549
576
|
/**
|
550
|
-
* IDs of vector stores to search
|
577
|
+
* IDs or names of vector stores to search
|
551
578
|
*/
|
552
|
-
|
579
|
+
vector_store_identifiers?: Array<string> | null;
|
580
|
+
/**
|
581
|
+
* @deprecated
|
582
|
+
*/
|
583
|
+
vector_store_ids?: Array<string> | null;
|
553
584
|
/**
|
554
585
|
* Number of results to return
|
555
586
|
*/
|
@@ -558,6 +589,10 @@ export interface VectorStoreSearchParams {
|
|
558
589
|
* Optional filter conditions
|
559
590
|
*/
|
560
591
|
filters?: Shared.SearchFilter | Shared.SearchFilterCondition | Array<Shared.SearchFilter | Shared.SearchFilterCondition> | null;
|
592
|
+
/**
|
593
|
+
* Optional list of file IDs to filter chunks by (inclusion filter)
|
594
|
+
*/
|
595
|
+
file_ids?: Array<unknown> | Array<string> | null;
|
561
596
|
/**
|
562
597
|
* Search configuration options
|
563
598
|
*/
|
@@ -565,6 +600,6 @@ export interface VectorStoreSearchParams {
|
|
565
600
|
}
|
566
601
|
export declare namespace VectorStores {
|
567
602
|
export { type ExpiresAfter as ExpiresAfter, type ScoredAudioURLInputChunk as ScoredAudioURLInputChunk, type ScoredImageURLInputChunk as ScoredImageURLInputChunk, type ScoredTextInputChunk as ScoredTextInputChunk, type ScoredVideoURLInputChunk as ScoredVideoURLInputChunk, type VectorStore as VectorStore, type VectorStoreChunkSearchOptions as VectorStoreChunkSearchOptions, type VectorStoreDeleteResponse as VectorStoreDeleteResponse, type VectorStoreQuestionAnsweringResponse as VectorStoreQuestionAnsweringResponse, type VectorStoreSearchResponse as VectorStoreSearchResponse, type VectorStoresLimitOffset as VectorStoresLimitOffset, type VectorStoreCreateParams as VectorStoreCreateParams, type VectorStoreUpdateParams as VectorStoreUpdateParams, type VectorStoreListParams as VectorStoreListParams, type VectorStoreQuestionAnsweringParams as VectorStoreQuestionAnsweringParams, type VectorStoreSearchParams as VectorStoreSearchParams, };
|
568
|
-
export { Files as Files, 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, };
|
603
|
+
export { Files as Files, type RerankConfig as RerankConfig, type ScoredVectorStoreFile as ScoredVectorStoreFile, type VectorStoreFileStatus as VectorStoreFileStatus, 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, };
|
569
604
|
}
|
570
605
|
//# sourceMappingURL=vector-stores.d.ts.map
|