trieve_ruby_client 0.6.0 → 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.
Files changed (132) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +15 -19
  3. data/docs/BookmarkData.md +1 -1
  4. data/docs/ChunkApi.md +8 -8
  5. data/docs/ChunkGroupApi.md +14 -14
  6. data/docs/ChunkMetadataWithScore.md +44 -0
  7. data/docs/CreateChunkGroupData.md +1 -1
  8. data/docs/GetEventsData.md +1 -1
  9. data/docs/GroupScoreChunk.md +22 -0
  10. data/docs/GroupScoreSlimChunks.md +20 -0
  11. data/docs/ScoreChunkDTO.md +1 -1
  12. data/docs/SearchOverGroupsResults.md +20 -0
  13. data/docs/SearchOverGroupsSlimResults.md +20 -0
  14. data/docs/SearchWithinGroupResults.md +22 -0
  15. data/docs/SearchWithinGroupSlimResults.md +22 -0
  16. data/docs/SlimChunkMetadataWithScore.md +38 -0
  17. data/docs/UserApi.md +2 -2
  18. data/lib/trieve_ruby_client/api/auth_api.rb +1 -1
  19. data/lib/trieve_ruby_client/api/chunk_api.rb +7 -7
  20. data/lib/trieve_ruby_client/api/chunk_group_api.rb +10 -10
  21. data/lib/trieve_ruby_client/api/dataset_api.rb +1 -1
  22. data/lib/trieve_ruby_client/api/events_api.rb +1 -1
  23. data/lib/trieve_ruby_client/api/file_api.rb +1 -1
  24. data/lib/trieve_ruby_client/api/health_api.rb +1 -1
  25. data/lib/trieve_ruby_client/api/invitation_api.rb +1 -1
  26. data/lib/trieve_ruby_client/api/message_api.rb +1 -1
  27. data/lib/trieve_ruby_client/api/organization_api.rb +1 -1
  28. data/lib/trieve_ruby_client/api/stripe_api.rb +1 -1
  29. data/lib/trieve_ruby_client/api/topic_api.rb +1 -1
  30. data/lib/trieve_ruby_client/api/user_api.rb +3 -3
  31. data/lib/trieve_ruby_client/api_client.rb +1 -1
  32. data/lib/trieve_ruby_client/api_error.rb +1 -1
  33. data/lib/trieve_ruby_client/configuration.rb +1 -1
  34. data/lib/trieve_ruby_client/models/add_chunk_to_group_data.rb +1 -1
  35. data/lib/trieve_ruby_client/models/api_key_dto.rb +1 -1
  36. data/lib/trieve_ruby_client/models/auth_query.rb +1 -1
  37. data/lib/trieve_ruby_client/models/batch_queued_chunk_response.rb +1 -1
  38. data/lib/trieve_ruby_client/models/bookmark_data.rb +2 -2
  39. data/lib/trieve_ruby_client/models/bookmark_group_result.rb +1 -1
  40. data/lib/trieve_ruby_client/models/chat_message_proxy.rb +1 -1
  41. data/lib/trieve_ruby_client/models/chunk_data.rb +1 -1
  42. data/lib/trieve_ruby_client/models/chunk_filter.rb +1 -1
  43. data/lib/trieve_ruby_client/models/chunk_group.rb +1 -1
  44. data/lib/trieve_ruby_client/models/chunk_group_and_file.rb +1 -1
  45. data/lib/trieve_ruby_client/models/chunk_metadata.rb +1 -1
  46. data/lib/trieve_ruby_client/models/chunk_metadata_with_score.rb +387 -0
  47. data/lib/trieve_ruby_client/models/client_dataset_configuration.rb +1 -1
  48. data/lib/trieve_ruby_client/models/create_chunk_data.rb +1 -1
  49. data/lib/trieve_ruby_client/models/create_chunk_group_data.rb +2 -8
  50. data/lib/trieve_ruby_client/models/create_dataset_request.rb +1 -1
  51. data/lib/trieve_ruby_client/models/create_message_data.rb +1 -1
  52. data/lib/trieve_ruby_client/models/create_organization_data.rb +1 -1
  53. data/lib/trieve_ruby_client/models/create_topic_data.rb +1 -1
  54. data/lib/trieve_ruby_client/models/dataset.rb +1 -1
  55. data/lib/trieve_ruby_client/models/dataset_and_usage.rb +1 -1
  56. data/lib/trieve_ruby_client/models/dataset_dto.rb +1 -1
  57. data/lib/trieve_ruby_client/models/dataset_usage_count.rb +1 -1
  58. data/lib/trieve_ruby_client/models/delete_topic_data.rb +1 -1
  59. data/lib/trieve_ruby_client/models/delete_user_api_key_request.rb +1 -1
  60. data/lib/trieve_ruby_client/models/edit_message_data.rb +1 -1
  61. data/lib/trieve_ruby_client/models/error_response_body.rb +1 -1
  62. data/lib/trieve_ruby_client/models/event.rb +1 -1
  63. data/lib/trieve_ruby_client/models/event_return.rb +1 -1
  64. data/lib/trieve_ruby_client/models/field_condition.rb +1 -1
  65. data/lib/trieve_ruby_client/models/file.rb +1 -1
  66. data/lib/trieve_ruby_client/models/file_dto.rb +1 -1
  67. data/lib/trieve_ruby_client/models/generate_chunks_request.rb +1 -1
  68. data/lib/trieve_ruby_client/models/get_events_data.rb +2 -2
  69. data/lib/trieve_ruby_client/models/get_groups_for_chunks_data.rb +1 -1
  70. data/lib/trieve_ruby_client/models/group_data.rb +1 -1
  71. data/lib/trieve_ruby_client/models/group_score_chunk.rb +249 -0
  72. data/lib/trieve_ruby_client/models/group_score_slim_chunks.rb +239 -0
  73. data/lib/trieve_ruby_client/models/invitation_data.rb +1 -1
  74. data/lib/trieve_ruby_client/models/match_condition.rb +1 -1
  75. data/lib/trieve_ruby_client/models/message.rb +1 -1
  76. data/lib/trieve_ruby_client/models/organization.rb +1 -1
  77. data/lib/trieve_ruby_client/models/organization_usage_count.rb +1 -1
  78. data/lib/trieve_ruby_client/models/range.rb +1 -1
  79. data/lib/trieve_ruby_client/models/range_condition.rb +1 -1
  80. data/lib/trieve_ruby_client/models/recommend_chunks_request.rb +1 -1
  81. data/lib/trieve_ruby_client/models/recommend_group_chunks_request.rb +1 -1
  82. data/lib/trieve_ruby_client/models/regenerate_message_data.rb +1 -1
  83. data/lib/trieve_ruby_client/models/return_queued_chunk.rb +1 -1
  84. data/lib/trieve_ruby_client/models/score_chunk_dto.rb +2 -2
  85. data/lib/trieve_ruby_client/models/score_slim_chunks.rb +1 -1
  86. data/lib/trieve_ruby_client/models/search_chunk_data.rb +1 -1
  87. data/lib/trieve_ruby_client/models/search_chunk_query_response_body.rb +1 -1
  88. data/lib/trieve_ruby_client/models/search_over_groups_data.rb +1 -1
  89. data/lib/trieve_ruby_client/models/search_over_groups_results.rb +239 -0
  90. data/lib/trieve_ruby_client/models/search_over_groups_slim_results.rb +239 -0
  91. data/lib/trieve_ruby_client/models/search_slim_chunk_query_response_body.rb +1 -1
  92. data/lib/trieve_ruby_client/models/search_within_group_data.rb +1 -1
  93. data/lib/trieve_ruby_client/models/search_within_group_results.rb +255 -0
  94. data/lib/trieve_ruby_client/models/search_within_group_slim_results.rb +255 -0
  95. data/lib/trieve_ruby_client/models/set_user_api_key_request.rb +1 -1
  96. data/lib/trieve_ruby_client/models/set_user_api_key_response.rb +1 -1
  97. data/lib/trieve_ruby_client/models/single_queued_chunk_response.rb +1 -1
  98. data/lib/trieve_ruby_client/models/slim_chunk_metadata.rb +1 -1
  99. data/lib/trieve_ruby_client/models/slim_chunk_metadata_with_score.rb +345 -0
  100. data/lib/trieve_ruby_client/models/slim_group.rb +1 -1
  101. data/lib/trieve_ruby_client/models/slim_user.rb +1 -1
  102. data/lib/trieve_ruby_client/models/stripe_plan.rb +1 -1
  103. data/lib/trieve_ruby_client/models/suggested_queries_request.rb +1 -1
  104. data/lib/trieve_ruby_client/models/suggested_queries_response.rb +1 -1
  105. data/lib/trieve_ruby_client/models/topic.rb +1 -1
  106. data/lib/trieve_ruby_client/models/update_chunk_by_tracking_id_data.rb +1 -1
  107. data/lib/trieve_ruby_client/models/update_chunk_data.rb +1 -1
  108. data/lib/trieve_ruby_client/models/update_chunk_group_data.rb +1 -1
  109. data/lib/trieve_ruby_client/models/update_dataset_request.rb +1 -1
  110. data/lib/trieve_ruby_client/models/update_group_by_tracking_id_data.rb +1 -1
  111. data/lib/trieve_ruby_client/models/update_organization_data.rb +1 -1
  112. data/lib/trieve_ruby_client/models/update_topic_data.rb +1 -1
  113. data/lib/trieve_ruby_client/models/update_user_data.rb +1 -1
  114. data/lib/trieve_ruby_client/models/upload_file_data.rb +1 -1
  115. data/lib/trieve_ruby_client/models/upload_file_result.rb +1 -1
  116. data/lib/trieve_ruby_client/models/user_organization.rb +1 -1
  117. data/lib/trieve_ruby_client/version.rb +2 -2
  118. data/lib/trieve_ruby_client.rb +9 -13
  119. data/openapi-generator.yaml +1 -1
  120. data/openapi.json +253 -191
  121. data/spec/models/chunk_metadata_with_score_spec.rb +114 -0
  122. data/spec/models/group_score_chunk_spec.rb +48 -0
  123. data/spec/models/group_score_slim_chunks_spec.rb +42 -0
  124. data/spec/models/search_over_groups_results_spec.rb +42 -0
  125. data/spec/models/search_over_groups_slim_results_spec.rb +42 -0
  126. data/spec/models/search_within_group_results_spec.rb +48 -0
  127. data/spec/models/search_within_group_slim_results_spec.rb +48 -0
  128. data/spec/models/slim_chunk_metadata_with_score_spec.rb +96 -0
  129. data/spec/spec_helper.rb +1 -1
  130. data/trieve_ruby_client-0.6.0.gem +0 -0
  131. data/trieve_ruby_client.gemspec +1 -1
  132. metadata +35 -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.6.0"
