trieve_ruby_client 0.7.2 → 0.7.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (142) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +15 -6
  3. data/docs/ChunkApi.md +158 -10
  4. data/docs/ChunkData.md +2 -0
  5. data/docs/ChunkMetadata.md +2 -0
  6. data/docs/CreateMessageData.md +0 -2
  7. data/docs/CreateTopicData.md +0 -2
  8. data/docs/EditMessageData.md +0 -2
  9. data/docs/FieldCondition.md +6 -0
  10. data/docs/GenerateChunksRequest.md +0 -2
  11. data/docs/GeoInfo.md +20 -0
  12. data/docs/GeoTypes.md +49 -0
  13. data/docs/GetChunksData.md +18 -0
  14. data/docs/GetTrackingChunksData.md +18 -0
  15. data/docs/LocationBoundingBox.md +20 -0
  16. data/docs/LocationPolygon.md +20 -0
  17. data/docs/LocationRadius.md +20 -0
  18. data/docs/RangeCondition.md +2 -0
  19. data/docs/RegenerateMessageData.md +0 -2
  20. data/docs/SlimChunkMetadata.md +4 -0
  21. data/docs/UpdateChunkData.md +2 -0
  22. data/lib/trieve_ruby_client/api/auth_api.rb +1 -1
  23. data/lib/trieve_ruby_client/api/chunk_api.rb +161 -11
  24. data/lib/trieve_ruby_client/api/chunk_group_api.rb +1 -1
  25. data/lib/trieve_ruby_client/api/dataset_api.rb +1 -1
  26. data/lib/trieve_ruby_client/api/events_api.rb +1 -1
  27. data/lib/trieve_ruby_client/api/file_api.rb +1 -1
  28. data/lib/trieve_ruby_client/api/health_api.rb +1 -1
  29. data/lib/trieve_ruby_client/api/invitation_api.rb +1 -1
  30. data/lib/trieve_ruby_client/api/message_api.rb +1 -1
  31. data/lib/trieve_ruby_client/api/organization_api.rb +1 -1
  32. data/lib/trieve_ruby_client/api/stripe_api.rb +1 -1
  33. data/lib/trieve_ruby_client/api/topic_api.rb +1 -1
  34. data/lib/trieve_ruby_client/api/user_api.rb +1 -1
  35. data/lib/trieve_ruby_client/api_client.rb +1 -1
  36. data/lib/trieve_ruby_client/api_error.rb +1 -1
  37. data/lib/trieve_ruby_client/configuration.rb +1 -1
  38. data/lib/trieve_ruby_client/models/add_chunk_to_group_data.rb +1 -1
  39. data/lib/trieve_ruby_client/models/api_key_dto.rb +1 -1
  40. data/lib/trieve_ruby_client/models/auth_query.rb +1 -1
  41. data/lib/trieve_ruby_client/models/batch_queued_chunk_response.rb +1 -1
  42. data/lib/trieve_ruby_client/models/bookmark_data.rb +1 -1
  43. data/lib/trieve_ruby_client/models/bookmark_group_result.rb +1 -1
  44. data/lib/trieve_ruby_client/models/chat_message_proxy.rb +1 -1
  45. data/lib/trieve_ruby_client/models/chunk_data.rb +12 -2
  46. data/lib/trieve_ruby_client/models/chunk_filter.rb +1 -1
  47. data/lib/trieve_ruby_client/models/chunk_group.rb +1 -1
  48. data/lib/trieve_ruby_client/models/chunk_group_and_file.rb +1 -1
  49. data/lib/trieve_ruby_client/models/chunk_metadata.rb +12 -2
  50. data/lib/trieve_ruby_client/models/chunk_metadata_with_score.rb +1 -1
  51. data/lib/trieve_ruby_client/models/client_dataset_configuration.rb +1 -1
  52. data/lib/trieve_ruby_client/models/create_chunk_data.rb +1 -1
  53. data/lib/trieve_ruby_client/models/create_chunk_group_data.rb +1 -1
  54. data/lib/trieve_ruby_client/models/create_dataset_request.rb +1 -1
  55. data/lib/trieve_ruby_client/models/create_message_data.rb +2 -13
  56. data/lib/trieve_ruby_client/models/create_organization_data.rb +1 -1
  57. data/lib/trieve_ruby_client/models/create_topic_data.rb +2 -13
  58. data/lib/trieve_ruby_client/models/dataset.rb +1 -1
  59. data/lib/trieve_ruby_client/models/dataset_and_usage.rb +1 -1
  60. data/lib/trieve_ruby_client/models/dataset_dto.rb +1 -1
  61. data/lib/trieve_ruby_client/models/dataset_usage_count.rb +1 -1
  62. data/lib/trieve_ruby_client/models/delete_topic_data.rb +1 -1
  63. data/lib/trieve_ruby_client/models/delete_user_api_key_request.rb +1 -1
  64. data/lib/trieve_ruby_client/models/edit_message_data.rb +2 -13
  65. data/lib/trieve_ruby_client/models/error_response_body.rb +1 -1
  66. data/lib/trieve_ruby_client/models/event.rb +1 -1
  67. data/lib/trieve_ruby_client/models/event_return.rb +1 -1
  68. data/lib/trieve_ruby_client/models/field_condition.rb +32 -2
  69. data/lib/trieve_ruby_client/models/file.rb +1 -1
  70. data/lib/trieve_ruby_client/models/file_dto.rb +1 -1
  71. data/lib/trieve_ruby_client/models/generate_chunks_request.rb +2 -13
  72. data/lib/trieve_ruby_client/models/geo_info.rb +237 -0
  73. data/lib/trieve_ruby_client/models/geo_types.rb +105 -0
  74. data/lib/trieve_ruby_client/models/get_chunks_data.rb +223 -0
  75. data/lib/trieve_ruby_client/models/get_events_data.rb +1 -1
  76. data/lib/trieve_ruby_client/models/get_groups_for_chunks_data.rb +1 -1
  77. data/lib/trieve_ruby_client/models/get_tracking_chunks_data.rb +223 -0
  78. data/lib/trieve_ruby_client/models/group_data.rb +1 -1
  79. data/lib/trieve_ruby_client/models/group_score_chunk.rb +1 -1
  80. data/lib/trieve_ruby_client/models/group_score_slim_chunks.rb +1 -1
  81. data/lib/trieve_ruby_client/models/invitation_data.rb +1 -1
  82. data/lib/trieve_ruby_client/models/location_bounding_box.rb +237 -0
  83. data/lib/trieve_ruby_client/models/location_polygon.rb +235 -0
  84. data/lib/trieve_ruby_client/models/location_radius.rb +237 -0
  85. data/lib/trieve_ruby_client/models/match_condition.rb +1 -1
  86. data/lib/trieve_ruby_client/models/message.rb +1 -1
  87. data/lib/trieve_ruby_client/models/organization.rb +1 -1
  88. data/lib/trieve_ruby_client/models/organization_usage_count.rb +1 -1
  89. data/lib/trieve_ruby_client/models/range.rb +1 -1
  90. data/lib/trieve_ruby_client/models/range_condition.rb +2 -1
  91. data/lib/trieve_ruby_client/models/recommend_chunks_request.rb +1 -1
  92. data/lib/trieve_ruby_client/models/recommend_group_chunks_request.rb +1 -1
  93. data/lib/trieve_ruby_client/models/regenerate_message_data.rb +2 -13
  94. data/lib/trieve_ruby_client/models/return_queued_chunk.rb +1 -1
  95. data/lib/trieve_ruby_client/models/score_chunk_dto.rb +1 -1
  96. data/lib/trieve_ruby_client/models/score_slim_chunks.rb +1 -1
  97. data/lib/trieve_ruby_client/models/search_chunk_data.rb +1 -1
  98. data/lib/trieve_ruby_client/models/search_chunk_query_response_body.rb +1 -1
  99. data/lib/trieve_ruby_client/models/search_over_groups_data.rb +1 -1
  100. data/lib/trieve_ruby_client/models/search_over_groups_results.rb +1 -1
  101. data/lib/trieve_ruby_client/models/search_over_groups_slim_results.rb +1 -1
  102. data/lib/trieve_ruby_client/models/search_slim_chunk_query_response_body.rb +1 -1
  103. data/lib/trieve_ruby_client/models/search_within_group_data.rb +1 -1
  104. data/lib/trieve_ruby_client/models/search_within_group_results.rb +1 -1
  105. data/lib/trieve_ruby_client/models/search_within_group_slim_results.rb +1 -1
  106. data/lib/trieve_ruby_client/models/set_user_api_key_request.rb +1 -1
  107. data/lib/trieve_ruby_client/models/set_user_api_key_response.rb +1 -1
  108. data/lib/trieve_ruby_client/models/single_queued_chunk_response.rb +1 -1
  109. data/lib/trieve_ruby_client/models/slim_chunk_metadata.rb +28 -2
  110. data/lib/trieve_ruby_client/models/slim_chunk_metadata_with_score.rb +1 -1
  111. data/lib/trieve_ruby_client/models/slim_group.rb +1 -1
  112. data/lib/trieve_ruby_client/models/slim_user.rb +1 -1
  113. data/lib/trieve_ruby_client/models/stripe_plan.rb +1 -1
  114. data/lib/trieve_ruby_client/models/suggested_queries_request.rb +1 -1
  115. data/lib/trieve_ruby_client/models/suggested_queries_response.rb +1 -1
  116. data/lib/trieve_ruby_client/models/topic.rb +1 -1
  117. data/lib/trieve_ruby_client/models/update_chunk_by_tracking_id_data.rb +1 -1
  118. data/lib/trieve_ruby_client/models/update_chunk_data.rb +12 -2
  119. data/lib/trieve_ruby_client/models/update_chunk_group_data.rb +1 -1
  120. data/lib/trieve_ruby_client/models/update_dataset_request.rb +1 -1
  121. data/lib/trieve_ruby_client/models/update_group_by_tracking_id_data.rb +1 -1
  122. data/lib/trieve_ruby_client/models/update_organization_data.rb +1 -1
  123. data/lib/trieve_ruby_client/models/update_topic_data.rb +1 -1
  124. data/lib/trieve_ruby_client/models/update_user_org_role_data.rb +1 -1
  125. data/lib/trieve_ruby_client/models/upload_file_data.rb +1 -1
  126. data/lib/trieve_ruby_client/models/upload_file_result.rb +1 -1
  127. data/lib/trieve_ruby_client/models/user_organization.rb +1 -1
  128. data/lib/trieve_ruby_client/version.rb +2 -2
  129. data/lib/trieve_ruby_client.rb +8 -1
  130. data/openapi-generator.yaml +1 -1
  131. data/openapi.json +322 -28
  132. data/spec/models/geo_info_spec.rb +42 -0
  133. data/spec/models/geo_types_spec.rb +32 -0
  134. data/spec/models/get_chunks_data_spec.rb +36 -0
  135. data/spec/models/get_tracking_chunks_data_spec.rb +36 -0
  136. data/spec/models/location_bounding_box_spec.rb +42 -0
  137. data/spec/models/location_polygon_spec.rb +42 -0
  138. data/spec/models/location_radius_spec.rb +42 -0
  139. data/spec/spec_helper.rb +1 -1
  140. data/trieve_ruby_client-0.7.2.gem +0 -0
  141. data/trieve_ruby_client.gemspec +1 -1
  142. metadata +31 -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.7.2
