trieve_ruby_client 0.7.6 → 0.8.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 +5 -5
- data/docs/CreateChunkGroupData.md +3 -1
- data/docs/OrganizationUsageCount.md +2 -0
- data/docs/SearchChunkData.md +2 -0
- data/docs/SearchOverGroupsData.md +2 -0
- data/docs/SearchWithinGroupData.md +2 -0
- 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 +1 -1
- 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 +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 +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 +1 -1
- 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 +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 +1 -1
- data/lib/trieve_ruby_client/models/score_slim_chunks.rb +1 -1
- data/lib/trieve_ruby_client/models/search_chunk_data.rb +13 -2
- 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 +13 -2
- 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 +13 -2
- 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 +116 -8
- data/spec/spec_helper.rb +1 -1
- data/trieve_ruby_client-0.7.6.gem +0 -0
- data/trieve_ruby_client.gemspec +1 -1
- metadata +3 -2
@@ -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.0
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -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.0
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -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.0
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -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.0
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -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.0
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -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.0
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -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.0
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -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.0
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -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.0
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -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.0
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -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.0
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -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.0
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -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.0
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -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.0
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -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.0
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -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.0
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -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.0
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -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.0
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -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.0
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -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.0
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -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.0
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -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.0
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -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.0
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -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.0
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -15,6 +15,8 @@ require 'time'
|
|
15
15
|
|
16
16
|
module TrieveRubyClient
|
17
17
|
class OrganizationUsageCount
|
18
|
+
attr_accessor :chunk_count
|
19
|
+
|
18
20
|
attr_accessor :dataset_count
|
19
21
|
|
20
22
|
attr_accessor :file_storage
|
@@ -30,6 +32,7 @@ module TrieveRubyClient
|
|
30
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
31
33
|
def self.attribute_map
|
32
34
|
{
|
35
|
+
:'chunk_count' => :'chunk_count',
|
33
36
|
:'dataset_count' => :'dataset_count',
|
34
37
|
:'file_storage' => :'file_storage',
|
35
38
|
:'id' => :'id',
|
@@ -47,6 +50,7 @@ module TrieveRubyClient
|
|
47
50
|
# Attribute type mapping.
|
48
51
|
def self.openapi_types
|
49
52
|
{
|
53
|
+
:'chunk_count' => :'Integer',
|
50
54
|
:'dataset_count' => :'Integer',
|
51
55
|
:'file_storage' => :'Integer',
|
52
56
|
:'id' => :'String',
|
@@ -77,6 +81,12 @@ module TrieveRubyClient
|
|
77
81
|
h[k.to_sym] = v
|
78
82
|
}
|
79
83
|
|
84
|
+
if attributes.key?(:'chunk_count')
|
85
|
+
self.chunk_count = attributes[:'chunk_count']
|
86
|
+
else
|
87
|
+
self.chunk_count = nil
|
88
|
+
end
|
89
|
+
|
80
90
|
if attributes.key?(:'dataset_count')
|
81
91
|
self.dataset_count = attributes[:'dataset_count']
|
82
92
|
else
|
@@ -119,6 +129,10 @@ module TrieveRubyClient
|
|
119
129
|
def list_invalid_properties
|
120
130
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
121
131
|
invalid_properties = Array.new
|
132
|
+
if @chunk_count.nil?
|
133
|
+
invalid_properties.push('invalid value for "chunk_count", chunk_count cannot be nil.')
|
134
|
+
end
|
135
|
+
|
122
136
|
if @dataset_count.nil?
|
123
137
|
invalid_properties.push('invalid value for "dataset_count", dataset_count cannot be nil.')
|
124
138
|
end
|
@@ -150,6 +164,7 @@ module TrieveRubyClient
|
|
150
164
|
# @return true if the model is valid
|
151
165
|
def valid?
|
152
166
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
167
|
+
return false if @chunk_count.nil?
|
153
168
|
return false if @dataset_count.nil?
|
154
169
|
return false if @file_storage.nil?
|
155
170
|
return false if @id.nil?
|
@@ -164,6 +179,7 @@ module TrieveRubyClient
|
|
164
179
|
def ==(o)
|
165
180
|
return true if self.equal?(o)
|
166
181
|
self.class == o.class &&
|
182
|
+
chunk_count == o.chunk_count &&
|
167
183
|
dataset_count == o.dataset_count &&
|
168
184
|
file_storage == o.file_storage &&
|
169
185
|
id == o.id &&
|
@@ -181,7 +197,7 @@ module TrieveRubyClient
|
|
181
197
|
# Calculates hash code according to all attributes.
|
182
198
|
# @return [Integer] Hash code
|
183
199
|
def hash
|
184
|
-
[dataset_count, file_storage, id, message_count, org_id, user_count].hash
|
200
|
+
[chunk_count, dataset_count, file_storage, id, message_count, org_id, user_count].hash
|
185
201
|
end
|
186
202
|
|
187
203
|
# Builds the object from hash
|
@@ -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.0
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -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.0
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -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.0
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -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.0
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -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.0
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -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.0
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -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.0
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -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.0
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -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.0
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -23,6 +23,9 @@ module TrieveRubyClient
|
|
23
23
|
# 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.
|
24
24
|
attr_accessor :get_collisions
|
25
25
|
|
26
|
+
# Get total page count for the query accounting for the applied filters. Defaults to true, but can be set to false to reduce latency in edge cases performance.
|
27
|
+
attr_accessor :get_total_pages
|
28
|
+
|
26
29
|
# Set highlight_delimiters to a list of strings to use as delimiters for highlighting. If not specified, this defaults to [\"?\", \",\", \".\", \"!\"].
|
27
30
|
attr_accessor :highlight_delimiters
|
28
31
|
|
@@ -56,6 +59,7 @@ module TrieveRubyClient
|
|
56
59
|
:'date_bias' => :'date_bias',
|
57
60
|
:'filters' => :'filters',
|
58
61
|
:'get_collisions' => :'get_collisions',
|
62
|
+
:'get_total_pages' => :'get_total_pages',
|
59
63
|
:'highlight_delimiters' => :'highlight_delimiters',
|
60
64
|
:'highlight_results' => :'highlight_results',
|
61
65
|
:'page' => :'page',
|
@@ -79,6 +83,7 @@ module TrieveRubyClient
|
|
79
83
|
:'date_bias' => :'Boolean',
|
80
84
|
:'filters' => :'ChunkFilter',
|
81
85
|
:'get_collisions' => :'Boolean',
|
86
|
+
:'get_total_pages' => :'Boolean',
|
82
87
|
:'highlight_delimiters' => :'Array<String>',
|
83
88
|
:'highlight_results' => :'Boolean',
|
84
89
|
:'page' => :'Integer',
|
@@ -97,6 +102,7 @@ module TrieveRubyClient
|
|
97
102
|
:'date_bias',
|
98
103
|
:'filters',
|
99
104
|
:'get_collisions',
|
105
|
+
:'get_total_pages',
|
100
106
|
:'highlight_delimiters',
|
101
107
|
:'highlight_results',
|
102
108
|
:'page',
|
@@ -134,6 +140,10 @@ module TrieveRubyClient
|
|
134
140
|
self.get_collisions = attributes[:'get_collisions']
|
135
141
|
end
|
136
142
|
|
143
|
+
if attributes.key?(:'get_total_pages')
|
144
|
+
self.get_total_pages = attributes[:'get_total_pages']
|
145
|
+
end
|
146
|
+
|
137
147
|
if attributes.key?(:'highlight_delimiters')
|
138
148
|
if (value = attributes[:'highlight_delimiters']).is_a?(Array)
|
139
149
|
self.highlight_delimiters = value
|
@@ -240,6 +250,7 @@ module TrieveRubyClient
|
|
240
250
|
date_bias == o.date_bias &&
|
241
251
|
filters == o.filters &&
|
242
252
|
get_collisions == o.get_collisions &&
|
253
|
+
get_total_pages == o.get_total_pages &&
|
243
254
|
highlight_delimiters == o.highlight_delimiters &&
|
244
255
|
highlight_results == o.highlight_results &&
|
245
256
|
page == o.page &&
|
@@ -260,7 +271,7 @@ module TrieveRubyClient
|
|
260
271
|
# Calculates hash code according to all attributes.
|
261
272
|
# @return [Integer] Hash code
|
262
273
|
def hash
|
263
|
-
[date_bias, filters, get_collisions, highlight_delimiters, highlight_results, page, page_size, query, score_threshold, search_type, slim_chunks, use_weights].hash
|
274
|
+
[date_bias, filters, get_collisions, get_total_pages, highlight_delimiters, highlight_results, page, page_size, query, score_threshold, search_type, slim_chunks, use_weights].hash
|
264
275
|
end
|
265
276
|
|
266
277
|
# Builds the object from hash
|
@@ -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.0
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -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.0
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -20,6 +20,9 @@ module TrieveRubyClient
|
|
20
20
|
# 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.
|
21
21
|
attr_accessor :get_collisions
|
22
22
|
|
23
|
+
# Get total page count for the query accounting for the applied filters. Defaults to true, but can be set to false to reduce latency in edge cases performance.
|
24
|
+
attr_accessor :get_total_pages
|
25
|
+
|
23
26
|
# 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.
|
24
27
|
attr_accessor :group_size
|
25
28
|
|
@@ -52,6 +55,7 @@ module TrieveRubyClient
|
|
52
55
|
{
|
53
56
|
:'filters' => :'filters',
|
54
57
|
:'get_collisions' => :'get_collisions',
|
58
|
+
:'get_total_pages' => :'get_total_pages',
|
55
59
|
:'group_size' => :'group_size',
|
56
60
|
:'highlight_delimiters' => :'highlight_delimiters',
|
57
61
|
:'highlight_results' => :'highlight_results',
|
@@ -74,6 +78,7 @@ module TrieveRubyClient
|
|
74
78
|
{
|
75
79
|
:'filters' => :'ChunkFilter',
|
76
80
|
:'get_collisions' => :'Boolean',
|
81
|
+
:'get_total_pages' => :'Boolean',
|
77
82
|
:'group_size' => :'Integer',
|
78
83
|
:'highlight_delimiters' => :'Array<String>',
|
79
84
|
:'highlight_results' => :'Boolean',
|
@@ -91,6 +96,7 @@ module TrieveRubyClient
|
|
91
96
|
Set.new([
|
92
97
|
:'filters',
|
93
98
|
:'get_collisions',
|
99
|
+
:'get_total_pages',
|
94
100
|
:'group_size',
|
95
101
|
:'highlight_delimiters',
|
96
102
|
:'highlight_results',
|
@@ -124,6 +130,10 @@ module TrieveRubyClient
|
|
124
130
|
self.get_collisions = attributes[:'get_collisions']
|
125
131
|
end
|
126
132
|
|
133
|
+
if attributes.key?(:'get_total_pages')
|
134
|
+
self.get_total_pages = attributes[:'get_total_pages']
|
135
|
+
end
|
136
|
+
|
127
137
|
if attributes.key?(:'group_size')
|
128
138
|
self.group_size = attributes[:'group_size']
|
129
139
|
end
|
@@ -244,6 +254,7 @@ module TrieveRubyClient
|
|
244
254
|
self.class == o.class &&
|
245
255
|
filters == o.filters &&
|
246
256
|
get_collisions == o.get_collisions &&
|
257
|
+
get_total_pages == o.get_total_pages &&
|
247
258
|
group_size == o.group_size &&
|
248
259
|
highlight_delimiters == o.highlight_delimiters &&
|
249
260
|
highlight_results == o.highlight_results &&
|
@@ -264,7 +275,7 @@ module TrieveRubyClient
|
|
264
275
|
# Calculates hash code according to all attributes.
|
265
276
|
# @return [Integer] Hash code
|
266
277
|
def hash
|
267
|
-
[filters, get_collisions, group_size, highlight_delimiters, highlight_results, page, page_size, query, score_threshold, search_type, slim_chunks].hash
|
278
|
+
[filters, get_collisions, get_total_pages, group_size, highlight_delimiters, highlight_results, page, page_size, query, score_threshold, search_type, slim_chunks].hash
|
268
279
|
end
|
269
280
|
|
270
281
|
# Builds the object from hash
|
@@ -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.0
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -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.0
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -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.0
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -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.0
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -20,6 +20,9 @@ module TrieveRubyClient
|
|
20
20
|
|
21
21
|
attr_accessor :filters
|
22
22
|
|
23
|
+
# Get total page count for the query accounting for the applied filters. Defaults to true, but can be set to false to reduce latency in edge cases performance.
|
24
|
+
attr_accessor :get_total_pages
|
25
|
+
|
23
26
|
# Group specifies the group to search within. Results will only consist of chunks which are bookmarks within the specified group.
|
24
27
|
attr_accessor :group_id
|
25
28
|
|
@@ -58,6 +61,7 @@ module TrieveRubyClient
|
|
58
61
|
{
|
59
62
|
:'date_bias' => :'date_bias',
|
60
63
|
:'filters' => :'filters',
|
64
|
+
:'get_total_pages' => :'get_total_pages',
|
61
65
|
:'group_id' => :'group_id',
|
62
66
|
:'group_tracking_id' => :'group_tracking_id',
|
63
67
|
:'highlight_delimiters' => :'highlight_delimiters',
|
@@ -82,6 +86,7 @@ module TrieveRubyClient
|
|
82
86
|
{
|
83
87
|
:'date_bias' => :'Boolean',
|
84
88
|
:'filters' => :'ChunkFilter',
|
89
|
+
:'get_total_pages' => :'Boolean',
|
85
90
|
:'group_id' => :'String',
|
86
91
|
:'group_tracking_id' => :'String',
|
87
92
|
:'highlight_delimiters' => :'Array<String>',
|
@@ -101,6 +106,7 @@ module TrieveRubyClient
|
|
101
106
|
Set.new([
|
102
107
|
:'date_bias',
|
103
108
|
:'filters',
|
109
|
+
:'get_total_pages',
|
104
110
|
:'group_id',
|
105
111
|
:'group_tracking_id',
|
106
112
|
:'highlight_delimiters',
|
@@ -136,6 +142,10 @@ module TrieveRubyClient
|
|
136
142
|
self.filters = attributes[:'filters']
|
137
143
|
end
|
138
144
|
|
145
|
+
if attributes.key?(:'get_total_pages')
|
146
|
+
self.get_total_pages = attributes[:'get_total_pages']
|
147
|
+
end
|
148
|
+
|
139
149
|
if attributes.key?(:'group_id')
|
140
150
|
self.group_id = attributes[:'group_id']
|
141
151
|
end
|
@@ -249,6 +259,7 @@ module TrieveRubyClient
|
|
249
259
|
self.class == o.class &&
|
250
260
|
date_bias == o.date_bias &&
|
251
261
|
filters == o.filters &&
|
262
|
+
get_total_pages == o.get_total_pages &&
|
252
263
|
group_id == o.group_id &&
|
253
264
|
group_tracking_id == o.group_tracking_id &&
|
254
265
|
highlight_delimiters == o.highlight_delimiters &&
|
@@ -271,7 +282,7 @@ module TrieveRubyClient
|
|
271
282
|
# Calculates hash code according to all attributes.
|
272
283
|
# @return [Integer] Hash code
|
273
284
|
def hash
|
274
|
-
[date_bias, filters, group_id, group_tracking_id, highlight_delimiters, highlight_results, page, page_size, query, score_threshold, search_type, slim_chunks, use_weights].hash
|
285
|
+
[date_bias, filters, get_total_pages, group_id, group_tracking_id, highlight_delimiters, highlight_results, page, page_size, query, score_threshold, search_type, slim_chunks, use_weights].hash
|
275
286
|
end
|
276
287
|
|
277
288
|
# Builds the object from hash
|