@functional-systems/lambdadb 0.3.3 → 0.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +52 -9
- package/dist/commonjs/client.d.ts +6 -6
- package/dist/commonjs/client.js +6 -6
- package/dist/commonjs/funcs/collectionsDocsBulkUpsert.d.ts +1 -1
- package/dist/commonjs/funcs/collectionsDocsBulkUpsert.js +1 -1
- package/dist/commonjs/funcs/collectionsDocsGetBulkUpsert.d.ts +2 -2
- package/dist/commonjs/funcs/collectionsDocsGetBulkUpsert.d.ts.map +1 -1
- package/dist/commonjs/funcs/collectionsDocsGetBulkUpsert.js +3 -3
- package/dist/commonjs/funcs/collectionsDocsGetBulkUpsert.js.map +1 -1
- package/dist/commonjs/models/indexconfigsunion.d.ts +76 -4
- package/dist/commonjs/models/indexconfigsunion.d.ts.map +1 -1
- package/dist/commonjs/models/indexconfigsunion.js +57 -2
- package/dist/commonjs/models/indexconfigsunion.js.map +1 -1
- package/dist/commonjs/models/operations/querycollection.d.ts +1 -1
- package/dist/commonjs/models/operations/updatedocs.d.ts +1 -1
- package/dist/commonjs/models/operations/upsertdocs.d.ts +1 -1
- package/dist/commonjs/sdk/docs.d.ts +2 -2
- package/dist/commonjs/sdk/docs.js +2 -2
- package/dist/commonjs/types/errors.d.ts +1 -1
- package/dist/commonjs/types/errors.d.ts.map +1 -1
- package/dist/commonjs/types/public.d.ts +1 -1
- package/dist/commonjs/types/public.d.ts.map +1 -1
- package/dist/commonjs/types/public.js.map +1 -1
- package/dist/esm/client.d.ts +6 -6
- package/dist/esm/client.js +6 -6
- package/dist/esm/funcs/collectionsDocsBulkUpsert.d.ts +1 -1
- package/dist/esm/funcs/collectionsDocsBulkUpsert.js +1 -1
- package/dist/esm/funcs/collectionsDocsGetBulkUpsert.d.ts +2 -2
- package/dist/esm/funcs/collectionsDocsGetBulkUpsert.d.ts.map +1 -1
- package/dist/esm/funcs/collectionsDocsGetBulkUpsert.js +3 -3
- package/dist/esm/funcs/collectionsDocsGetBulkUpsert.js.map +1 -1
- package/dist/esm/models/indexconfigsunion.d.ts +76 -4
- package/dist/esm/models/indexconfigsunion.d.ts.map +1 -1
- package/dist/esm/models/indexconfigsunion.js +52 -1
- package/dist/esm/models/indexconfigsunion.js.map +1 -1
- package/dist/esm/models/operations/querycollection.d.ts +1 -1
- package/dist/esm/models/operations/updatedocs.d.ts +1 -1
- package/dist/esm/models/operations/upsertdocs.d.ts +1 -1
- package/dist/esm/sdk/docs.d.ts +2 -2
- package/dist/esm/sdk/docs.js +2 -2
- package/dist/esm/types/errors.d.ts +1 -1
- package/dist/esm/types/errors.d.ts.map +1 -1
- package/dist/esm/types/public.d.ts +1 -1
- package/dist/esm/types/public.d.ts.map +1 -1
- package/dist/esm/types/public.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +6 -6
- package/src/funcs/collectionsDocsBulkUpsert.ts +1 -1
- package/src/funcs/collectionsDocsGetBulkUpsert.ts +6 -2
- package/src/models/indexconfigsunion.ts +160 -3
- package/src/models/operations/querycollection.ts +1 -1
- package/src/models/operations/updatedocs.ts +1 -1
- package/src/models/operations/upsertdocs.ts +1 -1
- package/src/sdk/docs.ts +2 -2
- package/src/types/errors.ts +3 -1
- package/src/types/public.ts +3 -0
- package/test/public-api.test.mjs +279 -0
- package/tsconfig.json +1 -2
package/README.md
CHANGED
|
@@ -103,7 +103,8 @@ async function run() {
|
|
|
103
103
|
await collection.get();
|
|
104
104
|
await collection.docs.list({ size: 20 });
|
|
105
105
|
await collection.docs.upsert({ docs: [{ id: "1", text: "hello" }] });
|
|
106
|
-
// For large document sets (up to 200MB), use bulkUpsertDocs for a single-call flow
|
|
106
|
+
// For large document sets (up to 200MB), use bulkUpsertDocs for a single-call flow.
|
|
107
|
+
// Bulk upsert is not supported for collections with managed embedding vector fields.
|
|
107
108
|
// await collection.docs.bulkUpsertDocs({ docs: largeDocArray });
|
|
108
109
|
}
|
|
109
110
|
|
|
@@ -139,7 +140,7 @@ const queryBody: QueryCollectionInput = {
|
|
|
139
140
|
const queryResult: QueryCollectionResponse = await collection.query(queryBody);
|
|
140
141
|
```
|
|
141
142
|
|
|
142
|
-
Common types: `CreateCollectionInput`, `UpdateCollectionInput`, `QueryCollectionInput`, `ListDocsInput`, `ListCollectionsInput`, `UpsertDocsInput`, `DeleteDocsInput`, `FetchDocsInput`, `BulkUpsertInput`; response types such as `QueryCollectionResponse`, `ListDocsResponse`, `ListCollectionsResponseWithDates`, `GetCollectionResponseWithDates`, `FetchDocsResponse`, `MessageResponse`; and model types like `CollectionResponseWithDates`, `IndexConfigsUnion`, `PartitionConfig`, `FieldsSelectorUnion`. Collection list/get responses expose timestamp fields (`createdAt`, `updatedAt`, `dataUpdatedAt`) as `Date`. All are exported from the main package.
|
|
143
|
+
Common types: `CreateCollectionInput`, `UpdateCollectionInput`, `QueryCollectionInput`, `ListDocsInput`, `ListCollectionsInput`, `UpsertDocsInput`, `DeleteDocsInput`, `FetchDocsInput`, `BulkUpsertInput`; response types such as `QueryCollectionResponse`, `ListDocsResponse`, `ListCollectionsResponseWithDates`, `GetCollectionResponseWithDates`, `FetchDocsResponse`, `MessageResponse`; and model types like `CollectionResponseWithDates`, `IndexConfigsUnion`, `IndexConfigsManagedEmbeddingVector`, `EmbeddingConfig`, `PartitionConfig`, `FieldsSelectorUnion`. Collection list/get responses expose timestamp fields (`createdAt`, `updatedAt`, `dataUpdatedAt`) as `Date`. All are exported from the main package.
|
|
143
144
|
|
|
144
145
|
### Pagination
|
|
145
146
|
|
|
@@ -190,6 +191,48 @@ const input = createQueryInput({ text: "hello" }, { size: 10 });
|
|
|
190
191
|
const result = await collection.query(input);
|
|
191
192
|
```
|
|
192
193
|
|
|
194
|
+
### Managed embeddings
|
|
195
|
+
|
|
196
|
+
Managed embedding vector fields generate vectors from a configured source text field. Create the collection with a text field and a managed vector field, then query that vector field with `knn.queryText`.
|
|
197
|
+
|
|
198
|
+
```typescript
|
|
199
|
+
import { LambdaDBClient } from "@functional-systems/lambdadb";
|
|
200
|
+
|
|
201
|
+
const client = new LambdaDBClient({ projectApiKey: "..." });
|
|
202
|
+
|
|
203
|
+
await client.createCollection({
|
|
204
|
+
collectionName: "semantic-items",
|
|
205
|
+
indexConfigs: {
|
|
206
|
+
body: { type: "text", analyzers: ["english"] },
|
|
207
|
+
bodyEmbedding: {
|
|
208
|
+
type: "vector",
|
|
209
|
+
managedEmbedding: true,
|
|
210
|
+
embedding: {
|
|
211
|
+
provider: "openai",
|
|
212
|
+
model: "text-embedding-3-small",
|
|
213
|
+
sourceField: "body",
|
|
214
|
+
},
|
|
215
|
+
},
|
|
216
|
+
},
|
|
217
|
+
});
|
|
218
|
+
|
|
219
|
+
const collection = client.collection("semantic-items");
|
|
220
|
+
await collection.docs.upsert({
|
|
221
|
+
docs: [{ id: "policy-1", body: "Refunds are available within 30 days." }],
|
|
222
|
+
});
|
|
223
|
+
|
|
224
|
+
const result = await collection.query({
|
|
225
|
+
size: 10,
|
|
226
|
+
query: {
|
|
227
|
+
knn: {
|
|
228
|
+
field: "bodyEmbedding",
|
|
229
|
+
queryText: "refund policy",
|
|
230
|
+
k: 10,
|
|
231
|
+
},
|
|
232
|
+
},
|
|
233
|
+
});
|
|
234
|
+
```
|
|
235
|
+
|
|
193
236
|
<!-- End SDK Example Usage [usage] -->
|
|
194
237
|
|
|
195
238
|
<!-- Start Authentication [security] -->
|
|
@@ -239,9 +282,9 @@ run();
|
|
|
239
282
|
|
|
240
283
|
* [listDocs](docs/sdks/docs/README.md#listdocs) - List documents in a collection.
|
|
241
284
|
* [upsert](docs/sdks/docs/README.md#upsert) - Upsert documents into a collection. Note that the maximum supported payload size is 6MB.
|
|
242
|
-
* [bulkUpsertDocs](docs/sdks/docs/README.md#bulkupsertdocs) - Bulk upsert documents in one call (up to 200MB); use this for best DX when you have a document list.
|
|
243
|
-
* [getBulkUpsert](docs/sdks/docs/README.md#getbulkupsert) - Request required info to upload documents.
|
|
244
|
-
* [bulkUpsert](docs/sdks/docs/README.md#bulkupsert) - Bulk upsert documents into a collection. Note that the maximum supported object size is 200MB.
|
|
285
|
+
* [bulkUpsertDocs](docs/sdks/docs/README.md#bulkupsertdocs) - Bulk upsert documents in one call (up to 200MB); use this for best DX when you have a document list. Not supported for collections with managed embedding vector fields.
|
|
286
|
+
* [getBulkUpsert](docs/sdks/docs/README.md#getbulkupsert) - Request required info to upload documents. Bulk upsert is not supported for collections with managed embedding vector fields.
|
|
287
|
+
* [bulkUpsert](docs/sdks/docs/README.md#bulkupsert) - Bulk upsert documents into a collection. Note that the maximum supported object size is 200MB. Bulk upsert is not supported for collections with managed embedding vector fields.
|
|
245
288
|
* [update](docs/sdks/docs/README.md#update) - Update documents in a collection. Note that the maximum supported payload size is 6MB.
|
|
246
289
|
* [delete](docs/sdks/docs/README.md#delete) - Delete documents by document IDs or query filter from a collection.
|
|
247
290
|
* [fetch](docs/sdks/docs/README.md#fetch) - Lookup and return documents by document IDs from a collection.
|
|
@@ -280,10 +323,10 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
280
323
|
|
|
281
324
|
- [`collectionsCreate`](docs/sdks/collections/README.md#create) - Create a collection.
|
|
282
325
|
- [`collectionsDelete`](docs/sdks/collections/README.md#delete) - Delete an existing collection.
|
|
283
|
-
- [`collectionsDocsBulkUpsert`](docs/sdks/docs/README.md#bulkupsert) - Bulk upsert documents into a collection. Note that the maximum supported object size is 200MB.
|
|
326
|
+
- [`collectionsDocsBulkUpsert`](docs/sdks/docs/README.md#bulkupsert) - Bulk upsert documents into a collection. Note that the maximum supported object size is 200MB. Bulk upsert is not supported for collections with managed embedding vector fields.
|
|
284
327
|
- [`collectionsDocsDelete`](docs/sdks/docs/README.md#delete) - Delete documents by document IDs or query filter from a collection.
|
|
285
328
|
- [`collectionsDocsFetch`](docs/sdks/docs/README.md#fetch) - Lookup and return documents by document IDs from a collection.
|
|
286
|
-
- [`collectionsDocsGetBulkUpsert`](docs/sdks/docs/README.md#getbulkupsert) - Request required info to upload documents.
|
|
329
|
+
- [`collectionsDocsGetBulkUpsert`](docs/sdks/docs/README.md#getbulkupsert) - Request required info to upload documents. Bulk upsert is not supported for collections with managed embedding vector fields.
|
|
287
330
|
- [`collectionsDocsListDocs`](docs/sdks/docs/README.md#listdocs) - List documents in a collection.
|
|
288
331
|
- [`collectionsDocsUpdate`](docs/sdks/docs/README.md#update) - Update documents in a collection. Note that the maximum supported payload size is 6MB.
|
|
289
332
|
- [`collectionsDocsUpsert`](docs/sdks/docs/README.md#upsert) - Upsert documents into a collection. Note that the maximum supported payload size is 6MB.
|
|
@@ -470,7 +513,7 @@ Available Safe methods: `listCollectionsSafe`, `createCollectionSafe`, `collecti
|
|
|
470
513
|
|
|
471
514
|
|
|
472
515
|
**Inherit from [`LambdaDBError`](./src/models/errors/lambdadberror.ts)**:
|
|
473
|
-
* [`BadRequestError`](./src/models/errors/badrequesterror.ts): Bad request. Status code `400`. Applicable to
|
|
516
|
+
* [`BadRequestError`](./src/models/errors/badrequesterror.ts): Bad request. Status code `400`. Applicable to 10 of 13 methods.*
|
|
474
517
|
* [`ResourceAlreadyExistsError`](./src/models/errors/resourcealreadyexistserror.ts): Resource already exists. Status code `409`. Applicable to 1 of 13 methods.*
|
|
475
518
|
* [`ResponseValidationError`](./src/models/errors/responsevalidationerror.ts): Type mismatch between the data returned from the server and the structure expected by the SDK. See `error.rawValue` for the raw value and `error.pretty()` for a nicely formatted multi-line string.
|
|
476
519
|
|
|
@@ -597,4 +640,4 @@ This SDK is in beta, and there may be breaking changes between versions without
|
|
|
597
640
|
|
|
598
641
|
## Contributions
|
|
599
642
|
|
|
600
|
-
We welcome contributions. The recommended API is implemented in `src/client.ts` (LambdaDBClient, collection-scoped). The rest of `src/` (funcs, models, lib) is maintained manually; see [docs/OPENAPI_UPDATE.md](docs/OPENAPI_UPDATE.md) for how API changes are applied. Feel free to open a PR or an issue.
|
|
643
|
+
We welcome contributions. The recommended API is implemented in `src/client.ts` (LambdaDBClient, collection-scoped). The rest of `src/` (funcs, models, lib) is maintained manually; see [docs/OPENAPI_UPDATE.md](docs/OPENAPI_UPDATE.md) for how API changes are applied. Feel free to open a PR or an issue.
|
|
@@ -207,29 +207,29 @@ declare class CollectionDocs {
|
|
|
207
207
|
*/
|
|
208
208
|
fetchSafe(body: FetchDocsInput, options?: RequestOptions): Promise<Result<FetchDocsResponse, FetchDocsError>>;
|
|
209
209
|
/**
|
|
210
|
-
* Get presigned URL and metadata for bulk upload (up to 200MB).
|
|
210
|
+
* Get presigned URL and metadata for bulk upload (up to 200MB). Not supported for collections with managed embedding vector fields.
|
|
211
211
|
*/
|
|
212
212
|
getBulkUpsert(options?: RequestOptions): Promise<operations.GetBulkUpsertDocsResponse>;
|
|
213
213
|
/**
|
|
214
|
-
* Get presigned URL and metadata for bulk upload (Safe: returns Result instead of throwing).
|
|
214
|
+
* Get presigned URL and metadata for bulk upload (Safe: returns Result instead of throwing). Not supported for collections with managed embedding vector fields.
|
|
215
215
|
*/
|
|
216
216
|
getBulkUpsertSafe(options?: RequestOptions): Promise<Result<GetBulkUpsertDocsResponse, GetBulkUpsertDocsError>>;
|
|
217
217
|
/**
|
|
218
|
-
* Trigger bulk upsert with an object key from getBulkUpsert().
|
|
218
|
+
* Trigger bulk upsert with an object key from getBulkUpsert(). Not supported for collections with managed embedding vector fields.
|
|
219
219
|
*/
|
|
220
220
|
bulkUpsert(body: BulkUpsertInput, options?: RequestOptions): Promise<MessageResponse>;
|
|
221
221
|
/**
|
|
222
|
-
* Trigger bulk upsert (Safe: returns Result instead of throwing).
|
|
222
|
+
* Trigger bulk upsert (Safe: returns Result instead of throwing). Not supported for collections with managed embedding vector fields.
|
|
223
223
|
*/
|
|
224
224
|
bulkUpsertSafe(body: BulkUpsertInput, options?: RequestOptions): Promise<Result<MessageResponse, BulkUpsertDocsError>>;
|
|
225
225
|
/**
|
|
226
|
-
* Bulk upsert documents in one call (up to 200MB). Abstracts getBulkUpsert,
|
|
226
|
+
* Bulk upsert documents in one call (up to 200MB). Not supported for collections with managed embedding vector fields. Abstracts getBulkUpsert,
|
|
227
227
|
* S3 upload via presigned URL, and bulkUpsert. Use this for better DX when
|
|
228
228
|
* you have a document list; use getBulkUpsert + bulkUpsert for low-level control.
|
|
229
229
|
*/
|
|
230
230
|
bulkUpsertDocs(body: UpsertDocsInput, options?: RequestOptions): Promise<MessageResponse>;
|
|
231
231
|
/**
|
|
232
|
-
* Bulk upsert documents in one call (Safe: returns Result instead of throwing).
|
|
232
|
+
* Bulk upsert documents in one call (Safe: returns Result instead of throwing). Not supported for collections with managed embedding vector fields.
|
|
233
233
|
* May return Error for local failures (payload size, upload). API errors use GetBulkUpsertDocsError or BulkUpsertDocsError.
|
|
234
234
|
*/
|
|
235
235
|
bulkUpsertDocsSafe(body: UpsertDocsInput, options?: RequestOptions): Promise<Result<MessageResponse, GetBulkUpsertDocsError | BulkUpsertDocsError | Error>>;
|
package/dist/commonjs/client.js
CHANGED
|
@@ -403,19 +403,19 @@ class CollectionDocs {
|
|
|
403
403
|
return result;
|
|
404
404
|
}
|
|
405
405
|
/**
|
|
406
|
-
* Get presigned URL and metadata for bulk upload (up to 200MB).
|
|
406
|
+
* Get presigned URL and metadata for bulk upload (up to 200MB). Not supported for collections with managed embedding vector fields.
|
|
407
407
|
*/
|
|
408
408
|
async getBulkUpsert(options) {
|
|
409
409
|
return (0, fp_js_1.unwrapAsync)((0, collectionsDocsGetBulkUpsert_js_1.collectionsDocsGetBulkUpsert)(this.client, { collectionName: this.collectionName }, options));
|
|
410
410
|
}
|
|
411
411
|
/**
|
|
412
|
-
* Get presigned URL and metadata for bulk upload (Safe: returns Result instead of throwing).
|
|
412
|
+
* Get presigned URL and metadata for bulk upload (Safe: returns Result instead of throwing). Not supported for collections with managed embedding vector fields.
|
|
413
413
|
*/
|
|
414
414
|
async getBulkUpsertSafe(options) {
|
|
415
415
|
return await (0, collectionsDocsGetBulkUpsert_js_1.collectionsDocsGetBulkUpsert)(this.client, { collectionName: this.collectionName }, options);
|
|
416
416
|
}
|
|
417
417
|
/**
|
|
418
|
-
* Trigger bulk upsert with an object key from getBulkUpsert().
|
|
418
|
+
* Trigger bulk upsert with an object key from getBulkUpsert(). Not supported for collections with managed embedding vector fields.
|
|
419
419
|
*/
|
|
420
420
|
async bulkUpsert(body, options) {
|
|
421
421
|
return (0, fp_js_1.unwrapAsync)((0, collectionsDocsBulkUpsert_js_1.collectionsDocsBulkUpsert)(this.client, {
|
|
@@ -424,13 +424,13 @@ class CollectionDocs {
|
|
|
424
424
|
}, options));
|
|
425
425
|
}
|
|
426
426
|
/**
|
|
427
|
-
* Trigger bulk upsert (Safe: returns Result instead of throwing).
|
|
427
|
+
* Trigger bulk upsert (Safe: returns Result instead of throwing). Not supported for collections with managed embedding vector fields.
|
|
428
428
|
*/
|
|
429
429
|
async bulkUpsertSafe(body, options) {
|
|
430
430
|
return await (0, collectionsDocsBulkUpsert_js_1.collectionsDocsBulkUpsert)(this.client, { collectionName: this.collectionName, requestBody: body }, options);
|
|
431
431
|
}
|
|
432
432
|
/**
|
|
433
|
-
* Bulk upsert documents in one call (up to 200MB). Abstracts getBulkUpsert,
|
|
433
|
+
* Bulk upsert documents in one call (up to 200MB). Not supported for collections with managed embedding vector fields. Abstracts getBulkUpsert,
|
|
434
434
|
* S3 upload via presigned URL, and bulkUpsert. Use this for better DX when
|
|
435
435
|
* you have a document list; use getBulkUpsert + bulkUpsert for low-level control.
|
|
436
436
|
*/
|
|
@@ -454,7 +454,7 @@ class CollectionDocs {
|
|
|
454
454
|
return this.bulkUpsert({ objectKey }, options);
|
|
455
455
|
}
|
|
456
456
|
/**
|
|
457
|
-
* Bulk upsert documents in one call (Safe: returns Result instead of throwing).
|
|
457
|
+
* Bulk upsert documents in one call (Safe: returns Result instead of throwing). Not supported for collections with managed embedding vector fields.
|
|
458
458
|
* May return Error for local failures (payload size, upload). API errors use GetBulkUpsertDocsError or BulkUpsertDocsError.
|
|
459
459
|
*/
|
|
460
460
|
async bulkUpsertDocsSafe(body, options) {
|
|
@@ -10,7 +10,7 @@ import * as operations from "../models/operations/index.js";
|
|
|
10
10
|
import { APIPromise } from "../types/async.js";
|
|
11
11
|
import { Result } from "../types/fp.js";
|
|
12
12
|
/**
|
|
13
|
-
* Bulk upsert documents into a collection. Note that the maximum supported object size is 200MB.
|
|
13
|
+
* Bulk upsert documents into a collection. Note that the maximum supported object size is 200MB. Bulk upsert is not supported for collections with managed embedding vector fields.
|
|
14
14
|
*/
|
|
15
15
|
export declare function collectionsDocsBulkUpsert(client: LambdaDBCore, request: operations.BulkUpsertDocsRequest, options?: RequestOptions): APIPromise<Result<models.MessageResponse, errors.BadRequestError | errors.UnauthenticatedError | errors.ResourceNotFoundError | errors.TooManyRequestsError | errors.InternalServerError | LambdaDBError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
16
16
|
//# sourceMappingURL=collectionsDocsBulkUpsert.d.ts.map
|
|
@@ -48,7 +48,7 @@ const models = __importStar(require("../models/index.js"));
|
|
|
48
48
|
const operations = __importStar(require("../models/operations/index.js"));
|
|
49
49
|
const async_js_1 = require("../types/async.js");
|
|
50
50
|
/**
|
|
51
|
-
* Bulk upsert documents into a collection. Note that the maximum supported object size is 200MB.
|
|
51
|
+
* Bulk upsert documents into a collection. Note that the maximum supported object size is 200MB. Bulk upsert is not supported for collections with managed embedding vector fields.
|
|
52
52
|
*/
|
|
53
53
|
function collectionsDocsBulkUpsert(client, request, options) {
|
|
54
54
|
return new async_js_1.APIPromise($do(client, request, options));
|
|
@@ -9,7 +9,7 @@ import * as operations from "../models/operations/index.js";
|
|
|
9
9
|
import { APIPromise } from "../types/async.js";
|
|
10
10
|
import { Result } from "../types/fp.js";
|
|
11
11
|
/**
|
|
12
|
-
* Request required info to upload documents.
|
|
12
|
+
* Request required info to upload documents. Bulk upsert is not supported for collections with managed embedding vector fields.
|
|
13
13
|
*/
|
|
14
|
-
export declare function collectionsDocsGetBulkUpsert(client: LambdaDBCore, request: operations.GetBulkUpsertDocsRequest, options?: RequestOptions): APIPromise<Result<operations.GetBulkUpsertDocsResponse, errors.UnauthenticatedError | errors.ResourceNotFoundError | errors.TooManyRequestsError | errors.InternalServerError | LambdaDBError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
14
|
+
export declare function collectionsDocsGetBulkUpsert(client: LambdaDBCore, request: operations.GetBulkUpsertDocsRequest, options?: RequestOptions): APIPromise<Result<operations.GetBulkUpsertDocsResponse, errors.BadRequestError | errors.UnauthenticatedError | errors.ResourceNotFoundError | errors.TooManyRequestsError | errors.InternalServerError | LambdaDBError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
15
15
|
//# sourceMappingURL=collectionsDocsGetBulkUpsert.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collectionsDocsGetBulkUpsert.d.ts","sourceRoot":"","sources":["../../../src/funcs/collectionsDocsGetBulkUpsert.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAK1C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;GAEG;AACH,wBAAgB,4BAA4B,CAC1C,MAAM,EAAE,YAAY,EACpB,OAAO,EAAE,UAAU,CAAC,wBAAwB,EAC5C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,yBAAyB,EAClC,MAAM,CAAC,oBAAoB,GAC3B,MAAM,CAAC,qBAAqB,GAC5B,MAAM,CAAC,oBAAoB,GAC3B,MAAM,CAAC,mBAAmB,GAC1B,aAAa,GACb,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
1
|
+
{"version":3,"file":"collectionsDocsGetBulkUpsert.d.ts","sourceRoot":"","sources":["../../../src/funcs/collectionsDocsGetBulkUpsert.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAK1C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;GAEG;AACH,wBAAgB,4BAA4B,CAC1C,MAAM,EAAE,YAAY,EACpB,OAAO,EAAE,UAAU,CAAC,wBAAwB,EAC5C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,yBAAyB,EAClC,MAAM,CAAC,eAAe,GACtB,MAAM,CAAC,oBAAoB,GAC3B,MAAM,CAAC,qBAAqB,GAC5B,MAAM,CAAC,oBAAoB,GAC3B,MAAM,CAAC,mBAAmB,GAC1B,aAAa,GACb,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
@@ -47,7 +47,7 @@ const errors = __importStar(require("../models/errors/index.js"));
|
|
|
47
47
|
const operations = __importStar(require("../models/operations/index.js"));
|
|
48
48
|
const async_js_1 = require("../types/async.js");
|
|
49
49
|
/**
|
|
50
|
-
* Request required info to upload documents.
|
|
50
|
+
* Request required info to upload documents. Bulk upsert is not supported for collections with managed embedding vector fields.
|
|
51
51
|
*/
|
|
52
52
|
function collectionsDocsGetBulkUpsert(client, request, options) {
|
|
53
53
|
return new async_js_1.APIPromise($do(client, request, options));
|
|
@@ -110,7 +110,7 @@ async function $do(client, request, options) {
|
|
|
110
110
|
const req = requestRes.value;
|
|
111
111
|
const doResult = await client._do(req, {
|
|
112
112
|
context,
|
|
113
|
-
errorCodes: ["401", "404", "429", "4XX", "500", "5XX"],
|
|
113
|
+
errorCodes: ["400", "401", "404", "429", "4XX", "500", "5XX"],
|
|
114
114
|
retryConfig: context.retryConfig,
|
|
115
115
|
retryCodes: context.retryCodes,
|
|
116
116
|
});
|
|
@@ -121,7 +121,7 @@ async function $do(client, request, options) {
|
|
|
121
121
|
const responseFields = {
|
|
122
122
|
HttpMeta: { Response: response, Request: req },
|
|
123
123
|
};
|
|
124
|
-
const [result] = await M.match(M.json(200, operations.GetBulkUpsertDocsResponse$inboundSchema), M.jsonErr(401, errors.UnauthenticatedError$inboundSchema), M.jsonErr(404, errors.ResourceNotFoundError$inboundSchema), M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), M.jsonErr(500, errors.InternalServerError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
124
|
+
const [result] = await M.match(M.json(200, operations.GetBulkUpsertDocsResponse$inboundSchema), M.jsonErr(400, errors.BadRequestError$inboundSchema), M.jsonErr(401, errors.UnauthenticatedError$inboundSchema), M.jsonErr(404, errors.ResourceNotFoundError$inboundSchema), M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), M.jsonErr(500, errors.InternalServerError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
125
125
|
if (!result.ok) {
|
|
126
126
|
return [result, { status: "complete", request: req, response }];
|
|
127
127
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collectionsDocsGetBulkUpsert.js","sourceRoot":"","sources":["../../../src/funcs/collectionsDocsGetBulkUpsert.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BH,
|
|
1
|
+
{"version":3,"file":"collectionsDocsGetBulkUpsert.js","sourceRoot":"","sources":["../../../src/funcs/collectionsDocsGetBulkUpsert.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BH,oEA2BC;AApDD,sDAAmD;AACnD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAQ3C,kEAAoD;AAIpD,0EAA4D;AAC5D,gDAAwD;AAGxD;;GAEG;AACH,SAAgB,4BAA4B,CAC1C,MAAoB,EACpB,OAA4C,EAC5C,OAAwB;IAmBxB,OAAO,IAAI,qBAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAAO,EACP,OAAO,CACR,CAAC,CAAC;AACL,CAAC;AAED,KAAK,UAAU,GAAG,CAChB,MAAoB,EACpB,OAA4C,EAC5C,OAAwB;IAsBxB,MAAM,MAAM,GAAG,I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EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
|
|
@@ -39,14 +39,55 @@ export type Similarity = ClosedEnum<typeof Similarity>;
|
|
|
39
39
|
export type IndexConfigsVector = {
|
|
40
40
|
type: "vector";
|
|
41
41
|
/**
|
|
42
|
-
*
|
|
42
|
+
* Set to false or omit for unmanaged vector fields.
|
|
43
|
+
*/
|
|
44
|
+
managedEmbedding?: false | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* Vector dimensions for unmanaged vector fields.
|
|
43
47
|
*/
|
|
44
48
|
dimensions: number;
|
|
45
49
|
/**
|
|
46
|
-
* Vector similarity metric.
|
|
50
|
+
* Vector similarity metric for unmanaged vector fields.
|
|
51
|
+
*/
|
|
52
|
+
similarity?: Similarity | undefined;
|
|
53
|
+
};
|
|
54
|
+
export declare const EmbeddingProvider: {
|
|
55
|
+
readonly Openai: "openai";
|
|
56
|
+
};
|
|
57
|
+
export type EmbeddingProvider = ClosedEnum<typeof EmbeddingProvider>;
|
|
58
|
+
/**
|
|
59
|
+
* Managed embedding configuration for vector fields.
|
|
60
|
+
*/
|
|
61
|
+
export type EmbeddingConfig = {
|
|
62
|
+
/**
|
|
63
|
+
* Embedding provider.
|
|
64
|
+
*/
|
|
65
|
+
provider: EmbeddingProvider;
|
|
66
|
+
/**
|
|
67
|
+
* Embedding model name. See /guides/collections/managed-embeddings for the current supported providers and models.
|
|
68
|
+
*/
|
|
69
|
+
model: string;
|
|
70
|
+
/**
|
|
71
|
+
* Source text field name used to generate embeddings.
|
|
72
|
+
*/
|
|
73
|
+
sourceField: string;
|
|
74
|
+
/**
|
|
75
|
+
* Embedding dimensions. Optional in requests and resolved in stored collection metadata.
|
|
76
|
+
*/
|
|
77
|
+
dimensions?: number | undefined;
|
|
78
|
+
/**
|
|
79
|
+
* Vector similarity metric. Optional in requests and resolved in stored collection metadata.
|
|
47
80
|
*/
|
|
48
81
|
similarity?: Similarity | undefined;
|
|
49
82
|
};
|
|
83
|
+
export type IndexConfigsManagedEmbeddingVector = {
|
|
84
|
+
type: "vector";
|
|
85
|
+
/**
|
|
86
|
+
* Managed embedding vector field.
|
|
87
|
+
*/
|
|
88
|
+
managedEmbedding: true;
|
|
89
|
+
embedding: EmbeddingConfig;
|
|
90
|
+
};
|
|
50
91
|
export declare const Analyzer: {
|
|
51
92
|
readonly Standard: "standard";
|
|
52
93
|
readonly Korean: "korean";
|
|
@@ -61,7 +102,7 @@ export type IndexConfigsText = {
|
|
|
61
102
|
*/
|
|
62
103
|
analyzers?: Array<Analyzer> | undefined;
|
|
63
104
|
};
|
|
64
|
-
export type IndexConfigsUnion = IndexConfigsText | IndexConfigsVector | (IndexConfigs & {
|
|
105
|
+
export type IndexConfigsUnion = IndexConfigsText | IndexConfigsVector | IndexConfigsManagedEmbeddingVector | (IndexConfigs & {
|
|
65
106
|
type: "keyword";
|
|
66
107
|
}) | (IndexConfigs & {
|
|
67
108
|
type: "long";
|
|
@@ -110,6 +151,7 @@ export declare const IndexConfigsVector$inboundSchema: z.ZodType<IndexConfigsVec
|
|
|
110
151
|
/** @internal */
|
|
111
152
|
export type IndexConfigsVector$Outbound = {
|
|
112
153
|
type: "vector";
|
|
154
|
+
managedEmbedding?: false | undefined;
|
|
113
155
|
dimensions: number;
|
|
114
156
|
similarity: string;
|
|
115
157
|
};
|
|
@@ -118,6 +160,36 @@ export declare const IndexConfigsVector$outboundSchema: z.ZodType<IndexConfigsVe
|
|
|
118
160
|
export declare function indexConfigsVectorToJSON(indexConfigsVector: IndexConfigsVector): string;
|
|
119
161
|
export declare function indexConfigsVectorFromJSON(jsonString: string): SafeParseResult<IndexConfigsVector, SDKValidationError>;
|
|
120
162
|
/** @internal */
|
|
163
|
+
export declare const EmbeddingProvider$inboundSchema: z.ZodNativeEnum<typeof EmbeddingProvider>;
|
|
164
|
+
/** @internal */
|
|
165
|
+
export declare const EmbeddingProvider$outboundSchema: z.ZodNativeEnum<typeof EmbeddingProvider>;
|
|
166
|
+
/** @internal */
|
|
167
|
+
export declare const EmbeddingConfig$inboundSchema: z.ZodType<EmbeddingConfig, z.ZodTypeDef, unknown>;
|
|
168
|
+
/** @internal */
|
|
169
|
+
export type EmbeddingConfig$Outbound = {
|
|
170
|
+
provider: string;
|
|
171
|
+
model: string;
|
|
172
|
+
sourceField: string;
|
|
173
|
+
dimensions?: number | undefined;
|
|
174
|
+
similarity?: string | undefined;
|
|
175
|
+
};
|
|
176
|
+
/** @internal */
|
|
177
|
+
export declare const EmbeddingConfig$outboundSchema: z.ZodType<EmbeddingConfig$Outbound, z.ZodTypeDef, EmbeddingConfig>;
|
|
178
|
+
export declare function embeddingConfigToJSON(embeddingConfig: EmbeddingConfig): string;
|
|
179
|
+
export declare function embeddingConfigFromJSON(jsonString: string): SafeParseResult<EmbeddingConfig, SDKValidationError>;
|
|
180
|
+
/** @internal */
|
|
181
|
+
export declare const IndexConfigsManagedEmbeddingVector$inboundSchema: z.ZodType<IndexConfigsManagedEmbeddingVector, z.ZodTypeDef, unknown>;
|
|
182
|
+
/** @internal */
|
|
183
|
+
export type IndexConfigsManagedEmbeddingVector$Outbound = {
|
|
184
|
+
type: "vector";
|
|
185
|
+
managedEmbedding: true;
|
|
186
|
+
embedding: EmbeddingConfig$Outbound;
|
|
187
|
+
};
|
|
188
|
+
/** @internal */
|
|
189
|
+
export declare const IndexConfigsManagedEmbeddingVector$outboundSchema: z.ZodType<IndexConfigsManagedEmbeddingVector$Outbound, z.ZodTypeDef, IndexConfigsManagedEmbeddingVector>;
|
|
190
|
+
export declare function indexConfigsManagedEmbeddingVectorToJSON(indexConfigsManagedEmbeddingVector: IndexConfigsManagedEmbeddingVector): string;
|
|
191
|
+
export declare function indexConfigsManagedEmbeddingVectorFromJSON(jsonString: string): SafeParseResult<IndexConfigsManagedEmbeddingVector, SDKValidationError>;
|
|
192
|
+
/** @internal */
|
|
121
193
|
export declare const Analyzer$inboundSchema: z.ZodNativeEnum<typeof Analyzer>;
|
|
122
194
|
/** @internal */
|
|
123
195
|
export declare const Analyzer$outboundSchema: z.ZodNativeEnum<typeof Analyzer>;
|
|
@@ -135,7 +207,7 @@ export declare function indexConfigsTextFromJSON(jsonString: string): SafeParseR
|
|
|
135
207
|
/** @internal */
|
|
136
208
|
export declare const IndexConfigsUnion$inboundSchema: z.ZodType<IndexConfigsUnion, z.ZodTypeDef, unknown>;
|
|
137
209
|
/** @internal */
|
|
138
|
-
export type IndexConfigsUnion$Outbound = IndexConfigsText$Outbound | IndexConfigsVector$Outbound | (IndexConfigs$Outbound & {
|
|
210
|
+
export type IndexConfigsUnion$Outbound = IndexConfigsText$Outbound | IndexConfigsVector$Outbound | IndexConfigsManagedEmbeddingVector$Outbound | (IndexConfigs$Outbound & {
|
|
139
211
|
type: "keyword";
|
|
140
212
|
}) | (IndexConfigs$Outbound & {
|
|
141
213
|
type: "long";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"indexconfigsunion.d.ts","sourceRoot":"","sources":["../../../src/models/indexconfigsunion.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEpE,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,QAAQ,CAAC;IACf,kBAAkB,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;CAC1C,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;;;;CAOX,CAAC;AACX,MAAM,MAAM,QAAQ,GAAG,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC;AAEnD;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,QAAQ,CAAC;CAChB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,UAAU;;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;CAAE,CAAC,GAC7C,CAAC,qBAAqB,GAAG;IAAE,IAAI,EAAE,cAAc,CAAA;CAAE,CAAC,GAClD,2BAA2B,CAAC;AAEhC,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CACtD,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,iBAAiB,CAwBjB,CAAC;AAEH,wBAAgB,uBAAuB,CACrC,iBAAiB,EAAE,iBAAiB,GACnC,MAAM,CAIR;AACD,wBAAgB,yBAAyB,CACvC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,iBAAiB,EAAE,kBAAkB,CAAC,CAMxD"}
|
|
@@ -36,13 +36,17 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.IndexConfigsUnion$outboundSchema = exports.IndexConfigsUnion$inboundSchema = exports.IndexConfigsText$outboundSchema = exports.IndexConfigsText$inboundSchema = exports.Analyzer$outboundSchema = exports.Analyzer$inboundSchema = exports.IndexConfigsVector$outboundSchema = exports.IndexConfigsVector$inboundSchema = exports.Similarity$outboundSchema = exports.Similarity$inboundSchema = exports.IndexConfigs$outboundSchema = exports.IndexConfigs$inboundSchema = exports.TypeEnum$outboundSchema = exports.TypeEnum$inboundSchema = exports.IndexConfigsObject$outboundSchema = exports.IndexConfigsObject$inboundSchema = exports.Analyzer = exports.Similarity = exports.TypeEnum = void 0;
|
|
39
|
+
exports.IndexConfigsUnion$outboundSchema = exports.IndexConfigsUnion$inboundSchema = exports.IndexConfigsText$outboundSchema = exports.IndexConfigsText$inboundSchema = exports.Analyzer$outboundSchema = exports.Analyzer$inboundSchema = exports.IndexConfigsManagedEmbeddingVector$outboundSchema = exports.IndexConfigsManagedEmbeddingVector$inboundSchema = exports.EmbeddingConfig$outboundSchema = exports.EmbeddingConfig$inboundSchema = exports.EmbeddingProvider$outboundSchema = exports.EmbeddingProvider$inboundSchema = exports.IndexConfigsVector$outboundSchema = exports.IndexConfigsVector$inboundSchema = exports.Similarity$outboundSchema = exports.Similarity$inboundSchema = exports.IndexConfigs$outboundSchema = exports.IndexConfigs$inboundSchema = exports.TypeEnum$outboundSchema = exports.TypeEnum$inboundSchema = exports.IndexConfigsObject$outboundSchema = exports.IndexConfigsObject$inboundSchema = exports.Analyzer = exports.EmbeddingProvider = exports.Similarity = exports.TypeEnum = void 0;
|
|
40
40
|
exports.indexConfigsObjectToJSON = indexConfigsObjectToJSON;
|
|
41
41
|
exports.indexConfigsObjectFromJSON = indexConfigsObjectFromJSON;
|
|
42
42
|
exports.indexConfigsToJSON = indexConfigsToJSON;
|
|
43
43
|
exports.indexConfigsFromJSON = indexConfigsFromJSON;
|
|
44
44
|
exports.indexConfigsVectorToJSON = indexConfigsVectorToJSON;
|
|
45
45
|
exports.indexConfigsVectorFromJSON = indexConfigsVectorFromJSON;
|
|
46
|
+
exports.embeddingConfigToJSON = embeddingConfigToJSON;
|
|
47
|
+
exports.embeddingConfigFromJSON = embeddingConfigFromJSON;
|
|
48
|
+
exports.indexConfigsManagedEmbeddingVectorToJSON = indexConfigsManagedEmbeddingVectorToJSON;
|
|
49
|
+
exports.indexConfigsManagedEmbeddingVectorFromJSON = indexConfigsManagedEmbeddingVectorFromJSON;
|
|
46
50
|
exports.indexConfigsTextToJSON = indexConfigsTextToJSON;
|
|
47
51
|
exports.indexConfigsTextFromJSON = indexConfigsTextFromJSON;
|
|
48
52
|
exports.indexConfigsUnionToJSON = indexConfigsUnionToJSON;
|
|
@@ -66,6 +70,9 @@ exports.Similarity = {
|
|
|
66
70
|
DotProduct: "dot_product",
|
|
67
71
|
MaxInnerProduct: "max_inner_product",
|
|
68
72
|
};
|
|
73
|
+
exports.EmbeddingProvider = {
|
|
74
|
+
Openai: "openai",
|
|
75
|
+
};
|
|
69
76
|
exports.Analyzer = {
|
|
70
77
|
Standard: "standard",
|
|
71
78
|
Korean: "korean",
|
|
@@ -115,15 +122,17 @@ exports.Similarity$outboundSchema = exports.Similarity$inboundSchema;
|
|
|
115
122
|
/** @internal */
|
|
116
123
|
exports.IndexConfigsVector$inboundSchema = z.object({
|
|
117
124
|
type: z.literal("vector"),
|
|
125
|
+
managedEmbedding: (0, schemas_js_1.nullToUndefined)(z.literal(false).optional()),
|
|
118
126
|
dimensions: z.number().int(),
|
|
119
127
|
similarity: (0, schemas_js_1.nullToUndefined)(exports.Similarity$inboundSchema.default("cosine")),
|
|
120
128
|
});
|
|
121
129
|
/** @internal */
|
|
122
130
|
exports.IndexConfigsVector$outboundSchema = z.object({
|
|
123
131
|
type: z.literal("vector"),
|
|
132
|
+
managedEmbedding: z.literal(false).optional(),
|
|
124
133
|
dimensions: z.number().int(),
|
|
125
134
|
similarity: exports.Similarity$outboundSchema.default("cosine"),
|
|
126
|
-
});
|
|
135
|
+
}).strict();
|
|
127
136
|
function indexConfigsVectorToJSON(indexConfigsVector) {
|
|
128
137
|
return JSON.stringify(exports.IndexConfigsVector$outboundSchema.parse(indexConfigsVector));
|
|
129
138
|
}
|
|
@@ -131,6 +140,50 @@ function indexConfigsVectorFromJSON(jsonString) {
|
|
|
131
140
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.IndexConfigsVector$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'IndexConfigsVector' from JSON`);
|
|
132
141
|
}
|
|
133
142
|
/** @internal */
|
|
143
|
+
exports.EmbeddingProvider$inboundSchema = z.nativeEnum(exports.EmbeddingProvider);
|
|
144
|
+
/** @internal */
|
|
145
|
+
exports.EmbeddingProvider$outboundSchema = exports.EmbeddingProvider$inboundSchema;
|
|
146
|
+
/** @internal */
|
|
147
|
+
exports.EmbeddingConfig$inboundSchema = z.object({
|
|
148
|
+
provider: exports.EmbeddingProvider$inboundSchema,
|
|
149
|
+
model: z.string(),
|
|
150
|
+
sourceField: z.string(),
|
|
151
|
+
dimensions: (0, schemas_js_1.nullToUndefined)(z.number().int().optional()),
|
|
152
|
+
similarity: (0, schemas_js_1.nullToUndefined)(exports.Similarity$inboundSchema.optional()),
|
|
153
|
+
});
|
|
154
|
+
/** @internal */
|
|
155
|
+
exports.EmbeddingConfig$outboundSchema = z.object({
|
|
156
|
+
provider: exports.EmbeddingProvider$outboundSchema,
|
|
157
|
+
model: z.string(),
|
|
158
|
+
sourceField: z.string(),
|
|
159
|
+
dimensions: z.number().int().optional(),
|
|
160
|
+
similarity: exports.Similarity$outboundSchema.optional(),
|
|
161
|
+
}).strict();
|
|
162
|
+
function embeddingConfigToJSON(embeddingConfig) {
|
|
163
|
+
return JSON.stringify(exports.EmbeddingConfig$outboundSchema.parse(embeddingConfig));
|
|
164
|
+
}
|
|
165
|
+
function embeddingConfigFromJSON(jsonString) {
|
|
166
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.EmbeddingConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EmbeddingConfig' from JSON`);
|
|
167
|
+
}
|
|
168
|
+
/** @internal */
|
|
169
|
+
exports.IndexConfigsManagedEmbeddingVector$inboundSchema = z.object({
|
|
170
|
+
type: z.literal("vector"),
|
|
171
|
+
managedEmbedding: z.literal(true),
|
|
172
|
+
embedding: z.lazy(() => exports.EmbeddingConfig$inboundSchema),
|
|
173
|
+
});
|
|
174
|
+
/** @internal */
|
|
175
|
+
exports.IndexConfigsManagedEmbeddingVector$outboundSchema = z.object({
|
|
176
|
+
type: z.literal("vector"),
|
|
177
|
+
managedEmbedding: z.literal(true),
|
|
178
|
+
embedding: z.lazy(() => exports.EmbeddingConfig$outboundSchema),
|
|
179
|
+
}).strict();
|
|
180
|
+
function indexConfigsManagedEmbeddingVectorToJSON(indexConfigsManagedEmbeddingVector) {
|
|
181
|
+
return JSON.stringify(exports.IndexConfigsManagedEmbeddingVector$outboundSchema.parse(indexConfigsManagedEmbeddingVector));
|
|
182
|
+
}
|
|
183
|
+
function indexConfigsManagedEmbeddingVectorFromJSON(jsonString) {
|
|
184
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.IndexConfigsManagedEmbeddingVector$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'IndexConfigsManagedEmbeddingVector' from JSON`);
|
|
185
|
+
}
|
|
186
|
+
/** @internal */
|
|
134
187
|
exports.Analyzer$inboundSchema = z
|
|
135
188
|
.nativeEnum(exports.Analyzer);
|
|
136
189
|
/** @internal */
|
|
@@ -155,6 +208,7 @@ function indexConfigsTextFromJSON(jsonString) {
|
|
|
155
208
|
exports.IndexConfigsUnion$inboundSchema = z.union([
|
|
156
209
|
z.lazy(() => exports.IndexConfigsText$inboundSchema),
|
|
157
210
|
z.lazy(() => exports.IndexConfigsVector$inboundSchema),
|
|
211
|
+
z.lazy(() => exports.IndexConfigsManagedEmbeddingVector$inboundSchema),
|
|
158
212
|
z.lazy(() => exports.IndexConfigs$inboundSchema).and(z.object({ type: z.literal("keyword") })),
|
|
159
213
|
z.lazy(() => exports.IndexConfigs$inboundSchema).and(z.object({ type: z.literal("long") })),
|
|
160
214
|
z.lazy(() => exports.IndexConfigs$inboundSchema).and(z.object({ type: z.literal("double") })),
|
|
@@ -167,6 +221,7 @@ exports.IndexConfigsUnion$inboundSchema = z.union([
|
|
|
167
221
|
exports.IndexConfigsUnion$outboundSchema = z.union([
|
|
168
222
|
z.lazy(() => exports.IndexConfigsText$outboundSchema),
|
|
169
223
|
z.lazy(() => exports.IndexConfigsVector$outboundSchema),
|
|
224
|
+
z.lazy(() => exports.IndexConfigsManagedEmbeddingVector$outboundSchema),
|
|
170
225
|
z.lazy(() => exports.IndexConfigs$outboundSchema).and(z.object({ type: z.literal("keyword") })),
|
|
171
226
|
z.lazy(() => exports.IndexConfigs$outboundSchema).and(z.object({ type: z.literal("long") })),
|
|
172
227
|
z.lazy(() => exports.IndexConfigs$outboundSchema).and(z.object({ type: z.literal("double") })),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"indexconfigsunion.js","sourceRoot":"","sources":["../../../src/models/indexconfigsunion.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"indexconfigsunion.js","sourceRoot":"","sources":["../../../src/models/indexconfigsunion.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyJH,4DAMC;AACD,gEAQC;AA+BD,gDAEC;AACD,oDAQC;AAwCD,4DAMC;AACD,gEAQC;AA6CD,sDAIC;AACD,0DAQC;AA8BD,4FAQC;AACD,gGASC;AAkCD,wDAMC;AACD,4DAQC;AA0ED,0DAMC;AACD,8DAQC;AA3fD,0CAA4B;AAC5B,kDAA+D;AAUlD,QAAA,QAAQ,GAAG;IACtB,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,SAAS;IAClB,YAAY,EAAE,cAAc;CACpB,CAAC;AAUX;;GAEG;AACU,QAAA,UAAU,GAAG;IACxB,MAAM,EAAE,QAAQ;IAChB,SAAS,EAAE,WAAW;IACtB,UAAU,EAAE,aAAa;IACzB,eAAe,EAAE,mBAAmB;CAC5B,CAAC;AAsBE,QAAA,iBAAiB,GAAG;IAC/B,MAAM,EAAE,QAAQ;CACR,CAAC;AAsCE,QAAA,QAAQ,GAAG;IACtB,QAAQ,EAAE,UAAU;IACpB,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,SAAS;CACV,CAAC;AAuBX,gBAAgB;AACH,QAAA,gCAAgC,GAIzC,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC;IACzB,kBAAkB,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;CACtC,CAAC,CAAC;AAOH,gBAAgB;AACH,QAAA,iCAAiC,GAI1C,CAAC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D,CAAC;AACJ,CAAC"}
|
|
@@ -8,7 +8,7 @@ export type QueryCollectionRequestBody = {
|
|
|
8
8
|
*/
|
|
9
9
|
size?: number | undefined;
|
|
10
10
|
/**
|
|
11
|
-
* Query object.
|
|
11
|
+
* Query object. For managed embedding vector fields, use knn.queryText. For unmanaged vector fields, use knn.queryVector.
|
|
12
12
|
*/
|
|
13
13
|
query: {
|
|
14
14
|
[k: string]: any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as z from "zod/v3";
|
|
2
2
|
export type UpdateDocsRequestBody = {
|
|
3
3
|
/**
|
|
4
|
-
* A list of documents to update. Each document must contain 'id' field to be updated.
|
|
4
|
+
* A list of documents to update. Each document must contain 'id' field to be updated. For managed embedding vector fields, omit the managed vector field and update only the configured source text field.
|
|
5
5
|
*/
|
|
6
6
|
docs: Array<{
|
|
7
7
|
[k: string]: any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as z from "zod/v3";
|
|
2
2
|
export type UpsertDocsRequestBody = {
|
|
3
3
|
/**
|
|
4
|
-
* A list of documents to upsert.
|
|
4
|
+
* A list of documents to upsert. For managed embedding vector fields, omit the managed vector field and provide only the configured source text field.
|
|
5
5
|
*/
|
|
6
6
|
docs: Array<{
|
|
7
7
|
[k: string]: any;
|