trieve_ruby_client 0.5.0 → 0.6.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.
- checksums.yaml +4 -4
- data/GENERATE_COMMAND.txt +1 -0
- data/README.md +22 -11
- data/docs/AddChunkToGroupData.md +4 -2
- data/docs/AuthApi.md +13 -7
- data/docs/ChunkApi.md +9 -9
- data/docs/ChunkGroup.md +4 -0
- data/docs/ChunkGroupApi.md +36 -27
- data/docs/CreateChunkGroupData.md +4 -0
- data/docs/DatasetApi.md +11 -11
- data/docs/EventsApi.md +2 -2
- data/docs/FileApi.md +3 -3
- data/docs/GroupScoreChunkDTO.md +2 -0
- data/docs/GroupSlimChunksDTO.md +20 -0
- data/docs/HealthApi.md +1 -1
- data/docs/InvitationApi.md +1 -1
- data/docs/MessageApi.md +1 -1
- data/docs/OrganizationApi.md +1 -1
- data/docs/Range.md +4 -4
- data/docs/RangeCondition.md +49 -0
- data/docs/ReccomendGroupChunksRequest.md +3 -1
- data/docs/RecommendChunksRequest.md +5 -1
- data/docs/RecommendChunksResponseTypes.md +49 -0
- data/docs/RecommendGroupChunkResponseTypes.md +49 -0
- data/docs/RecommendGroupChunksRequest.md +34 -0
- data/docs/ScoreSlimChunks.md +20 -0
- data/docs/SearchChunkData.md +3 -1
- data/docs/SearchChunkResponseTypes.md +49 -0
- data/docs/SearchGroupSlimChunksResult.md +22 -0
- data/docs/SearchOverGroupsData.md +6 -4
- data/docs/SearchOverGroupsResponseTypes.md +49 -0
- data/docs/SearchOverGroupsSlimChunksResponseBody.md +20 -0
- data/docs/SearchSlimChunkQueryResponseBody.md +20 -0
- data/docs/SearchWithinGroupData.md +3 -1
- data/docs/SearchWithinGroupResponseTypes.md +49 -0
- data/docs/SlimChunkMetadata.md +36 -0
- data/docs/SlimUser.md +1 -7
- data/docs/StripeApi.md +1 -1
- data/docs/TopicApi.md +9 -9
- data/docs/UpdateChunkData.md +2 -0
- data/docs/UpdateChunkGroupData.md +4 -0
- data/docs/UpdateGroupByTrackingIDData.md +4 -0
- data/docs/UpdateUserData.md +1 -7
- data/docs/UserApi.md +9 -9
- data/lib/trieve_ruby_client/api/auth_api.rb +13 -11
- data/lib/trieve_ruby_client/api/chunk_api.rb +7 -7
- data/lib/trieve_ruby_client/api/chunk_group_api.rb +38 -31
- data/lib/trieve_ruby_client/api/dataset_api.rb +17 -22
- data/lib/trieve_ruby_client/api/events_api.rb +3 -3
- data/lib/trieve_ruby_client/api/file_api.rb +5 -5
- data/lib/trieve_ruby_client/api/health_api.rb +1 -1
- data/lib/trieve_ruby_client/api/invitation_api.rb +1 -1
- data/lib/trieve_ruby_client/api/message_api.rb +1 -1
- data/lib/trieve_ruby_client/api/organization_api.rb +1 -1
- data/lib/trieve_ruby_client/api/stripe_api.rb +1 -1
- data/lib/trieve_ruby_client/api/topic_api.rb +11 -16
- data/lib/trieve_ruby_client/api/user_api.rb +11 -16
- data/lib/trieve_ruby_client/api_client.rb +1 -1
- data/lib/trieve_ruby_client/api_error.rb +1 -1
- data/lib/trieve_ruby_client/configuration.rb +7 -7
- data/lib/trieve_ruby_client/models/add_chunk_to_group_data.rb +17 -12
- data/lib/trieve_ruby_client/models/api_key_dto.rb +1 -1
- data/lib/trieve_ruby_client/models/auth_query.rb +1 -1
- data/lib/trieve_ruby_client/models/batch_queued_chunk_response.rb +1 -1
- data/lib/trieve_ruby_client/models/bookmark_data.rb +1 -1
- data/lib/trieve_ruby_client/models/bookmark_group_result.rb +1 -1
- data/lib/trieve_ruby_client/models/chat_message_proxy.rb +1 -1
- data/lib/trieve_ruby_client/models/chunk_data.rb +1 -1
- data/lib/trieve_ruby_client/models/chunk_filter.rb +1 -1
- data/lib/trieve_ruby_client/models/chunk_group.rb +22 -2
- data/lib/trieve_ruby_client/models/chunk_group_and_file.rb +1 -1
- data/lib/trieve_ruby_client/models/chunk_metadata.rb +1 -1
- data/lib/trieve_ruby_client/models/chunk_metadata_with_file_data.rb +1 -1
- data/lib/trieve_ruby_client/models/client_dataset_configuration.rb +1 -1
- data/lib/trieve_ruby_client/models/create_chunk_data.rb +1 -1
- data/lib/trieve_ruby_client/models/create_chunk_group_data.rb +26 -2
- data/lib/trieve_ruby_client/models/create_dataset_request.rb +1 -1
- data/lib/trieve_ruby_client/models/create_message_data.rb +1 -1
- data/lib/trieve_ruby_client/models/create_organization_data.rb +1 -1
- data/lib/trieve_ruby_client/models/create_topic_data.rb +1 -1
- data/lib/trieve_ruby_client/models/dataset.rb +1 -1
- data/lib/trieve_ruby_client/models/dataset_and_usage.rb +1 -1
- data/lib/trieve_ruby_client/models/dataset_dto.rb +1 -1
- data/lib/trieve_ruby_client/models/dataset_usage_count.rb +1 -1
- data/lib/trieve_ruby_client/models/delete_topic_data.rb +1 -1
- data/lib/trieve_ruby_client/models/delete_user_api_key_request.rb +1 -1
- data/lib/trieve_ruby_client/models/edit_message_data.rb +1 -1
- data/lib/trieve_ruby_client/models/error_response_body.rb +1 -1
- data/lib/trieve_ruby_client/models/event.rb +1 -1
- data/lib/trieve_ruby_client/models/event_return.rb +1 -1
- data/lib/trieve_ruby_client/models/field_condition.rb +1 -1
- data/lib/trieve_ruby_client/models/file.rb +1 -1
- data/lib/trieve_ruby_client/models/file_dto.rb +1 -1
- data/lib/trieve_ruby_client/models/generate_chunks_request.rb +1 -1
- data/lib/trieve_ruby_client/models/get_events_data.rb +1 -1
- data/lib/trieve_ruby_client/models/get_groups_for_chunks_data.rb +1 -1
- data/lib/trieve_ruby_client/models/group_data.rb +1 -1
- data/lib/trieve_ruby_client/models/group_score_chunk_dto.rb +12 -2
- data/lib/trieve_ruby_client/models/group_slim_chunks_dto.rb +239 -0
- data/lib/trieve_ruby_client/models/invitation_data.rb +1 -1
- data/lib/trieve_ruby_client/models/match_condition.rb +1 -1
- data/lib/trieve_ruby_client/models/message.rb +1 -1
- data/lib/trieve_ruby_client/models/organization.rb +1 -1
- data/lib/trieve_ruby_client/models/organization_usage_count.rb +1 -1
- data/lib/trieve_ruby_client/models/range.rb +5 -5
- data/lib/trieve_ruby_client/models/range_condition.rb +105 -0
- data/lib/trieve_ruby_client/models/reccomend_group_chunks_request.rb +17 -6
- data/lib/trieve_ruby_client/models/recommend_chunks_request.rb +28 -6
- data/lib/trieve_ruby_client/models/recommend_chunks_response_types.rb +105 -0
- data/lib/trieve_ruby_client/models/recommend_group_chunk_response_types.rb +105 -0
- data/lib/trieve_ruby_client/models/recommend_group_chunks_request.rb +341 -0
- data/lib/trieve_ruby_client/models/regenerate_message_data.rb +1 -1
- data/lib/trieve_ruby_client/models/return_queued_chunk.rb +1 -1
- data/lib/trieve_ruby_client/models/score_chunk_dto.rb +1 -1
- data/lib/trieve_ruby_client/models/score_slim_chunks.rb +239 -0
- data/lib/trieve_ruby_client/models/search_chunk_data.rb +14 -3
- data/lib/trieve_ruby_client/models/search_chunk_query_response_body.rb +1 -1
- data/lib/trieve_ruby_client/models/search_chunk_response_types.rb +105 -0
- data/lib/trieve_ruby_client/models/search_group_slim_chunks_result.rb +255 -0
- data/lib/trieve_ruby_client/models/search_groups_result.rb +1 -1
- data/lib/trieve_ruby_client/models/search_over_groups_data.rb +19 -7
- data/lib/trieve_ruby_client/models/search_over_groups_response_body.rb +1 -1
- data/lib/trieve_ruby_client/models/search_over_groups_response_types.rb +105 -0
- data/lib/trieve_ruby_client/models/search_over_groups_slim_chunks_response_body.rb +239 -0
- data/lib/trieve_ruby_client/models/search_slim_chunk_query_response_body.rb +239 -0
- data/lib/trieve_ruby_client/models/search_within_group_data.rb +14 -3
- data/lib/trieve_ruby_client/models/search_within_group_response_types.rb +105 -0
- data/lib/trieve_ruby_client/models/set_user_api_key_request.rb +1 -1
- data/lib/trieve_ruby_client/models/set_user_api_key_response.rb +1 -1
- data/lib/trieve_ruby_client/models/single_queued_chunk_response.rb +1 -1
- data/lib/trieve_ruby_client/models/slim_chunk_metadata.rb +329 -0
- data/lib/trieve_ruby_client/models/slim_group.rb +1 -1
- data/lib/trieve_ruby_client/models/slim_user.rb +5 -41
- data/lib/trieve_ruby_client/models/stripe_plan.rb +1 -1
- data/lib/trieve_ruby_client/models/suggested_queries_request.rb +1 -1
- data/lib/trieve_ruby_client/models/suggested_queries_response.rb +1 -1
- data/lib/trieve_ruby_client/models/topic.rb +1 -1
- data/lib/trieve_ruby_client/models/update_chunk_by_tracking_id_data.rb +1 -1
- data/lib/trieve_ruby_client/models/update_chunk_data.rb +15 -2
- data/lib/trieve_ruby_client/models/update_chunk_group_data.rb +26 -2
- data/lib/trieve_ruby_client/models/update_dataset_request.rb +1 -1
- data/lib/trieve_ruby_client/models/update_group_by_tracking_id_data.rb +26 -2
- data/lib/trieve_ruby_client/models/update_organization_data.rb +1 -1
- data/lib/trieve_ruby_client/models/update_topic_data.rb +1 -1
- data/lib/trieve_ruby_client/models/update_user_data.rb +6 -39
- data/lib/trieve_ruby_client/models/upload_file_data.rb +1 -1
- data/lib/trieve_ruby_client/models/upload_file_result.rb +1 -1
- data/lib/trieve_ruby_client/models/user_organization.rb +1 -1
- data/lib/trieve_ruby_client/version.rb +2 -2
- data/lib/trieve_ruby_client.rb +14 -3
- data/openapi-generator.yaml +1 -1
- data/openapi.json +679 -261
- data/spec/models/group_slim_chunks_dto_spec.rb +42 -0
- data/spec/models/range_condition_spec.rb +32 -0
- data/spec/models/recommend_chunks_response_types_spec.rb +32 -0
- data/spec/models/recommend_group_chunk_response_types_spec.rb +32 -0
- data/spec/models/recommend_group_chunks_request_spec.rb +84 -0
- data/spec/models/score_slim_chunks_spec.rb +42 -0
- data/spec/models/search_chunk_response_types_spec.rb +32 -0
- data/spec/models/search_group_slim_chunks_result_spec.rb +48 -0
- data/spec/models/search_over_groups_response_types_spec.rb +32 -0
- data/spec/models/search_over_groups_slim_chunks_response_body_spec.rb +42 -0
- data/spec/models/search_slim_chunk_query_response_body_spec.rb +42 -0
- data/spec/models/search_within_group_response_types_spec.rb +32 -0
- data/spec/models/slim_chunk_metadata_spec.rb +90 -0
- data/spec/spec_helper.rb +1 -1
- data/trieve_ruby_client-0.5.0.gem +0 -0
- data/trieve_ruby_client-0.5.7.gem +0 -0
- data/trieve_ruby_client.gemspec +1 -1
- metadata +57 -4
- data/trieve_ruby_client-0.3.5.gem +0 -0
- data/trieve_ruby_client-0.4.0.gem +0 -0
data/openapi.json
CHANGED
@@ -12,16 +12,16 @@
|
|
12
12
|
"name": "BSL",
|
13
13
|
"url": "https://github.com/devflowinc/trieve/blob/main/LICENSE.txt"
|
14
14
|
},
|
15
|
-
"version": "0.
|
15
|
+
"version": "0.6.0"
|
16
16
|
},
|
17
17
|
"servers": [
|
18
|
-
{
|
19
|
-
"url": "http://localhost:8090",
|
20
|
-
"description": "Local development server"
|
21
|
-
},
|
22
18
|
{
|
23
19
|
"url": "https://api.trieve.ai",
|
24
20
|
"description": "Production server"
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"url": "http://localhost:8090",
|
24
|
+
"description": "Local development server"
|
25
25
|
}
|
26
26
|
],
|
27
27
|
"paths": {
|
@@ -35,12 +35,35 @@
|
|
35
35
|
"operationId": "login",
|
36
36
|
"parameters": [
|
37
37
|
{
|
38
|
-
"name": "
|
38
|
+
"name": "organization_id",
|
39
39
|
"in": "query",
|
40
|
-
"description": "
|
41
|
-
"required":
|
40
|
+
"description": "ID of organization to authenticate into",
|
41
|
+
"required": false,
|
42
|
+
"schema": {
|
43
|
+
"type": "string",
|
44
|
+
"format": "uuid",
|
45
|
+
"nullable": true
|
46
|
+
}
|
47
|
+
},
|
48
|
+
{
|
49
|
+
"name": "redirect_uri",
|
50
|
+
"in": "query",
|
51
|
+
"description": "URL to redirect to after successful login",
|
52
|
+
"required": false,
|
53
|
+
"schema": {
|
54
|
+
"type": "string",
|
55
|
+
"nullable": true
|
56
|
+
}
|
57
|
+
},
|
58
|
+
{
|
59
|
+
"name": "inv_code",
|
60
|
+
"in": "query",
|
61
|
+
"description": "Code sent via email as a result of successful call to send_invitation",
|
62
|
+
"required": false,
|
42
63
|
"schema": {
|
43
|
-
"
|
64
|
+
"type": "string",
|
65
|
+
"format": "uuid",
|
66
|
+
"nullable": true
|
44
67
|
}
|
45
68
|
}
|
46
69
|
],
|
@@ -422,14 +445,11 @@
|
|
422
445
|
},
|
423
446
|
"responses": {
|
424
447
|
"200": {
|
425
|
-
"description": "
|
448
|
+
"description": "Chunks with embedding vectors which are similar to those in the request body",
|
426
449
|
"content": {
|
427
450
|
"application/json": {
|
428
451
|
"schema": {
|
429
|
-
"
|
430
|
-
"items": {
|
431
|
-
"$ref": "#/components/schemas/ChunkMetadataWithFileData"
|
432
|
-
}
|
452
|
+
"$ref": "#/components/schemas/RecommendChunksResponseTypes"
|
433
453
|
}
|
434
454
|
}
|
435
455
|
}
|
@@ -486,11 +506,11 @@
|
|
486
506
|
},
|
487
507
|
"responses": {
|
488
508
|
"200": {
|
489
|
-
"description": "
|
509
|
+
"description": "Chunks with embedding vectors which are similar to those in the request body",
|
490
510
|
"content": {
|
491
511
|
"application/json": {
|
492
512
|
"schema": {
|
493
|
-
"$ref": "#/components/schemas/
|
513
|
+
"$ref": "#/components/schemas/SearchChunkResponseTypes"
|
494
514
|
}
|
495
515
|
}
|
496
516
|
}
|
@@ -560,6 +580,7 @@
|
|
560
580
|
}
|
561
581
|
}
|
562
582
|
},
|
583
|
+
"deprecated": true,
|
563
584
|
"security": [
|
564
585
|
{
|
565
586
|
"ApiKey": [
|
@@ -1100,6 +1121,17 @@
|
|
1100
1121
|
"summary": "Search Over Groups",
|
1101
1122
|
"description": "Search Over Groups\n\nThis route allows you to get groups as results instead of chunks. Each group returned will have the matching chunks sorted by similarity within the group. This is useful for when you want to get groups of chunks which are similar to the search query. If choosing hybrid search, the results will be re-ranked using BAAI/bge-reranker-large. Compatible with semantic, fulltext, or hybrid search modes.",
|
1102
1123
|
"operationId": "search_over_groups",
|
1124
|
+
"parameters": [
|
1125
|
+
{
|
1126
|
+
"name": "TR-Dataset",
|
1127
|
+
"in": "header",
|
1128
|
+
"description": "The dataset id to use for the request",
|
1129
|
+
"required": true,
|
1130
|
+
"schema": {
|
1131
|
+
"type": "string"
|
1132
|
+
}
|
1133
|
+
}
|
1134
|
+
],
|
1103
1135
|
"requestBody": {
|
1104
1136
|
"description": "JSON request payload to semantically search over groups",
|
1105
1137
|
"content": {
|
@@ -1117,7 +1149,7 @@
|
|
1117
1149
|
"content": {
|
1118
1150
|
"application/json": {
|
1119
1151
|
"schema": {
|
1120
|
-
"$ref": "#/components/schemas/
|
1152
|
+
"$ref": "#/components/schemas/SearchOverGroupsResponseTypes"
|
1121
1153
|
}
|
1122
1154
|
}
|
1123
1155
|
}
|
@@ -1132,7 +1164,14 @@
|
|
1132
1164
|
}
|
1133
1165
|
}
|
1134
1166
|
}
|
1135
|
-
}
|
1167
|
+
},
|
1168
|
+
"security": [
|
1169
|
+
{
|
1170
|
+
"ApiKey": [
|
1171
|
+
"readonly"
|
1172
|
+
]
|
1173
|
+
}
|
1174
|
+
]
|
1136
1175
|
}
|
1137
1176
|
},
|
1138
1177
|
"/api/chunk_group/recommend": {
|
@@ -1159,7 +1198,7 @@
|
|
1159
1198
|
"content": {
|
1160
1199
|
"application/json": {
|
1161
1200
|
"schema": {
|
1162
|
-
"$ref": "#/components/schemas/
|
1201
|
+
"$ref": "#/components/schemas/RecommendGroupChunksRequest"
|
1163
1202
|
}
|
1164
1203
|
}
|
1165
1204
|
},
|
@@ -1167,14 +1206,11 @@
|
|
1167
1206
|
},
|
1168
1207
|
"responses": {
|
1169
1208
|
"200": {
|
1170
|
-
"description": "JSON
|
1209
|
+
"description": "JSON body representing the groups which are similar to the groups in the request",
|
1171
1210
|
"content": {
|
1172
1211
|
"application/json": {
|
1173
1212
|
"schema": {
|
1174
|
-
"
|
1175
|
-
"items": {
|
1176
|
-
"$ref": "#/components/schemas/GroupScoreChunkDTO"
|
1177
|
-
}
|
1213
|
+
"$ref": "#/components/schemas/RecommendGroupChunkResponseTypes"
|
1178
1214
|
}
|
1179
1215
|
}
|
1180
1216
|
}
|
@@ -1235,7 +1271,7 @@
|
|
1235
1271
|
"content": {
|
1236
1272
|
"application/json": {
|
1237
1273
|
"schema": {
|
1238
|
-
"$ref": "#/components/schemas/
|
1274
|
+
"$ref": "#/components/schemas/SearchWithinGroupResponseTypes"
|
1239
1275
|
}
|
1240
1276
|
}
|
1241
1277
|
}
|
@@ -1266,7 +1302,7 @@
|
|
1266
1302
|
"chunk_group"
|
1267
1303
|
],
|
1268
1304
|
"summary": "Get Chunks in Group by Tracking ID",
|
1269
|
-
"description": "Get Chunks in Group by Tracking ID\n\nRoute to get all chunks for a group. The response is paginated, with each page containing 10 chunks. Support for custom page size is coming soon.",
|
1305
|
+
"description": "Get Chunks in Group by Tracking ID\n\nRoute to get all chunks for a group. The response is paginated, with each page containing 10 chunks. Support for custom page size is coming soon. Page is 1-indexed.",
|
1270
1306
|
"operationId": "get_chunks_in_group_by_tracking_id",
|
1271
1307
|
"parameters": [
|
1272
1308
|
{
|
@@ -1441,6 +1477,7 @@
|
|
1441
1477
|
}
|
1442
1478
|
}
|
1443
1479
|
},
|
1480
|
+
"deprecated": true,
|
1444
1481
|
"security": [
|
1445
1482
|
{
|
1446
1483
|
"ApiKey": [
|
@@ -1503,6 +1540,7 @@
|
|
1503
1540
|
}
|
1504
1541
|
}
|
1505
1542
|
},
|
1543
|
+
"deprecated": true,
|
1506
1544
|
"security": [
|
1507
1545
|
{
|
1508
1546
|
"ApiKey": [
|
@@ -1626,7 +1664,7 @@
|
|
1626
1664
|
"chunk_group"
|
1627
1665
|
],
|
1628
1666
|
"summary": "Delete Group",
|
1629
|
-
"description": "Delete Group\n\nThis will delete a chunk_group.
|
1667
|
+
"description": "Delete Group\n\nThis will delete a chunk_group. If you set delete_chunks to true, it will also delete the chunks within the group.",
|
1630
1668
|
"operationId": "delete_chunk_group",
|
1631
1669
|
"parameters": [
|
1632
1670
|
{
|
@@ -1688,7 +1726,7 @@
|
|
1688
1726
|
"chunk_group"
|
1689
1727
|
],
|
1690
1728
|
"summary": "Get Chunks in Group",
|
1691
|
-
"description": "Get Chunks in Group\n\nRoute to get all chunks for a group. The response is paginated, with each page containing 10 chunks.
|
1729
|
+
"description": "Get Chunks in Group\n\nRoute to get all chunks for a group. The response is paginated, with each page containing 10 chunks. Page is 1-indexed.",
|
1692
1730
|
"operationId": "get_chunks_in_group",
|
1693
1731
|
"parameters": [
|
1694
1732
|
{
|
@@ -1872,58 +1910,6 @@
|
|
1872
1910
|
]
|
1873
1911
|
}
|
1874
1912
|
]
|
1875
|
-
},
|
1876
|
-
"delete": {
|
1877
|
-
"tags": [
|
1878
|
-
"dataset"
|
1879
|
-
],
|
1880
|
-
"summary": "Delete Dataset",
|
1881
|
-
"description": "Delete Dataset\n\nDelete a dataset. The auth'ed user must be an owner of the organization to delete a dataset.",
|
1882
|
-
"operationId": "delete_dataset",
|
1883
|
-
"parameters": [
|
1884
|
-
{
|
1885
|
-
"name": "TR-Organization",
|
1886
|
-
"in": "header",
|
1887
|
-
"description": "The organization id to use for the request",
|
1888
|
-
"required": true,
|
1889
|
-
"schema": {
|
1890
|
-
"type": "string"
|
1891
|
-
}
|
1892
|
-
}
|
1893
|
-
],
|
1894
|
-
"requestBody": {
|
1895
|
-
"description": "JSON request payload to delete a dataset",
|
1896
|
-
"content": {
|
1897
|
-
"application/json": {
|
1898
|
-
"schema": {
|
1899
|
-
"$ref": "#/components/schemas/DeleteDatasetRequest"
|
1900
|
-
}
|
1901
|
-
}
|
1902
|
-
},
|
1903
|
-
"required": true
|
1904
|
-
},
|
1905
|
-
"responses": {
|
1906
|
-
"204": {
|
1907
|
-
"description": "Dataset deleted successfully"
|
1908
|
-
},
|
1909
|
-
"400": {
|
1910
|
-
"description": "Service error relating to deleting the dataset",
|
1911
|
-
"content": {
|
1912
|
-
"application/json": {
|
1913
|
-
"schema": {
|
1914
|
-
"$ref": "#/components/schemas/ErrorResponseBody"
|
1915
|
-
}
|
1916
|
-
}
|
1917
|
-
}
|
1918
|
-
}
|
1919
|
-
},
|
1920
|
-
"security": [
|
1921
|
-
{
|
1922
|
-
"ApiKey": [
|
1923
|
-
"owner"
|
1924
|
-
]
|
1925
|
-
}
|
1926
|
-
]
|
1927
1913
|
}
|
1928
1914
|
},
|
1929
1915
|
"/api/dataset/envs": {
|
@@ -2081,7 +2067,7 @@
|
|
2081
2067
|
{
|
2082
2068
|
"name": "page",
|
2083
2069
|
"in": "path",
|
2084
|
-
"description": "The page of groups to fetch.
|
2070
|
+
"description": "The page of groups to fetch. Page is 1-indexed.",
|
2085
2071
|
"required": true,
|
2086
2072
|
"schema": {
|
2087
2073
|
"type": "integer",
|
@@ -2250,6 +2236,57 @@
|
|
2250
2236
|
]
|
2251
2237
|
}
|
2252
2238
|
]
|
2239
|
+
},
|
2240
|
+
"delete": {
|
2241
|
+
"tags": [
|
2242
|
+
"dataset"
|
2243
|
+
],
|
2244
|
+
"summary": "Delete Dataset",
|
2245
|
+
"description": "Delete Dataset\n\nDelete a dataset. The auth'ed user must be an owner of the organization to delete a dataset.",
|
2246
|
+
"operationId": "delete_dataset",
|
2247
|
+
"parameters": [
|
2248
|
+
{
|
2249
|
+
"name": "TR-Dataset",
|
2250
|
+
"in": "header",
|
2251
|
+
"description": "The dataset id to use for the request",
|
2252
|
+
"required": true,
|
2253
|
+
"schema": {
|
2254
|
+
"type": "string"
|
2255
|
+
}
|
2256
|
+
},
|
2257
|
+
{
|
2258
|
+
"name": "dataset_id",
|
2259
|
+
"in": "path",
|
2260
|
+
"description": "The id of the dataset you want to delete.",
|
2261
|
+
"required": true,
|
2262
|
+
"schema": {
|
2263
|
+
"type": "string",
|
2264
|
+
"format": "uuid"
|
2265
|
+
}
|
2266
|
+
}
|
2267
|
+
],
|
2268
|
+
"responses": {
|
2269
|
+
"204": {
|
2270
|
+
"description": "Dataset deleted successfully"
|
2271
|
+
},
|
2272
|
+
"400": {
|
2273
|
+
"description": "Service error relating to deleting the dataset",
|
2274
|
+
"content": {
|
2275
|
+
"application/json": {
|
2276
|
+
"schema": {
|
2277
|
+
"$ref": "#/components/schemas/ErrorResponseBody"
|
2278
|
+
}
|
2279
|
+
}
|
2280
|
+
}
|
2281
|
+
}
|
2282
|
+
},
|
2283
|
+
"security": [
|
2284
|
+
{
|
2285
|
+
"ApiKey": [
|
2286
|
+
"owner"
|
2287
|
+
]
|
2288
|
+
}
|
2289
|
+
]
|
2253
2290
|
}
|
2254
2291
|
},
|
2255
2292
|
"/api/events": {
|
@@ -2258,7 +2295,7 @@
|
|
2258
2295
|
"events"
|
2259
2296
|
],
|
2260
2297
|
"summary": "Get events for the dataset",
|
2261
|
-
"description": "Get events for the dataset\n\nGet events for the
|
2298
|
+
"description": "Get events for the dataset\n\nGet events for the dataset specified by the TR-Dataset header.",
|
2262
2299
|
"operationId": "get_events",
|
2263
2300
|
"parameters": [
|
2264
2301
|
{
|
@@ -2380,7 +2417,7 @@
|
|
2380
2417
|
"file"
|
2381
2418
|
],
|
2382
2419
|
"summary": "Get File",
|
2383
|
-
"description": "Get File\n\nDownload a file
|
2420
|
+
"description": "Get File\n\nDownload a file based on its id.",
|
2384
2421
|
"operationId": "get_file_handler",
|
2385
2422
|
"parameters": [
|
2386
2423
|
{
|
@@ -2438,7 +2475,7 @@
|
|
2438
2475
|
"file"
|
2439
2476
|
],
|
2440
2477
|
"summary": "Delete File",
|
2441
|
-
"description": "Delete File\n\nDelete a file from S3 attached to the server based on its id. This will disassociate chunks from the file, but
|
2478
|
+
"description": "Delete File\n\nDelete a file from S3 attached to the server based on its id. This will disassociate chunks from the file, but only delete them all together if you specify delete_chunks to be true. Auth'ed user must be an admin or owner of the dataset's organization to delete a file.",
|
2442
2479
|
"operationId": "delete_file_handler",
|
2443
2480
|
"parameters": [
|
2444
2481
|
{
|
@@ -3467,15 +3504,27 @@
|
|
3467
3504
|
]
|
3468
3505
|
}
|
3469
3506
|
]
|
3470
|
-
}
|
3471
|
-
|
3507
|
+
}
|
3508
|
+
},
|
3509
|
+
"/api/topic/user/{user_id}": {
|
3510
|
+
"get": {
|
3472
3511
|
"tags": [
|
3473
3512
|
"topic"
|
3474
3513
|
],
|
3475
|
-
"summary": "
|
3476
|
-
"description": "
|
3477
|
-
"operationId": "
|
3514
|
+
"summary": "Get All Topics for User",
|
3515
|
+
"description": "Get All Topics for User\n\nGet all topics belonging to a the auth'ed user. Soon, we plan to allow specification of the user for this route and include pagination.",
|
3516
|
+
"operationId": "get_all_topics_for_user",
|
3478
3517
|
"parameters": [
|
3518
|
+
{
|
3519
|
+
"name": "user_id",
|
3520
|
+
"in": "path",
|
3521
|
+
"description": "The id of the user to get topics for",
|
3522
|
+
"required": true,
|
3523
|
+
"schema": {
|
3524
|
+
"type": "string",
|
3525
|
+
"format": "uuid"
|
3526
|
+
}
|
3527
|
+
},
|
3479
3528
|
{
|
3480
3529
|
"name": "TR-Dataset",
|
3481
3530
|
"in": "header",
|
@@ -3486,23 +3535,22 @@
|
|
3486
3535
|
}
|
3487
3536
|
}
|
3488
3537
|
],
|
3489
|
-
"
|
3490
|
-
"
|
3491
|
-
|
3492
|
-
"
|
3493
|
-
"
|
3494
|
-
"
|
3538
|
+
"responses": {
|
3539
|
+
"200": {
|
3540
|
+
"description": "All topics belonging to a given user",
|
3541
|
+
"content": {
|
3542
|
+
"application/json": {
|
3543
|
+
"schema": {
|
3544
|
+
"type": "array",
|
3545
|
+
"items": {
|
3546
|
+
"$ref": "#/components/schemas/Topic"
|
3547
|
+
}
|
3548
|
+
}
|
3495
3549
|
}
|
3496
3550
|
}
|
3497
3551
|
},
|
3498
|
-
"required": true
|
3499
|
-
},
|
3500
|
-
"responses": {
|
3501
|
-
"204": {
|
3502
|
-
"description": "Confirmation that the topic was deleted"
|
3503
|
-
},
|
3504
3552
|
"400": {
|
3505
|
-
"description": "Service error relating to topic
|
3553
|
+
"description": "Service error relating to topic get",
|
3506
3554
|
"content": {
|
3507
3555
|
"application/json": {
|
3508
3556
|
"schema": {
|
@@ -3521,51 +3569,41 @@
|
|
3521
3569
|
]
|
3522
3570
|
}
|
3523
3571
|
},
|
3524
|
-
"/api/topic/
|
3525
|
-
"
|
3572
|
+
"/api/topic/{topic_id}": {
|
3573
|
+
"delete": {
|
3526
3574
|
"tags": [
|
3527
3575
|
"topic"
|
3528
3576
|
],
|
3529
|
-
"summary": "
|
3530
|
-
"description": "
|
3531
|
-
"operationId": "
|
3577
|
+
"summary": "Delete Topic",
|
3578
|
+
"description": "Delete Topic\n\nDelete an existing chat topic. When a topic is deleted, all associated chat messages are also deleted.",
|
3579
|
+
"operationId": "delete_topic",
|
3532
3580
|
"parameters": [
|
3533
3581
|
{
|
3534
|
-
"name": "
|
3535
|
-
"in": "
|
3536
|
-
"description": "The id
|
3582
|
+
"name": "TR-Dataset",
|
3583
|
+
"in": "header",
|
3584
|
+
"description": "The dataset id to use for the request",
|
3537
3585
|
"required": true,
|
3538
3586
|
"schema": {
|
3539
|
-
"type": "string"
|
3540
|
-
"format": "uuid"
|
3587
|
+
"type": "string"
|
3541
3588
|
}
|
3542
3589
|
},
|
3543
3590
|
{
|
3544
|
-
"name": "
|
3545
|
-
"in": "
|
3546
|
-
"description": "The
|
3591
|
+
"name": "topic_id",
|
3592
|
+
"in": "path",
|
3593
|
+
"description": "The id of the topic you want to delete.",
|
3547
3594
|
"required": true,
|
3548
3595
|
"schema": {
|
3549
|
-
"type": "string"
|
3596
|
+
"type": "string",
|
3597
|
+
"format": "uuid"
|
3550
3598
|
}
|
3551
3599
|
}
|
3552
3600
|
],
|
3553
3601
|
"responses": {
|
3554
|
-
"
|
3555
|
-
"description": "
|
3556
|
-
"content": {
|
3557
|
-
"application/json": {
|
3558
|
-
"schema": {
|
3559
|
-
"type": "array",
|
3560
|
-
"items": {
|
3561
|
-
"$ref": "#/components/schemas/Topic"
|
3562
|
-
}
|
3563
|
-
}
|
3564
|
-
}
|
3565
|
-
}
|
3602
|
+
"204": {
|
3603
|
+
"description": "Confirmation that the topic was deleted"
|
3566
3604
|
},
|
3567
3605
|
"400": {
|
3568
|
-
"description": "Service error relating to topic
|
3606
|
+
"description": "Service error relating to topic deletion",
|
3569
3607
|
"content": {
|
3570
3608
|
"application/json": {
|
3571
3609
|
"schema": {
|
@@ -3634,7 +3672,7 @@
|
|
3634
3672
|
]
|
3635
3673
|
}
|
3636
3674
|
},
|
3637
|
-
"/api/user/delete_api_key": {
|
3675
|
+
"/api/user/delete_api_key/{api_key_id}": {
|
3638
3676
|
"delete": {
|
3639
3677
|
"tags": [
|
3640
3678
|
"user"
|
@@ -3642,17 +3680,18 @@
|
|
3642
3680
|
"summary": "Delete User Api Key",
|
3643
3681
|
"description": "Delete User Api Key\n\nDelete an api key for the auth'ed user.",
|
3644
3682
|
"operationId": "delete_user_api_key",
|
3645
|
-
"
|
3646
|
-
|
3647
|
-
|
3648
|
-
"
|
3649
|
-
|
3650
|
-
|
3651
|
-
|
3683
|
+
"parameters": [
|
3684
|
+
{
|
3685
|
+
"name": "api_key_id",
|
3686
|
+
"in": "path",
|
3687
|
+
"description": "The id of the api key to delete",
|
3688
|
+
"required": true,
|
3689
|
+
"schema": {
|
3690
|
+
"type": "string",
|
3691
|
+
"format": "uuid"
|
3652
3692
|
}
|
3653
|
-
}
|
3654
|
-
|
3655
|
-
},
|
3693
|
+
}
|
3694
|
+
],
|
3656
3695
|
"responses": {
|
3657
3696
|
"200": {
|
3658
3697
|
"description": "JSON body representing the api_key for the user",
|
@@ -3742,14 +3781,17 @@
|
|
3742
3781
|
"schemas": {
|
3743
3782
|
"AddChunkToGroupData": {
|
3744
3783
|
"type": "object",
|
3745
|
-
"required": [
|
3746
|
-
"chunk_id"
|
3747
|
-
],
|
3748
3784
|
"properties": {
|
3749
3785
|
"chunk_id": {
|
3750
3786
|
"type": "string",
|
3751
3787
|
"format": "uuid",
|
3752
|
-
"description": "Id of the chunk to make a member of the group."
|
3788
|
+
"description": "Id of the chunk to make a member of the group.",
|
3789
|
+
"nullable": true
|
3790
|
+
},
|
3791
|
+
"tracking_id": {
|
3792
|
+
"type": "string",
|
3793
|
+
"description": "Tracking Id of the chunk to make a member of the group.",
|
3794
|
+
"nullable": true
|
3753
3795
|
}
|
3754
3796
|
}
|
3755
3797
|
},
|
@@ -4103,10 +4145,10 @@
|
|
4103
4145
|
"value4"
|
4104
4146
|
],
|
4105
4147
|
"range": {
|
4106
|
-
"gt": 0
|
4107
|
-
"gte": 0
|
4108
|
-
"lt": 1
|
4109
|
-
"lte": 1
|
4148
|
+
"gt": 0,
|
4149
|
+
"gte": 0,
|
4150
|
+
"lt": 1,
|
4151
|
+
"lte": 1
|
4110
4152
|
}
|
4111
4153
|
}
|
4112
4154
|
],
|
@@ -4118,10 +4160,10 @@
|
|
4118
4160
|
"value6"
|
4119
4161
|
],
|
4120
4162
|
"range": {
|
4121
|
-
"gt": 0
|
4122
|
-
"gte": 0
|
4123
|
-
"lt": 1
|
4124
|
-
"lte": 1
|
4163
|
+
"gt": 0,
|
4164
|
+
"gte": 0,
|
4165
|
+
"lt": 1,
|
4166
|
+
"lte": 1
|
4125
4167
|
}
|
4126
4168
|
}
|
4127
4169
|
],
|
@@ -4133,10 +4175,10 @@
|
|
4133
4175
|
"value2"
|
4134
4176
|
],
|
4135
4177
|
"range": {
|
4136
|
-
"gt": 0
|
4137
|
-
"gte": 0
|
4138
|
-
"lt": 1
|
4139
|
-
"lte": 1
|
4178
|
+
"gt": 0,
|
4179
|
+
"gte": 0,
|
4180
|
+
"lt": 1,
|
4181
|
+
"lte": 1
|
4140
4182
|
}
|
4141
4183
|
}
|
4142
4184
|
]
|
@@ -4168,9 +4210,16 @@
|
|
4168
4210
|
"type": "string",
|
4169
4211
|
"format": "uuid"
|
4170
4212
|
},
|
4213
|
+
"metadata": {
|
4214
|
+
"nullable": true
|
4215
|
+
},
|
4171
4216
|
"name": {
|
4172
4217
|
"type": "string"
|
4173
4218
|
},
|
4219
|
+
"tag_set": {
|
4220
|
+
"type": "string",
|
4221
|
+
"nullable": true
|
4222
|
+
},
|
4174
4223
|
"tracking_id": {
|
4175
4224
|
"type": "string",
|
4176
4225
|
"nullable": true
|
@@ -4563,10 +4612,22 @@
|
|
4563
4612
|
"type": "string",
|
4564
4613
|
"description": "Description to assign to the chunk_group. Convenience field for you to avoid having to remember what the group is for."
|
4565
4614
|
},
|
4615
|
+
"metadata": {
|
4616
|
+
"description": "Optional metadata to assign to the chunk_group. This is a JSON object that can store any additional information you want to associate with the chunks inside of the chunk_group.",
|
4617
|
+
"nullable": true
|
4618
|
+
},
|
4566
4619
|
"name": {
|
4567
4620
|
"type": "string",
|
4568
4621
|
"description": "Name to assign to the chunk_group. Does not need to be unique."
|
4569
4622
|
},
|
4623
|
+
"tag_set": {
|
4624
|
+
"type": "array",
|
4625
|
+
"items": {
|
4626
|
+
"type": "string"
|
4627
|
+
},
|
4628
|
+
"description": "Optional tags to assign to the chunk_group. This is a list of strings that can be used to categorize the chunks inside the chunk_group.",
|
4629
|
+
"nullable": true
|
4630
|
+
},
|
4570
4631
|
"tracking_id": {
|
4571
4632
|
"type": "string",
|
4572
4633
|
"description": "Optional tracking id to assign to the chunk_group. This is a unique identifier for the chunk_group.",
|
@@ -4832,19 +4893,6 @@
|
|
4832
4893
|
"id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3"
|
4833
4894
|
}
|
4834
4895
|
},
|
4835
|
-
"DeleteDatasetRequest": {
|
4836
|
-
"type": "object",
|
4837
|
-
"required": [
|
4838
|
-
"dataset_id"
|
4839
|
-
],
|
4840
|
-
"properties": {
|
4841
|
-
"dataset_id": {
|
4842
|
-
"type": "string",
|
4843
|
-
"format": "uuid",
|
4844
|
-
"description": "The id of the dataset you want to delete."
|
4845
|
-
}
|
4846
|
-
}
|
4847
|
-
},
|
4848
4896
|
"DeleteTopicData": {
|
4849
4897
|
"type": "object",
|
4850
4898
|
"required": [
|
@@ -5029,10 +5077,10 @@
|
|
5029
5077
|
"value2"
|
5030
5078
|
],
|
5031
5079
|
"range": {
|
5032
|
-
"gt": 0
|
5033
|
-
"gte": 0
|
5034
|
-
"lt": 1
|
5035
|
-
"lte": 1
|
5080
|
+
"gt": 0,
|
5081
|
+
"gte": 0,
|
5082
|
+
"lt": 1,
|
5083
|
+
"lte": 1
|
5036
5084
|
}
|
5037
5085
|
}
|
5038
5086
|
},
|
@@ -5286,12 +5334,81 @@
|
|
5286
5334
|
"type": "string",
|
5287
5335
|
"format": "uuid"
|
5288
5336
|
},
|
5337
|
+
"group_tracking_id": {
|
5338
|
+
"type": "string",
|
5339
|
+
"nullable": true
|
5340
|
+
},
|
5289
5341
|
"metadata": {
|
5290
5342
|
"type": "array",
|
5291
5343
|
"items": {
|
5292
5344
|
"$ref": "#/components/schemas/ScoreChunkDTO"
|
5293
5345
|
}
|
5294
5346
|
}
|
5347
|
+
},
|
5348
|
+
"example": {
|
5349
|
+
"group_id": "e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
|
5350
|
+
"metadata": [
|
5351
|
+
{
|
5352
|
+
"metadata": [
|
5353
|
+
{
|
5354
|
+
"content": "This is a test content",
|
5355
|
+
"id": "e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
|
5356
|
+
"link": "https://www.google.com",
|
5357
|
+
"metadata": {
|
5358
|
+
"key": "value"
|
5359
|
+
},
|
5360
|
+
"tag_set": "test",
|
5361
|
+
"time_stamp": "2021-01-01T00:00:00Z",
|
5362
|
+
"tracking_id": "e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
|
5363
|
+
"weight": 1
|
5364
|
+
}
|
5365
|
+
],
|
5366
|
+
"score": 0.5
|
5367
|
+
}
|
5368
|
+
]
|
5369
|
+
}
|
5370
|
+
},
|
5371
|
+
"GroupSlimChunksDTO": {
|
5372
|
+
"type": "object",
|
5373
|
+
"required": [
|
5374
|
+
"group_id",
|
5375
|
+
"metadata"
|
5376
|
+
],
|
5377
|
+
"properties": {
|
5378
|
+
"group_id": {
|
5379
|
+
"type": "string",
|
5380
|
+
"format": "uuid"
|
5381
|
+
},
|
5382
|
+
"metadata": {
|
5383
|
+
"type": "array",
|
5384
|
+
"items": {
|
5385
|
+
"$ref": "#/components/schemas/ScoreSlimChunks"
|
5386
|
+
}
|
5387
|
+
}
|
5388
|
+
},
|
5389
|
+
"example": {
|
5390
|
+
"group_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
|
5391
|
+
"metadata": [
|
5392
|
+
{
|
5393
|
+
"metadata": [
|
5394
|
+
{
|
5395
|
+
"created_at": "2021-01-01T00:00:00",
|
5396
|
+
"id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
|
5397
|
+
"link": "https://trieve.ai",
|
5398
|
+
"metadata": {
|
5399
|
+
"key": "value"
|
5400
|
+
},
|
5401
|
+
"qdrant_point_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
|
5402
|
+
"tag_set": "tag1,tag2",
|
5403
|
+
"time_stamp": "2021-01-01T00:00:00",
|
5404
|
+
"tracking_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
|
5405
|
+
"updated_at": "2021-01-01T00:00:00",
|
5406
|
+
"weight": 0.5
|
5407
|
+
}
|
5408
|
+
],
|
5409
|
+
"score": 0.5
|
5410
|
+
}
|
5411
|
+
]
|
5295
5412
|
}
|
5296
5413
|
},
|
5297
5414
|
"InvitationData": {
|
@@ -5497,34 +5614,63 @@
|
|
5497
5614
|
"type": "object",
|
5498
5615
|
"properties": {
|
5499
5616
|
"gt": {
|
5500
|
-
"
|
5501
|
-
|
5617
|
+
"allOf": [
|
5618
|
+
{
|
5619
|
+
"$ref": "#/components/schemas/RangeCondition"
|
5620
|
+
}
|
5621
|
+
],
|
5502
5622
|
"nullable": true
|
5503
5623
|
},
|
5504
5624
|
"gte": {
|
5505
|
-
"
|
5506
|
-
|
5625
|
+
"allOf": [
|
5626
|
+
{
|
5627
|
+
"$ref": "#/components/schemas/RangeCondition"
|
5628
|
+
}
|
5629
|
+
],
|
5507
5630
|
"nullable": true
|
5508
5631
|
},
|
5509
5632
|
"lt": {
|
5510
|
-
"
|
5511
|
-
|
5633
|
+
"allOf": [
|
5634
|
+
{
|
5635
|
+
"$ref": "#/components/schemas/RangeCondition"
|
5636
|
+
}
|
5637
|
+
],
|
5512
5638
|
"nullable": true
|
5513
5639
|
},
|
5514
5640
|
"lte": {
|
5515
|
-
"
|
5516
|
-
|
5641
|
+
"allOf": [
|
5642
|
+
{
|
5643
|
+
"$ref": "#/components/schemas/RangeCondition"
|
5644
|
+
}
|
5645
|
+
],
|
5517
5646
|
"nullable": true
|
5518
5647
|
}
|
5519
5648
|
},
|
5520
5649
|
"example": {
|
5521
|
-
"gt": 0
|
5522
|
-
"gte": 0
|
5523
|
-
"lt": 1
|
5524
|
-
"lte": 1
|
5650
|
+
"gt": 0,
|
5651
|
+
"gte": 0,
|
5652
|
+
"lt": 1,
|
5653
|
+
"lte": 1
|
5525
5654
|
}
|
5526
5655
|
},
|
5527
|
-
"
|
5656
|
+
"RangeCondition": {
|
5657
|
+
"oneOf": [
|
5658
|
+
{
|
5659
|
+
"type": "string"
|
5660
|
+
},
|
5661
|
+
{
|
5662
|
+
"type": "number",
|
5663
|
+
"format": "double"
|
5664
|
+
}
|
5665
|
+
]
|
5666
|
+
},
|
5667
|
+
"RecommendChunkMetadata": {
|
5668
|
+
"type": "array",
|
5669
|
+
"items": {
|
5670
|
+
"$ref": "#/components/schemas/ChunkMetadata"
|
5671
|
+
}
|
5672
|
+
},
|
5673
|
+
"RecommendChunksRequest": {
|
5528
5674
|
"type": "object",
|
5529
5675
|
"properties": {
|
5530
5676
|
"filters": {
|
@@ -5535,57 +5681,86 @@
|
|
5535
5681
|
],
|
5536
5682
|
"nullable": true
|
5537
5683
|
},
|
5538
|
-
"group_size": {
|
5539
|
-
"type": "integer",
|
5540
|
-
"format": "int32",
|
5541
|
-
"description": "The number of chunks to fetch for each group. This is the number of chunks which will be returned in the response for each group. The default is 10.",
|
5542
|
-
"nullable": true,
|
5543
|
-
"minimum": 0
|
5544
|
-
},
|
5545
5684
|
"limit": {
|
5546
5685
|
"type": "integer",
|
5547
5686
|
"format": "int64",
|
5548
|
-
"description": "The number of
|
5687
|
+
"description": "The number of chunks to return. This is the number of chunks which will be returned in the response. The default is 10.",
|
5549
5688
|
"nullable": true,
|
5550
5689
|
"minimum": 0
|
5551
5690
|
},
|
5552
|
-
"
|
5691
|
+
"negative_chunk_ids": {
|
5553
5692
|
"type": "array",
|
5554
5693
|
"items": {
|
5555
5694
|
"type": "string",
|
5556
5695
|
"format": "uuid"
|
5557
5696
|
},
|
5558
|
-
"description": "The
|
5697
|
+
"description": "The ids of the chunks to be used as negative examples for the recommendation. The chunks in this array will be used to filter out similar chunks.",
|
5559
5698
|
"nullable": true
|
5560
5699
|
},
|
5561
|
-
"
|
5700
|
+
"negative_tracking_ids": {
|
5562
5701
|
"type": "array",
|
5563
5702
|
"items": {
|
5564
5703
|
"type": "string"
|
5565
5704
|
},
|
5566
|
-
"description": "The
|
5705
|
+
"description": "The tracking_ids of the chunks to be used as negative examples for the recommendation. The chunks in this array will be used to filter out similar chunks.",
|
5567
5706
|
"nullable": true
|
5568
5707
|
},
|
5569
|
-
"
|
5708
|
+
"positive_chunk_ids": {
|
5570
5709
|
"type": "array",
|
5571
5710
|
"items": {
|
5572
5711
|
"type": "string",
|
5573
5712
|
"format": "uuid"
|
5574
5713
|
},
|
5575
|
-
"description": "The
|
5714
|
+
"description": "The ids of the chunks to be used as positive examples for the recommendation. The chunks in this array will be used to find similar chunks.",
|
5576
5715
|
"nullable": true
|
5577
5716
|
},
|
5578
|
-
"
|
5717
|
+
"positive_tracking_ids": {
|
5579
5718
|
"type": "array",
|
5580
5719
|
"items": {
|
5581
5720
|
"type": "string"
|
5582
5721
|
},
|
5583
|
-
"description": "The
|
5722
|
+
"description": "The tracking_ids of the chunks to be used as positive examples for the recommendation. The chunks in this array will be used to find similar chunks.",
|
5723
|
+
"nullable": true
|
5724
|
+
},
|
5725
|
+
"slim_chunks": {
|
5726
|
+
"type": "boolean",
|
5727
|
+
"description": "Set slim_chunks to true to avoid returning the content and chunk_html of the chunks. This is useful for when you want to reduce amount of data over the wire for latency improvement. Default is false.",
|
5728
|
+
"nullable": true
|
5729
|
+
},
|
5730
|
+
"strategy": {
|
5731
|
+
"type": "string",
|
5732
|
+
"description": "Strategy to use for recommendations, either \"average_vector\" or \"best_score\". The default is \"average_vector\". The \"average_vector\" strategy will construct a single average vector from the positive and negative samples then use it to perform a pseudo-search. The \"best_score\" strategy is more advanced and navigates the HNSW with a heuristic of picking edges where the point is closer to the positive samples than it is the negatives.",
|
5584
5733
|
"nullable": true
|
5585
5734
|
}
|
5586
5735
|
}
|
5587
5736
|
},
|
5588
|
-
"
|
5737
|
+
"RecommendChunksResponseTypes": {
|
5738
|
+
"oneOf": [
|
5739
|
+
{
|
5740
|
+
"$ref": "#/components/schemas/RecommendChunkMetadata"
|
5741
|
+
},
|
5742
|
+
{
|
5743
|
+
"$ref": "#/components/schemas/RecommendSlimChunkMetadata"
|
5744
|
+
}
|
5745
|
+
]
|
5746
|
+
},
|
5747
|
+
"RecommendGroupChunkResponseTypes": {
|
5748
|
+
"oneOf": [
|
5749
|
+
{
|
5750
|
+
"$ref": "#/components/schemas/RecommendGroupSlimChunksDTO"
|
5751
|
+
},
|
5752
|
+
{
|
5753
|
+
"$ref": "#/components/schemas/RecommendGroupChunksDTO"
|
5754
|
+
}
|
5755
|
+
]
|
5756
|
+
},
|
5757
|
+
"RecommendGroupChunksDTO": {
|
5758
|
+
"type": "array",
|
5759
|
+
"items": {
|
5760
|
+
"$ref": "#/components/schemas/GroupScoreChunkDTO"
|
5761
|
+
}
|
5762
|
+
},
|
5763
|
+
"RecommendGroupChunksRequest": {
|
5589
5764
|
"type": "object",
|
5590
5765
|
"properties": {
|
5591
5766
|
"filters": {
|
@@ -5596,49 +5771,78 @@
|
|
5596
5771
|
],
|
5597
5772
|
"nullable": true
|
5598
5773
|
},
|
5774
|
+
"group_size": {
|
5775
|
+
"type": "integer",
|
5776
|
+
"format": "int32",
|
5777
|
+
"description": "The number of chunks to fetch for each group. This is the number of chunks which will be returned in the response for each group. The default is 3. If this is set to a large number, we recommend setting slim_chunks to true to avoid returning the content and chunk_html of the chunks so as to reduce latency due to content download and serialization.",
|
5778
|
+
"nullable": true,
|
5779
|
+
"minimum": 0
|
5780
|
+
},
|
5599
5781
|
"limit": {
|
5600
5782
|
"type": "integer",
|
5601
5783
|
"format": "int64",
|
5602
|
-
"description": "The number of
|
5784
|
+
"description": "The number of groups to return. This is the number of groups which will be returned in the response. The default is 10.",
|
5603
5785
|
"nullable": true,
|
5604
5786
|
"minimum": 0
|
5605
5787
|
},
|
5606
|
-
"
|
5788
|
+
"negative_group_ids": {
|
5607
5789
|
"type": "array",
|
5608
5790
|
"items": {
|
5609
5791
|
"type": "string",
|
5610
5792
|
"format": "uuid"
|
5611
5793
|
},
|
5612
|
-
"description": "The ids of the
|
5794
|
+
"description": "The ids of the groups to be used as negative examples for the recommendation. The groups in this array will be used to filter out similar groups.",
|
5613
5795
|
"nullable": true
|
5614
5796
|
},
|
5615
|
-
"
|
5797
|
+
"negative_group_tracking_ids": {
|
5616
5798
|
"type": "array",
|
5617
5799
|
"items": {
|
5618
5800
|
"type": "string"
|
5619
5801
|
},
|
5620
|
-
"description": "The
|
5802
|
+
"description": "The ids of the groups to be used as negative examples for the recommendation. The groups in this array will be used to filter out similar groups.",
|
5621
5803
|
"nullable": true
|
5622
5804
|
},
|
5623
|
-
"
|
5805
|
+
"positive_group_ids": {
|
5624
5806
|
"type": "array",
|
5625
5807
|
"items": {
|
5626
5808
|
"type": "string",
|
5627
5809
|
"format": "uuid"
|
5628
5810
|
},
|
5629
|
-
"description": "The ids of the
|
5811
|
+
"description": "The ids of the groups to be used as positive examples for the recommendation. The groups in this array will be used to find similar groups.",
|
5630
5812
|
"nullable": true
|
5631
5813
|
},
|
5632
|
-
"
|
5814
|
+
"positive_group_tracking_ids": {
|
5633
5815
|
"type": "array",
|
5634
5816
|
"items": {
|
5635
5817
|
"type": "string"
|
5636
5818
|
},
|
5637
|
-
"description": "The
|
5819
|
+
"description": "The ids of the groups to be used as positive examples for the recommendation. The groups in this array will be used to find similar groups.",
|
5820
|
+
"nullable": true
|
5821
|
+
},
|
5822
|
+
"slim_chunks": {
|
5823
|
+
"type": "boolean",
|
5824
|
+
"description": "Set slim_chunks to true to avoid returning the content and chunk_html of the chunks. This is useful for when you want to reduce amount of data over the wire for latency improvement. Default is false.",
|
5825
|
+
"nullable": true
|
5826
|
+
},
|
5827
|
+
"strategy": {
|
5828
|
+
"type": "string",
|
5829
|
+
"description": "Strategy to use for recommendations, either \"average_vector\" or \"best_score\". The default is \"average_vector\". The \"average_vector\" strategy will construct a single average vector from the positive and negative samples then use it to perform a pseudo-search. The \"best_score\" strategy is more advanced and navigates the HNSW with a heuristic of picking edges where the point is closer to the positive samples than it is the negatives.",
|
5638
5830
|
"nullable": true
|
5639
5831
|
}
|
5640
5832
|
}
|
5641
5833
|
},
|
5834
|
+
"RecommendGroupSlimChunksDTO": {
|
5835
|
+
"type": "array",
|
5836
|
+
"items": {
|
5837
|
+
"$ref": "#/components/schemas/GroupSlimChunksDTO"
|
5838
|
+
}
|
5839
|
+
},
|
5840
|
+
"RecommendSlimChunkMetadata": {
|
5841
|
+
"type": "array",
|
5842
|
+
"items": {
|
5843
|
+
"$ref": "#/components/schemas/SlimChunkMetadata"
|
5844
|
+
}
|
5845
|
+
},
|
5642
5846
|
"RegenerateMessageData": {
|
5643
5847
|
"type": "object",
|
5644
5848
|
"required": [
|
@@ -5721,6 +5925,44 @@
|
|
5721
5925
|
"score": 0.5
|
5722
5926
|
}
|
5723
5927
|
},
|
5928
|
+
"ScoreSlimChunks": {
|
5929
|
+
"type": "object",
|
5930
|
+
"required": [
|
5931
|
+
"metadata",
|
5932
|
+
"score"
|
5933
|
+
],
|
5934
|
+
"properties": {
|
5935
|
+
"metadata": {
|
5936
|
+
"type": "array",
|
5937
|
+
"items": {
|
5938
|
+
"$ref": "#/components/schemas/SlimChunkMetadata"
|
5939
|
+
}
|
5940
|
+
},
|
5941
|
+
"score": {
|
5942
|
+
"type": "number",
|
5943
|
+
"format": "double"
|
5944
|
+
}
|
5945
|
+
},
|
5946
|
+
"example": {
|
5947
|
+
"metadata": [
|
5948
|
+
{
|
5949
|
+
"created_at": "2021-01-01T00:00:00",
|
5950
|
+
"id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
|
5951
|
+
"link": "https://trieve.ai",
|
5952
|
+
"metadata": {
|
5953
|
+
"key": "value"
|
5954
|
+
},
|
5955
|
+
"qdrant_point_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
|
5956
|
+
"tag_set": "tag1,tag2",
|
5957
|
+
"time_stamp": "2021-01-01T00:00:00",
|
5958
|
+
"tracking_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
|
5959
|
+
"updated_at": "2021-01-01T00:00:00",
|
5960
|
+
"weight": 0.5
|
5961
|
+
}
|
5962
|
+
],
|
5963
|
+
"score": 0.5
|
5964
|
+
}
|
5965
|
+
},
|
5724
5966
|
"SearchChunkData": {
|
5725
5967
|
"type": "object",
|
5726
5968
|
"required": [
|
@@ -5762,7 +6004,7 @@
|
|
5762
6004
|
"page": {
|
5763
6005
|
"type": "integer",
|
5764
6006
|
"format": "int64",
|
5765
|
-
"description": "Page of chunks to fetch.
|
6007
|
+
"description": "Page of chunks to fetch. Page is 1-indexed.",
|
5766
6008
|
"nullable": true,
|
5767
6009
|
"minimum": 0
|
5768
6010
|
},
|
@@ -5787,6 +6029,11 @@
|
|
5787
6029
|
"type": "string",
|
5788
6030
|
"description": "Can be either \"semantic\", \"fulltext\", or \"hybrid\". \"hybrid\" will pull in one page (10 chunks) of both semantic and full-text results then re-rank them using BAAI/bge-reranker-large. \"semantic\" will pull in one page (10 chunks) of the nearest cosine distant vectors. \"fulltext\" will pull in one page (10 chunks) of full-text results based on SPLADE."
|
5789
6031
|
},
|
6032
|
+
"slim_chunks": {
|
6033
|
+
"type": "boolean",
|
6034
|
+
"description": "Set slim_chunks to true to avoid returning the content and chunk_html of the chunks. This is useful for when you want to reduce amount of data over the wire for latency improvement. Default is false.",
|
6035
|
+
"nullable": true
|
6036
|
+
},
|
5790
6037
|
"use_weights": {
|
5791
6038
|
"type": "boolean",
|
5792
6039
|
"description": "Set use_weights to true to use the weights of the chunks in the result set in order to sort them. If not specified, this defaults to true.",
|
@@ -5804,10 +6051,10 @@
|
|
5804
6051
|
"value4"
|
5805
6052
|
],
|
5806
6053
|
"range": {
|
5807
|
-
"gt": 0
|
5808
|
-
"gte": 0
|
5809
|
-
"lt": 1
|
5810
|
-
"lte": 1
|
6054
|
+
"gt": 0,
|
6055
|
+
"gte": 0,
|
6056
|
+
"lt": 1,
|
6057
|
+
"lte": 1
|
5811
6058
|
}
|
5812
6059
|
}
|
5813
6060
|
],
|
@@ -5819,10 +6066,10 @@
|
|
5819
6066
|
"value6"
|
5820
6067
|
],
|
5821
6068
|
"range": {
|
5822
|
-
"gt": 0
|
5823
|
-
"gte": 0
|
5824
|
-
"lt": 1
|
5825
|
-
"lte": 1
|
6069
|
+
"gt": 0,
|
6070
|
+
"gte": 0,
|
6071
|
+
"lt": 1,
|
6072
|
+
"lte": 1
|
5826
6073
|
}
|
5827
6074
|
}
|
5828
6075
|
],
|
@@ -5834,10 +6081,10 @@
|
|
5834
6081
|
"value2"
|
5835
6082
|
],
|
5836
6083
|
"range": {
|
5837
|
-
"gt": 0
|
5838
|
-
"gte": 0
|
5839
|
-
"lt": 1
|
5840
|
-
"lte": 1
|
6084
|
+
"gt": 0,
|
6085
|
+
"gte": 0,
|
6086
|
+
"lt": 1,
|
6087
|
+
"lte": 1
|
5841
6088
|
}
|
5842
6089
|
}
|
5843
6090
|
]
|
@@ -5877,6 +6124,39 @@
|
|
5877
6124
|
}
|
5878
6125
|
}
|
5879
6126
|
},
|
6127
|
+
"SearchChunkResponseTypes": {
|
6128
|
+
"oneOf": [
|
6129
|
+
{
|
6130
|
+
"$ref": "#/components/schemas/SearchSlimChunkQueryResponseBody"
|
6131
|
+
},
|
6132
|
+
{
|
6133
|
+
"$ref": "#/components/schemas/SearchChunkQueryResponseBody"
|
6134
|
+
}
|
6135
|
+
]
|
6136
|
+
},
|
6137
|
+
"SearchGroupSlimChunksResult": {
|
6138
|
+
"type": "object",
|
6139
|
+
"required": [
|
6140
|
+
"bookmarks",
|
6141
|
+
"group",
|
6142
|
+
"total_pages"
|
6143
|
+
],
|
6144
|
+
"properties": {
|
6145
|
+
"bookmarks": {
|
6146
|
+
"type": "array",
|
6147
|
+
"items": {
|
6148
|
+
"$ref": "#/components/schemas/ScoreSlimChunks"
|
6149
|
+
}
|
6150
|
+
},
|
6151
|
+
"group": {
|
6152
|
+
"$ref": "#/components/schemas/ChunkGroup"
|
6153
|
+
},
|
6154
|
+
"total_pages": {
|
6155
|
+
"type": "integer",
|
6156
|
+
"format": "int64"
|
6157
|
+
}
|
6158
|
+
}
|
6159
|
+
},
|
5880
6160
|
"SearchGroupsResult": {
|
5881
6161
|
"type": "object",
|
5882
6162
|
"required": [
|
@@ -5923,6 +6203,7 @@
|
|
5923
6203
|
"group_size": {
|
5924
6204
|
"type": "integer",
|
5925
6205
|
"format": "int32",
|
6206
|
+
"description": "Group_size is the number of chunks to fetch for each group. The default is 3. If a group has less than group_size chunks, all chunks will be returned. If this is set to a large number, we recommend setting slim_chunks to true to avoid returning the content and chunk_html of the chunks so as to lower the amount of time required for content download and serialization.",
|
5926
6207
|
"nullable": true,
|
5927
6208
|
"minimum": 0
|
5928
6209
|
},
|
@@ -5942,14 +6223,14 @@
|
|
5942
6223
|
"page": {
|
5943
6224
|
"type": "integer",
|
5944
6225
|
"format": "int64",
|
5945
|
-
"description": "Page of
|
6226
|
+
"description": "Page of group results to fetch. Page is 1-indexed.",
|
5946
6227
|
"nullable": true,
|
5947
6228
|
"minimum": 0
|
5948
6229
|
},
|
5949
6230
|
"page_size": {
|
5950
6231
|
"type": "integer",
|
5951
6232
|
"format": "int32",
|
5952
|
-
"description": "Page size is the number of
|
6233
|
+
"description": "Page size is the number of group results to fetch. The default is 10.",
|
5953
6234
|
"nullable": true,
|
5954
6235
|
"minimum": 0
|
5955
6236
|
},
|
@@ -5966,6 +6247,11 @@
|
|
5966
6247
|
"search_type": {
|
5967
6248
|
"type": "string",
|
5968
6249
|
"description": "Can be either \"semantic\", \"fulltext\", or \"hybrid\". \"hybrid\" will pull in one page (10 chunks) of both semantic and full-text results then re-rank them using BAAI/bge-reranker-large. \"semantic\" will pull in one page (10 chunks) of the nearest cosine distant vectors. \"fulltext\" will pull in one page (10 chunks) of full-text results based on SPLADE."
|
6250
|
+
},
|
6251
|
+
"slim_chunks": {
|
6252
|
+
"type": "boolean",
|
6253
|
+
"description": "Set slim_chunks to true to avoid returning the content and chunk_html of the chunks. This is useful for when you want to reduce amount of data over the wire for latency improvement. Default is false.",
|
6254
|
+
"nullable": true
|
5969
6255
|
}
|
5970
6256
|
}
|
5971
6257
|
},
|
@@ -5988,6 +6274,54 @@
|
|
5988
6274
|
}
|
5989
6275
|
}
|
5990
6276
|
},
|
6277
|
+
"SearchOverGroupsResponseTypes": {
|
6278
|
+
"oneOf": [
|
6279
|
+
{
|
6280
|
+
"$ref": "#/components/schemas/SearchOverGroupsResponseBody"
|
6281
|
+
},
|
6282
|
+
{
|
6283
|
+
"$ref": "#/components/schemas/SearchOverGroupsSlimChunksResponseBody"
|
6284
|
+
}
|
6285
|
+
]
|
6286
|
+
},
|
6287
|
+
"SearchOverGroupsSlimChunksResponseBody": {
|
6288
|
+
"type": "object",
|
6289
|
+
"required": [
|
6290
|
+
"group_chunks",
|
6291
|
+
"total_chunk_pages"
|
6292
|
+
],
|
6293
|
+
"properties": {
|
6294
|
+
"group_chunks": {
|
6295
|
+
"type": "array",
|
6296
|
+
"items": {
|
6297
|
+
"$ref": "#/components/schemas/GroupSlimChunksDTO"
|
6298
|
+
}
|
6299
|
+
},
|
6300
|
+
"total_chunk_pages": {
|
6301
|
+
"type": "integer",
|
6302
|
+
"format": "int64"
|
6303
|
+
}
|
6304
|
+
}
|
6305
|
+
},
|
6306
|
+
"SearchSlimChunkQueryResponseBody": {
|
6307
|
+
"type": "object",
|
6308
|
+
"required": [
|
6309
|
+
"score_chunks",
|
6310
|
+
"total_chunk_pages"
|
6311
|
+
],
|
6312
|
+
"properties": {
|
6313
|
+
"score_chunks": {
|
6314
|
+
"type": "array",
|
6315
|
+
"items": {
|
6316
|
+
"$ref": "#/components/schemas/ScoreSlimChunks"
|
6317
|
+
}
|
6318
|
+
},
|
6319
|
+
"total_chunk_pages": {
|
6320
|
+
"type": "integer",
|
6321
|
+
"format": "int64"
|
6322
|
+
}
|
6323
|
+
}
|
6324
|
+
},
|
5991
6325
|
"SearchWithinGroupData": {
|
5992
6326
|
"type": "object",
|
5993
6327
|
"required": [
|
@@ -6035,7 +6369,7 @@
|
|
6035
6369
|
"page": {
|
6036
6370
|
"type": "integer",
|
6037
6371
|
"format": "int64",
|
6038
|
-
"description": "The page of chunks to fetch.
|
6372
|
+
"description": "The page of chunks to fetch. Page is 1-indexed.",
|
6039
6373
|
"nullable": true,
|
6040
6374
|
"minimum": 0
|
6041
6375
|
},
|
@@ -6060,6 +6394,11 @@
|
|
6060
6394
|
"type": "string",
|
6061
6395
|
"description": "Search_type can be either \"semantic\", \"fulltext\", or \"hybrid\". \"hybrid\" will pull in one page (10 chunks) of both semantic and full-text results then re-rank them using BAAI/bge-reranker-large. \"semantic\" will pull in one page (10 chunks) of the nearest cosine distant vectors. \"fulltext\" will pull in one page (10 chunks) of full-text results based on SPLADE."
|
6062
6396
|
},
|
6397
|
+
"slim_chunks": {
|
6398
|
+
"type": "boolean",
|
6399
|
+
"description": "Set slim_chunks to true to avoid returning the content and chunk_html of the chunks. This is useful for when you want to reduce amount of data over the wire for latency improvement. Default is false.",
|
6400
|
+
"nullable": true
|
6401
|
+
},
|
6063
6402
|
"use_weights": {
|
6064
6403
|
"type": "boolean",
|
6065
6404
|
"description": "Set use_weights to true to use the weights of the chunks in the result set in order to sort them. If not specified, this defaults to true.",
|
@@ -6067,6 +6406,16 @@
|
|
6067
6406
|
}
|
6068
6407
|
}
|
6069
6408
|
},
|
6409
|
+
"SearchWithinGroupResponseTypes": {
|
6410
|
+
"oneOf": [
|
6411
|
+
{
|
6412
|
+
"$ref": "#/components/schemas/SearchGroupsResult"
|
6413
|
+
},
|
6414
|
+
{
|
6415
|
+
"$ref": "#/components/schemas/SearchGroupSlimChunksResult"
|
6416
|
+
}
|
6417
|
+
]
|
6418
|
+
},
|
6070
6419
|
"SetUserApiKeyRequest": {
|
6071
6420
|
"type": "object",
|
6072
6421
|
"required": [
|
@@ -6140,6 +6489,73 @@
|
|
6140
6489
|
"pos_in_queue": 1
|
6141
6490
|
}
|
6142
6491
|
},
|
6492
|
+
"SlimChunkMetadata": {
|
6493
|
+
"type": "object",
|
6494
|
+
"required": [
|
6495
|
+
"id",
|
6496
|
+
"created_at",
|
6497
|
+
"updated_at",
|
6498
|
+
"weight"
|
6499
|
+
],
|
6500
|
+
"properties": {
|
6501
|
+
"created_at": {
|
6502
|
+
"type": "string",
|
6503
|
+
"format": "date-time"
|
6504
|
+
},
|
6505
|
+
"id": {
|
6506
|
+
"type": "string",
|
6507
|
+
"format": "uuid"
|
6508
|
+
},
|
6509
|
+
"link": {
|
6510
|
+
"type": "string",
|
6511
|
+
"nullable": true
|
6512
|
+
},
|
6513
|
+
"metadata": {
|
6514
|
+
"nullable": true
|
6515
|
+
},
|
6516
|
+
"qdrant_point_id": {
|
6517
|
+
"type": "string",
|
6518
|
+
"format": "uuid",
|
6519
|
+
"nullable": true
|
6520
|
+
},
|
6521
|
+
"tag_set": {
|
6522
|
+
"type": "string",
|
6523
|
+
"nullable": true
|
6524
|
+
},
|
6525
|
+
"time_stamp": {
|
6526
|
+
"type": "string",
|
6527
|
+
"format": "date-time",
|
6528
|
+
"nullable": true
|
6529
|
+
},
|
6530
|
+
"tracking_id": {
|
6531
|
+
"type": "string",
|
6532
|
+
"nullable": true
|
6533
|
+
},
|
6534
|
+
"updated_at": {
|
6535
|
+
"type": "string",
|
6536
|
+
"format": "date-time"
|
6537
|
+
},
|
6538
|
+
"weight": {
|
6539
|
+
"type": "number",
|
6540
|
+
"format": "double"
|
6541
|
+
}
|
6542
|
+
},
|
6543
|
+
"example": {
|
6544
|
+
"created_at": "2021-01-01T00:00:00",
|
6545
|
+
"dataset_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
|
6546
|
+
"id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
|
6547
|
+
"link": "https://trieve.ai",
|
6548
|
+
"metadata": {
|
6549
|
+
"key": "value"
|
6550
|
+
},
|
6551
|
+
"qdrant_point_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
|
6552
|
+
"tag_set": "tag1,tag2",
|
6553
|
+
"time_stamp": "2021-01-01T00:00:00",
|
6554
|
+
"tracking_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
|
6555
|
+
"updated_at": "2021-01-01T00:00:00",
|
6556
|
+
"weight": 0.5
|
6557
|
+
}
|
6558
|
+
},
|
6143
6559
|
"SlimGroup": {
|
6144
6560
|
"type": "object",
|
6145
6561
|
"required": [
|
@@ -6176,7 +6592,6 @@
|
|
6176
6592
|
"required": [
|
6177
6593
|
"id",
|
6178
6594
|
"email",
|
6179
|
-
"visible_email",
|
6180
6595
|
"user_orgs",
|
6181
6596
|
"orgs"
|
6182
6597
|
],
|
@@ -6203,17 +6618,6 @@
|
|
6203
6618
|
"items": {
|
6204
6619
|
"$ref": "#/components/schemas/UserOrganization"
|
6205
6620
|
}
|
6206
|
-
},
|
6207
|
-
"username": {
|
6208
|
-
"type": "string",
|
6209
|
-
"nullable": true
|
6210
|
-
},
|
6211
|
-
"visible_email": {
|
6212
|
-
"type": "boolean"
|
6213
|
-
},
|
6214
|
-
"website": {
|
6215
|
-
"type": "string",
|
6216
|
-
"nullable": true
|
6217
6621
|
}
|
6218
6622
|
},
|
6219
6623
|
"example": {
|
@@ -6238,10 +6642,7 @@
|
|
6238
6642
|
"updated_at": "2021-01-01T00:00:00",
|
6239
6643
|
"user_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3"
|
6240
6644
|
}
|
6241
|
-
]
|
6242
|
-
"username": "trieve",
|
6243
|
-
"visible_email": true,
|
6244
|
-
"website": "https://trieve.ai"
|
6645
|
+
]
|
6245
6646
|
}
|
6246
6647
|
},
|
6247
6648
|
"StripePlan": {
|
@@ -6486,6 +6887,14 @@
|
|
6486
6887
|
"description": "The metadata 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. If no metadata is provided, the existing metadata will be used.",
|
6487
6888
|
"nullable": true
|
6488
6889
|
},
|
6890
|
+
"tag_set": {
|
6891
|
+
"type": "array",
|
6892
|
+
"items": {
|
6893
|
+
"type": "string"
|
6894
|
+
},
|
6895
|
+
"description": "Tag set is a list of tags. This can be used to filter chunks by tag. Unlike with metadata filtering, HNSW indices will exist for each tag such that there is not a performance hit for filtering on them. If no tag_set is provided, the existing tag_set will be used.",
|
6896
|
+
"nullable": true
|
6897
|
+
},
|
6489
6898
|
"time_stamp": {
|
6490
6899
|
"type": "string",
|
6491
6900
|
"description": "Time_stamp should be an ISO 8601 combined date and time without timezone. It is used for time window filtering and recency-biasing search results. If no time_stamp is provided, the existing time_stamp will be used.",
|
@@ -6532,11 +6941,23 @@
|
|
6532
6941
|
"description": "Id of the chunk_group to update.",
|
6533
6942
|
"nullable": true
|
6534
6943
|
},
|
6944
|
+
"metadata": {
|
6945
|
+
"description": "Optional metadata to assign to the chunk_group. This is a JSON object that can store any additional information you want to associate with the chunks inside of the chunk_group.",
|
6946
|
+
"nullable": true
|
6947
|
+
},
|
6535
6948
|
"name": {
|
6536
6949
|
"type": "string",
|
6537
6950
|
"description": "Name to assign to the chunk_group. Does not need to be unique. If not provided, the name will not be updated.",
|
6538
6951
|
"nullable": true
|
6539
6952
|
},
|
6953
|
+
"tag_set": {
|
6954
|
+
"type": "array",
|
6955
|
+
"items": {
|
6956
|
+
"type": "string"
|
6957
|
+
},
|
6958
|
+
"description": "Optional tags to assign to the chunk_group. This is a list of strings that can be used to categorize the chunks inside the chunk_group.",
|
6959
|
+
"nullable": true
|
6960
|
+
},
|
6540
6961
|
"tracking_id": {
|
6541
6962
|
"type": "string",
|
6542
6963
|
"description": "Tracking Id of the chunk_group to update.",
|
@@ -6587,11 +7008,23 @@
|
|
6587
7008
|
"description": "Description to assign to the chunk_group. Convenience field for you to avoid having to remember what the group is for. If not provided, the description will not be updated.",
|
6588
7009
|
"nullable": true
|
6589
7010
|
},
|
7011
|
+
"metadata": {
|
7012
|
+
"description": "Optional metadata to assign to the chunk_group. This is a JSON object that can store any additional information you want to associate with the chunks inside of the chunk_group.",
|
7013
|
+
"nullable": true
|
7014
|
+
},
|
6590
7015
|
"name": {
|
6591
7016
|
"type": "string",
|
6592
7017
|
"description": "Name to assign to the chunk_group. Does not need to be unique. If not provided, the name will not be updated.",
|
6593
7018
|
"nullable": true
|
6594
7019
|
},
|
7020
|
+
"tag_set": {
|
7021
|
+
"type": "array",
|
7022
|
+
"items": {
|
7023
|
+
"type": "string"
|
7024
|
+
},
|
7025
|
+
"description": "Optional tags to assign to the chunk_group. This is a list of strings that can be used to categorize the chunks inside the chunk_group.",
|
7026
|
+
"nullable": true
|
7027
|
+
},
|
6595
7028
|
"tracking_id": {
|
6596
7029
|
"type": "string",
|
6597
7030
|
"description": "Tracking Id of the chunk_group to update."
|
@@ -6661,21 +7094,6 @@
|
|
6661
7094
|
"format": "uuid",
|
6662
7095
|
"description": "The id of the user to update, if not provided, the auth'ed user will be updated. If provided, the auth'ed user must be an admin (1) or owner (2) of the organization.",
|
6663
7096
|
"nullable": true
|
6664
|
-
},
|
6665
|
-
"username": {
|
6666
|
-
"type": "string",
|
6667
|
-
"description": "The new username to assign to the user, if not provided, the current username will be used.",
|
6668
|
-
"nullable": true
|
6669
|
-
},
|
6670
|
-
"visible_email": {
|
6671
|
-
"type": "boolean",
|
6672
|
-
"description": "Determines if the user's email is visible to other users, if not provided, the current value will be used.",
|
6673
|
-
"nullable": true
|
6674
|
-
},
|
6675
|
-
"website": {
|
6676
|
-
"type": "string",
|
6677
|
-
"description": "The new website to assign to the user, if not provided, the current website will be used. Used for linking to the user's personal or company website.",
|
6678
|
-
"nullable": true
|
6679
7097
|
}
|
6680
7098
|
}
|
6681
7099
|
},
|
@@ -6850,7 +7268,7 @@
|
|
6850
7268
|
},
|
6851
7269
|
{
|
6852
7270
|
"name": "events",
|
6853
|
-
"description": "Notifications endpoint. Files are uploaded asynchronously and events are sent to the user when the upload is complete.
|
7271
|
+
"description": "Notifications endpoint. Files are uploaded asynchronously and events are sent to the user when the upload is complete."
|
6854
7272
|
},
|
6855
7273
|
{
|
6856
7274
|
"name": "topic",
|
@@ -6869,4 +7287,4 @@
|
|
6869
7287
|
"description": "Health check endpoint. Used to check if the server is up and running."
|
6870
7288
|
}
|
6871
7289
|
]
|
6872
|
-
}
|
7290
|
+
}
|