6
+ The version of the OpenAPI document: 0.7.6
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.7.2
6
+ The version of the OpenAPI document: 0.7.6
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.7.2
6
+ The version of the OpenAPI document: 0.7.6
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.7.2
6
+ The version of the OpenAPI document: 0.7.6
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.7.2
6
+ The version of the OpenAPI document: 0.7.6
7
7
  Contact: developers@trieve.ai
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.4.0
@@ -21,9 +21,6 @@ module TrieveRubyClient
21
21
  # The delimiters to use for highlighting the citations. If this is not included, the default delimiters will be used. Default is `[\".\", \"!\", \"?\", \"\\n\", \"\\t\", \",\"]`.
22
22
  attr_accessor :highlight_delimiters
23
23
 
24
- # The model to use for the assistant's messages. This can be any model from the openrouter model list. If no model is provided, gpt-3.5-turbo will be used.
25
- attr_accessor :model
26
-
27
24
  # The content of the user message to attach to the topic and then generate an assistant message in response to.
28
25
  attr_accessor :new_message_content
29
26
 
@@ -38,7 +35,6 @@ module TrieveRubyClient
38
35
  {
39
36
  :'highlight_citations' => :'highlight_citations',
40
37
  :'highlight_delimiters' => :'highlight_delimiters',
41
- :'model' => :'model',
42
38
  :'new_message_content' => :'new_message_content',
43
39
  :'stream_response' => :'stream_response',
44
40
  :'topic_id' => :'topic_id'
@@ -55,7 +51,6 @@ module TrieveRubyClient
55
51
  {
56
52
  :'highlight_citations' => :'Boolean',
57
53
  :'highlight_delimiters' => :'Array<String>',
58
- :'model' => :'String',
59
54
  :'new_message_content' => :'String',
60
55
  :'stream_response' => :'Boolean',
61
56
  :'topic_id' => :'String'
@@ -67,7 +62,6 @@ module TrieveRubyClient
67
62
  Set.new([
68
63
  :'highlight_citations',
69
64
  :'highlight_delimiters',
70
- :'model',
71
65
  :'stream_response',
72
66
  ])
73
67
  end
@@ -97,10 +91,6 @@ module TrieveRubyClient
97
91
  end
98
92
  end
99
93
 
100
- if attributes.key?(:'model')
101
- self.model = attributes[:'model']
102
- end
103
-
104
94
  if attributes.key?(:'new_message_content')
105
95
  self.new_message_content = attributes[:'new_message_content']
106
96
  else
@@ -150,7 +140,6 @@ module TrieveRubyClient
150
140
  self.class == o.class &&
151
141
  highlight_citations == o.highlight_citations &&
152
142
  highlight_delimiters == o.highlight_delimiters &&
153
- model == o.model &&
154
143
  new_message_content == o.new_message_content &&
155
144
  stream_response == o.stream_response &&
156
145
  topic_id == o.topic_id
@@ -165,7 +154,7 @@ module TrieveRubyClient
165
154
  # Calculates hash code according to all attributes.
166
155
  # @return [Integer] Hash code
167
156
  def hash
168
- [highlight_citations, highlight_delimiters, model, new_message_content, stream_response, topic_id].hash
157
+ [highlight_citations, highlight_delimiters, new_message_content, stream_response, topic_id].hash
169
158
  end
170
159
 
171
160
  # 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.7.2
6
+ The version of the OpenAPI document: 0.7.6
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.7.2
6
+ The version of the OpenAPI document: 0.7.6
7
7
  Contact: developers@trieve.ai
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.4.0
@@ -18,9 +18,6 @@ module TrieveRubyClient
18
18
  # The first message which will belong to the topic. The topic name is generated based on this message similar to how it works in the OpenAI chat UX if a name is not explicitly provided on the name request body key.
19
19
  attr_accessor :first_user_message
20
20
 
21
- # The model to use for the assistant's messages. This can be any model from the openrouter model list. If no model is provided, the gpt-3.5-turbo will be used.
22
- attr_accessor :model
23
-
24
21
  # The name of the topic. If this is not provided, the topic name is generated from the first_user_message.
25
22
  attr_accessor :name
26
23
 
@@ -31,7 +28,6 @@ module TrieveRubyClient
31
28
  def self.attribute_map
32
29
  {
33
30
  :'first_user_message' => :'first_user_message',
34
- :'model' => :'model',
35
31
  :'name' => :'name',
36
32
  :'owner_id' => :'owner_id'
37
33
  }
@@ -46,7 +42,6 @@ module TrieveRubyClient
46
42
  def self.openapi_types
47
43
  {
48
44
  :'first_user_message' => :'String',
49
- :'model' => :'String',
50
45
  :'name' => :'String',
51
46
  :'owner_id' => :'String'
52
47
  }
@@ -56,7 +51,6 @@ module TrieveRubyClient
56
51
  def self.openapi_nullable
57
52
  Set.new([
58
53
  :'first_user_message',
59
- :'model',
60
54
  :'name',
61
55
  ])
62
56
  end
@@ -80,10 +74,6 @@ module TrieveRubyClient
80
74
  self.first_user_message = attributes[:'first_user_message']
81
75
  end
82
76
 
83
- if attributes.key?(:'model')
84
- self.model = attributes[:'model']
85
- end
86
-
87
77
  if attributes.key?(:'name')
88
78
  self.name = attributes[:'name']
89
79
  end
@@ -121,7 +111,6 @@ module TrieveRubyClient
121
111
  return true if self.equal?(o)
122
112
  self.class == o.class &&
123
113
  first_user_message == o.first_user_message &&
124
- model == o.model &&
125
114
  name == o.name &&
126
115
  owner_id == o.owner_id
127
116
  end
@@ -135,7 +124,7 @@ module TrieveRubyClient
135
124
  # Calculates hash code according to all attributes.
136
125
  # @return [Integer] Hash code
137
126
  def hash
138
- [first_user_message, model, name, owner_id].hash
127
+ [first_user_message, name, owner_id].hash
139
128
  end
140
129
 
141
130
  # 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.7.2
6
+ The version of the OpenAPI document: 0.7.6
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.7.2
6
+ The version of the OpenAPI document: 0.7.6
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.7.2
6
+ The version of the OpenAPI document: 0.7.6
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.7.2
6
+ The version of the OpenAPI document: 0.7.6
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.7.2
6
+ The version of the OpenAPI document: 0.7.6
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.7.2
6
+ The version of the OpenAPI document: 0.7.6
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.7.2
6
+ The version of the OpenAPI document: 0.7.6
7
7
  Contact: developers@trieve.ai
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.4.0
@@ -24,9 +24,6 @@ module TrieveRubyClient
24
24
  # The sort order of the message to edit.
25
25
  attr_accessor :message_sort_order
26
26
 
27
- # The model to use for the assistant generative inferences. This can be any model from the openrouter model list. If no model is provided, the gpt-3.5-turbo will be used.~
28
- attr_accessor :model
29
-
30
27
  # The new content of the message to replace the old content with.
31
28
  attr_accessor :new_message_content
32
29
 
@@ -42,7 +39,6 @@ module TrieveRubyClient
42
39
  :'highlight_citations' => :'highlight_citations',
43
40
  :'highlight_delimiters' => :'highlight_delimiters',
44
41
  :'message_sort_order' => :'message_sort_order',
45
- :'model' => :'model',
46
42
  :'new_message_content' => :'new_message_content',
47
43
  :'stream_response' => :'stream_response',
48
44
  :'topic_id' => :'topic_id'
@@ -60,7 +56,6 @@ module TrieveRubyClient
60
56
  :'highlight_citations' => :'Boolean',
61
57
  :'highlight_delimiters' => :'Array<String>',
62
58
  :'message_sort_order' => :'Integer',
63
- :'model' => :'String',
64
59
  :'new_message_content' => :'String',
65
60
  :'stream_response' => :'Boolean',
66
61
  :'topic_id' => :'String'
@@ -72,7 +67,6 @@ module TrieveRubyClient
72
67
  Set.new([
73
68
  :'highlight_citations',
74
69
  :'highlight_delimiters',
75
- :'model',
76
70
  :'stream_response',
77
71
  ])
78
72
  end
@@ -108,10 +102,6 @@ module TrieveRubyClient
108
102
  self.message_sort_order = nil
109
103
  end
110
104
 
111
- if attributes.key?(:'model')
112
- self.model = attributes[:'model']
113
- end
114
-
115
105
  if attributes.key?(:'new_message_content')
116
106
  self.new_message_content = attributes[:'new_message_content']
117
107
  else
@@ -167,7 +157,6 @@ module TrieveRubyClient
167
157
  highlight_citations == o.highlight_citations &&
168
158
  highlight_delimiters == o.highlight_delimiters &&
169
159
  message_sort_order == o.message_sort_order &&
170
- model == o.model &&
171
160
  new_message_content == o.new_message_content &&
172
161
  stream_response == o.stream_response &&
173
162
  topic_id == o.topic_id
@@ -182,7 +171,7 @@ module TrieveRubyClient
182
171
  # Calculates hash code according to all attributes.
183
172
  # @return [Integer] Hash code
184
173
  def hash
185
- [highlight_citations, highlight_delimiters, message_sort_order, model, new_message_content, stream_response, topic_id].hash
174
+ [highlight_citations, highlight_delimiters, message_sort_order, new_message_content, stream_response, topic_id].hash
186
175
  end
187
176
 
188
177
  # 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.7.2
6
+ The version of the OpenAPI document: 0.7.6
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.7.2
6
+ The version of the OpenAPI document: 0.7.6
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.7.2
6
+ The version of the OpenAPI document: 0.7.6
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.7.2
6
+ The version of the OpenAPI document: 0.7.6
7
7
  Contact: developers@trieve.ai
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.4.0
@@ -18,6 +18,12 @@ module TrieveRubyClient
18
18
  # Field is the name of the field to filter on. The field value will be used to check for an exact substring match on the metadata values for each existing chunk. This is useful for when you want to filter chunks by arbitrary metadata. To access fields inside of the metadata that you provide with the card, prefix the field name with `metadata.`.
19
19
  attr_accessor :field
20
20
 
21
+ attr_accessor :geo_bounding_box
22
+
23
+ attr_accessor :geo_polygon
24
+
25
+ attr_accessor :geo_radius
26
+
21
27
  # Match is the value to match on the field. The match value will be used to check for an exact substring match on the metadata values for each existing chunk. This is useful for when you want to filter chunks by arbitrary metadata.
22
28
  attr_accessor :match
23
29
 
@@ -27,6 +33,9 @@ module TrieveRubyClient
27
33
  def self.attribute_map
28
34
  {
29
35
  :'field' => :'field',
36
+ :'geo_bounding_box' => :'geo_bounding_box',
37
+ :'geo_polygon' => :'geo_polygon',
38
+ :'geo_radius' => :'geo_radius',
30
39
  :'match' => :'match',
31
40
  :'range' => :'range'
32
41
  }
@@ -41,6 +50,9 @@ module TrieveRubyClient
41
50
  def self.openapi_types
42
51
  {
43
52
  :'field' => :'String',
53
+ :'geo_bounding_box' => :'LocationBoundingBox',
54
+ :'geo_polygon' => :'LocationPolygon',
55
+ :'geo_radius' => :'LocationRadius',
44
56
  :'match' => :'Array<MatchCondition>',
45
57
  :'range' => :'Range'
46
58
  }
@@ -49,6 +61,9 @@ module TrieveRubyClient
49
61
  # List of attributes with nullable: true
50
62
  def self.openapi_nullable
51
63
  Set.new([
64
+ :'geo_bounding_box',
65
+ :'geo_polygon',
66
+ :'geo_radius',
52
67
  :'match',
53
68
  :'range'
54
69
  ])
@@ -75,6 +90,18 @@ module TrieveRubyClient
75
90
  self.field = nil
76
91
  end
77
92
 
93
+ if attributes.key?(:'geo_bounding_box')
94
+ self.geo_bounding_box = attributes[:'geo_bounding_box']
95
+ end
96
+
97
+ if attributes.key?(:'geo_polygon')
98
+ self.geo_polygon = attributes[:'geo_polygon']
99
+ end
100
+
101
+ if attributes.key?(:'geo_radius')
102
+ self.geo_radius = attributes[:'geo_radius']
103
+ end
104
+
78
105
  if attributes.key?(:'match')
79
106
  if (value = attributes[:'match']).is_a?(Array)
80
107
  self.match = value
@@ -112,6 +139,9 @@ module TrieveRubyClient
112
139
  return true if self.equal?(o)
113
140
  self.class == o.class &&
114
141
  field == o.field &&
142
+ geo_bounding_box == o.geo_bounding_box &&
143
+ geo_polygon == o.geo_polygon &&
144
+ geo_radius == o.geo_radius &&
115
145
  match == o.match &&
116
146
  range == o.range
117
147
  end
@@ -125,7 +155,7 @@ module TrieveRubyClient
125
155
  # Calculates hash code according to all attributes.
126
156
  # @return [Integer] Hash code
127
157
  def hash
128
- [field, match, range].hash
158
+ [field, geo_bounding_box, geo_polygon, geo_radius, match, range].hash
129
159
  end
130
160
 
131
161
  # 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.7.2
6
+ The version of the OpenAPI document: 0.7.6
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.7.2
6
+ The version of the OpenAPI document: 0.7.6
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.7.2
6
+ The version of the OpenAPI document: 0.7.6
7
7
  Contact: developers@trieve.ai
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.4.0
@@ -18,9 +18,6 @@ module TrieveRubyClient
18
18
  # The ids of the chunks to be retrieved and injected into the context window for RAG.
19
19
  attr_accessor :chunk_ids
20
20
 
21
- # The model to use for the chat. This can be any model from the openrouter model list. If no model is provided, gpt-3.5-turbo will be used.
22
- attr_accessor :model
23
-
24
21
  # The previous messages to be placed into the chat history. The last message in this array will be the prompt for the model to inference on. The length of this array must be at least 1.
25
22
  attr_accessor :prev_messages
26
23
 
@@ -34,7 +31,6 @@ module TrieveRubyClient
34
31
  def self.attribute_map
35
32
  {
36
33
  :'chunk_ids' => :'chunk_ids',
37
- :'model' => :'model',
38
34
  :'prev_messages' => :'prev_messages',
39
35
  :'prompt' => :'prompt',
40
36
  :'stream_response' => :'stream_response'
@@ -50,7 +46,6 @@ module TrieveRubyClient
50
46
  def self.openapi_types
51
47
  {
52
48
  :'chunk_ids' => :'Array<String>',
53
- :'model' => :'String',
54
49
  :'prev_messages' => :'Array<ChatMessageProxy>',
55
50
  :'prompt' => :'String',
56
51
  :'stream_response' => :'Boolean'
@@ -60,7 +55,6 @@ module TrieveRubyClient
60
55
  # List of attributes with nullable: true
61
56
  def self.openapi_nullable
62
57
  Set.new([
63
- :'model',
64
58
  :'prompt',
65
59
  :'stream_response'
66
60
  ])
@@ -89,10 +83,6 @@ module TrieveRubyClient
89
83
  self.chunk_ids = nil
90
84
  end
91
85
 
92
- if attributes.key?(:'model')
93
- self.model = attributes[:'model']
94
- end
95
-
96
86
  if attributes.key?(:'prev_messages')
97
87
  if (value = attributes[:'prev_messages']).is_a?(Array)
98
88
  self.prev_messages = value
@@ -141,7 +131,6 @@ module TrieveRubyClient
141
131
  return true if self.equal?(o)
142
132
  self.class == o.class &&
143
133
  chunk_ids == o.chunk_ids &&
144
- model == o.model &&
145
134
  prev_messages == o.prev_messages &&
146
135
  prompt == o.prompt &&
147
136
  stream_response == o.stream_response
@@ -156,7 +145,7 @@ module TrieveRubyClient
156
145
  # Calculates hash code according to all attributes.
157
146
  # @return [Integer] Hash code
158
147
  def hash
159
- [chunk_ids, model, prev_messages, prompt, stream_response].hash
148
+ [chunk_ids, prev_messages, prompt, stream_response].hash
160
149
  end
161
150
 
162
151
  # Builds the object from hash