@relevanceai/sdk 1.3.0 → 1.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/dist-cjs/generated/VectorApi.js +70 -6
- package/dist-es/generated/VectorApi.js +102 -6
- package/dist-types/generated/VectorApi.d.ts +42 -18
- package/dist-types/generated/_VectorApiSchemaTypes.d.ts +376 -37
- package/package.json +1 -1
- package/dist-cjs/generated/Discovery.js +0 -82
- package/dist-cjs/generated/Vector.js +0 -634
- package/dist-cjs/generated/_DiscoverySchemaTypes.js +0 -6
- package/dist-cjs/generated/_VectorSchemaTypes.js +0 -6
- package/dist-cjs/generated/clients.js +0 -82
- package/dist-es/generated/Discovery.js +0 -179
- package/dist-es/generated/Vector.js +0 -1007
- package/dist-es/generated/_DiscoverySchemaTypes.js +0 -5
- package/dist-es/generated/_VectorSchemaTypes.js +0 -5
- package/dist-es/generated/clients.js +0 -179
- package/dist-types/generated/Discovery.d.ts +0 -32
- package/dist-types/generated/Vector.d.ts +0 -239
- package/dist-types/generated/_DiscoverySchemaTypes.d.ts +0 -911
- package/dist-types/generated/_VectorSchemaTypes.d.ts +0 -5017
- package/dist-types/generated/clients.d.ts +0 -942
|
@@ -631,6 +631,17 @@ export interface paths {
|
|
|
631
631
|
* - "groupby" is the fields you want to split the data into. These are the available groupby types:
|
|
632
632
|
* - category" : groupby a field that is a category
|
|
633
633
|
* - numeric: groupby a field that is a numeric
|
|
634
|
+
* - wordcloud: groupby the words. You can also additionally include stop words in your aggregation
|
|
635
|
+
* if you add `remove_words` as a field.
|
|
636
|
+
*
|
|
637
|
+
* {
|
|
638
|
+
* "name": "wordcloud_research",
|
|
639
|
+
* "field": "title",
|
|
640
|
+
* "agg": "wordcloud",
|
|
641
|
+
* "remove_words": ["learning"]
|
|
642
|
+
* }
|
|
643
|
+
*
|
|
644
|
+
*
|
|
634
645
|
* - "metrics" is the fields you want to metrics you want to calculate in each of those, every aggregation includes a frequency metric. These are the available metric types:
|
|
635
646
|
* - "avg", "max", "min", "sum", "cardinality"
|
|
636
647
|
*
|
|
@@ -656,14 +667,32 @@ export interface paths {
|
|
|
656
667
|
"/services/cluster/centroids/list": {
|
|
657
668
|
/** Retrieves a list of cluster centroids */
|
|
658
669
|
get: operations["cluster_centroids_api_services_cluster_centroids_list_get"];
|
|
670
|
+
/** Retrieves a list of cluster centroids */
|
|
671
|
+
post: operations["cluster_centroids_api_v2_services_cluster_centroids_list_post"];
|
|
659
672
|
};
|
|
660
673
|
"/services/cluster/centroids/get": {
|
|
661
674
|
/** Retrieve the cluster centroids by IDs */
|
|
662
675
|
get: operations["cluster_centroids_get_api_services_cluster_centroids_get_get"];
|
|
676
|
+
/** Retrieve the cluster centroids by IDs */
|
|
677
|
+
post: operations["cluster_centroids_get_api_services_cluster_centroids_get_post"];
|
|
663
678
|
};
|
|
664
679
|
"/services/cluster/centroids/insert": {
|
|
665
680
|
/** Insert your own cluster centroids for it to be used in approximate search settings and cluster aggregations. */
|
|
666
|
-
post: operations["
|
|
681
|
+
post: operations["insert_cluster_centroids_2_api_services_cluster_centroids_insert_post"];
|
|
682
|
+
};
|
|
683
|
+
"/services/cluster/centroids/update": {
|
|
684
|
+
/** Update a centroid by ID */
|
|
685
|
+
post: operations["update_centroids_api_v2_services_cluster_centroids_update_post"];
|
|
686
|
+
};
|
|
687
|
+
"/services/cluster/centroids/{centroid_id}/delete": {
|
|
688
|
+
/** Delete a centroid by ID */
|
|
689
|
+
get: operations["delete_centroids_api_services_cluster_centroids__centroid_id__delete_get"];
|
|
690
|
+
/** Delete a centroid by ID */
|
|
691
|
+
post: operations["delete_centroids_api_services_cluster_centroids__centroid_id__delete_post"];
|
|
692
|
+
};
|
|
693
|
+
"/services/cluster/centroids/delete": {
|
|
694
|
+
/** Delete centroids by dataset ID, vector field and alias */
|
|
695
|
+
post: operations["cluster_centroids_delete_api_services_cluster_centroids_delete_post"];
|
|
667
696
|
};
|
|
668
697
|
"/services/cluster/centroids/documents": {
|
|
669
698
|
/** Retrieve the cluster centroids by IDs */
|
|
@@ -673,15 +702,15 @@ export interface paths {
|
|
|
673
702
|
/** Retrieves metadata about a dataset. notably description, data source, etc */
|
|
674
703
|
get: operations["centroids_metadata_get_api_services_cluster_centroids_metadata_get"];
|
|
675
704
|
/** You can store the metadata about your cluster here. */
|
|
676
|
-
post: operations["
|
|
705
|
+
post: operations["centroids_metadata_post_api_v2_services_cluster_centroids_metadata_post"];
|
|
677
706
|
};
|
|
678
707
|
"/services/cluster/centroids/list_closest_to_center": {
|
|
679
708
|
/** List of documents closest from the centre. */
|
|
680
|
-
post: operations["
|
|
709
|
+
post: operations["centroids_list_closest_to_center_v2_services_cluster_centroids_list_closest_to_center_post"];
|
|
681
710
|
};
|
|
682
711
|
"/services/cluster/centroids/list_furthest_from_center": {
|
|
683
|
-
/** List of documents from from the centre
|
|
684
|
-
post: operations["
|
|
712
|
+
/** List of documents from from the centre */
|
|
713
|
+
post: operations["centroids_list_furthest_from_center_v2_services_cluster_centroids_list_furthest_from_center_post"];
|
|
685
714
|
};
|
|
686
715
|
"/services/cluster/aggregate": {
|
|
687
716
|
/**
|
|
@@ -689,7 +718,7 @@ export interface paths {
|
|
|
689
718
|
*
|
|
690
719
|
* Only can be used after a vector field has been clustered with /cluster.
|
|
691
720
|
*/
|
|
692
|
-
post: operations["
|
|
721
|
+
post: operations["cluster_aggregate_api_v2_services_cluster_aggregate_post"];
|
|
693
722
|
};
|
|
694
723
|
"/services/cluster/facets": {
|
|
695
724
|
/**
|
|
@@ -697,7 +726,13 @@ export interface paths {
|
|
|
697
726
|
*
|
|
698
727
|
* Only can be used after a vector field has been clustered with /cluster.
|
|
699
728
|
*/
|
|
700
|
-
get: operations["
|
|
729
|
+
get: operations["advanced_cluster_facets_api_services_cluster_facets_get"];
|
|
730
|
+
};
|
|
731
|
+
"/services/cluster/list": {
|
|
732
|
+
/** Get a list of cluster IDs based on the relevant information */
|
|
733
|
+
get: operations["cluster_list_services_cluster_list_get"];
|
|
734
|
+
/** Get a list of cluster IDs */
|
|
735
|
+
post: operations["cluster_list_multi_services_cluster_list_post"];
|
|
701
736
|
};
|
|
702
737
|
"/services/tagger/tag": {
|
|
703
738
|
/** Tag documents or vectors. */
|
|
@@ -1363,44 +1398,63 @@ export interface components {
|
|
|
1363
1398
|
/** Similarity Metric, choose from ['cosine', 'l1', 'l2', 'dp'] */
|
|
1364
1399
|
similarity_metric?: string;
|
|
1365
1400
|
};
|
|
1366
|
-
/**
|
|
1367
|
-
|
|
1401
|
+
/** Adds support for multi vector field clustering */
|
|
1402
|
+
CentroidInsertBodyV2: {
|
|
1368
1403
|
/** Unique name of dataset */
|
|
1369
1404
|
dataset_id: string;
|
|
1370
1405
|
/** Cluster centers with the key being the index number */
|
|
1371
1406
|
cluster_centers: {
|
|
1372
1407
|
[key: string]: unknown;
|
|
1373
1408
|
}[];
|
|
1374
|
-
/** It can either be an array of strings (automatically equally weighted) (e.g. ['check_vector_', 'yellow_vector_']). */
|
|
1375
|
-
|
|
1409
|
+
/** The vector field to search in. It can either be an array of strings (automatically equally weighted) (e.g. ['check_vector_', 'yellow_vector_']) or it is a dictionary mapping field to float where the weighting is explicitly specified (e.g. {'check_vector_': 0.2, 'yellow_vector_': 0.5}) */
|
|
1410
|
+
vector_fields: unknown[];
|
|
1376
1411
|
/** Include the inserted IDs in the response */
|
|
1377
1412
|
include_inserted_ids?: boolean;
|
|
1378
1413
|
/** Alias used to name a vector field. Belongs in field_{alias}_vector_ */
|
|
1379
1414
|
alias?: string;
|
|
1380
1415
|
};
|
|
1381
1416
|
/** Base class for all abstractmodels */
|
|
1382
|
-
|
|
1417
|
+
CentroidMetadataV2: {
|
|
1383
1418
|
/** Unique name of dataset */
|
|
1384
1419
|
dataset_id: string;
|
|
1385
|
-
/**
|
|
1386
|
-
metadata
|
|
1420
|
+
/** Description for a metadata */
|
|
1421
|
+
metadata?: {
|
|
1387
1422
|
[key: string]: unknown;
|
|
1388
1423
|
};
|
|
1389
|
-
/** It can either be an array of strings (automatically equally weighted) (e.g. ['check_vector_', 'yellow_vector_']). */
|
|
1390
|
-
|
|
1424
|
+
/** The vector field to search in. It can either be an array of strings (automatically equally weighted) (e.g. ['check_vector_', 'yellow_vector_']) or it is a dictionary mapping field to float where the weighting is explicitly specified (e.g. {'check_vector_': 0.2, 'yellow_vector_': 0.5}) */
|
|
1425
|
+
vector_fields: unknown[];
|
|
1391
1426
|
/** Alias used to name a vector field. Belongs in field_{alias}_vector_ */
|
|
1392
1427
|
alias?: string;
|
|
1393
1428
|
};
|
|
1394
1429
|
/** Base class for all abstractmodels */
|
|
1395
|
-
|
|
1430
|
+
CentroidUpdateBodyV2: {
|
|
1396
1431
|
/** Unique name of dataset */
|
|
1397
1432
|
dataset_id: string;
|
|
1398
|
-
/** It can either be an array of strings (automatically equally weighted) (e.g. ['check_vector_', 'yellow_vector_']). */
|
|
1399
|
-
|
|
1433
|
+
/** The vector field to search in. It can either be an array of strings (automatically equally weighted) (e.g. ['check_vector_', 'yellow_vector_']) or it is a dictionary mapping field to float where the weighting is explicitly specified (e.g. {'check_vector_': 0.2, 'yellow_vector_': 0.5}) */
|
|
1434
|
+
vector_fields: unknown[];
|
|
1435
|
+
/** Alias used to name a vector field. Belongs in field_{alias}_vector_ */
|
|
1436
|
+
alias?: string;
|
|
1437
|
+
/** ID of a centroid in a dataset. */
|
|
1438
|
+
id: string;
|
|
1439
|
+
/** A dictionary to edit and add fields to a document. */
|
|
1440
|
+
update: {
|
|
1441
|
+
[key: string]: unknown;
|
|
1442
|
+
};
|
|
1443
|
+
};
|
|
1444
|
+
/** Base class for all abstractmodels */
|
|
1445
|
+
CentroidsClosestToCenterV2: {
|
|
1446
|
+
/** Unique name of dataset */
|
|
1447
|
+
dataset_id: string;
|
|
1448
|
+
/** The vector field to search in. It can either be an array of strings (automatically equally weighted) (e.g. ['check_vector_', 'yellow_vector_']) or it is a dictionary mapping field to float where the weighting is explicitly specified (e.g. {'check_vector_': 0.2, 'yellow_vector_': 0.5}) */
|
|
1449
|
+
vector_fields: unknown[];
|
|
1400
1450
|
/** Alias used to name a vector field. Belongs in field_{alias}_vector_ */
|
|
1401
1451
|
alias?: string;
|
|
1402
1452
|
/** List of cluster IDs */
|
|
1403
1453
|
cluster_ids?: string[];
|
|
1454
|
+
/** Centroid vector field */
|
|
1455
|
+
centroid_vector_fields?: string[];
|
|
1456
|
+
/** Centroid vector field */
|
|
1457
|
+
centroid_vector_field?: string[];
|
|
1404
1458
|
/** Fields to include in the search results, empty array/list means all fields. */
|
|
1405
1459
|
select_fields?: string[];
|
|
1406
1460
|
/** Used for approximate search to speed up search. The higher the number, faster the search but potentially less accurate. */
|
|
@@ -1427,15 +1481,19 @@ export interface components {
|
|
|
1427
1481
|
include_facets?: boolean;
|
|
1428
1482
|
};
|
|
1429
1483
|
/** Base class for all abstractmodels */
|
|
1430
|
-
|
|
1484
|
+
CentroidsFurthestFromCenterV2: {
|
|
1431
1485
|
/** Unique name of dataset */
|
|
1432
1486
|
dataset_id: string;
|
|
1433
|
-
/** It can either be an array of strings (automatically equally weighted) (e.g. ['check_vector_', 'yellow_vector_']). */
|
|
1434
|
-
|
|
1487
|
+
/** The vector field to search in. It can either be an array of strings (automatically equally weighted) (e.g. ['check_vector_', 'yellow_vector_']) or it is a dictionary mapping field to float where the weighting is explicitly specified (e.g. {'check_vector_': 0.2, 'yellow_vector_': 0.5}) */
|
|
1488
|
+
vector_fields: unknown[];
|
|
1435
1489
|
/** Alias used to name a vector field. Belongs in field_{alias}_vector_ */
|
|
1436
1490
|
alias?: string;
|
|
1437
1491
|
/** List of cluster IDs */
|
|
1438
1492
|
cluster_ids?: string[];
|
|
1493
|
+
/** Centroid vector field */
|
|
1494
|
+
centroid_vector_field?: string[];
|
|
1495
|
+
/** Centroid vector field */
|
|
1496
|
+
centroid_vector_fields?: string[];
|
|
1439
1497
|
/** Fields to include in the search results, empty array/list means all fields. */
|
|
1440
1498
|
select_fields?: string[];
|
|
1441
1499
|
/** Used for approximate search to speed up search. The higher the number, faster the search but potentially less accurate. */
|
|
@@ -1462,6 +1520,23 @@ export interface components {
|
|
|
1462
1520
|
include_facets?: boolean;
|
|
1463
1521
|
};
|
|
1464
1522
|
/** Base class for all abstractmodels */
|
|
1523
|
+
CentroidsGetV2: {
|
|
1524
|
+
/** Unique name of dataset */
|
|
1525
|
+
dataset_id: string;
|
|
1526
|
+
/** List of cluster IDs */
|
|
1527
|
+
cluster_ids: string[];
|
|
1528
|
+
/** The vector field where a clustering task was run. */
|
|
1529
|
+
vector_fields: unknown[];
|
|
1530
|
+
/** Alias is used to name a cluster */
|
|
1531
|
+
alias?: string;
|
|
1532
|
+
/** Size of each page of results */
|
|
1533
|
+
page_size?: number;
|
|
1534
|
+
/** Cursor to paginate the document retrieval */
|
|
1535
|
+
cursor?: string;
|
|
1536
|
+
/** Include vectors in the search results */
|
|
1537
|
+
include_vector?: boolean;
|
|
1538
|
+
};
|
|
1539
|
+
/** Base class for all abstractmodels */
|
|
1465
1540
|
ChunkSearchQuery: {
|
|
1466
1541
|
/** Unique name of dataset */
|
|
1467
1542
|
dataset_id: string;
|
|
@@ -1510,7 +1585,7 @@ export interface components {
|
|
|
1510
1585
|
count?: number;
|
|
1511
1586
|
};
|
|
1512
1587
|
/** Base class for all abstractmodels */
|
|
1513
|
-
|
|
1588
|
+
ClusterAggregateQueryCommonsV2: {
|
|
1514
1589
|
/** Unique name of dataset */
|
|
1515
1590
|
dataset_id: string;
|
|
1516
1591
|
/** Aggregation query to aggregate data */
|
|
@@ -1528,8 +1603,23 @@ export interface components {
|
|
|
1528
1603
|
flatten?: boolean;
|
|
1529
1604
|
/** Alias used to name a vector field. Belongs in field_{alias}_vector_ */
|
|
1530
1605
|
alias?: string;
|
|
1531
|
-
/** The vector field
|
|
1532
|
-
|
|
1606
|
+
/** The vector field to search in. It can either be an array of strings (automatically equally weighted) (e.g. ['check_vector_', 'yellow_vector_']) or it is a dictionary mapping field to float where the weighting is explicitly specified (e.g. {'check_vector_': 0.2, 'yellow_vector_': 0.5}) */
|
|
1607
|
+
vector_fields: string[];
|
|
1608
|
+
};
|
|
1609
|
+
/** Base class for all abstractmodels */
|
|
1610
|
+
ClustercentroidsList: {
|
|
1611
|
+
/** Unique name of dataset */
|
|
1612
|
+
dataset_id: string;
|
|
1613
|
+
/** The vector field where a clustering task was run. */
|
|
1614
|
+
vector_fields: unknown[];
|
|
1615
|
+
/** Alias is used to name a cluster */
|
|
1616
|
+
alias?: string;
|
|
1617
|
+
/** Size of each page of results */
|
|
1618
|
+
page_size?: number;
|
|
1619
|
+
/** Cursor to paginate the document retrieval */
|
|
1620
|
+
cursor?: string;
|
|
1621
|
+
/** Include vectors in the search results */
|
|
1622
|
+
include_vector?: boolean;
|
|
1533
1623
|
};
|
|
1534
1624
|
/** Cluster Task */
|
|
1535
1625
|
Clusterer: {
|
|
@@ -4312,6 +4402,17 @@ export interface operations {
|
|
|
4312
4402
|
* - "groupby" is the fields you want to split the data into. These are the available groupby types:
|
|
4313
4403
|
* - category" : groupby a field that is a category
|
|
4314
4404
|
* - numeric: groupby a field that is a numeric
|
|
4405
|
+
* - wordcloud: groupby the words. You can also additionally include stop words in your aggregation
|
|
4406
|
+
* if you add `remove_words` as a field.
|
|
4407
|
+
*
|
|
4408
|
+
* {
|
|
4409
|
+
* "name": "wordcloud_research",
|
|
4410
|
+
* "field": "title",
|
|
4411
|
+
* "agg": "wordcloud",
|
|
4412
|
+
* "remove_words": ["learning"]
|
|
4413
|
+
* }
|
|
4414
|
+
*
|
|
4415
|
+
*
|
|
4315
4416
|
* - "metrics" is the fields you want to metrics you want to calculate in each of those, every aggregation includes a frequency metric. These are the available metric types:
|
|
4316
4417
|
* - "avg", "max", "min", "sum", "cardinality"
|
|
4317
4418
|
*
|
|
@@ -4396,6 +4497,34 @@ export interface operations {
|
|
|
4396
4497
|
};
|
|
4397
4498
|
};
|
|
4398
4499
|
};
|
|
4500
|
+
/** Retrieves a list of cluster centroids */
|
|
4501
|
+
cluster_centroids_api_v2_services_cluster_centroids_list_post: {
|
|
4502
|
+
parameters: {
|
|
4503
|
+
header: {
|
|
4504
|
+
/** Authorization credentials. Header authorization should be in the form of **"project:api_key"** */
|
|
4505
|
+
Authorization: string;
|
|
4506
|
+
};
|
|
4507
|
+
};
|
|
4508
|
+
responses: {
|
|
4509
|
+
/** Successful Response */
|
|
4510
|
+
200: {
|
|
4511
|
+
content: {
|
|
4512
|
+
"application/json": unknown;
|
|
4513
|
+
};
|
|
4514
|
+
};
|
|
4515
|
+
/** Validation Error */
|
|
4516
|
+
422: {
|
|
4517
|
+
content: {
|
|
4518
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
4519
|
+
};
|
|
4520
|
+
};
|
|
4521
|
+
};
|
|
4522
|
+
requestBody: {
|
|
4523
|
+
content: {
|
|
4524
|
+
"application/json": components["schemas"]["ClustercentroidsList"];
|
|
4525
|
+
};
|
|
4526
|
+
};
|
|
4527
|
+
};
|
|
4399
4528
|
/** Retrieve the cluster centroids by IDs */
|
|
4400
4529
|
cluster_centroids_get_api_services_cluster_centroids_get_get: {
|
|
4401
4530
|
parameters: {
|
|
@@ -4433,8 +4562,36 @@ export interface operations {
|
|
|
4433
4562
|
};
|
|
4434
4563
|
};
|
|
4435
4564
|
};
|
|
4565
|
+
/** Retrieve the cluster centroids by IDs */
|
|
4566
|
+
cluster_centroids_get_api_services_cluster_centroids_get_post: {
|
|
4567
|
+
parameters: {
|
|
4568
|
+
header: {
|
|
4569
|
+
/** Authorization credentials. Header authorization should be in the form of **"project:api_key"** */
|
|
4570
|
+
Authorization: string;
|
|
4571
|
+
};
|
|
4572
|
+
};
|
|
4573
|
+
responses: {
|
|
4574
|
+
/** Successful Response */
|
|
4575
|
+
200: {
|
|
4576
|
+
content: {
|
|
4577
|
+
"application/json": unknown;
|
|
4578
|
+
};
|
|
4579
|
+
};
|
|
4580
|
+
/** Validation Error */
|
|
4581
|
+
422: {
|
|
4582
|
+
content: {
|
|
4583
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
4584
|
+
};
|
|
4585
|
+
};
|
|
4586
|
+
};
|
|
4587
|
+
requestBody: {
|
|
4588
|
+
content: {
|
|
4589
|
+
"application/json": components["schemas"]["CentroidsGetV2"];
|
|
4590
|
+
};
|
|
4591
|
+
};
|
|
4592
|
+
};
|
|
4436
4593
|
/** Insert your own cluster centroids for it to be used in approximate search settings and cluster aggregations. */
|
|
4437
|
-
|
|
4594
|
+
insert_cluster_centroids_2_api_services_cluster_centroids_insert_post: {
|
|
4438
4595
|
parameters: {
|
|
4439
4596
|
header: {
|
|
4440
4597
|
/** Authorization credentials. Header authorization should be in the form of **"project:api_key"** */
|
|
@@ -4457,7 +4614,125 @@ export interface operations {
|
|
|
4457
4614
|
};
|
|
4458
4615
|
requestBody: {
|
|
4459
4616
|
content: {
|
|
4460
|
-
"application/json": components["schemas"]["
|
|
4617
|
+
"application/json": components["schemas"]["CentroidInsertBodyV2"];
|
|
4618
|
+
};
|
|
4619
|
+
};
|
|
4620
|
+
};
|
|
4621
|
+
/** Update a centroid by ID */
|
|
4622
|
+
update_centroids_api_v2_services_cluster_centroids_update_post: {
|
|
4623
|
+
parameters: {
|
|
4624
|
+
header: {
|
|
4625
|
+
/** Authorization credentials. Header authorization should be in the form of **"project:api_key"** */
|
|
4626
|
+
Authorization: string;
|
|
4627
|
+
};
|
|
4628
|
+
};
|
|
4629
|
+
responses: {
|
|
4630
|
+
/** Successful Response */
|
|
4631
|
+
200: {
|
|
4632
|
+
content: {
|
|
4633
|
+
"application/json": unknown;
|
|
4634
|
+
};
|
|
4635
|
+
};
|
|
4636
|
+
/** Validation Error */
|
|
4637
|
+
422: {
|
|
4638
|
+
content: {
|
|
4639
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
4640
|
+
};
|
|
4641
|
+
};
|
|
4642
|
+
};
|
|
4643
|
+
requestBody: {
|
|
4644
|
+
content: {
|
|
4645
|
+
"application/json": components["schemas"]["CentroidUpdateBodyV2"];
|
|
4646
|
+
};
|
|
4647
|
+
};
|
|
4648
|
+
};
|
|
4649
|
+
/** Delete a centroid by ID */
|
|
4650
|
+
delete_centroids_api_services_cluster_centroids__centroid_id__delete_get: {
|
|
4651
|
+
parameters: {
|
|
4652
|
+
path: {
|
|
4653
|
+
centroid_id: string;
|
|
4654
|
+
};
|
|
4655
|
+
query: {
|
|
4656
|
+
dataset_id: string;
|
|
4657
|
+
vector_field: string;
|
|
4658
|
+
alias: string;
|
|
4659
|
+
};
|
|
4660
|
+
header: {
|
|
4661
|
+
/** Authorization credentials. Header authorization should be in the form of **"project:api_key"** */
|
|
4662
|
+
Authorization: string;
|
|
4663
|
+
};
|
|
4664
|
+
};
|
|
4665
|
+
responses: {
|
|
4666
|
+
/** Successful Response */
|
|
4667
|
+
200: {
|
|
4668
|
+
content: {
|
|
4669
|
+
"application/json": unknown;
|
|
4670
|
+
};
|
|
4671
|
+
};
|
|
4672
|
+
/** Validation Error */
|
|
4673
|
+
422: {
|
|
4674
|
+
content: {
|
|
4675
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
4676
|
+
};
|
|
4677
|
+
};
|
|
4678
|
+
};
|
|
4679
|
+
};
|
|
4680
|
+
/** Delete a centroid by ID */
|
|
4681
|
+
delete_centroids_api_services_cluster_centroids__centroid_id__delete_post: {
|
|
4682
|
+
parameters: {
|
|
4683
|
+
path: {
|
|
4684
|
+
centroid_id: string;
|
|
4685
|
+
};
|
|
4686
|
+
query: {
|
|
4687
|
+
dataset_id: string;
|
|
4688
|
+
vector_field: string;
|
|
4689
|
+
alias: string;
|
|
4690
|
+
};
|
|
4691
|
+
header: {
|
|
4692
|
+
/** Authorization credentials. Header authorization should be in the form of **"project:api_key"** */
|
|
4693
|
+
Authorization: string;
|
|
4694
|
+
};
|
|
4695
|
+
};
|
|
4696
|
+
responses: {
|
|
4697
|
+
/** Successful Response */
|
|
4698
|
+
200: {
|
|
4699
|
+
content: {
|
|
4700
|
+
"application/json": unknown;
|
|
4701
|
+
};
|
|
4702
|
+
};
|
|
4703
|
+
/** Validation Error */
|
|
4704
|
+
422: {
|
|
4705
|
+
content: {
|
|
4706
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
4707
|
+
};
|
|
4708
|
+
};
|
|
4709
|
+
};
|
|
4710
|
+
};
|
|
4711
|
+
/** Delete centroids by dataset ID, vector field and alias */
|
|
4712
|
+
cluster_centroids_delete_api_services_cluster_centroids_delete_post: {
|
|
4713
|
+
parameters: {
|
|
4714
|
+
query: {
|
|
4715
|
+
dataset_id: string;
|
|
4716
|
+
vector_field: string;
|
|
4717
|
+
alias: string;
|
|
4718
|
+
};
|
|
4719
|
+
header: {
|
|
4720
|
+
/** Authorization credentials. Header authorization should be in the form of **"project:api_key"** */
|
|
4721
|
+
Authorization: string;
|
|
4722
|
+
};
|
|
4723
|
+
};
|
|
4724
|
+
responses: {
|
|
4725
|
+
/** Successful Response */
|
|
4726
|
+
200: {
|
|
4727
|
+
content: {
|
|
4728
|
+
"application/json": unknown;
|
|
4729
|
+
};
|
|
4730
|
+
};
|
|
4731
|
+
/** Validation Error */
|
|
4732
|
+
422: {
|
|
4733
|
+
content: {
|
|
4734
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
4735
|
+
};
|
|
4461
4736
|
};
|
|
4462
4737
|
};
|
|
4463
4738
|
};
|
|
@@ -4521,7 +4796,7 @@ export interface operations {
|
|
|
4521
4796
|
};
|
|
4522
4797
|
};
|
|
4523
4798
|
/** You can store the metadata about your cluster here. */
|
|
4524
|
-
|
|
4799
|
+
centroids_metadata_post_api_v2_services_cluster_centroids_metadata_post: {
|
|
4525
4800
|
parameters: {
|
|
4526
4801
|
header: {
|
|
4527
4802
|
/** Authorization credentials. Header authorization should be in the form of **"project:api_key"** */
|
|
@@ -4544,12 +4819,12 @@ export interface operations {
|
|
|
4544
4819
|
};
|
|
4545
4820
|
requestBody: {
|
|
4546
4821
|
content: {
|
|
4547
|
-
"application/json": components["schemas"]["
|
|
4822
|
+
"application/json": components["schemas"]["CentroidMetadataV2"];
|
|
4548
4823
|
};
|
|
4549
4824
|
};
|
|
4550
4825
|
};
|
|
4551
4826
|
/** List of documents closest from the centre. */
|
|
4552
|
-
|
|
4827
|
+
centroids_list_closest_to_center_v2_services_cluster_centroids_list_closest_to_center_post: {
|
|
4553
4828
|
parameters: {
|
|
4554
4829
|
header: {
|
|
4555
4830
|
/** Authorization credentials. Header authorization should be in the form of **"project:api_key"** */
|
|
@@ -4572,12 +4847,12 @@ export interface operations {
|
|
|
4572
4847
|
};
|
|
4573
4848
|
requestBody: {
|
|
4574
4849
|
content: {
|
|
4575
|
-
"application/json": components["schemas"]["
|
|
4850
|
+
"application/json": components["schemas"]["CentroidsClosestToCenterV2"];
|
|
4576
4851
|
};
|
|
4577
4852
|
};
|
|
4578
4853
|
};
|
|
4579
|
-
/** List of documents from from the centre
|
|
4580
|
-
|
|
4854
|
+
/** List of documents from from the centre */
|
|
4855
|
+
centroids_list_furthest_from_center_v2_services_cluster_centroids_list_furthest_from_center_post: {
|
|
4581
4856
|
parameters: {
|
|
4582
4857
|
header: {
|
|
4583
4858
|
/** Authorization credentials. Header authorization should be in the form of **"project:api_key"** */
|
|
@@ -4600,7 +4875,7 @@ export interface operations {
|
|
|
4600
4875
|
};
|
|
4601
4876
|
requestBody: {
|
|
4602
4877
|
content: {
|
|
4603
|
-
"application/json": components["schemas"]["
|
|
4878
|
+
"application/json": components["schemas"]["CentroidsFurthestFromCenterV2"];
|
|
4604
4879
|
};
|
|
4605
4880
|
};
|
|
4606
4881
|
};
|
|
@@ -4609,7 +4884,7 @@ export interface operations {
|
|
|
4609
4884
|
*
|
|
4610
4885
|
* Only can be used after a vector field has been clustered with /cluster.
|
|
4611
4886
|
*/
|
|
4612
|
-
|
|
4887
|
+
cluster_aggregate_api_v2_services_cluster_aggregate_post: {
|
|
4613
4888
|
parameters: {
|
|
4614
4889
|
header: {
|
|
4615
4890
|
/** Authorization credentials. Header authorization should be in the form of **"project:api_key"** */
|
|
@@ -4632,7 +4907,7 @@ export interface operations {
|
|
|
4632
4907
|
};
|
|
4633
4908
|
requestBody: {
|
|
4634
4909
|
content: {
|
|
4635
|
-
"application/json": components["schemas"]["
|
|
4910
|
+
"application/json": components["schemas"]["ClusterAggregateQueryCommonsV2"];
|
|
4636
4911
|
};
|
|
4637
4912
|
};
|
|
4638
4913
|
};
|
|
@@ -4641,11 +4916,13 @@ export interface operations {
|
|
|
4641
4916
|
*
|
|
4642
4917
|
* Only can be used after a vector field has been clustered with /cluster.
|
|
4643
4918
|
*/
|
|
4644
|
-
|
|
4919
|
+
advanced_cluster_facets_api_services_cluster_facets_get: {
|
|
4645
4920
|
parameters: {
|
|
4646
4921
|
query: {
|
|
4647
4922
|
/** Unique name of dataset */
|
|
4648
4923
|
dataset_id: string;
|
|
4924
|
+
/** It can either be an array of strings (automatically equally weighted) (e.g. ['check_vector_', 'yellow_vector_']). */
|
|
4925
|
+
vector_field: string;
|
|
4649
4926
|
/** Fields to include in the facets, if [] then all */
|
|
4650
4927
|
facets_fields?: string[];
|
|
4651
4928
|
/** Size of facet page */
|
|
@@ -4677,6 +4954,68 @@ export interface operations {
|
|
|
4677
4954
|
};
|
|
4678
4955
|
};
|
|
4679
4956
|
};
|
|
4957
|
+
/** Get a list of cluster IDs based on the relevant information */
|
|
4958
|
+
cluster_list_services_cluster_list_get: {
|
|
4959
|
+
parameters: {
|
|
4960
|
+
query: {
|
|
4961
|
+
/** Unique name of dataset */
|
|
4962
|
+
dataset_id: string;
|
|
4963
|
+
/** It can either be an array of strings (automatically equally weighted) (e.g. ['check_vector_', 'yellow_vector_']). */
|
|
4964
|
+
vector_field: string;
|
|
4965
|
+
/** Alias is used to name a cluster */
|
|
4966
|
+
alias?: string;
|
|
4967
|
+
};
|
|
4968
|
+
header: {
|
|
4969
|
+
/** Authorization credentials. Header authorization should be in the form of **"project:api_key"** */
|
|
4970
|
+
Authorization: string;
|
|
4971
|
+
};
|
|
4972
|
+
};
|
|
4973
|
+
responses: {
|
|
4974
|
+
/** Successful Response */
|
|
4975
|
+
200: {
|
|
4976
|
+
content: {
|
|
4977
|
+
"application/json": unknown;
|
|
4978
|
+
};
|
|
4979
|
+
};
|
|
4980
|
+
/** Validation Error */
|
|
4981
|
+
422: {
|
|
4982
|
+
content: {
|
|
4983
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
4984
|
+
};
|
|
4985
|
+
};
|
|
4986
|
+
};
|
|
4987
|
+
};
|
|
4988
|
+
/** Get a list of cluster IDs */
|
|
4989
|
+
cluster_list_multi_services_cluster_list_post: {
|
|
4990
|
+
parameters: {
|
|
4991
|
+
query: {
|
|
4992
|
+
/** Unique name of dataset */
|
|
4993
|
+
dataset_id: string;
|
|
4994
|
+
/** The vector field to search in. It can either be an array of strings (automatically equally weighted) (e.g. ['check_vector_', 'yellow_vector_']) or it is a dictionary mapping field to float where the weighting is explicitly specified (e.g. {'check_vector_': 0.2, 'yellow_vector_': 0.5}) */
|
|
4995
|
+
vector_fields: string;
|
|
4996
|
+
/** Alias is used to name a cluster */
|
|
4997
|
+
alias?: string;
|
|
4998
|
+
};
|
|
4999
|
+
header: {
|
|
5000
|
+
/** Authorization credentials. Header authorization should be in the form of **"project:api_key"** */
|
|
5001
|
+
Authorization: string;
|
|
5002
|
+
};
|
|
5003
|
+
};
|
|
5004
|
+
responses: {
|
|
5005
|
+
/** Successful Response */
|
|
5006
|
+
200: {
|
|
5007
|
+
content: {
|
|
5008
|
+
"application/json": unknown;
|
|
5009
|
+
};
|
|
5010
|
+
};
|
|
5011
|
+
/** Validation Error */
|
|
5012
|
+
422: {
|
|
5013
|
+
content: {
|
|
5014
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
5015
|
+
};
|
|
5016
|
+
};
|
|
5017
|
+
};
|
|
5018
|
+
};
|
|
4680
5019
|
/** Tag documents or vectors. */
|
|
4681
5020
|
tag_api_services_tagger_tag_post: {
|
|
4682
5021
|
parameters: {
|
package/package.json
CHANGED