@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
@@ -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
|
@@ -87,44 +90,80 @@ export interface ExpiresAfter {
|
|
87
90
|
*/
|
88
91
|
days?: number;
|
89
92
|
}
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
93
|
+
export interface ScoredAudioURLInputChunk {
|
94
|
+
/**
|
95
|
+
* position of the chunk in a file
|
96
|
+
*/
|
97
|
+
chunk_index: number;
|
98
|
+
/**
|
99
|
+
* mime type of the chunk
|
100
|
+
*/
|
101
|
+
mime_type?: string;
|
102
|
+
/**
|
103
|
+
* model used for this chunk
|
104
|
+
*/
|
105
|
+
model?: string | null;
|
106
|
+
/**
|
107
|
+
* score of the chunk
|
108
|
+
*/
|
109
|
+
score: number;
|
110
|
+
/**
|
111
|
+
* file id
|
112
|
+
*/
|
113
|
+
file_id: string;
|
114
|
+
/**
|
115
|
+
* filename
|
116
|
+
*/
|
117
|
+
filename: string;
|
94
118
|
/**
|
95
|
-
*
|
119
|
+
* vector store id
|
120
|
+
*/
|
121
|
+
vector_store_id: string;
|
122
|
+
/**
|
123
|
+
* file metadata
|
96
124
|
*/
|
97
|
-
|
125
|
+
metadata?: unknown;
|
98
126
|
/**
|
99
|
-
*
|
127
|
+
* Input type identifier
|
100
128
|
*/
|
101
|
-
|
129
|
+
type?: 'audio_url';
|
102
130
|
/**
|
103
|
-
*
|
131
|
+
* The audio input specification.
|
104
132
|
*/
|
105
|
-
|
133
|
+
audio_url: ScoredAudioURLInputChunk.AudioURL;
|
106
134
|
/**
|
107
|
-
*
|
135
|
+
* speech recognition (sr) text of the audio
|
108
136
|
*/
|
109
|
-
|
137
|
+
transcription?: string | null;
|
110
138
|
/**
|
111
|
-
*
|
139
|
+
* summary of the audio
|
112
140
|
*/
|
113
|
-
|
141
|
+
summary?: string | null;
|
114
142
|
}
|
115
|
-
export
|
143
|
+
export declare namespace ScoredAudioURLInputChunk {
|
144
|
+
/**
|
145
|
+
* The audio input specification.
|
146
|
+
*/
|
147
|
+
interface AudioURL {
|
148
|
+
/**
|
149
|
+
* The audio URL. Can be either a URL or a Data URI.
|
150
|
+
*/
|
151
|
+
url: string;
|
152
|
+
}
|
153
|
+
}
|
154
|
+
export interface ScoredImageURLInputChunk {
|
116
155
|
/**
|
117
156
|
* position of the chunk in a file
|
118
157
|
*/
|
119
|
-
|
158
|
+
chunk_index: number;
|
120
159
|
/**
|
121
|
-
*
|
160
|
+
* mime type of the chunk
|
122
161
|
*/
|
123
|
-
|
162
|
+
mime_type?: string;
|
124
163
|
/**
|
125
|
-
*
|
164
|
+
* model used for this chunk
|
126
165
|
*/
|
127
|
-
|
166
|
+
model?: string | null;
|
128
167
|
/**
|
129
168
|
* score of the chunk
|
130
169
|
*/
|
@@ -145,47 +184,139 @@ export interface ScoredVectorStoreChunk {
|
|
145
184
|
* file metadata
|
146
185
|
*/
|
147
186
|
metadata?: unknown;
|
187
|
+
/**
|
188
|
+
* Input type identifier
|
189
|
+
*/
|
190
|
+
type?: 'image_url';
|
191
|
+
/**
|
192
|
+
* The image input specification.
|
193
|
+
*/
|
194
|
+
image_url: ScoredImageURLInputChunk.ImageURL;
|
195
|
+
/**
|
196
|
+
* ocr text of the image
|
197
|
+
*/
|
198
|
+
ocr_text?: string | null;
|
199
|
+
/**
|
200
|
+
* summary of the image
|
201
|
+
*/
|
202
|
+
summary?: string | null;
|
148
203
|
}
|
149
|
-
export declare namespace
|
204
|
+
export declare namespace ScoredImageURLInputChunk {
|
150
205
|
/**
|
151
|
-
*
|
206
|
+
* The image input specification.
|
152
207
|
*/
|
153
|
-
interface
|
154
|
-
/**
|
155
|
-
* Input type identifier
|
156
|
-
*/
|
157
|
-
type?: 'image_url';
|
208
|
+
interface ImageURL {
|
158
209
|
/**
|
159
|
-
* The image
|
210
|
+
* The image URL. Can be either a URL or a Data URI.
|
160
211
|
*/
|
161
|
-
|
162
|
-
}
|
163
|
-
namespace ImageURLInput {
|
212
|
+
url: string;
|
164
213
|
/**
|
165
|
-
* The image
|
214
|
+
* The image format/mimetype
|
166
215
|
*/
|
167
|
-
|
168
|
-
/**
|
169
|
-
* The image URL. Can be either a URL or a Data URI.
|
170
|
-
*/
|
171
|
-
url: string;
|
172
|
-
}
|
216
|
+
format?: string;
|
173
217
|
}
|
218
|
+
}
|
219
|
+
export interface ScoredTextInputChunk {
|
174
220
|
/**
|
175
|
-
*
|
176
|
-
*
|
177
|
-
* Attributes: type: Input type identifier, always "text" text: The actual text
|
178
|
-
* content, with length and whitespace constraints
|
221
|
+
* position of the chunk in a file
|
179
222
|
*/
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
223
|
+
chunk_index: number;
|
224
|
+
/**
|
225
|
+
* mime type of the chunk
|
226
|
+
*/
|
227
|
+
mime_type?: string;
|
228
|
+
/**
|
229
|
+
* model used for this chunk
|
230
|
+
*/
|
231
|
+
model?: string | null;
|
232
|
+
/**
|
233
|
+
* score of the chunk
|
234
|
+
*/
|
235
|
+
score: number;
|
236
|
+
/**
|
237
|
+
* file id
|
238
|
+
*/
|
239
|
+
file_id: string;
|
240
|
+
/**
|
241
|
+
* filename
|
242
|
+
*/
|
243
|
+
filename: string;
|
244
|
+
/**
|
245
|
+
* vector store id
|
246
|
+
*/
|
247
|
+
vector_store_id: string;
|
248
|
+
/**
|
249
|
+
* file metadata
|
250
|
+
*/
|
251
|
+
metadata?: unknown;
|
252
|
+
/**
|
253
|
+
* Input type identifier
|
254
|
+
*/
|
255
|
+
type?: 'text';
|
256
|
+
/**
|
257
|
+
* Text content to process
|
258
|
+
*/
|
259
|
+
text: string;
|
260
|
+
}
|
261
|
+
export interface ScoredVideoURLInputChunk {
|
262
|
+
/**
|
263
|
+
* position of the chunk in a file
|
264
|
+
*/
|
265
|
+
chunk_index: number;
|
266
|
+
/**
|
267
|
+
* mime type of the chunk
|
268
|
+
*/
|
269
|
+
mime_type?: string;
|
270
|
+
/**
|
271
|
+
* model used for this chunk
|
272
|
+
*/
|
273
|
+
model?: string | null;
|
274
|
+
/**
|
275
|
+
* score of the chunk
|
276
|
+
*/
|
277
|
+
score: number;
|
278
|
+
/**
|
279
|
+
* file id
|
280
|
+
*/
|
281
|
+
file_id: string;
|
282
|
+
/**
|
283
|
+
* filename
|
284
|
+
*/
|
285
|
+
filename: string;
|
286
|
+
/**
|
287
|
+
* vector store id
|
288
|
+
*/
|
289
|
+
vector_store_id: string;
|
290
|
+
/**
|
291
|
+
* file metadata
|
292
|
+
*/
|
293
|
+
metadata?: unknown;
|
294
|
+
/**
|
295
|
+
* Input type identifier
|
296
|
+
*/
|
297
|
+
type?: 'video_url';
|
298
|
+
/**
|
299
|
+
* The video input specification.
|
300
|
+
*/
|
301
|
+
video_url: ScoredVideoURLInputChunk.VideoURL;
|
302
|
+
/**
|
303
|
+
* speech recognition (sr) text of the video
|
304
|
+
*/
|
305
|
+
transcription?: string | null;
|
306
|
+
/**
|
307
|
+
* summary of the video
|
308
|
+
*/
|
309
|
+
summary?: string | null;
|
310
|
+
}
|
311
|
+
export declare namespace ScoredVideoURLInputChunk {
|
312
|
+
/**
|
313
|
+
* The video input specification.
|
314
|
+
*/
|
315
|
+
interface VideoURL {
|
185
316
|
/**
|
186
|
-
*
|
317
|
+
* The video URL. Can be either a URL or a Data URI.
|
187
318
|
*/
|
188
|
-
|
319
|
+
url: string;
|
189
320
|
}
|
190
321
|
}
|
191
322
|
/**
|
@@ -211,7 +342,7 @@ export interface VectorStore {
|
|
211
342
|
/**
|
212
343
|
* Counts of files in different states
|
213
344
|
*/
|
214
|
-
file_counts?: FileCounts;
|
345
|
+
file_counts?: VectorStore.FileCounts;
|
215
346
|
/**
|
216
347
|
* Represents an expiration policy for a vector store.
|
217
348
|
*/
|
@@ -245,6 +376,37 @@ export interface VectorStore {
|
|
245
376
|
*/
|
246
377
|
object?: 'vector_store';
|
247
378
|
}
|
379
|
+
export declare namespace VectorStore {
|
380
|
+
/**
|
381
|
+
* Counts of files in different states
|
382
|
+
*/
|
383
|
+
interface FileCounts {
|
384
|
+
/**
|
385
|
+
* Number of files waiting to be processed
|
386
|
+
*/
|
387
|
+
pending?: number;
|
388
|
+
/**
|
389
|
+
* Number of files currently being processed
|
390
|
+
*/
|
391
|
+
in_progress?: number;
|
392
|
+
/**
|
393
|
+
* Number of files whose processing was cancelled
|
394
|
+
*/
|
395
|
+
cancelled?: number;
|
396
|
+
/**
|
397
|
+
* Number of successfully processed files
|
398
|
+
*/
|
399
|
+
completed?: number;
|
400
|
+
/**
|
401
|
+
* Number of files that failed processing
|
402
|
+
*/
|
403
|
+
failed?: number;
|
404
|
+
/**
|
405
|
+
* Total number of files
|
406
|
+
*/
|
407
|
+
total?: number;
|
408
|
+
}
|
409
|
+
}
|
248
410
|
/**
|
249
411
|
* Options for configuring vector store chunk searches.
|
250
412
|
*/
|
@@ -258,34 +420,33 @@ export interface VectorStoreChunkSearchOptions {
|
|
258
420
|
*/
|
259
421
|
rewrite_query?: boolean;
|
260
422
|
/**
|
261
|
-
* Whether to
|
423
|
+
* Whether to rerank results and optional reranking configuration
|
262
424
|
*/
|
263
|
-
|
264
|
-
}
|
265
|
-
/**
|
266
|
-
* Options for configuring vector store file searches.
|
267
|
-
*/
|
268
|
-
export interface VectorStoreFileSearchOptions {
|
269
|
-
/**
|
270
|
-
* Minimum similarity score threshold
|
271
|
-
*/
|
272
|
-
score_threshold?: number;
|
273
|
-
/**
|
274
|
-
* Whether to rewrite the query
|
275
|
-
*/
|
276
|
-
rewrite_query?: boolean;
|
425
|
+
rerank?: boolean | VectorStoreChunkSearchOptions.RerankConfig | null;
|
277
426
|
/**
|
278
427
|
* Whether to return file metadata
|
279
428
|
*/
|
280
429
|
return_metadata?: boolean;
|
430
|
+
}
|
431
|
+
export declare namespace VectorStoreChunkSearchOptions {
|
281
432
|
/**
|
282
|
-
*
|
283
|
-
*/
|
284
|
-
return_chunks?: boolean;
|
285
|
-
/**
|
286
|
-
* Number of chunks to return for each file
|
433
|
+
* Represents a reranking configuration.
|
287
434
|
*/
|
288
|
-
|
435
|
+
interface RerankConfig {
|
436
|
+
/**
|
437
|
+
* The name of the reranking model
|
438
|
+
*/
|
439
|
+
model?: string;
|
440
|
+
/**
|
441
|
+
* Whether to include metadata in the reranked results
|
442
|
+
*/
|
443
|
+
with_metadata?: boolean | Array<string>;
|
444
|
+
/**
|
445
|
+
* Maximum number of results to return after reranking. If None, returns all
|
446
|
+
* reranked results.
|
447
|
+
*/
|
448
|
+
top_k?: number | null;
|
449
|
+
}
|
289
450
|
}
|
290
451
|
/**
|
291
452
|
* Response model for vector store deletion.
|
@@ -315,7 +476,7 @@ export interface VectorStoreQuestionAnsweringResponse {
|
|
315
476
|
/**
|
316
477
|
* Source documents used to generate the answer
|
317
478
|
*/
|
318
|
-
sources?: Array<
|
479
|
+
sources?: Array<ScoredTextInputChunk | ScoredImageURLInputChunk | ScoredAudioURLInputChunk | ScoredVideoURLInputChunk>;
|
319
480
|
}
|
320
481
|
export interface VectorStoreSearchResponse {
|
321
482
|
/**
|
@@ -325,7 +486,7 @@ export interface VectorStoreSearchResponse {
|
|
325
486
|
/**
|
326
487
|
* The list of scored vector store file chunks
|
327
488
|
*/
|
328
|
-
data: Array<
|
489
|
+
data: Array<ScoredTextInputChunk | ScoredImageURLInputChunk | ScoredAudioURLInputChunk | ScoredVideoURLInputChunk>;
|
329
490
|
}
|
330
491
|
export interface VectorStoreCreateParams {
|
331
492
|
/**
|
@@ -368,6 +529,10 @@ export interface VectorStoreUpdateParams {
|
|
368
529
|
metadata?: unknown;
|
369
530
|
}
|
370
531
|
export interface VectorStoreListParams extends LimitOffsetParams {
|
532
|
+
/**
|
533
|
+
* Search query for fuzzy matching over name and description fields
|
534
|
+
*/
|
535
|
+
q?: string | null;
|
371
536
|
}
|
372
537
|
export interface VectorStoreQuestionAnsweringParams {
|
373
538
|
/**
|
@@ -376,9 +541,13 @@ export interface VectorStoreQuestionAnsweringParams {
|
|
376
541
|
*/
|
377
542
|
query?: string;
|
378
543
|
/**
|
379
|
-
* IDs of vector stores to search
|
544
|
+
* IDs or names of vector stores to search
|
380
545
|
*/
|
381
|
-
|
546
|
+
vector_store_identifiers?: Array<string> | null;
|
547
|
+
/**
|
548
|
+
* @deprecated
|
549
|
+
*/
|
550
|
+
vector_store_ids?: Array<string> | null;
|
382
551
|
/**
|
383
552
|
* Number of results to return
|
384
553
|
*/
|
@@ -387,6 +556,10 @@ export interface VectorStoreQuestionAnsweringParams {
|
|
387
556
|
* Optional filter conditions
|
388
557
|
*/
|
389
558
|
filters?: Shared.SearchFilter | Shared.SearchFilterCondition | Array<Shared.SearchFilter | Shared.SearchFilterCondition> | null;
|
559
|
+
/**
|
560
|
+
* Optional list of file IDs to filter chunks by (inclusion filter)
|
561
|
+
*/
|
562
|
+
file_ids?: Array<unknown> | Array<string> | null;
|
390
563
|
/**
|
391
564
|
* Search configuration options
|
392
565
|
*/
|
@@ -409,6 +582,10 @@ export declare namespace VectorStoreQuestionAnsweringParams {
|
|
409
582
|
* Whether to use citations
|
410
583
|
*/
|
411
584
|
cite?: boolean;
|
585
|
+
/**
|
586
|
+
* Whether to use multimodal context
|
587
|
+
*/
|
588
|
+
multimodal?: boolean;
|
412
589
|
}
|
413
590
|
}
|
414
591
|
export interface VectorStoreSearchParams {
|
@@ -417,9 +594,13 @@ export interface VectorStoreSearchParams {
|
|
417
594
|
*/
|
418
595
|
query: string;
|
419
596
|
/**
|
420
|
-
* IDs of vector stores to search
|
597
|
+
* IDs or names of vector stores to search
|
598
|
+
*/
|
599
|
+
vector_store_identifiers?: Array<string> | null;
|
600
|
+
/**
|
601
|
+
* @deprecated
|
421
602
|
*/
|
422
|
-
vector_store_ids
|
603
|
+
vector_store_ids?: Array<string> | null;
|
423
604
|
/**
|
424
605
|
* Number of results to return
|
425
606
|
*/
|
@@ -428,13 +609,17 @@ export interface VectorStoreSearchParams {
|
|
428
609
|
* Optional filter conditions
|
429
610
|
*/
|
430
611
|
filters?: Shared.SearchFilter | Shared.SearchFilterCondition | Array<Shared.SearchFilter | Shared.SearchFilterCondition> | null;
|
612
|
+
/**
|
613
|
+
* Optional list of file IDs to filter chunks by (inclusion filter)
|
614
|
+
*/
|
615
|
+
file_ids?: Array<unknown> | Array<string> | null;
|
431
616
|
/**
|
432
617
|
* Search configuration options
|
433
618
|
*/
|
434
619
|
search_options?: VectorStoreChunkSearchOptions;
|
435
620
|
}
|
436
621
|
export declare namespace VectorStores {
|
437
|
-
export { type ExpiresAfter as ExpiresAfter, type
|
622
|
+
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, };
|
438
623
|
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, };
|
439
624
|
}
|
440
625
|
//# sourceMappingURL=vector-stores.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"vector-stores.d.ts","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.ts","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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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,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"}
|
@@ -25,31 +25,32 @@ class VectorStores extends resource_1.APIResource {
|
|
25
25
|
return this._client.post('/v1/vector_stores', { body, ...options });
|
26
26
|
}
|
27
27
|
/**
|
28
|
-
* Get a vector store by ID.
|
28
|
+
* Get 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 retrieve.
|
31
31
|
*
|
32
32
|
* Returns: VectorStore: The response containing the vector store details.
|
33
33
|
*/
|
34
|
-
retrieve(
|
35
|
-
return this._client.get((0, path_1.path) `/v1/vector_stores/${
|
34
|
+
retrieve(vectorStoreIdentifier, options) {
|
35
|
+
return this._client.get((0, path_1.path) `/v1/vector_stores/${vectorStoreIdentifier}`, options);
|
36
36
|
}
|
37
37
|
/**
|
38
|
-
* Update a vector store by ID.
|
38
|
+
* Update a vector store by ID or name.
|
39
39
|
*
|
40
|
-
* Args:
|
40
|
+
* Args: vector_store_identifier: The ID or name of the vector store to update.
|
41
41
|
* vector_store_update: VectorStoreCreate object containing the name, description,
|
42
42
|
* and metadata.
|
43
43
|
*
|
44
44
|
* Returns: VectorStore: The response containing the updated vector store details.
|
45
45
|
*/
|
46
|
-
update(
|
47
|
-
return this._client.put((0, path_1.path) `/v1/vector_stores/${
|
46
|
+
update(vectorStoreIdentifier, body, options) {
|
47
|
+
return this._client.put((0, path_1.path) `/v1/vector_stores/${vectorStoreIdentifier}`, { body, ...options });
|
48
48
|
}
|
49
49
|
/**
|
50
|
-
* List all vector stores.
|
50
|
+
* List all vector stores with optional search.
|
51
51
|
*
|
52
|
-
* Args: pagination: The pagination options.
|
52
|
+
* Args: pagination: The pagination options. q: Optional search query to filter
|
53
|
+
* vector stores.
|
53
54
|
*
|
54
55
|
* Returns: VectorStoreListResponse: The list of vector stores.
|
55
56
|
*/
|
@@ -57,14 +58,14 @@ class VectorStores extends resource_1.APIResource {
|
|
57
58
|
return this._client.getAPIList('/v1/vector_stores', (pagination_1.LimitOffset), { query, ...options });
|
58
59
|
}
|
59
60
|
/**
|
60
|
-
* Delete a vector store by ID.
|
61
|
+
* Delete a vector store by ID or name.
|
61
62
|
*
|
62
|
-
* Args:
|
63
|
+
* Args: vector_store_identifier: The ID or name of the vector store to delete.
|
63
64
|
*
|
64
65
|
* Returns: VectorStore: The response containing the deleted vector store details.
|
65
66
|
*/
|
66
|
-
delete(
|
67
|
-
return this._client.delete((0, path_1.path) `/v1/vector_stores/${
|
67
|
+
delete(vectorStoreIdentifier, options) {
|
68
|
+
return this._client.delete((0, path_1.path) `/v1/vector_stores/${vectorStoreIdentifier}`, options);
|
68
69
|
}
|
69
70
|
/**
|
70
71
|
* Question answering
|
@@ -80,7 +81,9 @@ class VectorStores extends resource_1.APIResource {
|
|
80
81
|
* relevance-scored results.
|
81
82
|
*
|
82
83
|
* Args: search_params: Search configuration including: - query text or
|
83
|
-
* embeddings -
|
84
|
+
* embeddings - vector_store_ids: List of vector stores to search - file_ids:
|
85
|
+
* Optional list of file IDs to filter chunks by (or tuple of list and condition
|
86
|
+
* operator) - metadata filters - pagination parameters - sorting preferences
|
84
87
|
* \_state: API state dependency \_ctx: Service context dependency
|
85
88
|
*
|
86
89
|
* Returns: VectorStoreSearchChunkResponse containing: - List of matched chunks
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"vector-stores.js","sourceRoot":"","sources":["../../src/resources/vector-stores/vector-stores.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAElD,6DAAoC;AACpC,sCAYiB;AAEjB,yDAAyF;AAEzF,uDAAiD;AAEjD,MAAa,YAAa,SAAQ,sBAAW;IAA7C;;QACE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;
|
1
|
+
{"version":3,"file":"vector-stores.js","sourceRoot":"","sources":["../../src/resources/vector-stores/vector-stores.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAElD,6DAAoC;AACpC,sCAYiB;AAEjB,yDAAyF;AAEzF,uDAAiD;AAEjD,MAAa,YAAa,SAAQ,sBAAW;IAA7C;;QACE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAoG3D,CAAC;IAlGC;;;;;;;OAOG;IACH,MAAM,CAAC,IAA6B,EAAE,OAAwB;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IA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