@relevanceai/sdk 1.3.0 → 1.5.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 +372 -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,61 @@ 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_field?: string[];
|
|
1404
1456
|
/** Fields to include in the search results, empty array/list means all fields. */
|
|
1405
1457
|
select_fields?: string[];
|
|
1406
1458
|
/** Used for approximate search to speed up search. The higher the number, faster the search but potentially less accurate. */
|
|
@@ -1427,15 +1479,17 @@ export interface components {
|
|
|
1427
1479
|
include_facets?: boolean;
|
|
1428
1480
|
};
|
|
1429
1481
|
/** Base class for all abstractmodels */
|
|
1430
|
-
|
|
1482
|
+
CentroidsFurthestFromCenterV2: {
|
|
1431
1483
|
/** Unique name of dataset */
|
|
1432
1484
|
dataset_id: string;
|
|
1433
|
-
/** It can either be an array of strings (automatically equally weighted) (e.g. ['check_vector_', 'yellow_vector_']). */
|
|
1434
|
-
|
|
1485
|
+
/** 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}) */
|
|
1486
|
+
vector_fields: unknown[];
|
|
1435
1487
|
/** Alias used to name a vector field. Belongs in field_{alias}_vector_ */
|
|
1436
1488
|
alias?: string;
|
|
1437
1489
|
/** List of cluster IDs */
|
|
1438
1490
|
cluster_ids?: string[];
|
|
1491
|
+
/** Centroid vector field */
|
|
1492
|
+
centroid_vector_field?: string[];
|
|
1439
1493
|
/** Fields to include in the search results, empty array/list means all fields. */
|
|
1440
1494
|
select_fields?: string[];
|
|
1441
1495
|
/** Used for approximate search to speed up search. The higher the number, faster the search but potentially less accurate. */
|
|
@@ -1462,6 +1516,23 @@ export interface components {
|
|
|
1462
1516
|
include_facets?: boolean;
|
|
1463
1517
|
};
|
|
1464
1518
|
/** Base class for all abstractmodels */
|
|
1519
|
+
CentroidsGetV2: {
|
|
1520
|
+
/** Unique name of dataset */
|
|
1521
|
+
dataset_id: string;
|
|
1522
|
+
/** List of cluster IDs */
|
|
1523
|
+
cluster_ids: string[];
|
|
1524
|
+
/** The vector field where a clustering task was run. */
|
|
1525
|
+
vector_fields: unknown[];
|
|
1526
|
+
/** Alias is used to name a cluster */
|
|
1527
|
+
alias?: string;
|
|
1528
|
+
/** Size of each page of results */
|
|
1529
|
+
page_size?: number;
|
|
1530
|
+
/** Cursor to paginate the document retrieval */
|
|
1531
|
+
cursor?: string;
|
|
1532
|
+
/** Include vectors in the search results */
|
|
1533
|
+
include_vector?: boolean;
|
|
1534
|
+
};
|
|
1535
|
+
/** Base class for all abstractmodels */
|
|
1465
1536
|
ChunkSearchQuery: {
|
|
1466
1537
|
/** Unique name of dataset */
|
|
1467
1538
|
dataset_id: string;
|
|
@@ -1510,7 +1581,7 @@ export interface components {
|
|
|
1510
1581
|
count?: number;
|
|
1511
1582
|
};
|
|
1512
1583
|
/** Base class for all abstractmodels */
|
|
1513
|
-
|
|
1584
|
+
ClusterAggregateQueryCommonsV2: {
|
|
1514
1585
|
/** Unique name of dataset */
|
|
1515
1586
|
dataset_id: string;
|
|
1516
1587
|
/** Aggregation query to aggregate data */
|
|
@@ -1528,8 +1599,23 @@ export interface components {
|
|
|
1528
1599
|
flatten?: boolean;
|
|
1529
1600
|
/** Alias used to name a vector field. Belongs in field_{alias}_vector_ */
|
|
1530
1601
|
alias?: string;
|
|
1531
|
-
/** The vector field
|
|
1532
|
-
|
|
1602
|
+
/** 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}) */
|
|
1603
|
+
vector_fields: string[];
|
|
1604
|
+
};
|
|
1605
|
+
/** Base class for all abstractmodels */
|
|
1606
|
+
ClustercentroidsList: {
|
|
1607
|
+
/** Unique name of dataset */
|
|
1608
|
+
dataset_id: string;
|
|
1609
|
+
/** The vector field where a clustering task was run. */
|
|
1610
|
+
vector_fields: unknown[];
|
|
1611
|
+
/** Alias is used to name a cluster */
|
|
1612
|
+
alias?: string;
|
|
1613
|
+
/** Size of each page of results */
|
|
1614
|
+
page_size?: number;
|
|
1615
|
+
/** Cursor to paginate the document retrieval */
|
|
1616
|
+
cursor?: string;
|
|
1617
|
+
/** Include vectors in the search results */
|
|
1618
|
+
include_vector?: boolean;
|
|
1533
1619
|
};
|
|
1534
1620
|
/** Cluster Task */
|
|
1535
1621
|
Clusterer: {
|
|
@@ -4312,6 +4398,17 @@ export interface operations {
|
|
|
4312
4398
|
* - "groupby" is the fields you want to split the data into. These are the available groupby types:
|
|
4313
4399
|
* - category" : groupby a field that is a category
|
|
4314
4400
|
* - numeric: groupby a field that is a numeric
|
|
4401
|
+
* - wordcloud: groupby the words. You can also additionally include stop words in your aggregation
|
|
4402
|
+
* if you add `remove_words` as a field.
|
|
4403
|
+
*
|
|
4404
|
+
* {
|
|
4405
|
+
* "name": "wordcloud_research",
|
|
4406
|
+
* "field": "title",
|
|
4407
|
+
* "agg": "wordcloud",
|
|
4408
|
+
* "remove_words": ["learning"]
|
|
4409
|
+
* }
|
|
4410
|
+
*
|
|
4411
|
+
*
|
|
4315
4412
|
* - "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
4413
|
* - "avg", "max", "min", "sum", "cardinality"
|
|
4317
4414
|
*
|
|
@@ -4396,6 +4493,34 @@ export interface operations {
|
|
|
4396
4493
|
};
|
|
4397
4494
|
};
|
|
4398
4495
|
};
|
|
4496
|
+
/** Retrieves a list of cluster centroids */
|
|
4497
|
+
cluster_centroids_api_v2_services_cluster_centroids_list_post: {
|
|
4498
|
+
parameters: {
|
|
4499
|
+
header: {
|
|
4500
|
+
/** Authorization credentials. Header authorization should be in the form of **"project:api_key"** */
|
|
4501
|
+
Authorization: string;
|
|
4502
|
+
};
|
|
4503
|
+
};
|
|
4504
|
+
responses: {
|
|
4505
|
+
/** Successful Response */
|
|
4506
|
+
200: {
|
|
4507
|
+
content: {
|
|
4508
|
+
"application/json": unknown;
|
|
4509
|
+
};
|
|
4510
|
+
};
|
|
4511
|
+
/** Validation Error */
|
|
4512
|
+
422: {
|
|
4513
|
+
content: {
|
|
4514
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
4515
|
+
};
|
|
4516
|
+
};
|
|
4517
|
+
};
|
|
4518
|
+
requestBody: {
|
|
4519
|
+
content: {
|
|
4520
|
+
"application/json": components["schemas"]["ClustercentroidsList"];
|
|
4521
|
+
};
|
|
4522
|
+
};
|
|
4523
|
+
};
|
|
4399
4524
|
/** Retrieve the cluster centroids by IDs */
|
|
4400
4525
|
cluster_centroids_get_api_services_cluster_centroids_get_get: {
|
|
4401
4526
|
parameters: {
|
|
@@ -4433,8 +4558,36 @@ export interface operations {
|
|
|
4433
4558
|
};
|
|
4434
4559
|
};
|
|
4435
4560
|
};
|
|
4561
|
+
/** Retrieve the cluster centroids by IDs */
|
|
4562
|
+
cluster_centroids_get_api_services_cluster_centroids_get_post: {
|
|
4563
|
+
parameters: {
|
|
4564
|
+
header: {
|
|
4565
|
+
/** Authorization credentials. Header authorization should be in the form of **"project:api_key"** */
|
|
4566
|
+
Authorization: string;
|
|
4567
|
+
};
|
|
4568
|
+
};
|
|
4569
|
+
responses: {
|
|
4570
|
+
/** Successful Response */
|
|
4571
|
+
200: {
|
|
4572
|
+
content: {
|
|
4573
|
+
"application/json": unknown;
|
|
4574
|
+
};
|
|
4575
|
+
};
|
|
4576
|
+
/** Validation Error */
|
|
4577
|
+
422: {
|
|
4578
|
+
content: {
|
|
4579
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
4580
|
+
};
|
|
4581
|
+
};
|
|
4582
|
+
};
|
|
4583
|
+
requestBody: {
|
|
4584
|
+
content: {
|
|
4585
|
+
"application/json": components["schemas"]["CentroidsGetV2"];
|
|
4586
|
+
};
|
|
4587
|
+
};
|
|
4588
|
+
};
|
|
4436
4589
|
/** Insert your own cluster centroids for it to be used in approximate search settings and cluster aggregations. */
|
|
4437
|
-
|
|
4590
|
+
insert_cluster_centroids_2_api_services_cluster_centroids_insert_post: {
|
|
4438
4591
|
parameters: {
|
|
4439
4592
|
header: {
|
|
4440
4593
|
/** Authorization credentials. Header authorization should be in the form of **"project:api_key"** */
|
|
@@ -4457,7 +4610,125 @@ export interface operations {
|
|
|
4457
4610
|
};
|
|
4458
4611
|
requestBody: {
|
|
4459
4612
|
content: {
|
|
4460
|
-
"application/json": components["schemas"]["
|
|
4613
|
+
"application/json": components["schemas"]["CentroidInsertBodyV2"];
|
|
4614
|
+
};
|
|
4615
|
+
};
|
|
4616
|
+
};
|
|
4617
|
+
/** Update a centroid by ID */
|
|
4618
|
+
update_centroids_api_v2_services_cluster_centroids_update_post: {
|
|
4619
|
+
parameters: {
|
|
4620
|
+
header: {
|
|
4621
|
+
/** Authorization credentials. Header authorization should be in the form of **"project:api_key"** */
|
|
4622
|
+
Authorization: string;
|
|
4623
|
+
};
|
|
4624
|
+
};
|
|
4625
|
+
responses: {
|
|
4626
|
+
/** Successful Response */
|
|
4627
|
+
200: {
|
|
4628
|
+
content: {
|
|
4629
|
+
"application/json": unknown;
|
|
4630
|
+
};
|
|
4631
|
+
};
|
|
4632
|
+
/** Validation Error */
|
|
4633
|
+
422: {
|
|
4634
|
+
content: {
|
|
4635
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
4636
|
+
};
|
|
4637
|
+
};
|
|
4638
|
+
};
|
|
4639
|
+
requestBody: {
|
|
4640
|
+
content: {
|
|
4641
|
+
"application/json": components["schemas"]["CentroidUpdateBodyV2"];
|
|
4642
|
+
};
|
|
4643
|
+
};
|
|
4644
|
+
};
|
|
4645
|
+
/** Delete a centroid by ID */
|
|
4646
|
+
delete_centroids_api_services_cluster_centroids__centroid_id__delete_get: {
|
|
4647
|
+
parameters: {
|
|
4648
|
+
path: {
|
|
4649
|
+
centroid_id: string;
|
|
4650
|
+
};
|
|
4651
|
+
query: {
|
|
4652
|
+
dataset_id: string;
|
|
4653
|
+
vector_field: string;
|
|
4654
|
+
alias: string;
|
|
4655
|
+
};
|
|
4656
|
+
header: {
|
|
4657
|
+
/** Authorization credentials. Header authorization should be in the form of **"project:api_key"** */
|
|
4658
|
+
Authorization: string;
|
|
4659
|
+
};
|
|
4660
|
+
};
|
|
4661
|
+
responses: {
|
|
4662
|
+
/** Successful Response */
|
|
4663
|
+
200: {
|
|
4664
|
+
content: {
|
|
4665
|
+
"application/json": unknown;
|
|
4666
|
+
};
|
|
4667
|
+
};
|
|
4668
|
+
/** Validation Error */
|
|
4669
|
+
422: {
|
|
4670
|
+
content: {
|
|
4671
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
4672
|
+
};
|
|
4673
|
+
};
|
|
4674
|
+
};
|
|
4675
|
+
};
|
|
4676
|
+
/** Delete a centroid by ID */
|
|
4677
|
+
delete_centroids_api_services_cluster_centroids__centroid_id__delete_post: {
|
|
4678
|
+
parameters: {
|
|
4679
|
+
path: {
|
|
4680
|
+
centroid_id: string;
|
|
4681
|
+
};
|
|
4682
|
+
query: {
|
|
4683
|
+
dataset_id: string;
|
|
4684
|
+
vector_field: string;
|
|
4685
|
+
alias: string;
|
|
4686
|
+
};
|
|
4687
|
+
header: {
|
|
4688
|
+
/** Authorization credentials. Header authorization should be in the form of **"project:api_key"** */
|
|
4689
|
+
Authorization: string;
|
|
4690
|
+
};
|
|
4691
|
+
};
|
|
4692
|
+
responses: {
|
|
4693
|
+
/** Successful Response */
|
|
4694
|
+
200: {
|
|
4695
|
+
content: {
|
|
4696
|
+
"application/json": unknown;
|
|
4697
|
+
};
|
|
4698
|
+
};
|
|
4699
|
+
/** Validation Error */
|
|
4700
|
+
422: {
|
|
4701
|
+
content: {
|
|
4702
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
4703
|
+
};
|
|
4704
|
+
};
|
|
4705
|
+
};
|
|
4706
|
+
};
|
|
4707
|
+
/** Delete centroids by dataset ID, vector field and alias */
|
|
4708
|
+
cluster_centroids_delete_api_services_cluster_centroids_delete_post: {
|
|
4709
|
+
parameters: {
|
|
4710
|
+
query: {
|
|
4711
|
+
dataset_id: string;
|
|
4712
|
+
vector_field: string;
|
|
4713
|
+
alias: string;
|
|
4714
|
+
};
|
|
4715
|
+
header: {
|
|
4716
|
+
/** Authorization credentials. Header authorization should be in the form of **"project:api_key"** */
|
|
4717
|
+
Authorization: string;
|
|
4718
|
+
};
|
|
4719
|
+
};
|
|
4720
|
+
responses: {
|
|
4721
|
+
/** Successful Response */
|
|
4722
|
+
200: {
|
|
4723
|
+
content: {
|
|
4724
|
+
"application/json": unknown;
|
|
4725
|
+
};
|
|
4726
|
+
};
|
|
4727
|
+
/** Validation Error */
|
|
4728
|
+
422: {
|
|
4729
|
+
content: {
|
|
4730
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
4731
|
+
};
|
|
4461
4732
|
};
|
|
4462
4733
|
};
|
|
4463
4734
|
};
|
|
@@ -4521,7 +4792,7 @@ export interface operations {
|
|
|
4521
4792
|
};
|
|
4522
4793
|
};
|
|
4523
4794
|
/** You can store the metadata about your cluster here. */
|
|
4524
|
-
|
|
4795
|
+
centroids_metadata_post_api_v2_services_cluster_centroids_metadata_post: {
|
|
4525
4796
|
parameters: {
|
|
4526
4797
|
header: {
|
|
4527
4798
|
/** Authorization credentials. Header authorization should be in the form of **"project:api_key"** */
|
|
@@ -4544,12 +4815,12 @@ export interface operations {
|
|
|
4544
4815
|
};
|
|
4545
4816
|
requestBody: {
|
|
4546
4817
|
content: {
|
|
4547
|
-
"application/json": components["schemas"]["
|
|
4818
|
+
"application/json": components["schemas"]["CentroidMetadataV2"];
|
|
4548
4819
|
};
|
|
4549
4820
|
};
|
|
4550
4821
|
};
|
|
4551
4822
|
/** List of documents closest from the centre. */
|
|
4552
|
-
|
|
4823
|
+
centroids_list_closest_to_center_v2_services_cluster_centroids_list_closest_to_center_post: {
|
|
4553
4824
|
parameters: {
|
|
4554
4825
|
header: {
|
|
4555
4826
|
/** Authorization credentials. Header authorization should be in the form of **"project:api_key"** */
|
|
@@ -4572,12 +4843,12 @@ export interface operations {
|
|
|
4572
4843
|
};
|
|
4573
4844
|
requestBody: {
|
|
4574
4845
|
content: {
|
|
4575
|
-
"application/json": components["schemas"]["
|
|
4846
|
+
"application/json": components["schemas"]["CentroidsClosestToCenterV2"];
|
|
4576
4847
|
};
|
|
4577
4848
|
};
|
|
4578
4849
|
};
|
|
4579
|
-
/** List of documents from from the centre
|
|
4580
|
-
|
|
4850
|
+
/** List of documents from from the centre */
|
|
4851
|
+
centroids_list_furthest_from_center_v2_services_cluster_centroids_list_furthest_from_center_post: {
|
|
4581
4852
|
parameters: {
|
|
4582
4853
|
header: {
|
|
4583
4854
|
/** Authorization credentials. Header authorization should be in the form of **"project:api_key"** */
|
|
@@ -4600,7 +4871,7 @@ export interface operations {
|
|
|
4600
4871
|
};
|
|
4601
4872
|
requestBody: {
|
|
4602
4873
|
content: {
|
|
4603
|
-
"application/json": components["schemas"]["
|
|
4874
|
+
"application/json": components["schemas"]["CentroidsFurthestFromCenterV2"];
|
|
4604
4875
|
};
|
|
4605
4876
|
};
|
|
4606
4877
|
};
|
|
@@ -4609,7 +4880,7 @@ export interface operations {
|
|
|
4609
4880
|
*
|
|
4610
4881
|
* Only can be used after a vector field has been clustered with /cluster.
|
|
4611
4882
|
*/
|
|
4612
|
-
|
|
4883
|
+
cluster_aggregate_api_v2_services_cluster_aggregate_post: {
|
|
4613
4884
|
parameters: {
|
|
4614
4885
|
header: {
|
|
4615
4886
|
/** Authorization credentials. Header authorization should be in the form of **"project:api_key"** */
|
|
@@ -4632,7 +4903,7 @@ export interface operations {
|
|
|
4632
4903
|
};
|
|
4633
4904
|
requestBody: {
|
|
4634
4905
|
content: {
|
|
4635
|
-
"application/json": components["schemas"]["
|
|
4906
|
+
"application/json": components["schemas"]["ClusterAggregateQueryCommonsV2"];
|
|
4636
4907
|
};
|
|
4637
4908
|
};
|
|
4638
4909
|
};
|
|
@@ -4641,11 +4912,13 @@ export interface operations {
|
|
|
4641
4912
|
*
|
|
4642
4913
|
* Only can be used after a vector field has been clustered with /cluster.
|
|
4643
4914
|
*/
|
|
4644
|
-
|
|
4915
|
+
advanced_cluster_facets_api_services_cluster_facets_get: {
|
|
4645
4916
|
parameters: {
|
|
4646
4917
|
query: {
|
|
4647
4918
|
/** Unique name of dataset */
|
|
4648
4919
|
dataset_id: string;
|
|
4920
|
+
/** It can either be an array of strings (automatically equally weighted) (e.g. ['check_vector_', 'yellow_vector_']). */
|
|
4921
|
+
vector_field: string;
|
|
4649
4922
|
/** Fields to include in the facets, if [] then all */
|
|
4650
4923
|
facets_fields?: string[];
|
|
4651
4924
|
/** Size of facet page */
|
|
@@ -4677,6 +4950,68 @@ export interface operations {
|
|
|
4677
4950
|
};
|
|
4678
4951
|
};
|
|
4679
4952
|
};
|
|
4953
|
+
/** Get a list of cluster IDs based on the relevant information */
|
|
4954
|
+
cluster_list_services_cluster_list_get: {
|
|
4955
|
+
parameters: {
|
|
4956
|
+
query: {
|
|
4957
|
+
/** Unique name of dataset */
|
|
4958
|
+
dataset_id: string;
|
|
4959
|
+
/** It can either be an array of strings (automatically equally weighted) (e.g. ['check_vector_', 'yellow_vector_']). */
|
|
4960
|
+
vector_field: string;
|
|
4961
|
+
/** Alias is used to name a cluster */
|
|
4962
|
+
alias?: string;
|
|
4963
|
+
};
|
|
4964
|
+
header: {
|
|
4965
|
+
/** Authorization credentials. Header authorization should be in the form of **"project:api_key"** */
|
|
4966
|
+
Authorization: string;
|
|
4967
|
+
};
|
|
4968
|
+
};
|
|
4969
|
+
responses: {
|
|
4970
|
+
/** Successful Response */
|
|
4971
|
+
200: {
|
|
4972
|
+
content: {
|
|
4973
|
+
"application/json": unknown;
|
|
4974
|
+
};
|
|
4975
|
+
};
|
|
4976
|
+
/** Validation Error */
|
|
4977
|
+
422: {
|
|
4978
|
+
content: {
|
|
4979
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
4980
|
+
};
|
|
4981
|
+
};
|
|
4982
|
+
};
|
|
4983
|
+
};
|
|
4984
|
+
/** Get a list of cluster IDs */
|
|
4985
|
+
cluster_list_multi_services_cluster_list_post: {
|
|
4986
|
+
parameters: {
|
|
4987
|
+
query: {
|
|
4988
|
+
/** Unique name of dataset */
|
|
4989
|
+
dataset_id: string;
|
|
4990
|
+
/** 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}) */
|
|
4991
|
+
vector_fields: string;
|
|
4992
|
+
/** Alias is used to name a cluster */
|
|
4993
|
+
alias?: string;
|
|
4994
|
+
};
|
|
4995
|
+
header: {
|
|
4996
|
+
/** Authorization credentials. Header authorization should be in the form of **"project:api_key"** */
|
|
4997
|
+
Authorization: string;
|
|
4998
|
+
};
|
|
4999
|
+
};
|
|
5000
|
+
responses: {
|
|
5001
|
+
/** Successful Response */
|
|
5002
|
+
200: {
|
|
5003
|
+
content: {
|
|
5004
|
+
"application/json": unknown;
|
|
5005
|
+
};
|
|
5006
|
+
};
|
|
5007
|
+
/** Validation Error */
|
|
5008
|
+
422: {
|
|
5009
|
+
content: {
|
|
5010
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
5011
|
+
};
|
|
5012
|
+
};
|
|
5013
|
+
};
|
|
5014
|
+
};
|
|
4680
5015
|
/** Tag documents or vectors. */
|
|
4681
5016
|
tag_api_services_tagger_tag_post: {
|
|
4682
5017
|
parameters: {
|
package/package.json
CHANGED