trieve_ruby_client 0.6.0 → 0.6.7
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 +15 -19
- data/docs/BookmarkData.md +1 -1
- data/docs/ChunkApi.md +9 -9
- data/docs/ChunkData.md +2 -0
- data/docs/ChunkGroupApi.md +14 -14
- data/docs/ChunkMetadataWithScore.md +44 -0
- data/docs/CreateChunkGroupData.md +1 -1
- data/docs/FileApi.md +1 -1
- data/docs/GetEventsData.md +1 -1
- data/docs/GroupScoreChunk.md +24 -0
- data/docs/GroupScoreSlimChunks.md +20 -0
- data/docs/ScoreChunkDTO.md +1 -1
- data/docs/SearchOverGroupsResults.md +20 -0
- data/docs/SearchOverGroupsSlimResults.md +20 -0
- data/docs/SearchWithinGroupResults.md +22 -0
- data/docs/SearchWithinGroupSlimResults.md +22 -0
- data/docs/SlimChunkMetadataWithScore.md +38 -0
- data/docs/UpdateChunkByTrackingIdData.md +2 -0
- data/docs/UpdateChunkData.md +2 -0
- data/docs/UploadFileData.md +2 -2
- data/docs/UserApi.md +2 -2
- data/lib/trieve_ruby_client/api/auth_api.rb +1 -1
- data/lib/trieve_ruby_client/api/chunk_api.rb +9 -9
- data/lib/trieve_ruby_client/api/chunk_group_api.rb +10 -10
- data/lib/trieve_ruby_client/api/dataset_api.rb +1 -1
- data/lib/trieve_ruby_client/api/events_api.rb +1 -1
- data/lib/trieve_ruby_client/api/file_api.rb +1 -1
- 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 +1 -1
- 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 +13 -2
- data/lib/trieve_ruby_client/models/chunk_filter.rb +1 -1
- data/lib/trieve_ruby_client/models/chunk_group.rb +1 -1
- 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_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 +2 -8
- 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 +259 -0
- data/lib/trieve_ruby_client/models/group_score_slim_chunks.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 +1 -1
- data/lib/trieve_ruby_client/models/range_condition.rb +1 -1
- data/lib/trieve_ruby_client/models/recommend_chunks_request.rb +1 -1
- data/lib/trieve_ruby_client/models/recommend_group_chunks_request.rb +1 -1
- 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 +1 -1
- data/lib/trieve_ruby_client/models/search_chunk_query_response_body.rb +1 -1
- data/lib/trieve_ruby_client/models/search_over_groups_data.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_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 +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 +13 -2
- data/lib/trieve_ruby_client/models/update_chunk_data.rb +13 -2
- data/lib/trieve_ruby_client/models/update_chunk_group_data.rb +1 -1
- 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 +1 -1
- 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 +13 -19
- 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 +9 -13
- data/openapi-generator.yaml +1 -1
- data/openapi.json +279 -198
- 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/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.6.0.gem +0 -0
- data/trieve_ruby_client-0.6.2.gem +0 -0
- data/trieve_ruby_client.gemspec +1 -1
- metadata +36 -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.
|
15
|
+
"version": "0.6.7"
|
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
|
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
|
-
"
|
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
|
}
|
@@ -480,7 +496,7 @@
|
|
480
496
|
"chunk"
|
481
497
|
],
|
482
498
|
"summary": "Search",
|
483
|
-
"description": "Search\n\nThis route provides the primary search functionality for the API. It can be used to search for chunks by semantic similarity, full-text similarity, or a combination of both. Results' `chunk_html` values will be modified with `<b>` tags for sub-sentence highlighting.",
|
499
|
+
"description": "Search\n\nThis route provides the primary search functionality for the API. It can be used to search for chunks by semantic similarity, full-text similarity, or a combination of both. Results' `chunk_html` values will be modified with `<b><mark>` tags for sub-sentence highlighting.",
|
484
500
|
"operationId": "search_chunk",
|
485
501
|
"parameters": [
|
486
502
|
{
|
@@ -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/
|
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",
|
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",
|
1149
1185
|
"content": {
|
1150
1186
|
"application/json": {
|
1151
1187
|
"schema": {
|
1152
|
-
"$ref": "#/components/schemas/
|
1188
|
+
"$ref": "#/components/schemas/SearchOverGroupsSlimResults"
|
1153
1189
|
}
|
1154
1190
|
}
|
1155
1191
|
}
|
1156
1192
|
},
|
1157
1193
|
"400": {
|
1158
|
-
"description": "Service error relating to
|
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
|
-
"
|
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",
|
1271
1323
|
"content": {
|
1272
1324
|
"application/json": {
|
1273
1325
|
"schema": {
|
1274
|
-
"$ref": "#/components/schemas/
|
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",
|
1333
|
+
"content": {
|
1334
|
+
"application/json": {
|
1335
|
+
"schema": {
|
1336
|
+
"$ref": "#/components/schemas/SearchWithinGroupSlimResults"
|
1275
1337
|
}
|
1276
1338
|
}
|
1277
1339
|
}
|
@@ -3672,36 +3734,32 @@
|
|
3672
3734
|
]
|
3673
3735
|
}
|
3674
3736
|
},
|
3675
|
-
"/api/user/
|
3676
|
-
"
|
3737
|
+
"/api/user/api_key": {
|
3738
|
+
"post": {
|
3677
3739
|
"tags": [
|
3678
3740
|
"user"
|
3679
3741
|
],
|
3680
|
-
"summary": "
|
3681
|
-
"description": "
|
3682
|
-
"operationId": "
|
3683
|
-
"
|
3684
|
-
|
3685
|
-
|
3686
|
-
"
|
3687
|
-
|
3688
|
-
|
3689
|
-
|
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
|
-
"
|
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/
|
3730
|
-
"
|
3787
|
+
"/api/user/api_key/{api_key_id}": {
|
3788
|
+
"delete": {
|
3731
3789
|
"tags": [
|
3732
3790
|
"user"
|
3733
3791
|
],
|
3734
|
-
"summary": "
|
3735
|
-
"description": "
|
3736
|
-
"operationId": "
|
3737
|
-
"
|
3738
|
-
|
3739
|
-
|
3740
|
-
"
|
3741
|
-
|
3742
|
-
|
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
|
-
|
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
|
-
"
|
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/
|
4009
|
+
"$ref": "#/components/schemas/ChunkMetadata"
|
3948
4010
|
}
|
3949
4011
|
},
|
3950
4012
|
"group": {
|
@@ -4011,6 +4073,11 @@
|
|
4011
4073
|
"description": "Chunk_vector is a vector of floats which can be used instead of generating a new embedding. This is useful for when you are using a pre-embedded dataset. If this is not provided, the innerText of the chunk_html will be used to create the embedding.",
|
4012
4074
|
"nullable": true
|
4013
4075
|
},
|
4076
|
+
"convert_html_to_text": {
|
4077
|
+
"type": "boolean",
|
4078
|
+
"description": "Convert HTML to raw text before processing to avoid adding noise to the vector embeddings. By default this is true. If you are using HTML content that you want to be included in the vector embeddings, set this to false.",
|
4079
|
+
"nullable": true
|
4080
|
+
},
|
4014
4081
|
"file_id": {
|
4015
4082
|
"type": "string",
|
4016
4083
|
"format": "uuid",
|
@@ -4374,15 +4441,16 @@
|
|
4374
4441
|
"weight": 0.5
|
4375
4442
|
}
|
4376
4443
|
},
|
4377
|
-
"
|
4444
|
+
"ChunkMetadataWithScore": {
|
4378
4445
|
"type": "object",
|
4379
4446
|
"required": [
|
4380
4447
|
"id",
|
4381
4448
|
"content",
|
4382
|
-
"qdrant_point_id",
|
4383
4449
|
"created_at",
|
4384
4450
|
"updated_at",
|
4385
|
-
"
|
4451
|
+
"dataset_id",
|
4452
|
+
"weight",
|
4453
|
+
"score"
|
4386
4454
|
],
|
4387
4455
|
"properties": {
|
4388
4456
|
"chunk_html": {
|
@@ -4396,14 +4464,9 @@
|
|
4396
4464
|
"type": "string",
|
4397
4465
|
"format": "date-time"
|
4398
4466
|
},
|
4399
|
-
"
|
4400
|
-
"type": "string",
|
4401
|
-
"format": "uuid",
|
4402
|
-
"nullable": true
|
4403
|
-
},
|
4404
|
-
"file_name": {
|
4467
|
+
"dataset_id": {
|
4405
4468
|
"type": "string",
|
4406
|
-
"
|
4469
|
+
"format": "uuid"
|
4407
4470
|
},
|
4408
4471
|
"id": {
|
4409
4472
|
"type": "string",
|
@@ -4418,7 +4481,12 @@
|
|
4418
4481
|
},
|
4419
4482
|
"qdrant_point_id": {
|
4420
4483
|
"type": "string",
|
4421
|
-
"format": "uuid"
|
4484
|
+
"format": "uuid",
|
4485
|
+
"nullable": true
|
4486
|
+
},
|
4487
|
+
"score": {
|
4488
|
+
"type": "number",
|
4489
|
+
"format": "float"
|
4422
4490
|
},
|
4423
4491
|
"tag_set": {
|
4424
4492
|
"type": "string",
|
@@ -4446,14 +4514,14 @@
|
|
4446
4514
|
"chunk_html": "<p>Hello, world!</p>",
|
4447
4515
|
"content": "Hello, world!",
|
4448
4516
|
"created_at": "2021-01-01T00:00:00",
|
4449
|
-
"
|
4450
|
-
"file_name": "file.txt",
|
4517
|
+
"dataset_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
|
4451
4518
|
"id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
|
4452
4519
|
"link": "https://trieve.ai",
|
4453
4520
|
"metadata": {
|
4454
4521
|
"key": "value"
|
4455
4522
|
},
|
4456
4523
|
"qdrant_point_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
|
4524
|
+
"score": 0.9,
|
4457
4525
|
"tag_set": "tag1,tag2",
|
4458
4526
|
"time_stamp": "2021-01-01T00:00:00",
|
4459
4527
|
"tracking_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
|
@@ -4604,13 +4672,13 @@
|
|
4604
4672
|
"CreateChunkGroupData": {
|
4605
4673
|
"type": "object",
|
4606
4674
|
"required": [
|
4607
|
-
"name"
|
4608
|
-
"description"
|
4675
|
+
"name"
|
4609
4676
|
],
|
4610
4677
|
"properties": {
|
4611
4678
|
"description": {
|
4612
4679
|
"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."
|
4680
|
+
"description": "Description to assign to the chunk_group. Convenience field for you to avoid having to remember what the group is for.",
|
4681
|
+
"nullable": true
|
4614
4682
|
},
|
4615
4683
|
"metadata": {
|
4616
4684
|
"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 +5333,7 @@
|
|
5265
5333
|
"items": {
|
5266
5334
|
"type": "string"
|
5267
5335
|
},
|
5268
|
-
"description": "The types of events to get. Any combination of file_uploaded,
|
5336
|
+
"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
5337
|
"nullable": true
|
5270
5338
|
},
|
5271
5339
|
"page": {
|
@@ -5285,7 +5353,7 @@
|
|
5285
5353
|
"page": 1,
|
5286
5354
|
"page_size": 10,
|
5287
5355
|
"type": [
|
5288
|
-
"
|
5356
|
+
"chunk_action_failed"
|
5289
5357
|
]
|
5290
5358
|
}
|
5291
5359
|
},
|
@@ -5323,7 +5391,7 @@
|
|
5323
5391
|
}
|
5324
5392
|
}
|
5325
5393
|
},
|
5326
|
-
"
|
5394
|
+
"GroupScoreChunk": {
|
5327
5395
|
"type": "object",
|
5328
5396
|
"required": [
|
5329
5397
|
"group_id",
|
@@ -5334,6 +5402,10 @@
|
|
5334
5402
|
"type": "string",
|
5335
5403
|
"format": "uuid"
|
5336
5404
|
},
|
5405
|
+
"group_name": {
|
5406
|
+
"type": "string",
|
5407
|
+
"nullable": true
|
5408
|
+
},
|
5337
5409
|
"group_tracking_id": {
|
5338
5410
|
"type": "string",
|
5339
5411
|
"nullable": true
|
@@ -5368,7 +5440,7 @@
|
|
5368
5440
|
]
|
5369
5441
|
}
|
5370
5442
|
},
|
5371
|
-
"
|
5443
|
+
"GroupScoreSlimChunks": {
|
5372
5444
|
"type": "object",
|
5373
5445
|
"required": [
|
5374
5446
|
"group_id",
|
@@ -5664,12 +5736,6 @@
|
|
5664
5736
|
}
|
5665
5737
|
]
|
5666
5738
|
},
|
5667
|
-
"RecommendChunkMetadata": {
|
5668
|
-
"type": "array",
|
5669
|
-
"items": {
|
5670
|
-
"$ref": "#/components/schemas/ChunkMetadata"
|
5671
|
-
}
|
5672
|
-
},
|
5673
5739
|
"RecommendChunksRequest": {
|
5674
5740
|
"type": "object",
|
5675
5741
|
"properties": {
|
@@ -5734,32 +5800,6 @@
|
|
5734
5800
|
}
|
5735
5801
|
}
|
5736
5802
|
},
|
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
5803
|
"RecommendGroupChunksRequest": {
|
5764
5804
|
"type": "object",
|
5765
5805
|
"properties": {
|
@@ -5831,18 +5871,6 @@
|
|
5831
5871
|
}
|
5832
5872
|
}
|
5833
5873
|
},
|
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
5874
|
"RegenerateMessageData": {
|
5847
5875
|
"type": "object",
|
5848
5876
|
"required": [
|
@@ -5899,7 +5927,7 @@
|
|
5899
5927
|
"metadata": {
|
5900
5928
|
"type": "array",
|
5901
5929
|
"items": {
|
5902
|
-
"$ref": "#/components/schemas/
|
5930
|
+
"$ref": "#/components/schemas/ChunkMetadata"
|
5903
5931
|
}
|
5904
5932
|
},
|
5905
5933
|
"score": {
|
@@ -6124,62 +6152,6 @@
|
|
6124
6152
|
}
|
6125
6153
|
}
|
6126
6154
|
},
|
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
6155
|
"SearchOverGroupsData": {
|
6184
6156
|
"type": "object",
|
6185
6157
|
"required": [
|
@@ -6255,7 +6227,7 @@
|
|
6255
6227
|
}
|
6256
6228
|
}
|
6257
6229
|
},
|
6258
|
-
"
|
6230
|
+
"SearchOverGroupsResults": {
|
6259
6231
|
"type": "object",
|
6260
6232
|
"required": [
|
6261
6233
|
"group_chunks",
|
@@ -6265,7 +6237,7 @@
|
|
6265
6237
|
"group_chunks": {
|
6266
6238
|
"type": "array",
|
6267
6239
|
"items": {
|
6268
|
-
"$ref": "#/components/schemas/
|
6240
|
+
"$ref": "#/components/schemas/GroupScoreChunk"
|
6269
6241
|
}
|
6270
6242
|
},
|
6271
6243
|
"total_chunk_pages": {
|
@@ -6274,17 +6246,7 @@
|
|
6274
6246
|
}
|
6275
6247
|
}
|
6276
6248
|
},
|
6277
|
-
"
|
6278
|
-
"oneOf": [
|
6279
|
-
{
|
6280
|
-
"$ref": "#/components/schemas/SearchOverGroupsResponseBody"
|
6281
|
-
},
|
6282
|
-
{
|
6283
|
-
"$ref": "#/components/schemas/SearchOverGroupsSlimChunksResponseBody"
|
6284
|
-
}
|
6285
|
-
]
|
6286
|
-
},
|
6287
|
-
"SearchOverGroupsSlimChunksResponseBody": {
|
6249
|
+
"SearchOverGroupsSlimResults": {
|
6288
6250
|
"type": "object",
|
6289
6251
|
"required": [
|
6290
6252
|
"group_chunks",
|
@@ -6294,7 +6256,7 @@
|
|
6294
6256
|
"group_chunks": {
|
6295
6257
|
"type": "array",
|
6296
6258
|
"items": {
|
6297
|
-
"$ref": "#/components/schemas/
|
6259
|
+
"$ref": "#/components/schemas/GroupScoreSlimChunks"
|
6298
6260
|
}
|
6299
6261
|
},
|
6300
6262
|
"total_chunk_pages": {
|
@@ -6406,15 +6368,51 @@
|
|
6406
6368
|
}
|
6407
6369
|
}
|
6408
6370
|
},
|
6409
|
-
"
|
6410
|
-
"
|
6411
|
-
|
6412
|
-
|
6371
|
+
"SearchWithinGroupResults": {
|
6372
|
+
"type": "object",
|
6373
|
+
"required": [
|
6374
|
+
"bookmarks",
|
6375
|
+
"group",
|
6376
|
+
"total_pages"
|
6377
|
+
],
|
6378
|
+
"properties": {
|
6379
|
+
"bookmarks": {
|
6380
|
+
"type": "array",
|
6381
|
+
"items": {
|
6382
|
+
"$ref": "#/components/schemas/ScoreChunkDTO"
|
6383
|
+
}
|
6413
6384
|
},
|
6414
|
-
{
|
6415
|
-
"$ref": "#/components/schemas/
|
6385
|
+
"group": {
|
6386
|
+
"$ref": "#/components/schemas/ChunkGroup"
|
6387
|
+
},
|
6388
|
+
"total_pages": {
|
6389
|
+
"type": "integer",
|
6390
|
+
"format": "int64"
|
6416
6391
|
}
|
6417
|
-
|
6392
|
+
}
|
6393
|
+
},
|
6394
|
+
"SearchWithinGroupSlimResults": {
|
6395
|
+
"type": "object",
|
6396
|
+
"required": [
|
6397
|
+
"bookmarks",
|
6398
|
+
"group",
|
6399
|
+
"total_pages"
|
6400
|
+
],
|
6401
|
+
"properties": {
|
6402
|
+
"bookmarks": {
|
6403
|
+
"type": "array",
|
6404
|
+
"items": {
|
6405
|
+
"$ref": "#/components/schemas/ScoreSlimChunks"
|
6406
|
+
}
|
6407
|
+
},
|
6408
|
+
"group": {
|
6409
|
+
"$ref": "#/components/schemas/ChunkGroup"
|
6410
|
+
},
|
6411
|
+
"total_pages": {
|
6412
|
+
"type": "integer",
|
6413
|
+
"format": "int64"
|
6414
|
+
}
|
6415
|
+
}
|
6418
6416
|
},
|
6419
6417
|
"SetUserApiKeyRequest": {
|
6420
6418
|
"type": "object",
|
@@ -6556,6 +6554,79 @@
|
|
6556
6554
|
"weight": 0.5
|
6557
6555
|
}
|
6558
6556
|
},
|
6557
|
+
"SlimChunkMetadataWithScore": {
|
6558
|
+
"type": "object",
|
6559
|
+
"required": [
|
6560
|
+
"id",
|
6561
|
+
"created_at",
|
6562
|
+
"updated_at",
|
6563
|
+
"weight",
|
6564
|
+
"score"
|
6565
|
+
],
|
6566
|
+
"properties": {
|
6567
|
+
"created_at": {
|
6568
|
+
"type": "string",
|
6569
|
+
"format": "date-time"
|
6570
|
+
},
|
6571
|
+
"id": {
|
6572
|
+
"type": "string",
|
6573
|
+
"format": "uuid"
|
6574
|
+
},
|
6575
|
+
"link": {
|
6576
|
+
"type": "string",
|
6577
|
+
"nullable": true
|
6578
|
+
},
|
6579
|
+
"metadata": {
|
6580
|
+
"nullable": true
|
6581
|
+
},
|
6582
|
+
"qdrant_point_id": {
|
6583
|
+
"type": "string",
|
6584
|
+
"format": "uuid",
|
6585
|
+
"nullable": true
|
6586
|
+
},
|
6587
|
+
"score": {
|
6588
|
+
"type": "number",
|
6589
|
+
"format": "float"
|
6590
|
+
},
|
6591
|
+
"tag_set": {
|
6592
|
+
"type": "string",
|
6593
|
+
"nullable": true
|
6594
|
+
},
|
6595
|
+
"time_stamp": {
|
6596
|
+
"type": "string",
|
6597
|
+
"format": "date-time",
|
6598
|
+
"nullable": true
|
6599
|
+
},
|
6600
|
+
"tracking_id": {
|
6601
|
+
"type": "string",
|
6602
|
+
"nullable": true
|
6603
|
+
},
|
6604
|
+
"updated_at": {
|
6605
|
+
"type": "string",
|
6606
|
+
"format": "date-time"
|
6607
|
+
},
|
6608
|
+
"weight": {
|
6609
|
+
"type": "number",
|
6610
|
+
"format": "double"
|
6611
|
+
}
|
6612
|
+
},
|
6613
|
+
"example": {
|
6614
|
+
"created_at": "2021-01-01T00:00:00",
|
6615
|
+
"dataset_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
|
6616
|
+
"id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
|
6617
|
+
"link": "https://trieve.ai",
|
6618
|
+
"metadata": {
|
6619
|
+
"key": "value"
|
6620
|
+
},
|
6621
|
+
"qdrant_point_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
|
6622
|
+
"score": 0.9,
|
6623
|
+
"tag_set": "tag1,tag2",
|
6624
|
+
"time_stamp": "2021-01-01T00:00:00",
|
6625
|
+
"tracking_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
|
6626
|
+
"updated_at": "2021-01-01T00:00:00",
|
6627
|
+
"weight": 0.5
|
6628
|
+
}
|
6629
|
+
},
|
6559
6630
|
"SlimGroup": {
|
6560
6631
|
"type": "object",
|
6561
6632
|
"required": [
|
@@ -6804,6 +6875,11 @@
|
|
6804
6875
|
"description": "HTML content of the chunk you want to update. This can also be plaintext. The innerText of the HTML will be used to create the embedding vector. The point of using HTML is for convienience, as some users have applications where users submit HTML content. If no chunk_html is provided, the existing chunk_html will be used.",
|
6805
6876
|
"nullable": true
|
6806
6877
|
},
|
6878
|
+
"convert_html_to_text": {
|
6879
|
+
"type": "boolean",
|
6880
|
+
"description": "Convert HTML to raw text before processing to avoid adding noise to the vector embeddings. By default this is true. If you are using HTML content that you want to be included in the vector embeddings, set this to false.",
|
6881
|
+
"nullable": true
|
6882
|
+
},
|
6807
6883
|
"group_ids": {
|
6808
6884
|
"type": "array",
|
6809
6885
|
"items": {
|
@@ -6861,6 +6937,11 @@
|
|
6861
6937
|
"description": "Id of the chunk you want to update. You can provide either the chunk_id or the tracking_id. If both are provided, the chunk_id will be used.",
|
6862
6938
|
"nullable": true
|
6863
6939
|
},
|
6940
|
+
"convert_html_to_text": {
|
6941
|
+
"type": "boolean",
|
6942
|
+
"description": "Convert HTML to raw text before processing to avoid adding noise to the vector embeddings. By default this is true. If you are using HTML content that you want to be included in the vector embeddings, set this to false.",
|
6943
|
+
"nullable": true
|
6944
|
+
},
|
6864
6945
|
"group_ids": {
|
6865
6946
|
"type": "array",
|
6866
6947
|
"items": {
|
@@ -7101,8 +7182,7 @@
|
|
7101
7182
|
"type": "object",
|
7102
7183
|
"required": [
|
7103
7184
|
"base64_file",
|
7104
|
-
"file_name"
|
7105
|
-
"file_mime_type"
|
7185
|
+
"file_name"
|
7106
7186
|
],
|
7107
7187
|
"properties": {
|
7108
7188
|
"base64_file": {
|
@@ -7119,14 +7199,15 @@
|
|
7119
7199
|
"description": "Description is an optional convience field so you do not have to remember what the file contains or is about. It will be included on the group resulting from the file which will hold its chunk.",
|
7120
7200
|
"nullable": true
|
7121
7201
|
},
|
7122
|
-
"file_mime_type": {
|
7123
|
-
"type": "string",
|
7124
|
-
"description": "MIME type of the file being uploaded."
|
7125
|
-
},
|
7126
7202
|
"file_name": {
|
7127
7203
|
"type": "string",
|
7128
7204
|
"description": "Name of the file being uploaded, including the extension."
|
7129
7205
|
},
|
7206
|
+
"group_tracking_id": {
|
7207
|
+
"type": "string",
|
7208
|
+
"description": "Group tracking id is an optional field which allows you to specify the tracking id of the group that is created from the file. Chunks created will be created with the tracking id of `group_tracking_id|<index of chunk>`",
|
7209
|
+
"nullable": true
|
7210
|
+
},
|
7130
7211
|
"link": {
|
7131
7212
|
"type": "string",
|
7132
7213
|
"description": "Link to the file. This can also be any string. This can be used to filter when searching for the file's resulting chunks. The link value will not affect embedding creation.",
|