trieve_ruby_client 0.5.7 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +6 -6
- data/docs/AddChunkToGroupData.md +4 -2
- data/docs/AuthApi.md +12 -6
- data/docs/ChunkGroup.md +4 -0
- data/docs/ChunkGroupApi.md +13 -13
- data/docs/CreateChunkGroupData.md +4 -0
- data/docs/DatasetApi.md +6 -6
- data/docs/EventsApi.md +1 -1
- data/docs/FileApi.md +2 -2
- data/docs/RecommendChunksRequest.md +3 -1
- data/docs/RecommendGroupChunksRequest.md +34 -0
- data/docs/SearchChunkData.md +1 -3
- data/docs/SearchOverGroupsData.md +3 -5
- data/docs/SearchWithinGroupData.md +1 -3
- data/docs/UpdateChunkGroupData.md +4 -0
- data/docs/UpdateGroupByTrackingIDData.md +4 -0
- data/lib/trieve_ruby_client/api/auth_api.rb +13 -11
- data/lib/trieve_ruby_client/api/chunk_api.rb +1 -1
- data/lib/trieve_ruby_client/api/chunk_group_api.rb +18 -18
- 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 +1 -1
- 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 +1 -1
- data/lib/trieve_ruby_client/models/bookmark_group_result.rb +1 -1
- data/lib/trieve_ruby_client/models/chat_message_proxy.rb +1 -1
- data/lib/trieve_ruby_client/models/chunk_data.rb +1 -1
- data/lib/trieve_ruby_client/models/chunk_filter.rb +1 -1
- data/lib/trieve_ruby_client/models/chunk_group.rb +22 -2
- data/lib/trieve_ruby_client/models/chunk_group_and_file.rb +1 -1
- data/lib/trieve_ruby_client/models/chunk_metadata.rb +1 -1
- data/lib/trieve_ruby_client/models/chunk_metadata_with_file_data.rb +1 -1
- data/lib/trieve_ruby_client/models/client_dataset_configuration.rb +1 -1
- data/lib/trieve_ruby_client/models/create_chunk_data.rb +1 -1
- data/lib/trieve_ruby_client/models/create_chunk_group_data.rb +26 -2
- data/lib/trieve_ruby_client/models/create_dataset_request.rb +1 -1
- data/lib/trieve_ruby_client/models/create_message_data.rb +1 -1
- data/lib/trieve_ruby_client/models/create_organization_data.rb +1 -1
- data/lib/trieve_ruby_client/models/create_topic_data.rb +1 -1
- data/lib/trieve_ruby_client/models/dataset.rb +1 -1
- data/lib/trieve_ruby_client/models/dataset_and_usage.rb +1 -1
- data/lib/trieve_ruby_client/models/dataset_dto.rb +1 -1
- data/lib/trieve_ruby_client/models/dataset_usage_count.rb +1 -1
- data/lib/trieve_ruby_client/models/delete_topic_data.rb +1 -1
- data/lib/trieve_ruby_client/models/delete_user_api_key_request.rb +1 -1
- data/lib/trieve_ruby_client/models/edit_message_data.rb +1 -1
- data/lib/trieve_ruby_client/models/error_response_body.rb +1 -1
- data/lib/trieve_ruby_client/models/event.rb +1 -1
- data/lib/trieve_ruby_client/models/event_return.rb +1 -1
- data/lib/trieve_ruby_client/models/field_condition.rb +1 -1
- data/lib/trieve_ruby_client/models/file.rb +1 -1
- data/lib/trieve_ruby_client/models/file_dto.rb +1 -1
- data/lib/trieve_ruby_client/models/generate_chunks_request.rb +1 -1
- data/lib/trieve_ruby_client/models/get_events_data.rb +1 -1
- data/lib/trieve_ruby_client/models/get_groups_for_chunks_data.rb +1 -1
- data/lib/trieve_ruby_client/models/group_data.rb +1 -1
- data/lib/trieve_ruby_client/models/group_score_chunk_dto.rb +1 -1
- 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 +1 -1
- 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_slim_chunks_response_body.rb +1 -1
- 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/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_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 +2 -2
- data/openapi-generator.yaml +1 -1
- data/openapi.json +176 -177
- data/spec/models/recommend_group_chunks_request_spec.rb +84 -0
- data/spec/spec_helper.rb +1 -1
- data/trieve_ruby_client-0.5.7.gem +0 -0
- data/trieve_ruby_client.gemspec +1 -1
- metadata +7 -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.0"
|
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
42
|
"schema": {
|
43
|
-
"
|
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,
|
63
|
+
"schema": {
|
64
|
+
"type": "string",
|
65
|
+
"format": "uuid",
|
66
|
+
"nullable": true
|
44
67
|
}
|
45
68
|
}
|
46
69
|
],
|
@@ -557,6 +580,7 @@
|
|
557
580
|
}
|
558
581
|
}
|
559
582
|
},
|
583
|
+
"deprecated": true,
|
560
584
|
"security": [
|
561
585
|
{
|
562
586
|
"ApiKey": [
|
@@ -1174,7 +1198,7 @@
|
|
1174
1198
|
"content": {
|
1175
1199
|
"application/json": {
|
1176
1200
|
"schema": {
|
1177
|
-
"$ref": "#/components/schemas/
|
1201
|
+
"$ref": "#/components/schemas/RecommendGroupChunksRequest"
|
1178
1202
|
}
|
1179
1203
|
}
|
1180
1204
|
},
|
@@ -1278,7 +1302,7 @@
|
|
1278
1302
|
"chunk_group"
|
1279
1303
|
],
|
1280
1304
|
"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.",
|
1305
|
+
"description": "Get Chunks in Group by Tracking ID\n\nRoute to get all chunks for a group. The response is paginated, with each page containing 10 chunks. Support for custom page size is coming soon. Page is 1-indexed.",
|
1282
1306
|
"operationId": "get_chunks_in_group_by_tracking_id",
|
1283
1307
|
"parameters": [
|
1284
1308
|
{
|
@@ -1453,6 +1477,7 @@
|
|
1453
1477
|
}
|
1454
1478
|
}
|
1455
1479
|
},
|
1480
|
+
"deprecated": true,
|
1456
1481
|
"security": [
|
1457
1482
|
{
|
1458
1483
|
"ApiKey": [
|
@@ -1515,6 +1540,7 @@
|
|
1515
1540
|
}
|
1516
1541
|
}
|
1517
1542
|
},
|
1543
|
+
"deprecated": true,
|
1518
1544
|
"security": [
|
1519
1545
|
{
|
1520
1546
|
"ApiKey": [
|
@@ -1638,7 +1664,7 @@
|
|
1638
1664
|
"chunk_group"
|
1639
1665
|
],
|
1640
1666
|
"summary": "Delete Group",
|
1641
|
-
"description": "Delete Group\n\nThis will delete a chunk_group.
|
1667
|
+
"description": "Delete Group\n\nThis will delete a chunk_group. If you set delete_chunks to true, it will also delete the chunks within the group.",
|
1642
1668
|
"operationId": "delete_chunk_group",
|
1643
1669
|
"parameters": [
|
1644
1670
|
{
|
@@ -1700,7 +1726,7 @@
|
|
1700
1726
|
"chunk_group"
|
1701
1727
|
],
|
1702
1728
|
"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.
|
1729
|
+
"description": "Get Chunks in Group\n\nRoute to get all chunks for a group. The response is paginated, with each page containing 10 chunks. Page is 1-indexed.",
|
1704
1730
|
"operationId": "get_chunks_in_group",
|
1705
1731
|
"parameters": [
|
1706
1732
|
{
|
@@ -2041,7 +2067,7 @@
|
|
2041
2067
|
{
|
2042
2068
|
"name": "page",
|
2043
2069
|
"in": "path",
|
2044
|
-
"description": "The page of groups to fetch.
|
2070
|
+
"description": "The page of groups to fetch. Page is 1-indexed.",
|
2045
2071
|
"required": true,
|
2046
2072
|
"schema": {
|
2047
2073
|
"type": "integer",
|
@@ -2220,9 +2246,9 @@
|
|
2220
2246
|
"operationId": "delete_dataset",
|
2221
2247
|
"parameters": [
|
2222
2248
|
{
|
2223
|
-
"name": "TR-
|
2249
|
+
"name": "TR-Dataset",
|
2224
2250
|
"in": "header",
|
2225
|
-
"description": "The
|
2251
|
+
"description": "The dataset id to use for the request",
|
2226
2252
|
"required": true,
|
2227
2253
|
"schema": {
|
2228
2254
|
"type": "string"
|
@@ -2269,7 +2295,7 @@
|
|
2269
2295
|
"events"
|
2270
2296
|
],
|
2271
2297
|
"summary": "Get events for the dataset",
|
2272
|
-
"description": "Get events for the dataset\n\nGet events for the
|
2298
|
+
"description": "Get events for the dataset\n\nGet events for the dataset specified by the TR-Dataset header.",
|
2273
2299
|
"operationId": "get_events",
|
2274
2300
|
"parameters": [
|
2275
2301
|
{
|
@@ -2391,7 +2417,7 @@
|
|
2391
2417
|
"file"
|
2392
2418
|
],
|
2393
2419
|
"summary": "Get File",
|
2394
|
-
"description": "Get File\n\nDownload a file
|
2420
|
+
"description": "Get File\n\nDownload a file based on its id.",
|
2395
2421
|
"operationId": "get_file_handler",
|
2396
2422
|
"parameters": [
|
2397
2423
|
{
|
@@ -2449,7 +2475,7 @@
|
|
2449
2475
|
"file"
|
2450
2476
|
],
|
2451
2477
|
"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
|
2478
|
+
"description": "Delete File\n\nDelete a file from S3 attached to the server based on its id. This will disassociate chunks from the file, but only delete them all together if you specify delete_chunks to be true. Auth'ed user must be an admin or owner of the dataset's organization to delete a file.",
|
2453
2479
|
"operationId": "delete_file_handler",
|
2454
2480
|
"parameters": [
|
2455
2481
|
{
|
@@ -3755,14 +3781,17 @@
|
|
3755
3781
|
"schemas": {
|
3756
3782
|
"AddChunkToGroupData": {
|
3757
3783
|
"type": "object",
|
3758
|
-
"required": [
|
3759
|
-
"chunk_id"
|
3760
|
-
],
|
3761
3784
|
"properties": {
|
3762
3785
|
"chunk_id": {
|
3763
3786
|
"type": "string",
|
3764
3787
|
"format": "uuid",
|
3765
|
-
"description": "Id of the chunk to make a member of the group."
|
3788
|
+
"description": "Id of the chunk to make a member of the group.",
|
3789
|
+
"nullable": true
|
3790
|
+
},
|
3791
|
+
"tracking_id": {
|
3792
|
+
"type": "string",
|
3793
|
+
"description": "Tracking Id of the chunk to make a member of the group.",
|
3794
|
+
"nullable": true
|
3766
3795
|
}
|
3767
3796
|
}
|
3768
3797
|
},
|
@@ -4181,9 +4210,16 @@
|
|
4181
4210
|
"type": "string",
|
4182
4211
|
"format": "uuid"
|
4183
4212
|
},
|
4213
|
+
"metadata": {
|
4214
|
+
"nullable": true
|
4215
|
+
},
|
4184
4216
|
"name": {
|
4185
4217
|
"type": "string"
|
4186
4218
|
},
|
4219
|
+
"tag_set": {
|
4220
|
+
"type": "string",
|
4221
|
+
"nullable": true
|
4222
|
+
},
|
4187
4223
|
"tracking_id": {
|
4188
4224
|
"type": "string",
|
4189
4225
|
"nullable": true
|
@@ -4576,10 +4612,22 @@
|
|
4576
4612
|
"type": "string",
|
4577
4613
|
"description": "Description to assign to the chunk_group. Convenience field for you to avoid having to remember what the group is for."
|
4578
4614
|
},
|
4615
|
+
"metadata": {
|
4616
|
+
"description": "Optional metadata to assign to the chunk_group. This is a JSON object that can store any additional information you want to associate with the chunks inside of the chunk_group.",
|
4617
|
+
"nullable": true
|
4618
|
+
},
|
4579
4619
|
"name": {
|
4580
4620
|
"type": "string",
|
4581
4621
|
"description": "Name to assign to the chunk_group. Does not need to be unique."
|
4582
4622
|
},
|
4623
|
+
"tag_set": {
|
4624
|
+
"type": "array",
|
4625
|
+
"items": {
|
4626
|
+
"type": "string"
|
4627
|
+
},
|
4628
|
+
"description": "Optional tags to assign to the chunk_group. This is a list of strings that can be used to categorize the chunks inside the chunk_group.",
|
4629
|
+
"nullable": true
|
4630
|
+
},
|
4583
4631
|
"tracking_id": {
|
4584
4632
|
"type": "string",
|
4585
4633
|
"description": "Optional tracking id to assign to the chunk_group. This is a unique identifier for the chunk_group.",
|
@@ -5616,7 +5664,13 @@
|
|
5616
5664
|
}
|
5617
5665
|
]
|
5618
5666
|
},
|
5619
|
-
"
|
5667
|
+
"RecommendChunkMetadata": {
|
5668
|
+
"type": "array",
|
5669
|
+
"items": {
|
5670
|
+
"$ref": "#/components/schemas/ChunkMetadata"
|
5671
|
+
}
|
5672
|
+
},
|
5673
|
+
"RecommendChunksRequest": {
|
5620
5674
|
"type": "object",
|
5621
5675
|
"properties": {
|
5622
5676
|
"filters": {
|
@@ -5627,62 +5681,86 @@
|
|
5627
5681
|
],
|
5628
5682
|
"nullable": true
|
5629
5683
|
},
|
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
5684
|
"limit": {
|
5638
5685
|
"type": "integer",
|
5639
5686
|
"format": "int64",
|
5640
|
-
"description": "The number of
|
5687
|
+
"description": "The number of chunks to return. This is the number of chunks which will be returned in the response. The default is 10.",
|
5641
5688
|
"nullable": true,
|
5642
5689
|
"minimum": 0
|
5643
5690
|
},
|
5644
|
-
"
|
5691
|
+
"negative_chunk_ids": {
|
5645
5692
|
"type": "array",
|
5646
5693
|
"items": {
|
5647
5694
|
"type": "string",
|
5648
5695
|
"format": "uuid"
|
5649
5696
|
},
|
5650
|
-
"description": "The
|
5697
|
+
"description": "The ids of the chunks to be used as negative examples for the recommendation. The chunks in this array will be used to filter out similar chunks.",
|
5651
5698
|
"nullable": true
|
5652
5699
|
},
|
5653
|
-
"
|
5700
|
+
"negative_tracking_ids": {
|
5654
5701
|
"type": "array",
|
5655
5702
|
"items": {
|
5656
5703
|
"type": "string"
|
5657
5704
|
},
|
5658
|
-
"description": "The
|
5705
|
+
"description": "The tracking_ids of the chunks to be used as negative examples for the recommendation. The chunks in this array will be used to filter out similar chunks.",
|
5659
5706
|
"nullable": true
|
5660
5707
|
},
|
5661
|
-
"
|
5708
|
+
"positive_chunk_ids": {
|
5662
5709
|
"type": "array",
|
5663
5710
|
"items": {
|
5664
5711
|
"type": "string",
|
5665
5712
|
"format": "uuid"
|
5666
5713
|
},
|
5667
|
-
"description": "The
|
5714
|
+
"description": "The ids of the chunks to be used as positive examples for the recommendation. The chunks in this array will be used to find similar chunks.",
|
5668
5715
|
"nullable": true
|
5669
5716
|
},
|
5670
|
-
"
|
5717
|
+
"positive_tracking_ids": {
|
5671
5718
|
"type": "array",
|
5672
5719
|
"items": {
|
5673
5720
|
"type": "string"
|
5674
5721
|
},
|
5675
|
-
"description": "The
|
5722
|
+
"description": "The tracking_ids of the chunks to be used as positive examples for the recommendation. The chunks in this array will be used to find similar chunks.",
|
5676
5723
|
"nullable": true
|
5677
5724
|
},
|
5678
5725
|
"slim_chunks": {
|
5679
5726
|
"type": "boolean",
|
5680
5727
|
"description": "Set slim_chunks to true to avoid returning the content and chunk_html of the chunks. This is useful for when you want to reduce amount of data over the wire for latency improvement. Default is false.",
|
5681
5728
|
"nullable": true
|
5729
|
+
},
|
5730
|
+
"strategy": {
|
5731
|
+
"type": "string",
|
5732
|
+
"description": "Strategy to use for recommendations, either \"average_vector\" or \"best_score\". The default is \"average_vector\". The \"average_vector\" strategy will construct a single average vector from the positive and negative samples then use it to perform a pseudo-search. The \"best_score\" strategy is more advanced and navigates the HNSW with a heuristic of picking edges where the point is closer to the positive samples than it is the negatives.",
|
5733
|
+
"nullable": true
|
5682
5734
|
}
|
5683
5735
|
}
|
5684
5736
|
},
|
5685
|
-
"
|
5737
|
+
"RecommendChunksResponseTypes": {
|
5738
|
+
"oneOf": [
|
5739
|
+
{
|
5740
|
+
"$ref": "#/components/schemas/RecommendChunkMetadata"
|
5741
|
+
},
|
5742
|
+
{
|
5743
|
+
"$ref": "#/components/schemas/RecommendSlimChunkMetadata"
|
5744
|
+
}
|
5745
|
+
]
|
5746
|
+
},
|
5747
|
+
"RecommendGroupChunkResponseTypes": {
|
5748
|
+
"oneOf": [
|
5749
|
+
{
|
5750
|
+
"$ref": "#/components/schemas/RecommendGroupSlimChunksDTO"
|
5751
|
+
},
|
5752
|
+
{
|
5753
|
+
"$ref": "#/components/schemas/RecommendGroupChunksDTO"
|
5754
|
+
}
|
5755
|
+
]
|
5756
|
+
},
|
5757
|
+
"RecommendGroupChunksDTO": {
|
5758
|
+
"type": "array",
|
5759
|
+
"items": {
|
5760
|
+
"$ref": "#/components/schemas/GroupScoreChunkDTO"
|
5761
|
+
}
|
5762
|
+
},
|
5763
|
+
"RecommendGroupChunksRequest": {
|
5686
5764
|
"type": "object",
|
5687
5765
|
"properties": {
|
5688
5766
|
"filters": {
|
@@ -5693,166 +5771,77 @@
|
|
5693
5771
|
],
|
5694
5772
|
"nullable": true
|
5695
5773
|
},
|
5774
|
+
"group_size": {
|
5775
|
+
"type": "integer",
|
5776
|
+
"format": "int32",
|
5777
|
+
"description": "The number of chunks to fetch for each group. This is the number of chunks which will be returned in the response for each group. The default is 3. If this is set to a large number, we recommend setting slim_chunks to true to avoid returning the content and chunk_html of the chunks so as to reduce latency due to content download and serialization.",
|
5778
|
+
"nullable": true,
|
5779
|
+
"minimum": 0
|
5780
|
+
},
|
5696
5781
|
"limit": {
|
5697
5782
|
"type": "integer",
|
5698
5783
|
"format": "int64",
|
5699
|
-
"description": "The number of
|
5784
|
+
"description": "The number of groups to return. This is the number of groups which will be returned in the response. The default is 10.",
|
5700
5785
|
"nullable": true,
|
5701
5786
|
"minimum": 0
|
5702
5787
|
},
|
5703
|
-
"
|
5788
|
+
"negative_group_ids": {
|
5704
5789
|
"type": "array",
|
5705
5790
|
"items": {
|
5706
5791
|
"type": "string",
|
5707
5792
|
"format": "uuid"
|
5708
5793
|
},
|
5709
|
-
"description": "The ids of the
|
5794
|
+
"description": "The ids of the groups to be used as negative examples for the recommendation. The groups in this array will be used to filter out similar groups.",
|
5710
5795
|
"nullable": true
|
5711
5796
|
},
|
5712
|
-
"
|
5797
|
+
"negative_group_tracking_ids": {
|
5713
5798
|
"type": "array",
|
5714
5799
|
"items": {
|
5715
5800
|
"type": "string"
|
5716
5801
|
},
|
5717
|
-
"description": "The
|
5802
|
+
"description": "The ids of the groups to be used as negative examples for the recommendation. The groups in this array will be used to filter out similar groups.",
|
5718
5803
|
"nullable": true
|
5719
5804
|
},
|
5720
|
-
"
|
5805
|
+
"positive_group_ids": {
|
5721
5806
|
"type": "array",
|
5722
5807
|
"items": {
|
5723
5808
|
"type": "string",
|
5724
5809
|
"format": "uuid"
|
5725
5810
|
},
|
5726
|
-
"description": "The ids of the
|
5811
|
+
"description": "The ids of the groups to be used as positive examples for the recommendation. The groups in this array will be used to find similar groups.",
|
5727
5812
|
"nullable": true
|
5728
5813
|
},
|
5729
|
-
"
|
5814
|
+
"positive_group_tracking_ids": {
|
5730
5815
|
"type": "array",
|
5731
5816
|
"items": {
|
5732
5817
|
"type": "string"
|
5733
5818
|
},
|
5734
|
-
"description": "The
|
5819
|
+
"description": "The ids of the groups to be used as positive examples for the recommendation. The groups in this array will be used to find similar groups.",
|
5735
5820
|
"nullable": true
|
5736
5821
|
},
|
5737
5822
|
"slim_chunks": {
|
5738
5823
|
"type": "boolean",
|
5739
5824
|
"description": "Set slim_chunks to true to avoid returning the content and chunk_html of the chunks. This is useful for when you want to reduce amount of data over the wire for latency improvement. Default is false.",
|
5740
5825
|
"nullable": true
|
5826
|
+
},
|
5827
|
+
"strategy": {
|
5828
|
+
"type": "string",
|
5829
|
+
"description": "Strategy to use for recommendations, either \"average_vector\" or \"best_score\". The default is \"average_vector\". The \"average_vector\" strategy will construct a single average vector from the positive and negative samples then use it to perform a pseudo-search. The \"best_score\" strategy is more advanced and navigates the HNSW with a heuristic of picking edges where the point is closer to the positive samples than it is the negatives.",
|
5830
|
+
"nullable": true
|
5741
5831
|
}
|
5742
5832
|
}
|
5743
5833
|
},
|
5744
|
-
"
|
5745
|
-
"
|
5746
|
-
|
5747
|
-
|
5748
|
-
|
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
|
-
]
|
5834
|
+
"RecommendGroupSlimChunksDTO": {
|
5835
|
+
"type": "array",
|
5836
|
+
"items": {
|
5837
|
+
"$ref": "#/components/schemas/GroupSlimChunksDTO"
|
5838
|
+
}
|
5795
5839
|
},
|
5796
|
-
"
|
5797
|
-
"
|
5798
|
-
|
5799
|
-
|
5800
|
-
|
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
|
-
},
|
5828
|
-
{
|
5829
|
-
"type": "array",
|
5830
|
-
"items": {
|
5831
|
-
"$ref": "#/components/schemas/GroupScoreChunkDTO"
|
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
|
-
}
|
5854
|
-
}
|
5855
|
-
]
|
5840
|
+
"RecommendSlimChunkMetadata": {
|
5841
|
+
"type": "array",
|
5842
|
+
"items": {
|
5843
|
+
"$ref": "#/components/schemas/SlimChunkMetadata"
|
5844
|
+
}
|
5856
5845
|
},
|
5857
5846
|
"RegenerateMessageData": {
|
5858
5847
|
"type": "object",
|
@@ -6015,7 +6004,7 @@
|
|
6015
6004
|
"page": {
|
6016
6005
|
"type": "integer",
|
6017
6006
|
"format": "int64",
|
6018
|
-
"description": "Page of chunks to fetch.
|
6007
|
+
"description": "Page of chunks to fetch. Page is 1-indexed.",
|
6019
6008
|
"nullable": true,
|
6020
6009
|
"minimum": 0
|
6021
6010
|
},
|
@@ -6030,11 +6019,6 @@
|
|
6030
6019
|
"type": "string",
|
6031
6020
|
"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
6021
|
},
|
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
6022
|
"score_threshold": {
|
6039
6023
|
"type": "number",
|
6040
6024
|
"format": "float",
|
@@ -6219,6 +6203,7 @@
|
|
6219
6203
|
"group_size": {
|
6220
6204
|
"type": "integer",
|
6221
6205
|
"format": "int32",
|
6206
|
+
"description": "Group_size is the number of chunks to fetch for each group. The default is 3. If a group has less than group_size chunks, all chunks will be returned. If this is set to a large number, we recommend setting slim_chunks to true to avoid returning the content and chunk_html of the chunks so as to lower the amount of time required for content download and serialization.",
|
6222
6207
|
"nullable": true,
|
6223
6208
|
"minimum": 0
|
6224
6209
|
},
|
@@ -6238,14 +6223,14 @@
|
|
6238
6223
|
"page": {
|
6239
6224
|
"type": "integer",
|
6240
6225
|
"format": "int64",
|
6241
|
-
"description": "Page of
|
6226
|
+
"description": "Page of group results to fetch. Page is 1-indexed.",
|
6242
6227
|
"nullable": true,
|
6243
6228
|
"minimum": 0
|
6244
6229
|
},
|
6245
6230
|
"page_size": {
|
6246
6231
|
"type": "integer",
|
6247
6232
|
"format": "int32",
|
6248
|
-
"description": "Page size is the number of
|
6233
|
+
"description": "Page size is the number of group results to fetch. The default is 10.",
|
6249
6234
|
"nullable": true,
|
6250
6235
|
"minimum": 0
|
6251
6236
|
},
|
@@ -6253,11 +6238,6 @@
|
|
6253
6238
|
"type": "string",
|
6254
6239
|
"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
6240
|
},
|
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
6241
|
"score_threshold": {
|
6262
6242
|
"type": "number",
|
6263
6243
|
"format": "float",
|
@@ -6389,7 +6369,7 @@
|
|
6389
6369
|
"page": {
|
6390
6370
|
"type": "integer",
|
6391
6371
|
"format": "int64",
|
6392
|
-
"description": "The page of chunks to fetch.
|
6372
|
+
"description": "The page of chunks to fetch. Page is 1-indexed.",
|
6393
6373
|
"nullable": true,
|
6394
6374
|
"minimum": 0
|
6395
6375
|
},
|
@@ -6404,11 +6384,6 @@
|
|
6404
6384
|
"type": "string",
|
6405
6385
|
"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
6386
|
},
|
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
6387
|
"score_threshold": {
|
6413
6388
|
"type": "number",
|
6414
6389
|
"format": "float",
|
@@ -6966,11 +6941,23 @@
|
|
6966
6941
|
"description": "Id of the chunk_group to update.",
|
6967
6942
|
"nullable": true
|
6968
6943
|
},
|
6944
|
+
"metadata": {
|
6945
|
+
"description": "Optional metadata to assign to the chunk_group. This is a JSON object that can store any additional information you want to associate with the chunks inside of the chunk_group.",
|
6946
|
+
"nullable": true
|
6947
|
+
},
|
6969
6948
|
"name": {
|
6970
6949
|
"type": "string",
|
6971
6950
|
"description": "Name to assign to the chunk_group. Does not need to be unique. If not provided, the name will not be updated.",
|
6972
6951
|
"nullable": true
|
6973
6952
|
},
|
6953
|
+
"tag_set": {
|
6954
|
+
"type": "array",
|
6955
|
+
"items": {
|
6956
|
+
"type": "string"
|
6957
|
+
},
|
6958
|
+
"description": "Optional tags to assign to the chunk_group. This is a list of strings that can be used to categorize the chunks inside the chunk_group.",
|
6959
|
+
"nullable": true
|
6960
|
+
},
|
6974
6961
|
"tracking_id": {
|
6975
6962
|
"type": "string",
|
6976
6963
|
"description": "Tracking Id of the chunk_group to update.",
|
@@ -7021,11 +7008,23 @@
|
|
7021
7008
|
"description": "Description to assign to the chunk_group. Convenience field for you to avoid having to remember what the group is for. If not provided, the description will not be updated.",
|
7022
7009
|
"nullable": true
|
7023
7010
|
},
|
7011
|
+
"metadata": {
|
7012
|
+
"description": "Optional metadata to assign to the chunk_group. This is a JSON object that can store any additional information you want to associate with the chunks inside of the chunk_group.",
|
7013
|
+
"nullable": true
|
7014
|
+
},
|
7024
7015
|
"name": {
|
7025
7016
|
"type": "string",
|
7026
7017
|
"description": "Name to assign to the chunk_group. Does not need to be unique. If not provided, the name will not be updated.",
|
7027
7018
|
"nullable": true
|
7028
7019
|
},
|
7020
|
+
"tag_set": {
|
7021
|
+
"type": "array",
|
7022
|
+
"items": {
|
7023
|
+
"type": "string"
|
7024
|
+
},
|
7025
|
+
"description": "Optional tags to assign to the chunk_group. This is a list of strings that can be used to categorize the chunks inside the chunk_group.",
|
7026
|
+
"nullable": true
|
7027
|
+
},
|
7029
7028
|
"tracking_id": {
|
7030
7029
|
"type": "string",
|
7031
7030
|
"description": "Tracking Id of the chunk_group to update."
|
@@ -7269,7 +7268,7 @@
|
|
7269
7268
|
},
|
7270
7269
|
{
|
7271
7270
|
"name": "events",
|
7272
|
-
"description": "Notifications endpoint. Files are uploaded asynchronously and events are sent to the user when the upload is complete.
|
7271
|
+
"description": "Notifications endpoint. Files are uploaded asynchronously and events are sent to the user when the upload is complete."
|
7273
7272
|
},
|
7274
7273
|
{
|
7275
7274
|
"name": "topic",
|