You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: clients/ts-sdk/openapi.json
+61-5
Original file line number
Diff line number
Diff line change
@@ -7188,7 +7188,7 @@
7188
7188
},
7189
7189
"ChunkFilter": {
7190
7190
"type": "object",
7191
-
"description": "Filters is a JSON object which can be used to filter chunks. This is useful for when you want to filter chunks by arbitrary metadata. Unlike with tag filtering, there is a performance hit for filtering on metadata.",
7191
+
"description": "ChunkFilter is a JSON object which can be used to filter chunks. This is useful for when you want to filter chunks by arbitrary metadata. Unlike with tag filtering, there is a performance hit for filtering on metadata.",
"description": "Filters can be constructed using either fields on the chunk objects, ids or tracking ids of chunks, and finally ids or tracking ids of groups."
8103
8104
},
8104
8105
"ContentChunkMetadata": {
8105
8106
"type": "object",
@@ -8791,6 +8792,14 @@
8791
8792
],
8792
8793
"nullable": true
8793
8794
},
8795
+
"sort_options": {
8796
+
"allOf": [
8797
+
{
8798
+
"$ref": "#/components/schemas/SortOptions"
8799
+
}
8800
+
],
8801
+
"nullable": true
8802
+
},
8794
8803
"topic_id": {
8795
8804
"type": "string",
8796
8805
"format": "uuid",
@@ -9508,6 +9517,14 @@
9508
9517
],
9509
9518
"nullable": true
9510
9519
},
9520
+
"sort_options": {
9521
+
"allOf": [
9522
+
{
9523
+
"$ref": "#/components/schemas/SortOptions"
9524
+
}
9525
+
],
9526
+
"nullable": true
9527
+
},
9511
9528
"topic_id": {
9512
9529
"type": "string",
9513
9530
"format": "uuid",
@@ -10176,6 +10193,7 @@
10176
10193
},
10177
10194
"FieldCondition": {
10178
10195
"type": "object",
10196
+
"description": "FieldCondition is a JSON object which can be used to filter chunks by a field. This is useful for when you want to filter chunks by arbitrary metadata. To access fields inside of the metadata that you provide with the card, prefix the field name with `metadata.`.",
10179
10197
"required": [
10180
10198
"field"
10181
10199
],
@@ -10190,7 +10208,7 @@
10190
10208
},
10191
10209
"field": {
10192
10210
"type": "string",
10193
-
"description": "Field is the name of the field to filter on. The field value will be used to check for an exact substring match on the metadata values for each existing chunk. This is useful for when you want to filter chunks by arbitrary metadata. To access fields inside of the metadata that you provide with the card, prefix the field name with `metadata.`."
10211
+
"description": "Field is the name of the field to filter on. Commonly used fields are `timestamp`, `link`, `tag_set`, `location`, `num_value`, `group_ids`, and `group_tracking_ids`. The field value will be used to check for an exact substring match on the metadata values for each existing chunk. This is useful for when you want to filter chunks by arbitrary metadata. To access fields inside of the metadata that you provide with the card, prefix the field name with `metadata.`."
10194
10212
},
10195
10213
"geo_bounding_box": {
10196
10214
"allOf": [
@@ -10976,22 +10994,25 @@
10976
10994
}
10977
10995
}
10978
10996
},
10979
-
"HasIDCondition": {
10997
+
"HasChunkIDCondition": {
10980
10998
"type": "object",
10999
+
"description": "HasChunkIDCondition is a JSON object which can be used to filter chunks by their ids or tracking ids. This is useful for when you want to filter chunks by their ids or tracking ids.",
10981
11000
"properties": {
10982
11001
"ids": {
10983
11002
"type": "array",
10984
11003
"items": {
10985
11004
"type": "string",
10986
11005
"format": "uuid"
10987
11006
},
11007
+
"description": "Ids of the chunks to apply a match_any condition with. Only chunks with one of these ids will be returned.",
10988
11008
"nullable": true
10989
11009
},
10990
11010
"tracking_ids": {
10991
11011
"type": "array",
10992
11012
"items": {
10993
11013
"type": "string"
10994
11014
},
11015
+
"description": "Tracking ids of the chunks to apply a match_any condition with. Only chunks with one of these tracking ids will be returned.",
10995
11016
"nullable": true
10996
11017
}
10997
11018
}
@@ -11441,6 +11462,25 @@
11441
11462
"updated_at": "2021-01-01 00:00:00.000"
11442
11463
}
11443
11464
},
11465
+
"MmrOptions": {
11466
+
"type": "object",
11467
+
"description": "MMR Options lets you specify different methods to rerank the chunks in the result set using Maximal Marginal Relevance. If not specified, this defaults to the score of the chunks.",
11468
+
"required": [
11469
+
"use_mmr"
11470
+
],
11471
+
"properties": {
11472
+
"mmr_lambda": {
11473
+
"type": "number",
11474
+
"format": "float",
11475
+
"description": "Set mmr_lambda to a value between 0.0 and 1.0 to control the tradeoff between relevance and diversity. Closer to 1.0 will give more diverse results, closer to 0.0 will give more relevant results. If not specified, this defaults to 0.5.",
11476
+
"nullable": true
11477
+
},
11478
+
"use_mmr": {
11479
+
"type": "boolean",
11480
+
"description": "Set use_mmr to true to use the Maximal Marginal Relevance algorithm to rerank the results."
11481
+
}
11482
+
}
11483
+
},
11444
11484
"MultiQuery": {
11445
11485
"type": "object",
11446
11486
"description": "MultiQuery allows you to construct a dense vector from multiple queries with a weighted sum. This is useful for when you want to emphasize certain features of the query. This only works with Semantic Search and is not compatible with cross encoder re-ranking or highlights.",
Copy file name to clipboardExpand all lines: clients/ts-sdk/src/types.gen.ts
+37-4
Original file line number
Diff line number
Diff line change
@@ -206,7 +206,7 @@ export type ChatMessageProxy = {
206
206
};
207
207
208
208
/**
209
-
* Filters is a JSON object which can be used to filter chunks. This is useful for when you want to filter chunks by arbitrary metadata. Unlike with tag filtering, there is a performance hit for filtering on metadata.
209
+
* ChunkFilter is a JSON object which can be used to filter chunks. This is useful for when you want to filter chunks by arbitrary metadata. Unlike with tag filtering, there is a performance hit for filtering on metadata.
210
210
*/
211
211
exporttypeChunkFilter={
212
212
/**
@@ -485,7 +485,10 @@ export type ClusterAnalyticsFilter = {
* FieldCondition is a JSON object which can be used to filter chunks by a field. This is useful for when you want to filter chunks by arbitrary metadata. To access fields inside of the metadata that you provide with the card, prefix the field name with `metadata.`.
1339
+
*/
1332
1340
exporttypeFieldCondition={
1333
1341
date_range?: ((DateRange)|null);
1334
1342
/**
1335
-
* Field is the name of the field to filter on. The field value will be used to check for an exact substring match on the metadata values for each existing chunk. This is useful for when you want to filter chunks by arbitrary metadata. To access fields inside of the metadata that you provide with the card, prefix the field name with `metadata.`.
1343
+
* Field is the name of the field to filter on. Commonly used fields are `timestamp`, `link`, `tag_set`, `location`, `num_value`, `group_ids`, and `group_tracking_ids`. The field value will be used to check for an exact substring match on the metadata values for each existing chunk. This is useful for when you want to filter chunks by arbitrary metadata. To access fields inside of the metadata that you provide with the card, prefix the field name with `metadata.`.
1336
1344
*/
1337
1345
field: string;
1338
1346
geo_bounding_box?: ((LocationBoundingBox)|null);
@@ -1597,8 +1605,17 @@ export type GroupsForChunk = {
1597
1605
slim_groups: Array<ChunkGroupAndFileId>;
1598
1606
};
1599
1607
1600
-
exporttypeHasIDCondition={
1608
+
/**
1609
+
* HasChunkIDCondition is a JSON object which can be used to filter chunks by their ids or tracking ids. This is useful for when you want to filter chunks by their ids or tracking ids.
1610
+
*/
1611
+
exporttypeHasChunkIDCondition={
1612
+
/**
1613
+
* Ids of the chunks to apply a match_any condition with. Only chunks with one of these ids will be returned.
1614
+
*/
1601
1615
ids?: Array<(string)>|null;
1616
+
/**
1617
+
* Tracking ids of the chunks to apply a match_any condition with. Only chunks with one of these tracking ids will be returned.
1618
+
*/
1602
1619
tracking_ids?: Array<(string)>|null;
1603
1620
};
1604
1621
@@ -1777,6 +1794,20 @@ export type Message = {
1777
1794
updated_at: string;
1778
1795
};
1779
1796
1797
+
/**
1798
+
* MMR Options lets you specify different methods to rerank the chunks in the result set using Maximal Marginal Relevance. If not specified, this defaults to the score of the chunks.
1799
+
*/
1800
+
exporttypeMmrOptions={
1801
+
/**
1802
+
* Set mmr_lambda to a value between 0.0 and 1.0 to control the tradeoff between relevance and diversity. Closer to 1.0 will give more diverse results, closer to 0.0 will give more relevant results. If not specified, this defaults to 0.5.
1803
+
*/
1804
+
mmr_lambda?: (number)|null;
1805
+
/**
1806
+
* Set use_mmr to true to use the Maximal Marginal Relevance algorithm to rerank the results.
1807
+
*/
1808
+
use_mmr: boolean;
1809
+
};
1810
+
1780
1811
/**
1781
1812
* MultiQuery allows you to construct a dense vector from multiple queries with a weighted sum. This is useful for when you want to emphasize certain features of the query. This only works with Semantic Search and is not compatible with cross encoder re-ranking or highlights.
1782
1813
*/
@@ -2218,6 +2249,7 @@ export type RegenerateMessageReqPayload = {
2218
2249
*/
2219
2250
search_query?: (string)|null;
2220
2251
search_type?: ((SearchMethod)|null);
2252
+
sort_options?: ((SortOptions)|null);
2221
2253
/**
2222
2254
* The id of the topic to regenerate the last message for.
2223
2255
*/
@@ -2723,6 +2755,7 @@ export type SortBySearchType = {
2723
2755
*/
2724
2756
exporttypeSortOptions={
2725
2757
location_bias?: ((GeoInfoWithBias)|null);
2758
+
mmr?: ((MmrOptions)|null);
2726
2759
/**
2727
2760
* Recency Bias lets you determine how much of an effect the recency of chunks will have on the search results. If not specified, this defaults to 0.0. We recommend setting this to 1.0 for a gentle reranking of the results, >3.0 for a strong reranking of the results.
/// HasChunkIDCondition is a JSON object which can be used to filter chunks by their ids or tracking ids. This is useful for when you want to filter chunks by their ids or tracking ids.
4217
+
pubstructHasChunkIDCondition{
4218
+
/// Ids of the chunks to apply a match_any condition with. Only chunks with one of these ids will be returned.
4214
4219
pubids:Option<Vec<uuid::Uuid>>,
4220
+
/// Tracking ids of the chunks to apply a match_any condition with. Only chunks with one of these tracking ids will be returned.
4215
4221
pubtracking_ids:Option<Vec<String>>,
4216
4222
}
4217
4223
@@ -4226,8 +4232,9 @@ pub struct HasIDCondition {
4226
4232
"lt":1.0
4227
4233
}
4228
4234
}))]
4235
+
/// FieldCondition is a JSON object which can be used to filter chunks by a field. This is useful for when you want to filter chunks by arbitrary metadata. To access fields inside of the metadata that you provide with the card, prefix the field name with `metadata.`.
4229
4236
pubstructFieldCondition{
4230
-
/// Field is the name of the field to filter on. The field value will be used to check for an exact substring match on the metadata values for each existing chunk. This is useful for when you want to filter chunks by arbitrary metadata. To access fields inside of the metadata that you provide with the card, prefix the field name with `metadata.`.
4237
+
/// Field is the name of the field to filter on. Commonly used fields are `timestamp`, `link`, `tag_set`, `location`, `num_value`, `group_ids`, and `group_tracking_ids`. The field value will be used to check for an exact substring match on the metadata values for each existing chunk. This is useful for when you want to filter chunks by arbitrary metadata. To access fields inside of the metadata that you provide with the card, prefix the field name with `metadata.`.
4231
4238
pubfield:String,
4232
4239
/// Match any lets you pass in an array of values that will return results if any of the items match. The match value will be used to check for an exact substring match on the metadata values for each existing chunk. If both match_all and match_any are provided, the match_any condition will be used.
/// Filters is a JSON object which can be used to filter chunks. This is useful for when you want to filter chunks by arbitrary metadata. Unlike with tag filtering, there is a performance hit for filtering on metadata.
951
+
/// ChunkFilter is a JSON object which can be used to filter chunks. This is useful for when you want to filter chunks by arbitrary metadata. Unlike with tag filtering, there is a performance hit for filtering on metadata.
952
952
pubstructChunkFilter{
953
953
/// Only one of these field conditions has to match for the chunk to be included in the result set.
0 commit comments