15
+ "version": "0.6.2"
16
16
  },
17
17
  "servers": [
18
18
  {
@@ -445,11 +445,27 @@
445
445
  },
446
446
  "responses": {
447
447
  "200": {
448
- "description": "Chunks with embedding vectors which are similar to those in the request body",
448
+ "description": "Chunks with embedding vectors which are similar to positives and dissimilar to negatives if slim_chunks is false in the request",
449
449
  "content": {
450
450
  "application/json": {
451
451
  "schema": {
452
- "$ref": "#/components/schemas/RecommendChunksResponseTypes"
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
+ }
453
469
  }
454
470
  }
455
471
  }
@@ -506,11 +522,21 @@
506
522
  },
507
523
  "responses": {
508
524
  "200": {
509
- "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",
510
526
  "content": {
511
527
  "application/json": {
512
528
  "schema": {
513
- "$ref": "#/components/schemas/SearchChunkResponseTypes"
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",
536
+ "content": {
537
+ "application/json": {
538
+ "schema": {
539
+ "$ref": "#/components/schemas/SearchSlimChunkQueryResponseBody"
514
540
  }
515
541
  }
516
542
  }
@@ -1145,17 +1171,27 @@
1145
1171
  },
1146
1172
  "responses": {
1147
1173
  "200": {
1148
- "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",
1149
1175
  "content": {
1150
1176
  "application/json": {
1151
1177
  "schema": {
1152
- "$ref": "#/components/schemas/SearchOverGroupsResponseTypes"
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",
1185
+ "content": {
1186
+ "application/json": {
1187
+ "schema": {
1188
+ "$ref": "#/components/schemas/SearchOverGroupsSlimResults"
1153
1189
  }
1154
1190
  }
1155
1191
  }
1156
1192
  },
1157
1193
  "400": {
1158
- "description": "Service error relating to getting the groups that the chunk is in",
1194
+ "description": "Service error relating to searching over groups",
1159
1195
  "content": {
1160
1196
  "application/json": {
1161
1197
  "schema": {
@@ -1206,11 +1242,27 @@
1206
1242
  },
1207
1243
  "responses": {
1208
1244
  "200": {
1209
- "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",
1210
1246
  "content": {
1211
1247
  "application/json": {
1212
1248
  "schema": {
1213
- "$ref": "#/components/schemas/RecommendGroupChunkResponseTypes"
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
+ }
1214
1266
  }
1215
1267
  }
1216
1268
  }
@@ -1267,11 +1319,21 @@
1267
1319
  },
1268
1320
  "responses": {
1269
1321
  "200": {
1270
- "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",
1271
1333
  "content": {
1272
1334
  "application/json": {
1273
1335
  "schema": {
1274
- "$ref": "#/components/schemas/SearchWithinGroupResponseTypes"
1336
+ "$ref": "#/components/schemas/SearchWithinGroupSlimResults"
1275
1337
  }
1276
1338
  }
1277
1339
  }
@@ -3672,36 +3734,32 @@
3672
3734
  ]
3673
3735
  }
3674
3736
  },
3675
- "/api/user/delete_api_key/{api_key_id}": {
3676
- "delete": {
3737
+ "/api/user/api_key": {
3738
+ "post": {
3677
3739
  "tags": [
3678
3740
  "user"
3679
3741
  ],
3680
- "summary": "Delete User Api Key",
3681
- "description": "Delete User Api Key\n\nDelete an api key for the auth'ed user.",
3682
- "operationId": "delete_user_api_key",
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"
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
+ }
3692
3752
  }
3693
- }
3694
- ],
3753
+ },
3754
+ "required": true
3755
+ },
3695
3756
  "responses": {
3696
3757
  "200": {
3697
3758
  "description": "JSON body representing the api_key for the user",
3698
3759
  "content": {
3699
3760
  "application/json": {
3700
3761
  "schema": {
3701
- "type": "array",
3702
- "items": {
3703
- "$ref": "#/components/schemas/ApiKeyDTO"
3704
- }
3762
+ "$ref": "#/components/schemas/SetUserApiKeyResponse"
3705
3763
  }
3706
3764
  }
3707
3765
  }
@@ -3726,32 +3784,36 @@
3726
3784
  ]
3727
3785
  }
3728
3786
  },
3729
- "/api/user/set_api_key": {
3730
- "post": {
3787
+ "/api/user/api_key/{api_key_id}": {
3788
+ "delete": {
3731
3789
  "tags": [
3732
3790
  "user"
3733
3791
  ],
3734
- "summary": "Set User Api Key",
3735
- "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.",
3736
- "operationId": "set_user_api_key",
3737
- "requestBody": {
3738
- "description": "JSON request payload to create a new user api key",
3739
- "content": {
3740
- "application/json": {
3741
- "schema": {
3742
- "$ref": "#/components/schemas/SetUserApiKeyRequest"
3743
- }
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"
3744
3804
  }
3745
- },
3746
- "required": true
3747
- },
3805
+ }
3806
+ ],
3748
3807
  "responses": {
3749
3808
  "200": {
3750
3809
  "description": "JSON body representing the api_key for the user",
3751
3810
  "content": {
3752
3811
  "application/json": {
3753
3812
  "schema": {
3754
- "$ref": "#/components/schemas/SetUserApiKeyResponse"
3813
+ "type": "array",
3814
+ "items": {
3815
+ "$ref": "#/components/schemas/ApiKeyDTO"
3816
+ }
3755
3817
  }
3756
3818
  }
3757
3819
  }
@@ -3944,7 +4006,7 @@
3944
4006
  "chunks": {
3945
4007
  "type": "array",
3946
4008
  "items": {
3947
- "$ref": "#/components/schemas/ChunkMetadataWithFileData"
4009
+ "$ref": "#/components/schemas/ChunkMetadata"
3948
4010
  }
3949
4011
  },
3950
4012
  "group": {
@@ -4374,15 +4436,16 @@
4374
4436
  "weight": 0.5
4375
4437
  }
4376
4438
  },
4377
- "ChunkMetadataWithFileData": {
4439
+ "ChunkMetadataWithScore": {
4378
4440
  "type": "object",
4379
4441
  "required": [
4380
4442
  "id",
4381
4443
  "content",
4382
- "qdrant_point_id",
4383
4444
  "created_at",
4384
4445
  "updated_at",
4385
- "weight"
4446
+ "dataset_id",
4447
+ "weight",
4448
+ "score"
4386
4449
  ],
4387
4450
  "properties": {
4388
4451
  "chunk_html": {
@@ -4396,14 +4459,9 @@
4396
4459
  "type": "string",
4397
4460
  "format": "date-time"
4398
4461
  },
4399
- "file_id": {
4400
- "type": "string",
4401
- "format": "uuid",
4402
- "nullable": true
4403
- },
4404
- "file_name": {
4462
+ "dataset_id": {
4405
4463
  "type": "string",
4406
- "nullable": true
4464
+ "format": "uuid"
4407
4465
  },
4408
4466
  "id": {
4409
4467
  "type": "string",
@@ -4418,7 +4476,12 @@
4418
4476
  },
4419
4477
  "qdrant_point_id": {
4420
4478
  "type": "string",
4421
- "format": "uuid"
4479
+ "format": "uuid",
4480
+ "nullable": true
4481
+ },
4482
+ "score": {
4483
+ "type": "number",
4484
+ "format": "float"
4422
4485
  },
4423
4486
  "tag_set": {
4424
4487
  "type": "string",
@@ -4446,14 +4509,14 @@
4446
4509
  "chunk_html": "<p>Hello, world!</p>",
4447
4510
  "content": "Hello, world!",
4448
4511
  "created_at": "2021-01-01T00:00:00",
4449
- "file_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
4450
- "file_name": "file.txt",
4512
+ "dataset_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
4451
4513
  "id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
4452
4514
  "link": "https://trieve.ai",
4453
4515
  "metadata": {
4454
4516
  "key": "value"
4455
4517
  },
4456
4518
  "qdrant_point_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
4519
+ "score": 0.9,
4457
4520
  "tag_set": "tag1,tag2",
4458
4521
  "time_stamp": "2021-01-01T00:00:00",
4459
4522
  "tracking_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
@@ -4604,13 +4667,13 @@
4604
4667
  "CreateChunkGroupData": {
4605
4668
  "type": "object",
4606
4669
  "required": [
4607
- "name",
4608
- "description"
4670
+ "name"
4609
4671
  ],
4610
4672
  "properties": {
4611
4673
  "description": {
4612
4674
  "type": "string",
4613
- "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
4614
4677
  },
4615
4678
  "metadata": {
4616
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.",
@@ -5265,7 +5328,7 @@
5265
5328
  "items": {
5266
5329
  "type": "string"
5267
5330
  },
5268
- "description": "The types of events to get. Any combination of file_uploaded, card_uploaded, card_action_failed, or card_updated. Leave undefined to get all events.",
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.",
5269
5332
  "nullable": true
5270
5333
  },
5271
5334
  "page": {
@@ -5285,7 +5348,7 @@
5285
5348
  "page": 1,
5286
5349
  "page_size": 10,
5287
5350
  "type": [
5288
- "card_action_failed"
5351
+ "chunk_action_failed"
5289
5352
  ]
5290
5353
  }
5291
5354
  },
@@ -5323,7 +5386,7 @@
5323
5386
  }
5324
5387
  }
5325
5388
  },
5326
- "GroupScoreChunkDTO": {
5389
+ "GroupScoreChunk": {
5327
5390
  "type": "object",
5328
5391
  "required": [
5329
5392
  "group_id",
@@ -5368,7 +5431,7 @@
5368
5431
  ]
5369
5432
  }
5370
5433
  },
5371
- "GroupSlimChunksDTO": {
5434
+ "GroupScoreSlimChunks": {
5372
5435
  "type": "object",
5373
5436
  "required": [
5374
5437
  "group_id",
@@ -5664,12 +5727,6 @@
5664
5727
  }
5665
5728
  ]
5666
5729
  },
5667
- "RecommendChunkMetadata": {
5668
- "type": "array",
5669
- "items": {
5670
- "$ref": "#/components/schemas/ChunkMetadata"
5671
- }
5672
- },
5673
5730
  "RecommendChunksRequest": {
5674
5731
  "type": "object",
5675
5732
  "properties": {
@@ -5734,32 +5791,6 @@
5734
5791
  }
5735
5792
  }
5736
5793
  },
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
5794
  "RecommendGroupChunksRequest": {
5764
5795
  "type": "object",
5765
5796
  "properties": {
@@ -5831,18 +5862,6 @@
5831
5862
  }
5832
5863
  }
5833
5864
  },
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
- },
5846
5865
  "RegenerateMessageData": {
5847
5866
  "type": "object",
5848
5867
  "required": [
@@ -5899,7 +5918,7 @@
5899
5918
  "metadata": {
5900
5919
  "type": "array",
5901
5920
  "items": {
5902
- "$ref": "#/components/schemas/ChunkMetadataWithFileData"
5921
+ "$ref": "#/components/schemas/ChunkMetadata"
5903
5922
  }
5904
5923
  },
5905
5924
  "score": {
@@ -6124,62 +6143,6 @@
6124
6143
  }
6125
6144
  }
6126
6145
  },
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
- },
6160
- "SearchGroupsResult": {
6161
- "type": "object",
6162
- "required": [
6163
- "bookmarks",
6164
- "group",
6165
- "total_pages"
6166
- ],
6167
- "properties": {
6168
- "bookmarks": {
6169
- "type": "array",
6170
- "items": {
6171
- "$ref": "#/components/schemas/ScoreChunkDTO"
6172
- }
6173
- },
6174
- "group": {
6175
- "$ref": "#/components/schemas/ChunkGroup"
6176
- },
6177
- "total_pages": {
6178
- "type": "integer",
6179
- "format": "int64"
6180
- }
6181
- }
6182
- },
6183
6146
  "SearchOverGroupsData": {
6184
6147
  "type": "object",
6185
6148
  "required": [
@@ -6255,7 +6218,7 @@
6255
6218
  }
6256
6219
  }
6257
6220
  },
6258
- "SearchOverGroupsResponseBody": {
6221
+ "SearchOverGroupsResults": {
6259
6222
  "type": "object",
6260
6223
  "required": [
6261
6224
  "group_chunks",
@@ -6265,7 +6228,7 @@
6265
6228
  "group_chunks": {
6266
6229
  "type": "array",
6267
6230
  "items": {
6268
- "$ref": "#/components/schemas/GroupScoreChunkDTO"
6231
+ "$ref": "#/components/schemas/GroupScoreChunk"
6269
6232
  }
6270
6233
  },
6271
6234
  "total_chunk_pages": {
@@ -6274,17 +6237,7 @@
6274
6237
  }
6275
6238
  }
6276
6239
  },
6277
- "SearchOverGroupsResponseTypes": {
6278
- "oneOf": [
6279
- {
6280
- "$ref": "#/components/schemas/SearchOverGroupsResponseBody"
6281
- },
6282
- {
6283
- "$ref": "#/components/schemas/SearchOverGroupsSlimChunksResponseBody"
6284
- }
6285
- ]
6286
- },
6287
- "SearchOverGroupsSlimChunksResponseBody": {
6240
+ "SearchOverGroupsSlimResults": {
6288
6241
  "type": "object",
6289
6242
  "required": [
6290
6243
  "group_chunks",
@@ -6294,7 +6247,7 @@
6294
6247
  "group_chunks": {
6295
6248
  "type": "array",
6296
6249
  "items": {
6297
- "$ref": "#/components/schemas/GroupSlimChunksDTO"
6250
+ "$ref": "#/components/schemas/GroupScoreSlimChunks"
6298
6251
  }
6299
6252
  },
6300
6253
  "total_chunk_pages": {
@@ -6406,15 +6359,51 @@
6406
6359
  }
6407
6360
  }
6408
6361
  },
6409
- "SearchWithinGroupResponseTypes": {
6410
- "oneOf": [
6411
- {
6412
- "$ref": "#/components/schemas/SearchGroupsResult"
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
+ }
6413
6375
  },
6414
- {
6415
- "$ref": "#/components/schemas/SearchGroupSlimChunksResult"
6376
+ "group": {
6377
+ "$ref": "#/components/schemas/ChunkGroup"
6378
+ },
6379
+ "total_pages": {
6380
+ "type": "integer",
6381
+ "format": "int64"
6416
6382
  }
6417
- ]
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
+ }
6418
6407
  },
6419
6408
  "SetUserApiKeyRequest": {
6420
6409
  "type": "object",
@@ -6556,6 +6545,79 @@
6556
6545
  "weight": 0.5
6557
6546
  }
6558
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
+ },
6559
6621
  "SlimGroup": {
6560
6622
  "type": "object",
6561
6623
  "required": [