trieve_ruby_client 0.5.7 → 0.6.2
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/README.md +16 -20
- data/docs/AddChunkToGroupData.md +4 -2
- data/docs/AuthApi.md +12 -6
- data/docs/BookmarkData.md +1 -1
- data/docs/ChunkApi.md +8 -8
- data/docs/ChunkGroup.md +4 -0
- data/docs/ChunkGroupApi.md +25 -25
- data/docs/ChunkMetadataWithScore.md +44 -0
- data/docs/CreateChunkGroupData.md +5 -1
- data/docs/DatasetApi.md +6 -6
- data/docs/EventsApi.md +1 -1
- data/docs/FileApi.md +2 -2
- data/docs/GetEventsData.md +1 -1
- data/docs/GroupScoreChunk.md +22 -0
- data/docs/GroupScoreSlimChunks.md +20 -0
- data/docs/RecommendChunksRequest.md +3 -1
- data/docs/RecommendGroupChunksRequest.md +34 -0
- data/docs/ScoreChunkDTO.md +1 -1
- data/docs/SearchChunkData.md +1 -3
- data/docs/SearchOverGroupsData.md +3 -5
- data/docs/SearchOverGroupsResults.md +20 -0
- data/docs/SearchOverGroupsSlimResults.md +20 -0
- data/docs/SearchWithinGroupData.md +1 -3
- data/docs/SearchWithinGroupResults.md +22 -0
- data/docs/SearchWithinGroupSlimResults.md +22 -0
- data/docs/SlimChunkMetadataWithScore.md +38 -0
- data/docs/UpdateChunkGroupData.md +4 -0
- data/docs/UpdateGroupByTrackingIDData.md +4 -0
- data/docs/UserApi.md +2 -2
- 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 +27 -27
- data/lib/trieve_ruby_client/api/dataset_api.rb +10 -10
- 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 +1 -1
- data/lib/trieve_ruby_client/api/user_api.rb +3 -3
- 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 +1 -1
- 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 +2 -2
- 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/chunk_metadata_with_score.rb +387 -0
- 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 +27 -9
- 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 +2 -2
- 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.rb +249 -0
- data/lib/trieve_ruby_client/models/group_score_chunk_dto.rb +1 -1
- data/lib/trieve_ruby_client/models/group_score_slim_chunks.rb +239 -0
- data/lib/trieve_ruby_client/models/group_slim_chunks_dto.rb +1 -1
- 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 +1 -1
- data/lib/trieve_ruby_client/models/range_condition.rb +1 -1
- data/lib/trieve_ruby_client/models/recommend_chunks_request.rb +17 -6
- data/lib/trieve_ruby_client/models/recommend_chunks_response_types.rb +1 -1
- data/lib/trieve_ruby_client/models/recommend_group_chunk_response_types.rb +1 -1
- 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 +2 -2
- data/lib/trieve_ruby_client/models/score_slim_chunks.rb +1 -1
- data/lib/trieve_ruby_client/models/search_chunk_data.rb +3 -14
- 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 +1 -1
- data/lib/trieve_ruby_client/models/search_group_slim_chunks_result.rb +1 -1
- data/lib/trieve_ruby_client/models/search_groups_result.rb +1 -1
- data/lib/trieve_ruby_client/models/search_over_groups_data.rb +5 -15
- 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 +1 -1
- data/lib/trieve_ruby_client/models/search_over_groups_results.rb +239 -0
- data/lib/trieve_ruby_client/models/search_over_groups_slim_chunks_response_body.rb +1 -1
- data/lib/trieve_ruby_client/models/search_over_groups_slim_results.rb +239 -0
- data/lib/trieve_ruby_client/models/search_slim_chunk_query_response_body.rb +1 -1
- data/lib/trieve_ruby_client/models/search_within_group_data.rb +3 -14
- data/lib/trieve_ruby_client/models/search_within_group_response_types.rb +1 -1
- data/lib/trieve_ruby_client/models/search_within_group_results.rb +255 -0
- data/lib/trieve_ruby_client/models/search_within_group_slim_results.rb +255 -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 +1 -1
- data/lib/trieve_ruby_client/models/slim_chunk_metadata_with_score.rb +345 -0
- data/lib/trieve_ruby_client/models/slim_group.rb +1 -1
- data/lib/trieve_ruby_client/models/slim_user.rb +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +10 -14
- data/openapi-generator.yaml +1 -1
- data/openapi.json +386 -325
- data/spec/models/chunk_metadata_with_score_spec.rb +114 -0
- data/spec/models/group_score_chunk_spec.rb +48 -0
- data/spec/models/group_score_slim_chunks_spec.rb +42 -0
- data/spec/models/recommend_group_chunks_request_spec.rb +84 -0
- data/spec/models/search_over_groups_results_spec.rb +42 -0
- data/spec/models/search_over_groups_slim_results_spec.rb +42 -0
- data/spec/models/search_within_group_results_spec.rb +48 -0
- data/spec/models/search_within_group_slim_results_spec.rb +48 -0
- data/spec/models/slim_chunk_metadata_with_score_spec.rb +96 -0
- data/spec/spec_helper.rb +1 -1
- data/trieve_ruby_client-0.5.7.gem +0 -0
- data/trieve_ruby_client-0.6.0.gem +0 -0
- data/trieve_ruby_client.gemspec +1 -1
- metadata +40 -2
data/openapi.json
CHANGED
@@ -12,7 +12,7 @@
|
|
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.2"
|
16
16
|
},
|
17
17
|
"servers": [
|
18
18
|
{
|
@@ -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,11 +445,27 @@
|
|
422
445
|
},
|
423
446
|
"responses": {
|
424
447
|
"200": {
|
425
|
-
"description": "Chunks with embedding vectors which are similar to
|
448
|
+
"description": "Chunks with embedding vectors which are similar to positives and dissimilar to negatives if slim_chunks is false in the request",
|
426
449
|
"content": {
|
427
450
|
"application/json": {
|
428
451
|
"schema": {
|
429
|
-
"
|
452
|
+
"type": "array",
|
453
|
+
"items": {
|
454
|
+
"$ref": "#/components/schemas/ChunkMetadataWithScore"
|
455
|
+
}
|
456
|
+
}
|
457
|
+
}
|
458
|
+
}
|
459
|
+
},
|
460
|
+
"206": {
|
461
|
+
"description": "Chunks with embedding vectors which are similar to positives and dissimilar to negatives if slim_chunks is true in the request",
|
462
|
+
"content": {
|
463
|
+
"application/json": {
|
464
|
+
"schema": {
|
465
|
+
"type": "array",
|
466
|
+
"items": {
|
467
|
+
"$ref": "#/components/schemas/SlimChunkMetadataWithScore"
|
468
|
+
}
|
430
469
|
}
|
431
470
|
}
|
432
471
|
}
|
@@ -483,11 +522,21 @@
|
|
483
522
|
},
|
484
523
|
"responses": {
|
485
524
|
"200": {
|
486
|
-
"description": "Chunks with embedding vectors which are similar to those in the request body",
|
525
|
+
"description": "Chunks with embedding vectors which are similar to those in the request body if slim_chunks is false or not specified in the request body",
|
526
|
+
"content": {
|
527
|
+
"application/json": {
|
528
|
+
"schema": {
|
529
|
+
"$ref": "#/components/schemas/SearchChunkQueryResponseBody"
|
530
|
+
}
|
531
|
+
}
|
532
|
+
}
|
533
|
+
},
|
534
|
+
"206": {
|
535
|
+
"description": "Chunks with embedding vectors which are similar to those in the request body if slim_chunks is true in the request body",
|
487
536
|
"content": {
|
488
537
|
"application/json": {
|
489
538
|
"schema": {
|
490
|
-
"$ref": "#/components/schemas/
|
539
|
+
"$ref": "#/components/schemas/SearchSlimChunkQueryResponseBody"
|
491
540
|
}
|
492
541
|
}
|
493
542
|
}
|
@@ -557,6 +606,7 @@
|
|
557
606
|
}
|
558
607
|
}
|
559
608
|
},
|
609
|
+
"deprecated": true,
|
560
610
|
"security": [
|
561
611
|
{
|
562
612
|
"ApiKey": [
|
@@ -1121,17 +1171,27 @@
|
|
1121
1171
|
},
|
1122
1172
|
"responses": {
|
1123
1173
|
"200": {
|
1124
|
-
"description": "Group chunks which are similar to the embedding vector of the search query",
|
1174
|
+
"description": "Group chunks which are similar to the embedding vector of the search query if slim_chunks is false or unspecified in the request body",
|
1175
|
+
"content": {
|
1176
|
+
"application/json": {
|
1177
|
+
"schema": {
|
1178
|
+
"$ref": "#/components/schemas/SearchOverGroupsResults"
|
1179
|
+
}
|
1180
|
+
}
|
1181
|
+
}
|
1182
|
+
},
|
1183
|
+
"206": {
|
1184
|
+
"description": "Group chunks which are similar to the embedding vector of the search query if slim_chunks is true in the request body",
|
1125
1185
|
"content": {
|
1126
1186
|
"application/json": {
|
1127
1187
|
"schema": {
|
1128
|
-
"$ref": "#/components/schemas/
|
1188
|
+
"$ref": "#/components/schemas/SearchOverGroupsSlimResults"
|
1129
1189
|
}
|
1130
1190
|
}
|
1131
1191
|
}
|
1132
1192
|
},
|
1133
1193
|
"400": {
|
1134
|
-
"description": "Service error relating to
|
1194
|
+
"description": "Service error relating to searching over groups",
|
1135
1195
|
"content": {
|
1136
1196
|
"application/json": {
|
1137
1197
|
"schema": {
|
@@ -1174,7 +1234,7 @@
|
|
1174
1234
|
"content": {
|
1175
1235
|
"application/json": {
|
1176
1236
|
"schema": {
|
1177
|
-
"$ref": "#/components/schemas/
|
1237
|
+
"$ref": "#/components/schemas/RecommendGroupChunksRequest"
|
1178
1238
|
}
|
1179
1239
|
}
|
1180
1240
|
},
|
@@ -1182,11 +1242,27 @@
|
|
1182
1242
|
},
|
1183
1243
|
"responses": {
|
1184
1244
|
"200": {
|
1185
|
-
"description": "JSON body representing the groups which are similar to the groups in the request",
|
1245
|
+
"description": "JSON body representing the groups which are similar to the positive groups and dissimilar to the negative ones if slim_chunks is false in the request",
|
1186
1246
|
"content": {
|
1187
1247
|
"application/json": {
|
1188
1248
|
"schema": {
|
1189
|
-
"
|
1249
|
+
"type": "array",
|
1250
|
+
"items": {
|
1251
|
+
"$ref": "#/components/schemas/GroupScoreChunk"
|
1252
|
+
}
|
1253
|
+
}
|
1254
|
+
}
|
1255
|
+
}
|
1256
|
+
},
|
1257
|
+
"206": {
|
1258
|
+
"description": "JSON body representing the groups which are similar to the positive groups and dissimilar to the negative ones if slim_chunks is false in the request",
|
1259
|
+
"content": {
|
1260
|
+
"application/json": {
|
1261
|
+
"schema": {
|
1262
|
+
"type": "array",
|
1263
|
+
"items": {
|
1264
|
+
"$ref": "#/components/schemas/GroupScoreSlimChunks"
|
1265
|
+
}
|
1190
1266
|
}
|
1191
1267
|
}
|
1192
1268
|
}
|
@@ -1243,11 +1319,21 @@
|
|
1243
1319
|
},
|
1244
1320
|
"responses": {
|
1245
1321
|
"200": {
|
1246
|
-
"description": "Group chunks which are similar to the embedding vector of the search query",
|
1322
|
+
"description": "Group chunks which are similar to the embedding vector of the search query if slim_chunks is false in the request",
|
1323
|
+
"content": {
|
1324
|
+
"application/json": {
|
1325
|
+
"schema": {
|
1326
|
+
"$ref": "#/components/schemas/SearchWithinGroupResults"
|
1327
|
+
}
|
1328
|
+
}
|
1329
|
+
}
|
1330
|
+
},
|
1331
|
+
"206": {
|
1332
|
+
"description": "Group chunks which are similar to the embedding vector of the search query if slim_chunks is true in the request",
|
1247
1333
|
"content": {
|
1248
1334
|
"application/json": {
|
1249
1335
|
"schema": {
|
1250
|
-
"$ref": "#/components/schemas/
|
1336
|
+
"$ref": "#/components/schemas/SearchWithinGroupSlimResults"
|
1251
1337
|
}
|
1252
1338
|
}
|
1253
1339
|
}
|
@@ -1278,7 +1364,7 @@
|
|
1278
1364
|
"chunk_group"
|
1279
1365
|
],
|
1280
1366
|
"summary": "Get Chunks in Group by Tracking ID",
|
1281
|
-
"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.",
|
1367
|
+
"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.",
|
1282
1368
|
"operationId": "get_chunks_in_group_by_tracking_id",
|
1283
1369
|
"parameters": [
|
1284
1370
|
{
|
@@ -1453,6 +1539,7 @@
|
|
1453
1539
|
}
|
1454
1540
|
}
|
1455
1541
|
},
|
1542
|
+
"deprecated": true,
|
1456
1543
|
"security": [
|
1457
1544
|
{
|
1458
1545
|
"ApiKey": [
|
@@ -1515,6 +1602,7 @@
|
|
1515
1602
|
}
|
1516
1603
|
}
|
1517
1604
|
},
|
1605
|
+
"deprecated": true,
|
1518
1606
|
"security": [
|
1519
1607
|
{
|
1520
1608
|
"ApiKey": [
|
@@ -1638,7 +1726,7 @@
|
|
1638
1726
|
"chunk_group"
|
1639
1727
|
],
|
1640
1728
|
"summary": "Delete Group",
|
1641
|
-
"description": "Delete Group\n\nThis will delete a chunk_group.
|
1729
|
+
"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.",
|
1642
1730
|
"operationId": "delete_chunk_group",
|
1643
1731
|
"parameters": [
|
1644
1732
|
{
|
@@ -1700,7 +1788,7 @@
|
|
1700
1788
|
"chunk_group"
|
1701
1789
|
],
|
1702
1790
|
"summary": "Get Chunks in Group",
|
1703
|
-
"description": "Get Chunks in Group\n\nRoute to get all chunks for a group. The response is paginated, with each page containing 10 chunks.
|
1791
|
+
"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.",
|
1704
1792
|
"operationId": "get_chunks_in_group",
|
1705
1793
|
"parameters": [
|
1706
1794
|
{
|
@@ -2041,7 +2129,7 @@
|
|
2041
2129
|
{
|
2042
2130
|
"name": "page",
|
2043
2131
|
"in": "path",
|
2044
|
-
"description": "The page of groups to fetch.
|
2132
|
+
"description": "The page of groups to fetch. Page is 1-indexed.",
|
2045
2133
|
"required": true,
|
2046
2134
|
"schema": {
|
2047
2135
|
"type": "integer",
|
@@ -2220,9 +2308,9 @@
|
|
2220
2308
|
"operationId": "delete_dataset",
|
2221
2309
|
"parameters": [
|
2222
2310
|
{
|
2223
|
-
"name": "TR-
|
2311
|
+
"name": "TR-Dataset",
|
2224
2312
|
"in": "header",
|
2225
|
-
"description": "The
|
2313
|
+
"description": "The dataset id to use for the request",
|
2226
2314
|
"required": true,
|
2227
2315
|
"schema": {
|
2228
2316
|
"type": "string"
|
@@ -2269,7 +2357,7 @@
|
|
2269
2357
|
"events"
|
2270
2358
|
],
|
2271
2359
|
"summary": "Get events for the dataset",
|
2272
|
-
"description": "Get events for the dataset\n\nGet events for the
|
2360
|
+
"description": "Get events for the dataset\n\nGet events for the dataset specified by the TR-Dataset header.",
|
2273
2361
|
"operationId": "get_events",
|
2274
2362
|
"parameters": [
|
2275
2363
|
{
|
@@ -2391,7 +2479,7 @@
|
|
2391
2479
|
"file"
|
2392
2480
|
],
|
2393
2481
|
"summary": "Get File",
|
2394
|
-
"description": "Get File\n\nDownload a file
|
2482
|
+
"description": "Get File\n\nDownload a file based on its id.",
|
2395
2483
|
"operationId": "get_file_handler",
|
2396
2484
|
"parameters": [
|
2397
2485
|
{
|
@@ -2449,7 +2537,7 @@
|
|
2449
2537
|
"file"
|
2450
2538
|
],
|
2451
2539
|
"summary": "Delete File",
|
2452
|
-
"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
|
2540
|
+
"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.",
|
2453
2541
|
"operationId": "delete_file_handler",
|
2454
2542
|
"parameters": [
|
2455
2543
|
{
|
@@ -3646,36 +3734,32 @@
|
|
3646
3734
|
]
|
3647
3735
|
}
|
3648
3736
|
},
|
3649
|
-
"/api/user/
|
3650
|
-
"
|
3737
|
+
"/api/user/api_key": {
|
3738
|
+
"post": {
|
3651
3739
|
"tags": [
|
3652
3740
|
"user"
|
3653
3741
|
],
|
3654
|
-
"summary": "
|
3655
|
-
"description": "
|
3656
|
-
"operationId": "
|
3657
|
-
"
|
3658
|
-
|
3659
|
-
|
3660
|
-
"
|
3661
|
-
|
3662
|
-
|
3663
|
-
|
3664
|
-
"type": "string",
|
3665
|
-
"format": "uuid"
|
3742
|
+
"summary": "Set User Api Key",
|
3743
|
+
"description": "Set User Api Key\n\nCreate a new api key for the auth'ed user. Successful response will contain the newly created api key. If a write role is assigned the api key will have permission level of the auth'ed user who calls this endpoint.",
|
3744
|
+
"operationId": "set_user_api_key",
|
3745
|
+
"requestBody": {
|
3746
|
+
"description": "JSON request payload to create a new user api key",
|
3747
|
+
"content": {
|
3748
|
+
"application/json": {
|
3749
|
+
"schema": {
|
3750
|
+
"$ref": "#/components/schemas/SetUserApiKeyRequest"
|
3751
|
+
}
|
3666
3752
|
}
|
3667
|
-
}
|
3668
|
-
|
3753
|
+
},
|
3754
|
+
"required": true
|
3755
|
+
},
|
3669
3756
|
"responses": {
|
3670
3757
|
"200": {
|
3671
3758
|
"description": "JSON body representing the api_key for the user",
|
3672
3759
|
"content": {
|
3673
3760
|
"application/json": {
|
3674
3761
|
"schema": {
|
3675
|
-
"
|
3676
|
-
"items": {
|
3677
|
-
"$ref": "#/components/schemas/ApiKeyDTO"
|
3678
|
-
}
|
3762
|
+
"$ref": "#/components/schemas/SetUserApiKeyResponse"
|
3679
3763
|
}
|
3680
3764
|
}
|
3681
3765
|
}
|
@@ -3700,32 +3784,36 @@
|
|
3700
3784
|
]
|
3701
3785
|
}
|
3702
3786
|
},
|
3703
|
-
"/api/user/
|
3704
|
-
"
|
3787
|
+
"/api/user/api_key/{api_key_id}": {
|
3788
|
+
"delete": {
|
3705
3789
|
"tags": [
|
3706
3790
|
"user"
|
3707
3791
|
],
|
3708
|
-
"summary": "
|
3709
|
-
"description": "
|
3710
|
-
"operationId": "
|
3711
|
-
"
|
3712
|
-
|
3713
|
-
|
3714
|
-
"
|
3715
|
-
|
3716
|
-
|
3717
|
-
|
3792
|
+
"summary": "Delete User Api Key",
|
3793
|
+
"description": "Delete User Api Key\n\nDelete an api key for the auth'ed user.",
|
3794
|
+
"operationId": "delete_user_api_key",
|
3795
|
+
"parameters": [
|
3796
|
+
{
|
3797
|
+
"name": "api_key_id",
|
3798
|
+
"in": "path",
|
3799
|
+
"description": "The id of the api key to delete",
|
3800
|
+
"required": true,
|
3801
|
+
"schema": {
|
3802
|
+
"type": "string",
|
3803
|
+
"format": "uuid"
|
3718
3804
|
}
|
3719
|
-
}
|
3720
|
-
|
3721
|
-
},
|
3805
|
+
}
|
3806
|
+
],
|
3722
3807
|
"responses": {
|
3723
3808
|
"200": {
|
3724
3809
|
"description": "JSON body representing the api_key for the user",
|
3725
3810
|
"content": {
|
3726
3811
|
"application/json": {
|
3727
3812
|
"schema": {
|
3728
|
-
"
|
3813
|
+
"type": "array",
|
3814
|
+
"items": {
|
3815
|
+
"$ref": "#/components/schemas/ApiKeyDTO"
|
3816
|
+
}
|
3729
3817
|
}
|
3730
3818
|
}
|
3731
3819
|
}
|
@@ -3755,14 +3843,17 @@
|
|
3755
3843
|
"schemas": {
|
3756
3844
|
"AddChunkToGroupData": {
|
3757
3845
|
"type": "object",
|
3758
|
-
"required": [
|
3759
|
-
"chunk_id"
|
3760
|
-
],
|
3761
3846
|
"properties": {
|
3762
3847
|
"chunk_id": {
|
3763
3848
|
"type": "string",
|
3764
3849
|
"format": "uuid",
|
3765
|
-
"description": "Id of the chunk to make a member of the group."
|
3850
|
+
"description": "Id of the chunk to make a member of the group.",
|
3851
|
+
"nullable": true
|
3852
|
+
},
|
3853
|
+
"tracking_id": {
|
3854
|
+
"type": "string",
|
3855
|
+
"description": "Tracking Id of the chunk to make a member of the group.",
|
3856
|
+
"nullable": true
|
3766
3857
|
}
|
3767
3858
|
}
|
3768
3859
|
},
|
@@ -3915,7 +4006,7 @@
|
|
3915
4006
|
"chunks": {
|
3916
4007
|
"type": "array",
|
3917
4008
|
"items": {
|
3918
|
-
"$ref": "#/components/schemas/
|
4009
|
+
"$ref": "#/components/schemas/ChunkMetadata"
|
3919
4010
|
}
|
3920
4011
|
},
|
3921
4012
|
"group": {
|
@@ -4181,9 +4272,16 @@
|
|
4181
4272
|
"type": "string",
|
4182
4273
|
"format": "uuid"
|
4183
4274
|
},
|
4275
|
+
"metadata": {
|
4276
|
+
"nullable": true
|
4277
|
+
},
|
4184
4278
|
"name": {
|
4185
4279
|
"type": "string"
|
4186
4280
|
},
|
4281
|
+
"tag_set": {
|
4282
|
+
"type": "string",
|
4283
|
+
"nullable": true
|
4284
|
+
},
|
4187
4285
|
"tracking_id": {
|
4188
4286
|
"type": "string",
|
4189
4287
|
"nullable": true
|
@@ -4338,15 +4436,16 @@
|
|
4338
4436
|
"weight": 0.5
|
4339
4437
|
}
|
4340
4438
|
},
|
4341
|
-
"
|
4439
|
+
"ChunkMetadataWithScore": {
|
4342
4440
|
"type": "object",
|
4343
4441
|
"required": [
|
4344
4442
|
"id",
|
4345
4443
|
"content",
|
4346
|
-
"qdrant_point_id",
|
4347
4444
|
"created_at",
|
4348
4445
|
"updated_at",
|
4349
|
-
"
|
4446
|
+
"dataset_id",
|
4447
|
+
"weight",
|
4448
|
+
"score"
|
4350
4449
|
],
|
4351
4450
|
"properties": {
|
4352
4451
|
"chunk_html": {
|
@@ -4360,14 +4459,9 @@
|
|
4360
4459
|
"type": "string",
|
4361
4460
|
"format": "date-time"
|
4362
4461
|
},
|
4363
|
-
"
|
4364
|
-
"type": "string",
|
4365
|
-
"format": "uuid",
|
4366
|
-
"nullable": true
|
4367
|
-
},
|
4368
|
-
"file_name": {
|
4462
|
+
"dataset_id": {
|
4369
4463
|
"type": "string",
|
4370
|
-
"
|
4464
|
+
"format": "uuid"
|
4371
4465
|
},
|
4372
4466
|
"id": {
|
4373
4467
|
"type": "string",
|
@@ -4382,7 +4476,12 @@
|
|
4382
4476
|
},
|
4383
4477
|
"qdrant_point_id": {
|
4384
4478
|
"type": "string",
|
4385
|
-
"format": "uuid"
|
4479
|
+
"format": "uuid",
|
4480
|
+
"nullable": true
|
4481
|
+
},
|
4482
|
+
"score": {
|
4483
|
+
"type": "number",
|
4484
|
+
"format": "float"
|
4386
4485
|
},
|
4387
4486
|
"tag_set": {
|
4388
4487
|
"type": "string",
|
@@ -4410,14 +4509,14 @@
|
|
4410
4509
|
"chunk_html": "<p>Hello, world!</p>",
|
4411
4510
|
"content": "Hello, world!",
|
4412
4511
|
"created_at": "2021-01-01T00:00:00",
|
4413
|
-
"
|
4414
|
-
"file_name": "file.txt",
|
4512
|
+
"dataset_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
|
4415
4513
|
"id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
|
4416
4514
|
"link": "https://trieve.ai",
|
4417
4515
|
"metadata": {
|
4418
4516
|
"key": "value"
|
4419
4517
|
},
|
4420
4518
|
"qdrant_point_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
|
4519
|
+
"score": 0.9,
|
4421
4520
|
"tag_set": "tag1,tag2",
|
4422
4521
|
"time_stamp": "2021-01-01T00:00:00",
|
4423
4522
|
"tracking_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
|
@@ -4568,18 +4667,30 @@
|
|
4568
4667
|
"CreateChunkGroupData": {
|
4569
4668
|
"type": "object",
|
4570
4669
|
"required": [
|
4571
|
-
"name"
|
4572
|
-
"description"
|
4670
|
+
"name"
|
4573
4671
|
],
|
4574
4672
|
"properties": {
|
4575
4673
|
"description": {
|
4576
4674
|
"type": "string",
|
4577
|
-
"description": "Description to assign to the chunk_group. Convenience field for you to avoid having to remember what the group is for."
|
4675
|
+
"description": "Description to assign to the chunk_group. Convenience field for you to avoid having to remember what the group is for.",
|
4676
|
+
"nullable": true
|
4677
|
+
},
|
4678
|
+
"metadata": {
|
4679
|
+
"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.",
|
4680
|
+
"nullable": true
|
4578
4681
|
},
|
4579
4682
|
"name": {
|
4580
4683
|
"type": "string",
|
4581
4684
|
"description": "Name to assign to the chunk_group. Does not need to be unique."
|
4582
4685
|
},
|
4686
|
+
"tag_set": {
|
4687
|
+
"type": "array",
|
4688
|
+
"items": {
|
4689
|
+
"type": "string"
|
4690
|
+
},
|
4691
|
+
"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.",
|
4692
|
+
"nullable": true
|
4693
|
+
},
|
4583
4694
|
"tracking_id": {
|
4584
4695
|
"type": "string",
|
4585
4696
|
"description": "Optional tracking id to assign to the chunk_group. This is a unique identifier for the chunk_group.",
|
@@ -5217,7 +5328,7 @@
|
|
5217
5328
|
"items": {
|
5218
5329
|
"type": "string"
|
5219
5330
|
},
|
5220
|
-
"description": "The types of events to get. Any combination of file_uploaded,
|
5331
|
+
"description": "The types of events to get. Any combination of file_uploaded, chunk_uploaded, chunk_action_failed, or chunk_updated. Leave undefined to get all events.",
|
5221
5332
|
"nullable": true
|
5222
5333
|
},
|
5223
5334
|
"page": {
|
@@ -5237,7 +5348,7 @@
|
|
5237
5348
|
"page": 1,
|
5238
5349
|
"page_size": 10,
|
5239
5350
|
"type": [
|
5240
|
-
"
|
5351
|
+
"chunk_action_failed"
|
5241
5352
|
]
|
5242
5353
|
}
|
5243
5354
|
},
|
@@ -5275,7 +5386,7 @@
|
|
5275
5386
|
}
|
5276
5387
|
}
|
5277
5388
|
},
|
5278
|
-
"
|
5389
|
+
"GroupScoreChunk": {
|
5279
5390
|
"type": "object",
|
5280
5391
|
"required": [
|
5281
5392
|
"group_id",
|
@@ -5320,7 +5431,7 @@
|
|
5320
5431
|
]
|
5321
5432
|
}
|
5322
5433
|
},
|
5323
|
-
"
|
5434
|
+
"GroupScoreSlimChunks": {
|
5324
5435
|
"type": "object",
|
5325
5436
|
"required": [
|
5326
5437
|
"group_id",
|
@@ -5616,7 +5727,7 @@
|
|
5616
5727
|
}
|
5617
5728
|
]
|
5618
5729
|
},
|
5619
|
-
"
|
5730
|
+
"RecommendChunksRequest": {
|
5620
5731
|
"type": "object",
|
5621
5732
|
"properties": {
|
5622
5733
|
"filters": {
|
@@ -5627,62 +5738,60 @@
|
|
5627
5738
|
],
|
5628
5739
|
"nullable": true
|
5629
5740
|
},
|
5630
|
-
"group_size": {
|
5631
|
-
"type": "integer",
|
5632
|
-
"format": "int32",
|
5633
|
-
"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.",
|
5634
|
-
"nullable": true,
|
5635
|
-
"minimum": 0
|
5636
|
-
},
|
5637
5741
|
"limit": {
|
5638
5742
|
"type": "integer",
|
5639
5743
|
"format": "int64",
|
5640
|
-
"description": "The number of
|
5744
|
+
"description": "The number of chunks to return. This is the number of chunks which will be returned in the response. The default is 10.",
|
5641
5745
|
"nullable": true,
|
5642
5746
|
"minimum": 0
|
5643
5747
|
},
|
5644
|
-
"
|
5748
|
+
"negative_chunk_ids": {
|
5645
5749
|
"type": "array",
|
5646
5750
|
"items": {
|
5647
5751
|
"type": "string",
|
5648
5752
|
"format": "uuid"
|
5649
5753
|
},
|
5650
|
-
"description": "The
|
5754
|
+
"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.",
|
5651
5755
|
"nullable": true
|
5652
5756
|
},
|
5653
|
-
"
|
5757
|
+
"negative_tracking_ids": {
|
5654
5758
|
"type": "array",
|
5655
5759
|
"items": {
|
5656
5760
|
"type": "string"
|
5657
5761
|
},
|
5658
|
-
"description": "The
|
5762
|
+
"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.",
|
5659
5763
|
"nullable": true
|
5660
5764
|
},
|
5661
|
-
"
|
5765
|
+
"positive_chunk_ids": {
|
5662
5766
|
"type": "array",
|
5663
5767
|
"items": {
|
5664
5768
|
"type": "string",
|
5665
5769
|
"format": "uuid"
|
5666
5770
|
},
|
5667
|
-
"description": "The
|
5771
|
+
"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.",
|
5668
5772
|
"nullable": true
|
5669
5773
|
},
|
5670
|
-
"
|
5774
|
+
"positive_tracking_ids": {
|
5671
5775
|
"type": "array",
|
5672
5776
|
"items": {
|
5673
5777
|
"type": "string"
|
5674
5778
|
},
|
5675
|
-
"description": "The
|
5779
|
+
"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.",
|
5676
5780
|
"nullable": true
|
5677
5781
|
},
|
5678
5782
|
"slim_chunks": {
|
5679
5783
|
"type": "boolean",
|
5680
5784
|
"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.",
|
5681
5785
|
"nullable": true
|
5786
|
+
},
|
5787
|
+
"strategy": {
|
5788
|
+
"type": "string",
|
5789
|
+
"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.",
|
5790
|
+
"nullable": true
|
5682
5791
|
}
|
5683
5792
|
}
|
5684
5793
|
},
|
5685
|
-
"
|
5794
|
+
"RecommendGroupChunksRequest": {
|
5686
5795
|
"type": "object",
|
5687
5796
|
"properties": {
|
5688
5797
|
"filters": {
|
@@ -5693,166 +5802,65 @@
|
|
5693
5802
|
],
|
5694
5803
|
"nullable": true
|
5695
5804
|
},
|
5805
|
+
"group_size": {
|
5806
|
+
"type": "integer",
|
5807
|
+
"format": "int32",
|
5808
|
+
"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.",
|
5809
|
+
"nullable": true,
|
5810
|
+
"minimum": 0
|
5811
|
+
},
|
5696
5812
|
"limit": {
|
5697
5813
|
"type": "integer",
|
5698
5814
|
"format": "int64",
|
5699
|
-
"description": "The number of
|
5815
|
+
"description": "The number of groups to return. This is the number of groups which will be returned in the response. The default is 10.",
|
5700
5816
|
"nullable": true,
|
5701
5817
|
"minimum": 0
|
5702
5818
|
},
|
5703
|
-
"
|
5819
|
+
"negative_group_ids": {
|
5704
5820
|
"type": "array",
|
5705
5821
|
"items": {
|
5706
5822
|
"type": "string",
|
5707
5823
|
"format": "uuid"
|
5708
5824
|
},
|
5709
|
-
"description": "The ids of the
|
5825
|
+
"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.",
|
5710
5826
|
"nullable": true
|
5711
5827
|
},
|
5712
|
-
"
|
5828
|
+
"negative_group_tracking_ids": {
|
5713
5829
|
"type": "array",
|
5714
5830
|
"items": {
|
5715
5831
|
"type": "string"
|
5716
5832
|
},
|
5717
|
-
"description": "The
|
5833
|
+
"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.",
|
5718
5834
|
"nullable": true
|
5719
5835
|
},
|
5720
|
-
"
|
5836
|
+
"positive_group_ids": {
|
5721
5837
|
"type": "array",
|
5722
5838
|
"items": {
|
5723
5839
|
"type": "string",
|
5724
5840
|
"format": "uuid"
|
5725
5841
|
},
|
5726
|
-
"description": "The ids of the
|
5842
|
+
"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.",
|
5727
5843
|
"nullable": true
|
5728
5844
|
},
|
5729
|
-
"
|
5845
|
+
"positive_group_tracking_ids": {
|
5730
5846
|
"type": "array",
|
5731
5847
|
"items": {
|
5732
5848
|
"type": "string"
|
5733
5849
|
},
|
5734
|
-
"description": "The
|
5850
|
+
"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.",
|
5735
5851
|
"nullable": true
|
5736
5852
|
},
|
5737
5853
|
"slim_chunks": {
|
5738
5854
|
"type": "boolean",
|
5739
5855
|
"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.",
|
5740
5856
|
"nullable": true
|
5741
|
-
}
|
5742
|
-
}
|
5743
|
-
},
|
5744
|
-
"RecommendChunksResponseTypes": {
|
5745
|
-
"oneOf": [
|
5746
|
-
{
|
5747
|
-
"type": "array",
|
5748
|
-
"items": {
|
5749
|
-
"$ref": "#/components/schemas/ChunkMetadata"
|
5750
|
-
},
|
5751
|
-
"example": [
|
5752
|
-
{
|
5753
|
-
"chunk_html": "<p>Hello, world!</p>",
|
5754
|
-
"content": "Hello, world!",
|
5755
|
-
"created_at": "2021-01-01T00:00:00",
|
5756
|
-
"dataset_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
|
5757
|
-
"id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
|
5758
|
-
"link": "https://trieve.ai",
|
5759
|
-
"metadata": {
|
5760
|
-
"key": "value"
|
5761
|
-
},
|
5762
|
-
"qdrant_point_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
|
5763
|
-
"tag_set": "tag1,tag2",
|
5764
|
-
"time_stamp": "2021-01-01T00:00:00",
|
5765
|
-
"tracking_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
|
5766
|
-
"updated_at": "2021-01-01T00:00:00",
|
5767
|
-
"weight": 0.5
|
5768
|
-
}
|
5769
|
-
]
|
5770
|
-
},
|
5771
|
-
{
|
5772
|
-
"type": "array",
|
5773
|
-
"items": {
|
5774
|
-
"$ref": "#/components/schemas/SlimChunkMetadata"
|
5775
|
-
},
|
5776
|
-
"example": [
|
5777
|
-
{
|
5778
|
-
"created_at": "2021-01-01T00:00:00",
|
5779
|
-
"dataset_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
|
5780
|
-
"id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
|
5781
|
-
"link": "https://trieve.ai",
|
5782
|
-
"metadata": {
|
5783
|
-
"key": "value"
|
5784
|
-
},
|
5785
|
-
"qdrant_point_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
|
5786
|
-
"tag_set": "tag1,tag2",
|
5787
|
-
"time_stamp": "2021-01-01T00:00:00",
|
5788
|
-
"tracking_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
|
5789
|
-
"updated_at": "2021-01-01T00:00:00",
|
5790
|
-
"weight": 0.5
|
5791
|
-
}
|
5792
|
-
]
|
5793
|
-
}
|
5794
|
-
]
|
5795
|
-
},
|
5796
|
-
"RecommendGroupChunkResponseTypes": {
|
5797
|
-
"oneOf": [
|
5798
|
-
{
|
5799
|
-
"type": "array",
|
5800
|
-
"items": {
|
5801
|
-
"$ref": "#/components/schemas/GroupSlimChunksDTO"
|
5802
|
-
},
|
5803
|
-
"example": [
|
5804
|
-
{
|
5805
|
-
"group_id": "e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
|
5806
|
-
"metadata": [
|
5807
|
-
{
|
5808
|
-
"metadata": [
|
5809
|
-
{
|
5810
|
-
"content": "This is a test content",
|
5811
|
-
"id": "e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
|
5812
|
-
"link": "https://www.google.com",
|
5813
|
-
"metadata": {
|
5814
|
-
"key": "value"
|
5815
|
-
},
|
5816
|
-
"tag_set": "test",
|
5817
|
-
"time_stamp": "2021-01-01T00:00:00Z",
|
5818
|
-
"tracking_id": "e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
|
5819
|
-
"weight": 1
|
5820
|
-
}
|
5821
|
-
],
|
5822
|
-
"score": 0.5
|
5823
|
-
}
|
5824
|
-
]
|
5825
|
-
}
|
5826
|
-
]
|
5827
5857
|
},
|
5828
|
-
{
|
5829
|
-
"type": "
|
5830
|
-
"
|
5831
|
-
|
5832
|
-
},
|
5833
|
-
"example": {
|
5834
|
-
"group_id": "e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
|
5835
|
-
"metadata": [
|
5836
|
-
{
|
5837
|
-
"metadata": [
|
5838
|
-
{
|
5839
|
-
"id": "e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
|
5840
|
-
"link": "https://www.google.com",
|
5841
|
-
"metadata": {
|
5842
|
-
"key": "value"
|
5843
|
-
},
|
5844
|
-
"tag_set": "test",
|
5845
|
-
"time_stamp": "2021-01-01T00:00:00Z",
|
5846
|
-
"tracking_id": "e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
|
5847
|
-
"weight": 1
|
5848
|
-
}
|
5849
|
-
],
|
5850
|
-
"score": 0.5
|
5851
|
-
}
|
5852
|
-
]
|
5853
|
-
}
|
5858
|
+
"strategy": {
|
5859
|
+
"type": "string",
|
5860
|
+
"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.",
|
5861
|
+
"nullable": true
|
5854
5862
|
}
|
5855
|
-
|
5863
|
+
}
|
5856
5864
|
},
|
5857
5865
|
"RegenerateMessageData": {
|
5858
5866
|
"type": "object",
|
@@ -5910,7 +5918,7 @@
|
|
5910
5918
|
"metadata": {
|
5911
5919
|
"type": "array",
|
5912
5920
|
"items": {
|
5913
|
-
"$ref": "#/components/schemas/
|
5921
|
+
"$ref": "#/components/schemas/ChunkMetadata"
|
5914
5922
|
}
|
5915
5923
|
},
|
5916
5924
|
"score": {
|
@@ -6015,7 +6023,7 @@
|
|
6015
6023
|
"page": {
|
6016
6024
|
"type": "integer",
|
6017
6025
|
"format": "int64",
|
6018
|
-
"description": "Page of chunks to fetch.
|
6026
|
+
"description": "Page of chunks to fetch. Page is 1-indexed.",
|
6019
6027
|
"nullable": true,
|
6020
6028
|
"minimum": 0
|
6021
6029
|
},
|
@@ -6030,11 +6038,6 @@
|
|
6030
6038
|
"type": "string",
|
6031
6039
|
"description": "Query is the search query. This can be any string. The query will be used to create an embedding vector and/or SPLADE vector which will be used to find the result set."
|
6032
6040
|
},
|
6033
|
-
"quote_negated_words": {
|
6034
|
-
"type": "boolean",
|
6035
|
-
"description": "Turn on quote words and negated words to search for exact phrases and exclude words from the search results. Default is false.",
|
6036
|
-
"nullable": true
|
6037
|
-
},
|
6038
6041
|
"score_threshold": {
|
6039
6042
|
"type": "number",
|
6040
6043
|
"format": "float",
|
@@ -6140,62 +6143,6 @@
|
|
6140
6143
|
}
|
6141
6144
|
}
|
6142
6145
|
},
|
6143
|
-
"SearchChunkResponseTypes": {
|
6144
|
-
"oneOf": [
|
6145
|
-
{
|
6146
|
-
"$ref": "#/components/schemas/SearchSlimChunkQueryResponseBody"
|
6147
|
-
},
|
6148
|
-
{
|
6149
|
-
"$ref": "#/components/schemas/SearchChunkQueryResponseBody"
|
6150
|
-
}
|
6151
|
-
]
|
6152
|
-
},
|
6153
|
-
"SearchGroupSlimChunksResult": {
|
6154
|
-
"type": "object",
|
6155
|
-
"required": [
|
6156
|
-
"bookmarks",
|
6157
|
-
"group",
|
6158
|
-
"total_pages"
|
6159
|
-
],
|
6160
|
-
"properties": {
|
6161
|
-
"bookmarks": {
|
6162
|
-
"type": "array",
|
6163
|
-
"items": {
|
6164
|
-
"$ref": "#/components/schemas/ScoreSlimChunks"
|
6165
|
-
}
|
6166
|
-
},
|
6167
|
-
"group": {
|
6168
|
-
"$ref": "#/components/schemas/ChunkGroup"
|
6169
|
-
},
|
6170
|
-
"total_pages": {
|
6171
|
-
"type": "integer",
|
6172
|
-
"format": "int64"
|
6173
|
-
}
|
6174
|
-
}
|
6175
|
-
},
|
6176
|
-
"SearchGroupsResult": {
|
6177
|
-
"type": "object",
|
6178
|
-
"required": [
|
6179
|
-
"bookmarks",
|
6180
|
-
"group",
|
6181
|
-
"total_pages"
|
6182
|
-
],
|
6183
|
-
"properties": {
|
6184
|
-
"bookmarks": {
|
6185
|
-
"type": "array",
|
6186
|
-
"items": {
|
6187
|
-
"$ref": "#/components/schemas/ScoreChunkDTO"
|
6188
|
-
}
|
6189
|
-
},
|
6190
|
-
"group": {
|
6191
|
-
"$ref": "#/components/schemas/ChunkGroup"
|
6192
|
-
},
|
6193
|
-
"total_pages": {
|
6194
|
-
"type": "integer",
|
6195
|
-
"format": "int64"
|
6196
|
-
}
|
6197
|
-
}
|
6198
|
-
},
|
6199
6146
|
"SearchOverGroupsData": {
|
6200
6147
|
"type": "object",
|
6201
6148
|
"required": [
|
@@ -6219,6 +6166,7 @@
|
|
6219
6166
|
"group_size": {
|
6220
6167
|
"type": "integer",
|
6221
6168
|
"format": "int32",
|
6169
|
+
"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.",
|
6222
6170
|
"nullable": true,
|
6223
6171
|
"minimum": 0
|
6224
6172
|
},
|
@@ -6238,14 +6186,14 @@
|
|
6238
6186
|
"page": {
|
6239
6187
|
"type": "integer",
|
6240
6188
|
"format": "int64",
|
6241
|
-
"description": "Page of
|
6189
|
+
"description": "Page of group results to fetch. Page is 1-indexed.",
|
6242
6190
|
"nullable": true,
|
6243
6191
|
"minimum": 0
|
6244
6192
|
},
|
6245
6193
|
"page_size": {
|
6246
6194
|
"type": "integer",
|
6247
6195
|
"format": "int32",
|
6248
|
-
"description": "Page size is the number of
|
6196
|
+
"description": "Page size is the number of group results to fetch. The default is 10.",
|
6249
6197
|
"nullable": true,
|
6250
6198
|
"minimum": 0
|
6251
6199
|
},
|
@@ -6253,11 +6201,6 @@
|
|
6253
6201
|
"type": "string",
|
6254
6202
|
"description": "Query is the search query. This can be any string. The query will be used to create an embedding vector and/or SPLADE vector which will be used to find the result set."
|
6255
6203
|
},
|
6256
|
-
"quote_negated_words": {
|
6257
|
-
"type": "boolean",
|
6258
|
-
"description": "Turn on quote words and negated words to search for exact phrases and exclude words from the search results. Default is false.",
|
6259
|
-
"nullable": true
|
6260
|
-
},
|
6261
6204
|
"score_threshold": {
|
6262
6205
|
"type": "number",
|
6263
6206
|
"format": "float",
|
@@ -6275,7 +6218,7 @@
|
|
6275
6218
|
}
|
6276
6219
|
}
|
6277
6220
|
},
|
6278
|
-
"
|
6221
|
+
"SearchOverGroupsResults": {
|
6279
6222
|
"type": "object",
|
6280
6223
|
"required": [
|
6281
6224
|
"group_chunks",
|
@@ -6285,7 +6228,7 @@
|
|
6285
6228
|
"group_chunks": {
|
6286
6229
|
"type": "array",
|
6287
6230
|
"items": {
|
6288
|
-
"$ref": "#/components/schemas/
|
6231
|
+
"$ref": "#/components/schemas/GroupScoreChunk"
|
6289
6232
|
}
|
6290
6233
|
},
|
6291
6234
|
"total_chunk_pages": {
|
@@ -6294,17 +6237,7 @@
|
|
6294
6237
|
}
|
6295
6238
|
}
|
6296
6239
|
},
|
6297
|
-
"
|
6298
|
-
"oneOf": [
|
6299
|
-
{
|
6300
|
-
"$ref": "#/components/schemas/SearchOverGroupsResponseBody"
|
6301
|
-
},
|
6302
|
-
{
|
6303
|
-
"$ref": "#/components/schemas/SearchOverGroupsSlimChunksResponseBody"
|
6304
|
-
}
|
6305
|
-
]
|
6306
|
-
},
|
6307
|
-
"SearchOverGroupsSlimChunksResponseBody": {
|
6240
|
+
"SearchOverGroupsSlimResults": {
|
6308
6241
|
"type": "object",
|
6309
6242
|
"required": [
|
6310
6243
|
"group_chunks",
|
@@ -6314,7 +6247,7 @@
|
|
6314
6247
|
"group_chunks": {
|
6315
6248
|
"type": "array",
|
6316
6249
|
"items": {
|
6317
|
-
"$ref": "#/components/schemas/
|
6250
|
+
"$ref": "#/components/schemas/GroupScoreSlimChunks"
|
6318
6251
|
}
|
6319
6252
|
},
|
6320
6253
|
"total_chunk_pages": {
|
@@ -6389,7 +6322,7 @@
|
|
6389
6322
|
"page": {
|
6390
6323
|
"type": "integer",
|
6391
6324
|
"format": "int64",
|
6392
|
-
"description": "The page of chunks to fetch.
|
6325
|
+
"description": "The page of chunks to fetch. Page is 1-indexed.",
|
6393
6326
|
"nullable": true,
|
6394
6327
|
"minimum": 0
|
6395
6328
|
},
|
@@ -6404,11 +6337,6 @@
|
|
6404
6337
|
"type": "string",
|
6405
6338
|
"description": "The query is the search query. This can be any string. The query will be used to create an embedding vector and/or SPLADE vector which will be used to find the result set."
|
6406
6339
|
},
|
6407
|
-
"quote_negated_words": {
|
6408
|
-
"type": "boolean",
|
6409
|
-
"description": "Turn on quote words and negated words to search for exact phrases and exclude words from the search results. Default is false.",
|
6410
|
-
"nullable": true
|
6411
|
-
},
|
6412
6340
|
"score_threshold": {
|
6413
6341
|
"type": "number",
|
6414
6342
|
"format": "float",
|
@@ -6431,15 +6359,51 @@
|
|
6431
6359
|
}
|
6432
6360
|
}
|
6433
6361
|
},
|
6434
|
-
"
|
6435
|
-
"
|
6436
|
-
|
6437
|
-
|
6362
|
+
"SearchWithinGroupResults": {
|
6363
|
+
"type": "object",
|
6364
|
+
"required": [
|
6365
|
+
"bookmarks",
|
6366
|
+
"group",
|
6367
|
+
"total_pages"
|
6368
|
+
],
|
6369
|
+
"properties": {
|
6370
|
+
"bookmarks": {
|
6371
|
+
"type": "array",
|
6372
|
+
"items": {
|
6373
|
+
"$ref": "#/components/schemas/ScoreChunkDTO"
|
6374
|
+
}
|
6438
6375
|
},
|
6439
|
-
{
|
6440
|
-
"$ref": "#/components/schemas/
|
6376
|
+
"group": {
|
6377
|
+
"$ref": "#/components/schemas/ChunkGroup"
|
6378
|
+
},
|
6379
|
+
"total_pages": {
|
6380
|
+
"type": "integer",
|
6381
|
+
"format": "int64"
|
6441
6382
|
}
|
6442
|
-
|
6383
|
+
}
|
6384
|
+
},
|
6385
|
+
"SearchWithinGroupSlimResults": {
|
6386
|
+
"type": "object",
|
6387
|
+
"required": [
|
6388
|
+
"bookmarks",
|
6389
|
+
"group",
|
6390
|
+
"total_pages"
|
6391
|
+
],
|
6392
|
+
"properties": {
|
6393
|
+
"bookmarks": {
|
6394
|
+
"type": "array",
|
6395
|
+
"items": {
|
6396
|
+
"$ref": "#/components/schemas/ScoreSlimChunks"
|
6397
|
+
}
|
6398
|
+
},
|
6399
|
+
"group": {
|
6400
|
+
"$ref": "#/components/schemas/ChunkGroup"
|
6401
|
+
},
|
6402
|
+
"total_pages": {
|
6403
|
+
"type": "integer",
|
6404
|
+
"format": "int64"
|
6405
|
+
}
|
6406
|
+
}
|
6443
6407
|
},
|
6444
6408
|
"SetUserApiKeyRequest": {
|
6445
6409
|
"type": "object",
|
@@ -6581,6 +6545,79 @@
|
|
6581
6545
|
"weight": 0.5
|
6582
6546
|
}
|
6583
6547
|
},
|
6548
|
+
"SlimChunkMetadataWithScore": {
|
6549
|
+
"type": "object",
|
6550
|
+
"required": [
|
6551
|
+
"id",
|
6552
|
+
"created_at",
|
6553
|
+
"updated_at",
|
6554
|
+
"weight",
|
6555
|
+
"score"
|
6556
|
+
],
|
6557
|
+
"properties": {
|
6558
|
+
"created_at": {
|
6559
|
+
"type": "string",
|
6560
|
+
"format": "date-time"
|
6561
|
+
},
|
6562
|
+
"id": {
|
6563
|
+
"type": "string",
|
6564
|
+
"format": "uuid"
|
6565
|
+
},
|
6566
|
+
"link": {
|
6567
|
+
"type": "string",
|
6568
|
+
"nullable": true
|
6569
|
+
},
|
6570
|
+
"metadata": {
|
6571
|
+
"nullable": true
|
6572
|
+
},
|
6573
|
+
"qdrant_point_id": {
|
6574
|
+
"type": "string",
|
6575
|
+
"format": "uuid",
|
6576
|
+
"nullable": true
|
6577
|
+
},
|
6578
|
+
"score": {
|
6579
|
+
"type": "number",
|
6580
|
+
"format": "float"
|
6581
|
+
},
|
6582
|
+
"tag_set": {
|
6583
|
+
"type": "string",
|
6584
|
+
"nullable": true
|
6585
|
+
},
|
6586
|
+
"time_stamp": {
|
6587
|
+
"type": "string",
|
6588
|
+
"format": "date-time",
|
6589
|
+
"nullable": true
|
6590
|
+
},
|
6591
|
+
"tracking_id": {
|
6592
|
+
"type": "string",
|
6593
|
+
"nullable": true
|
6594
|
+
},
|
6595
|
+
"updated_at": {
|
6596
|
+
"type": "string",
|
6597
|
+
"format": "date-time"
|
6598
|
+
},
|
6599
|
+
"weight": {
|
6600
|
+
"type": "number",
|
6601
|
+
"format": "double"
|
6602
|
+
}
|
6603
|
+
},
|
6604
|
+
"example": {
|
6605
|
+
"created_at": "2021-01-01T00:00:00",
|
6606
|
+
"dataset_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
|
6607
|
+
"id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
|
6608
|
+
"link": "https://trieve.ai",
|
6609
|
+
"metadata": {
|
6610
|
+
"key": "value"
|
6611
|
+
},
|
6612
|
+
"qdrant_point_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
|
6613
|
+
"score": 0.9,
|
6614
|
+
"tag_set": "tag1,tag2",
|
6615
|
+
"time_stamp": "2021-01-01T00:00:00",
|
6616
|
+
"tracking_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
|
6617
|
+
"updated_at": "2021-01-01T00:00:00",
|
6618
|
+
"weight": 0.5
|
6619
|
+
}
|
6620
|
+
},
|
6584
6621
|
"SlimGroup": {
|
6585
6622
|
"type": "object",
|
6586
6623
|
"required": [
|
@@ -6966,11 +7003,23 @@
|
|
6966
7003
|
"description": "Id of the chunk_group to update.",
|
6967
7004
|
"nullable": true
|
6968
7005
|
},
|
7006
|
+
"metadata": {
|
7007
|
+
"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.",
|
7008
|
+
"nullable": true
|
7009
|
+
},
|
6969
7010
|
"name": {
|
6970
7011
|
"type": "string",
|
6971
7012
|
"description": "Name to assign to the chunk_group. Does not need to be unique. If not provided, the name will not be updated.",
|
6972
7013
|
"nullable": true
|
6973
7014
|
},
|
7015
|
+
"tag_set": {
|
7016
|
+
"type": "array",
|
7017
|
+
"items": {
|
7018
|
+
"type": "string"
|
7019
|
+
},
|
7020
|
+
"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.",
|
7021
|
+
"nullable": true
|
7022
|
+
},
|
6974
7023
|
"tracking_id": {
|
6975
7024
|
"type": "string",
|
6976
7025
|
"description": "Tracking Id of the chunk_group to update.",
|
@@ -7021,11 +7070,23 @@
|
|
7021
7070
|
"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.",
|
7022
7071
|
"nullable": true
|
7023
7072
|
},
|
7073
|
+
"metadata": {
|
7074
|
+
"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.",
|
7075
|
+
"nullable": true
|
7076
|
+
},
|
7024
7077
|
"name": {
|
7025
7078
|
"type": "string",
|
7026
7079
|
"description": "Name to assign to the chunk_group. Does not need to be unique. If not provided, the name will not be updated.",
|
7027
7080
|
"nullable": true
|
7028
7081
|
},
|
7082
|
+
"tag_set": {
|
7083
|
+
"type": "array",
|
7084
|
+
"items": {
|
7085
|
+
"type": "string"
|
7086
|
+
},
|
7087
|
+
"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.",
|
7088
|
+
"nullable": true
|
7089
|
+
},
|
7029
7090
|
"tracking_id": {
|
7030
7091
|
"type": "string",
|
7031
7092
|
"description": "Tracking Id of the chunk_group to update."
|
@@ -7269,7 +7330,7 @@
|
|
7269
7330
|
},
|
7270
7331
|
{
|
7271
7332
|
"name": "events",
|
7272
|
-
"description": "Notifications endpoint. Files are uploaded asynchronously and events are sent to the user when the upload is complete.
|
7333
|
+
"description": "Notifications endpoint. Files are uploaded asynchronously and events are sent to the user when the upload is complete."
|
7273
7334
|
},
|
7274
7335
|
{
|
7275
7336
|
"name": "topic",
|