trieve_ruby_client 0.7.6 → 0.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +5 -5
- data/docs/ChunkData.md +1 -1
- data/docs/ChunkMetadata.md +0 -2
- data/docs/ChunkMetadataWithScore.md +0 -2
- data/docs/CreateChunkGroupData.md +3 -1
- data/docs/GroupScoreSlimChunks.md +4 -0
- data/docs/OrganizationUsageCount.md +2 -0
- data/docs/RecommendChunksRequest.md +1 -1
- data/docs/RecommendGroupChunksRequest.md +1 -1
- data/docs/SearchChunkData.md +6 -4
- data/docs/SearchOverGroupsData.md +4 -2
- data/docs/SearchWithinGroupData.md +6 -4
- data/lib/trieve_ruby_client/api/auth_api.rb +1 -1
- data/lib/trieve_ruby_client/api/chunk_api.rb +1 -1
- data/lib/trieve_ruby_client/api/chunk_group_api.rb +1 -1
- 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 +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 +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 +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 +8 -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 +2 -18
- data/lib/trieve_ruby_client/models/chunk_metadata_with_score.rb +2 -18
- 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 +17 -6
- 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/geo_info.rb +1 -1
- data/lib/trieve_ruby_client/models/geo_types.rb +1 -1
- data/lib/trieve_ruby_client/models/get_chunks_data.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/get_tracking_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 +1 -1
- data/lib/trieve_ruby_client/models/group_score_slim_chunks.rb +22 -2
- data/lib/trieve_ruby_client/models/invitation_data.rb +1 -1
- data/lib/trieve_ruby_client/models/location_bounding_box.rb +1 -1
- data/lib/trieve_ruby_client/models/location_polygon.rb +1 -1
- data/lib/trieve_ruby_client/models/location_radius.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 +18 -2
- 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 +2 -2
- data/lib/trieve_ruby_client/models/recommend_group_chunks_request.rb +2 -2
- 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 +26 -15
- 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 +15 -4
- data/lib/trieve_ruby_client/models/search_over_groups_results.rb +1 -1
- data/lib/trieve_ruby_client/models/search_over_groups_slim_results.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 +26 -15
- data/lib/trieve_ruby_client/models/search_within_group_results.rb +1 -1
- data/lib/trieve_ruby_client/models/search_within_group_slim_results.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_chunk_metadata_with_score.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 +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_org_role_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 +1 -1
- data/openapi-generator.yaml +1 -1
- data/openapi.json +150 -37
- data/spec/spec_helper.rb +1 -1
- data/trieve_ruby_client-0.7.6.gem +0 -0
- data/trieve_ruby_client-0.8.0.gem +0 -0
- data/trieve_ruby_client.gemspec +1 -1
- metadata +4 -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.8.2"
|
16
16
|
},
|
17
17
|
"servers": [
|
18
18
|
{
|
@@ -666,7 +666,14 @@
|
|
666
666
|
}
|
667
667
|
},
|
668
668
|
"404": {
|
669
|
-
"description": "Chunk not found"
|
669
|
+
"description": "Chunk not found",
|
670
|
+
"content": {
|
671
|
+
"application/json": {
|
672
|
+
"schema": {
|
673
|
+
"$ref": "#/components/schemas/ErrorResponseBody"
|
674
|
+
}
|
675
|
+
}
|
676
|
+
}
|
670
677
|
}
|
671
678
|
},
|
672
679
|
"security": [
|
@@ -779,7 +786,14 @@
|
|
779
786
|
}
|
780
787
|
},
|
781
788
|
"404": {
|
782
|
-
"description": "Chunk not found"
|
789
|
+
"description": "Chunk not found",
|
790
|
+
"content": {
|
791
|
+
"application/json": {
|
792
|
+
"schema": {
|
793
|
+
"$ref": "#/components/schemas/ErrorResponseBody"
|
794
|
+
}
|
795
|
+
}
|
796
|
+
}
|
783
797
|
}
|
784
798
|
},
|
785
799
|
"security": [
|
@@ -1425,7 +1439,14 @@
|
|
1425
1439
|
}
|
1426
1440
|
},
|
1427
1441
|
"404": {
|
1428
|
-
"description": "Group not found"
|
1442
|
+
"description": "Group not found",
|
1443
|
+
"content": {
|
1444
|
+
"application/json": {
|
1445
|
+
"schema": {
|
1446
|
+
"$ref": "#/components/schemas/ErrorResponseBody"
|
1447
|
+
}
|
1448
|
+
}
|
1449
|
+
}
|
1429
1450
|
}
|
1430
1451
|
},
|
1431
1452
|
"security": [
|
@@ -1487,7 +1508,14 @@
|
|
1487
1508
|
}
|
1488
1509
|
},
|
1489
1510
|
"404": {
|
1490
|
-
"description": "Group not found"
|
1511
|
+
"description": "Group not found",
|
1512
|
+
"content": {
|
1513
|
+
"application/json": {
|
1514
|
+
"schema": {
|
1515
|
+
"$ref": "#/components/schemas/ErrorResponseBody"
|
1516
|
+
}
|
1517
|
+
}
|
1518
|
+
}
|
1491
1519
|
}
|
1492
1520
|
},
|
1493
1521
|
"security": [
|
@@ -1725,7 +1753,14 @@
|
|
1725
1753
|
}
|
1726
1754
|
},
|
1727
1755
|
"404": {
|
1728
|
-
"description": "Group not found"
|
1756
|
+
"description": "Group not found",
|
1757
|
+
"content": {
|
1758
|
+
"application/json": {
|
1759
|
+
"schema": {
|
1760
|
+
"$ref": "#/components/schemas/ErrorResponseBody"
|
1761
|
+
}
|
1762
|
+
}
|
1763
|
+
}
|
1729
1764
|
}
|
1730
1765
|
},
|
1731
1766
|
"security": [
|
@@ -1860,7 +1895,14 @@
|
|
1860
1895
|
}
|
1861
1896
|
},
|
1862
1897
|
"404": {
|
1863
|
-
"description": "Group not found"
|
1898
|
+
"description": "Group not found",
|
1899
|
+
"content": {
|
1900
|
+
"application/json": {
|
1901
|
+
"schema": {
|
1902
|
+
"$ref": "#/components/schemas/ErrorResponseBody"
|
1903
|
+
}
|
1904
|
+
}
|
1905
|
+
}
|
1864
1906
|
}
|
1865
1907
|
},
|
1866
1908
|
"security": [
|
@@ -1925,6 +1967,16 @@
|
|
1925
1967
|
}
|
1926
1968
|
}
|
1927
1969
|
}
|
1970
|
+
},
|
1971
|
+
"404": {
|
1972
|
+
"description": "Any one of the specified chunks not found",
|
1973
|
+
"content": {
|
1974
|
+
"application/json": {
|
1975
|
+
"schema": {
|
1976
|
+
"$ref": "#/components/schemas/ErrorResponseBody"
|
1977
|
+
}
|
1978
|
+
}
|
1979
|
+
}
|
1928
1980
|
}
|
1929
1981
|
},
|
1930
1982
|
"security": [
|
@@ -1986,6 +2038,16 @@
|
|
1986
2038
|
}
|
1987
2039
|
}
|
1988
2040
|
}
|
2041
|
+
},
|
2042
|
+
"404": {
|
2043
|
+
"description": "Any one of the specified chunks not found",
|
2044
|
+
"content": {
|
2045
|
+
"application/json": {
|
2046
|
+
"schema": {
|
2047
|
+
"$ref": "#/components/schemas/ErrorResponseBody"
|
2048
|
+
}
|
2049
|
+
}
|
2050
|
+
}
|
1989
2051
|
}
|
1990
2052
|
},
|
1991
2053
|
"security": [
|
@@ -2665,6 +2727,16 @@
|
|
2665
2727
|
}
|
2666
2728
|
}
|
2667
2729
|
}
|
2730
|
+
},
|
2731
|
+
"404": {
|
2732
|
+
"description": "File not found",
|
2733
|
+
"content": {
|
2734
|
+
"application/json": {
|
2735
|
+
"schema": {
|
2736
|
+
"$ref": "#/components/schemas/ErrorResponseBody"
|
2737
|
+
}
|
2738
|
+
}
|
2739
|
+
}
|
2668
2740
|
}
|
2669
2741
|
},
|
2670
2742
|
"security": [
|
@@ -3322,6 +3394,16 @@
|
|
3322
3394
|
}
|
3323
3395
|
}
|
3324
3396
|
}
|
3397
|
+
},
|
3398
|
+
"404": {
|
3399
|
+
"description": "Organization not found",
|
3400
|
+
"content": {
|
3401
|
+
"application/json": {
|
3402
|
+
"schema": {
|
3403
|
+
"$ref": "#/components/schemas/ErrorResponseBody"
|
3404
|
+
}
|
3405
|
+
}
|
3406
|
+
}
|
3325
3407
|
}
|
3326
3408
|
},
|
3327
3409
|
"security": [
|
@@ -4184,11 +4266,13 @@
|
|
4184
4266
|
},
|
4185
4267
|
"ChunkData": {
|
4186
4268
|
"type": "object",
|
4269
|
+
"required": [
|
4270
|
+
"chunk_html"
|
4271
|
+
],
|
4187
4272
|
"properties": {
|
4188
4273
|
"chunk_html": {
|
4189
4274
|
"type": "string",
|
4190
|
-
"description": "HTML content of the chunk. 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."
|
4191
|
-
"nullable": true
|
4275
|
+
"description": "HTML content of the chunk. 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."
|
4192
4276
|
},
|
4193
4277
|
"chunk_vector": {
|
4194
4278
|
"type": "array",
|
@@ -4491,7 +4575,6 @@
|
|
4491
4575
|
"type": "object",
|
4492
4576
|
"required": [
|
4493
4577
|
"id",
|
4494
|
-
"content",
|
4495
4578
|
"created_at",
|
4496
4579
|
"updated_at",
|
4497
4580
|
"dataset_id",
|
@@ -4502,9 +4585,6 @@
|
|
4502
4585
|
"type": "string",
|
4503
4586
|
"nullable": true
|
4504
4587
|
},
|
4505
|
-
"content": {
|
4506
|
-
"type": "string"
|
4507
|
-
},
|
4508
4588
|
"created_at": {
|
4509
4589
|
"type": "string",
|
4510
4590
|
"format": "date-time"
|
@@ -4561,7 +4641,6 @@
|
|
4561
4641
|
},
|
4562
4642
|
"example": {
|
4563
4643
|
"chunk_html": "<p>Hello, world!</p>",
|
4564
|
-
"content": "Hello, world!",
|
4565
4644
|
"created_at": "2021-01-01T00:00:00",
|
4566
4645
|
"dataset_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
|
4567
4646
|
"id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
|
@@ -4581,7 +4660,6 @@
|
|
4581
4660
|
"type": "object",
|
4582
4661
|
"required": [
|
4583
4662
|
"id",
|
4584
|
-
"content",
|
4585
4663
|
"created_at",
|
4586
4664
|
"updated_at",
|
4587
4665
|
"dataset_id",
|
@@ -4593,9 +4671,6 @@
|
|
4593
4671
|
"type": "string",
|
4594
4672
|
"nullable": true
|
4595
4673
|
},
|
4596
|
-
"content": {
|
4597
|
-
"type": "string"
|
4598
|
-
},
|
4599
4674
|
"created_at": {
|
4600
4675
|
"type": "string",
|
4601
4676
|
"format": "date-time"
|
@@ -4841,6 +4916,11 @@
|
|
4841
4916
|
"type": "string",
|
4842
4917
|
"description": "Optional tracking id to assign to the chunk_group. This is a unique identifier for the chunk_group.",
|
4843
4918
|
"nullable": true
|
4919
|
+
},
|
4920
|
+
"upsert_by_tracking_id": {
|
4921
|
+
"type": "boolean",
|
4922
|
+
"description": "Upsert when a chunk_group with the same tracking_id exists. By default this is false, and the request will fail if a chunk_group with the same tracking_id exists. If this is true, the chunk_group will be updated if a chunk_group with the same tracking_id exists.",
|
4923
|
+
"nullable": true
|
4844
4924
|
}
|
4845
4925
|
}
|
4846
4926
|
},
|
@@ -5674,6 +5754,14 @@
|
|
5674
5754
|
"type": "string",
|
5675
5755
|
"format": "uuid"
|
5676
5756
|
},
|
5757
|
+
"group_name": {
|
5758
|
+
"type": "string",
|
5759
|
+
"nullable": true
|
5760
|
+
},
|
5761
|
+
"group_tracking_id": {
|
5762
|
+
"type": "string",
|
5763
|
+
"nullable": true
|
5764
|
+
},
|
5677
5765
|
"metadata": {
|
5678
5766
|
"type": "array",
|
5679
5767
|
"items": {
|
@@ -5683,6 +5771,8 @@
|
|
5683
5771
|
},
|
5684
5772
|
"example": {
|
5685
5773
|
"group_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
|
5774
|
+
"group_name": "Example Group",
|
5775
|
+
"group_tracking_id": "example_tracking_id",
|
5686
5776
|
"metadata": [
|
5687
5777
|
{
|
5688
5778
|
"metadata": [
|
@@ -5923,9 +6013,14 @@
|
|
5923
6013
|
"dataset_count",
|
5924
6014
|
"user_count",
|
5925
6015
|
"file_storage",
|
5926
|
-
"message_count"
|
6016
|
+
"message_count",
|
6017
|
+
"chunk_count"
|
5927
6018
|
],
|
5928
6019
|
"properties": {
|
6020
|
+
"chunk_count": {
|
6021
|
+
"type": "integer",
|
6022
|
+
"format": "int32"
|
6023
|
+
},
|
5929
6024
|
"dataset_count": {
|
5930
6025
|
"type": "integer",
|
5931
6026
|
"format": "int32"
|
@@ -5952,6 +6047,7 @@
|
|
5952
6047
|
}
|
5953
6048
|
},
|
5954
6049
|
"example": {
|
6050
|
+
"chunk_count": 1000,
|
5955
6051
|
"dataset_count": 1,
|
5956
6052
|
"file_storage": 512,
|
5957
6053
|
"id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
|
@@ -6077,7 +6173,7 @@
|
|
6077
6173
|
},
|
6078
6174
|
"slim_chunks": {
|
6079
6175
|
"type": "boolean",
|
6080
|
-
"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.",
|
6176
|
+
"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 (typicall 10-50ms). Default is false.",
|
6081
6177
|
"nullable": true
|
6082
6178
|
},
|
6083
6179
|
"strategy": {
|
@@ -6153,7 +6249,7 @@
|
|
6153
6249
|
},
|
6154
6250
|
"slim_chunks": {
|
6155
6251
|
"type": "boolean",
|
6156
|
-
"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.",
|
6252
|
+
"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 (typicall 10-50ms). Default is false.",
|
6157
6253
|
"nullable": true
|
6158
6254
|
},
|
6159
6255
|
"strategy": {
|
@@ -6285,11 +6381,6 @@
|
|
6285
6381
|
"query"
|
6286
6382
|
],
|
6287
6383
|
"properties": {
|
6288
|
-
"date_bias": {
|
6289
|
-
"type": "boolean",
|
6290
|
-
"description": "Set date_bias to true to bias search results towards more recent chunks. This will work best in hybrid search mode.",
|
6291
|
-
"nullable": true
|
6292
|
-
},
|
6293
6384
|
"filters": {
|
6294
6385
|
"allOf": [
|
6295
6386
|
{
|
@@ -6303,6 +6394,11 @@
|
|
6303
6394
|
"description": "Set get_collisions to true to get the collisions for each chunk. This will only apply if environment variable COLLISIONS_ENABLED is set to true.",
|
6304
6395
|
"nullable": true
|
6305
6396
|
},
|
6397
|
+
"get_total_pages": {
|
6398
|
+
"type": "boolean",
|
6399
|
+
"description": "Get total page count for the query accounting for the applied filters. Defaults to false, but can be set to true when the latency penalty is acceptable (typically 50-200ms).",
|
6400
|
+
"nullable": true
|
6401
|
+
},
|
6306
6402
|
"highlight_delimiters": {
|
6307
6403
|
"type": "array",
|
6308
6404
|
"items": {
|
@@ -6313,7 +6409,7 @@
|
|
6313
6409
|
},
|
6314
6410
|
"highlight_results": {
|
6315
6411
|
"type": "boolean",
|
6316
|
-
"description": "Set highlight_results to
|
6412
|
+
"description": "Set highlight_results to false for a slight latency improvement (1-10ms). If not specified, this defaults to true. This will add <b><mark> tags to the chunk_html of the chunks to highlight matching sub-sentences.",
|
6317
6413
|
"nullable": true
|
6318
6414
|
},
|
6319
6415
|
"page": {
|
@@ -6334,6 +6430,12 @@
|
|
6334
6430
|
"type": "string",
|
6335
6431
|
"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."
|
6336
6432
|
},
|
6433
|
+
"recency_bias": {
|
6434
|
+
"type": "number",
|
6435
|
+
"format": "float",
|
6436
|
+
"description": "Recency Bias lets you determine how much of an effect the recency of chunks will have on the search results. If not specified, this defaults to 0.0. We recommend setting this to 1.0 for a gentle reranking of the results, >3.0 for a strong reranking of the results.",
|
6437
|
+
"nullable": true
|
6438
|
+
},
|
6337
6439
|
"score_threshold": {
|
6338
6440
|
"type": "number",
|
6339
6441
|
"format": "float",
|
@@ -6346,7 +6448,7 @@
|
|
6346
6448
|
},
|
6347
6449
|
"slim_chunks": {
|
6348
6450
|
"type": "boolean",
|
6349
|
-
"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.",
|
6451
|
+
"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 (typicall 10-50ms). Default is false.",
|
6350
6452
|
"nullable": true
|
6351
6453
|
},
|
6352
6454
|
"use_weights": {
|
@@ -6459,6 +6561,11 @@
|
|
6459
6561
|
"description": "Set get_collisions to true to get the collisions for each chunk. This will only apply if environment variable COLLISIONS_ENABLED is set to true.",
|
6460
6562
|
"nullable": true
|
6461
6563
|
},
|
6564
|
+
"get_total_pages": {
|
6565
|
+
"type": "boolean",
|
6566
|
+
"description": "Get total page count for the query accounting for the applied filters. Defaults to false, but can be set to true when the latency penalty is acceptable (typically 50-200ms).",
|
6567
|
+
"nullable": true
|
6568
|
+
},
|
6462
6569
|
"group_size": {
|
6463
6570
|
"type": "integer",
|
6464
6571
|
"format": "int32",
|
@@ -6476,7 +6583,7 @@
|
|
6476
6583
|
},
|
6477
6584
|
"highlight_results": {
|
6478
6585
|
"type": "boolean",
|
6479
|
-
"description": "Set highlight_results to
|
6586
|
+
"description": "Set highlight_results to false for a slight latency improvement (1-10ms). If not specified, this defaults to true. This will add <b><mark> tags to the chunk_html of the chunks to highlight matching sub-sentences.",
|
6480
6587
|
"nullable": true
|
6481
6588
|
},
|
6482
6589
|
"page": {
|
@@ -6509,7 +6616,7 @@
|
|
6509
6616
|
},
|
6510
6617
|
"slim_chunks": {
|
6511
6618
|
"type": "boolean",
|
6512
|
-
"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.",
|
6619
|
+
"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 (typicall 10-50ms). Default is false.",
|
6513
6620
|
"nullable": true
|
6514
6621
|
}
|
6515
6622
|
}
|
@@ -6578,11 +6685,6 @@
|
|
6578
6685
|
"search_type"
|
6579
6686
|
],
|
6580
6687
|
"properties": {
|
6581
|
-
"date_bias": {
|
6582
|
-
"type": "boolean",
|
6583
|
-
"description": "Set date_bias to true to bias search results towards more recent chunks. This will work best in hybrid search mode.",
|
6584
|
-
"nullable": true
|
6585
|
-
},
|
6586
6688
|
"filters": {
|
6587
6689
|
"allOf": [
|
6588
6690
|
{
|
@@ -6591,6 +6693,11 @@
|
|
6591
6693
|
],
|
6592
6694
|
"nullable": true
|
6593
6695
|
},
|
6696
|
+
"get_total_pages": {
|
6697
|
+
"type": "boolean",
|
6698
|
+
"description": "Get total page count for the query accounting for the applied filters. Defaults to false, but can be set to true when the latency penalty is acceptable (typically 50-200ms).",
|
6699
|
+
"nullable": true
|
6700
|
+
},
|
6594
6701
|
"group_id": {
|
6595
6702
|
"type": "string",
|
6596
6703
|
"format": "uuid",
|
@@ -6612,7 +6719,7 @@
|
|
6612
6719
|
},
|
6613
6720
|
"highlight_results": {
|
6614
6721
|
"type": "boolean",
|
6615
|
-
"description": "Set highlight_results to
|
6722
|
+
"description": "Set highlight_results to false for a slight latency improvement (1-10ms). If not specified, this defaults to true. This will add <b><mark> tags to the chunk_html of the chunks to highlight matching sub-sentences.",
|
6616
6723
|
"nullable": true
|
6617
6724
|
},
|
6618
6725
|
"page": {
|
@@ -6633,6 +6740,12 @@
|
|
6633
6740
|
"type": "string",
|
6634
6741
|
"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."
|
6635
6742
|
},
|
6743
|
+
"recency_bias": {
|
6744
|
+
"type": "number",
|
6745
|
+
"format": "float",
|
6746
|
+
"description": "Recency Bias lets you determine how much of an effect the recency of chunks will have on the search results. If not specified, this defaults to 0.0.",
|
6747
|
+
"nullable": true
|
6748
|
+
},
|
6636
6749
|
"score_threshold": {
|
6637
6750
|
"type": "number",
|
6638
6751
|
"format": "float",
|
@@ -6645,7 +6758,7 @@
|
|
6645
6758
|
},
|
6646
6759
|
"slim_chunks": {
|
6647
6760
|
"type": "boolean",
|
6648
|
-
"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.",
|
6761
|
+
"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 (typicall 10-50ms). Default is false.",
|
6649
6762
|
"nullable": true
|
6650
6763
|
},
|
6651
6764
|
"use_weights": {
|
data/spec/spec_helper.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.8.2
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
Binary file
|
Binary file
|
data/trieve_ruby_client.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
#Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: 0.
|
8
|
+
The version of the OpenAPI document: 0.8.2
|
9
9
|
Contact: developers@trieve.ai
|
10
10
|
Generated by: https://openapi-generator.tech
|
11
11
|
Generator version: 7.4.0
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trieve_ruby_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Trieve
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-05-
|
11
|
+
date: 2024-05-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -434,6 +434,8 @@ files:
|
|
434
434
|
- trieve_ruby_client-0.6.7.gem
|
435
435
|
- trieve_ruby_client-0.6.9.gem
|
436
436
|
- trieve_ruby_client-0.7.2.gem
|
437
|
+
- trieve_ruby_client-0.7.6.gem
|
438
|
+
- trieve_ruby_client-0.8.0.gem
|
437
439
|
- trieve_ruby_client.gemspec
|
438
440
|
homepage: https://trieve.ai
|
439
441
|
licenses:
|