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.
Files changed (129) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +6 -6
  3. data/docs/AddChunkToGroupData.md +4 -2
  4. data/docs/AuthApi.md +12 -6
  5. data/docs/ChunkGroup.md +4 -0
  6. data/docs/ChunkGroupApi.md +13 -13
  7. data/docs/CreateChunkGroupData.md +4 -0
  8. data/docs/DatasetApi.md +6 -6
  9. data/docs/EventsApi.md +1 -1
  10. data/docs/FileApi.md +2 -2
  11. data/docs/RecommendChunksRequest.md +3 -1
  12. data/docs/RecommendGroupChunksRequest.md +34 -0
  13. data/docs/SearchChunkData.md +1 -3
  14. data/docs/SearchOverGroupsData.md +3 -5
  15. data/docs/SearchWithinGroupData.md +1 -3
  16. data/docs/UpdateChunkGroupData.md +4 -0
  17. data/docs/UpdateGroupByTrackingIDData.md +4 -0
  18. data/lib/trieve_ruby_client/api/auth_api.rb +13 -11
  19. data/lib/trieve_ruby_client/api/chunk_api.rb +1 -1
  20. data/lib/trieve_ruby_client/api/chunk_group_api.rb +18 -18
  21. data/lib/trieve_ruby_client/api/dataset_api.rb +10 -10
  22. data/lib/trieve_ruby_client/api/events_api.rb +3 -3
  23. data/lib/trieve_ruby_client/api/file_api.rb +5 -5
  24. data/lib/trieve_ruby_client/api/health_api.rb +1 -1
  25. data/lib/trieve_ruby_client/api/invitation_api.rb +1 -1
  26. data/lib/trieve_ruby_client/api/message_api.rb +1 -1
  27. data/lib/trieve_ruby_client/api/organization_api.rb +1 -1
  28. data/lib/trieve_ruby_client/api/stripe_api.rb +1 -1
  29. data/lib/trieve_ruby_client/api/topic_api.rb +1 -1
  30. data/lib/trieve_ruby_client/api/user_api.rb +1 -1
  31. data/lib/trieve_ruby_client/api_client.rb +1 -1
  32. data/lib/trieve_ruby_client/api_error.rb +1 -1
  33. data/lib/trieve_ruby_client/configuration.rb +1 -1
  34. data/lib/trieve_ruby_client/models/add_chunk_to_group_data.rb +17 -12
  35. data/lib/trieve_ruby_client/models/api_key_dto.rb +1 -1
  36. data/lib/trieve_ruby_client/models/auth_query.rb +1 -1
  37. data/lib/trieve_ruby_client/models/batch_queued_chunk_response.rb +1 -1
  38. data/lib/trieve_ruby_client/models/bookmark_data.rb +1 -1
  39. data/lib/trieve_ruby_client/models/bookmark_group_result.rb +1 -1
  40. data/lib/trieve_ruby_client/models/chat_message_proxy.rb +1 -1
  41. data/lib/trieve_ruby_client/models/chunk_data.rb +1 -1
  42. data/lib/trieve_ruby_client/models/chunk_filter.rb +1 -1
  43. data/lib/trieve_ruby_client/models/chunk_group.rb +22 -2
  44. data/lib/trieve_ruby_client/models/chunk_group_and_file.rb +1 -1
  45. data/lib/trieve_ruby_client/models/chunk_metadata.rb +1 -1
  46. data/lib/trieve_ruby_client/models/chunk_metadata_with_file_data.rb +1 -1
  47. data/lib/trieve_ruby_client/models/client_dataset_configuration.rb +1 -1
  48. data/lib/trieve_ruby_client/models/create_chunk_data.rb +1 -1
  49. data/lib/trieve_ruby_client/models/create_chunk_group_data.rb +26 -2
  50. data/lib/trieve_ruby_client/models/create_dataset_request.rb +1 -1
  51. data/lib/trieve_ruby_client/models/create_message_data.rb +1 -1
  52. data/lib/trieve_ruby_client/models/create_organization_data.rb +1 -1
  53. data/lib/trieve_ruby_client/models/create_topic_data.rb +1 -1
  54. data/lib/trieve_ruby_client/models/dataset.rb +1 -1
  55. data/lib/trieve_ruby_client/models/dataset_and_usage.rb +1 -1
  56. data/lib/trieve_ruby_client/models/dataset_dto.rb +1 -1
  57. data/lib/trieve_ruby_client/models/dataset_usage_count.rb +1 -1
  58. data/lib/trieve_ruby_client/models/delete_topic_data.rb +1 -1
  59. data/lib/trieve_ruby_client/models/delete_user_api_key_request.rb +1 -1
  60. data/lib/trieve_ruby_client/models/edit_message_data.rb +1 -1
  61. data/lib/trieve_ruby_client/models/error_response_body.rb +1 -1
  62. data/lib/trieve_ruby_client/models/event.rb +1 -1
  63. data/lib/trieve_ruby_client/models/event_return.rb +1 -1
  64. data/lib/trieve_ruby_client/models/field_condition.rb +1 -1
  65. data/lib/trieve_ruby_client/models/file.rb +1 -1
  66. data/lib/trieve_ruby_client/models/file_dto.rb +1 -1
  67. data/lib/trieve_ruby_client/models/generate_chunks_request.rb +1 -1
  68. data/lib/trieve_ruby_client/models/get_events_data.rb +1 -1
  69. data/lib/trieve_ruby_client/models/get_groups_for_chunks_data.rb +1 -1
  70. data/lib/trieve_ruby_client/models/group_data.rb +1 -1
  71. data/lib/trieve_ruby_client/models/group_score_chunk_dto.rb +1 -1
  72. data/lib/trieve_ruby_client/models/group_slim_chunks_dto.rb +1 -1
  73. data/lib/trieve_ruby_client/models/invitation_data.rb +1 -1
  74. data/lib/trieve_ruby_client/models/match_condition.rb +1 -1
  75. data/lib/trieve_ruby_client/models/message.rb +1 -1
  76. data/lib/trieve_ruby_client/models/organization.rb +1 -1
  77. data/lib/trieve_ruby_client/models/organization_usage_count.rb +1 -1
  78. data/lib/trieve_ruby_client/models/range.rb +1 -1
  79. data/lib/trieve_ruby_client/models/range_condition.rb +1 -1
  80. data/lib/trieve_ruby_client/models/recommend_chunks_request.rb +17 -6
  81. data/lib/trieve_ruby_client/models/recommend_chunks_response_types.rb +1 -1
  82. data/lib/trieve_ruby_client/models/recommend_group_chunk_response_types.rb +1 -1
  83. data/lib/trieve_ruby_client/models/recommend_group_chunks_request.rb +341 -0
  84. data/lib/trieve_ruby_client/models/regenerate_message_data.rb +1 -1
  85. data/lib/trieve_ruby_client/models/return_queued_chunk.rb +1 -1
  86. data/lib/trieve_ruby_client/models/score_chunk_dto.rb +1 -1
  87. data/lib/trieve_ruby_client/models/score_slim_chunks.rb +1 -1
  88. data/lib/trieve_ruby_client/models/search_chunk_data.rb +3 -14
  89. data/lib/trieve_ruby_client/models/search_chunk_query_response_body.rb +1 -1
  90. data/lib/trieve_ruby_client/models/search_chunk_response_types.rb +1 -1
  91. data/lib/trieve_ruby_client/models/search_group_slim_chunks_result.rb +1 -1
  92. data/lib/trieve_ruby_client/models/search_groups_result.rb +1 -1
  93. data/lib/trieve_ruby_client/models/search_over_groups_data.rb +5 -15
  94. data/lib/trieve_ruby_client/models/search_over_groups_response_body.rb +1 -1
  95. data/lib/trieve_ruby_client/models/search_over_groups_response_types.rb +1 -1
  96. data/lib/trieve_ruby_client/models/search_over_groups_slim_chunks_response_body.rb +1 -1
  97. data/lib/trieve_ruby_client/models/search_slim_chunk_query_response_body.rb +1 -1
  98. data/lib/trieve_ruby_client/models/search_within_group_data.rb +3 -14
  99. data/lib/trieve_ruby_client/models/search_within_group_response_types.rb +1 -1
  100. data/lib/trieve_ruby_client/models/set_user_api_key_request.rb +1 -1
  101. data/lib/trieve_ruby_client/models/set_user_api_key_response.rb +1 -1
  102. data/lib/trieve_ruby_client/models/single_queued_chunk_response.rb +1 -1
  103. data/lib/trieve_ruby_client/models/slim_chunk_metadata.rb +1 -1
  104. data/lib/trieve_ruby_client/models/slim_group.rb +1 -1
  105. data/lib/trieve_ruby_client/models/slim_user.rb +1 -1
  106. data/lib/trieve_ruby_client/models/stripe_plan.rb +1 -1
  107. data/lib/trieve_ruby_client/models/suggested_queries_request.rb +1 -1
  108. data/lib/trieve_ruby_client/models/suggested_queries_response.rb +1 -1
  109. data/lib/trieve_ruby_client/models/topic.rb +1 -1
  110. data/lib/trieve_ruby_client/models/update_chunk_by_tracking_id_data.rb +1 -1
  111. data/lib/trieve_ruby_client/models/update_chunk_data.rb +1 -1
  112. data/lib/trieve_ruby_client/models/update_chunk_group_data.rb +26 -2
  113. data/lib/trieve_ruby_client/models/update_dataset_request.rb +1 -1
  114. data/lib/trieve_ruby_client/models/update_group_by_tracking_id_data.rb +26 -2
  115. data/lib/trieve_ruby_client/models/update_organization_data.rb +1 -1
  116. data/lib/trieve_ruby_client/models/update_topic_data.rb +1 -1
  117. data/lib/trieve_ruby_client/models/update_user_data.rb +1 -1
  118. data/lib/trieve_ruby_client/models/upload_file_data.rb +1 -1
  119. data/lib/trieve_ruby_client/models/upload_file_result.rb +1 -1
  120. data/lib/trieve_ruby_client/models/user_organization.rb +1 -1
  121. data/lib/trieve_ruby_client/version.rb +2 -2
  122. data/lib/trieve_ruby_client.rb +2 -2
  123. data/openapi-generator.yaml +1 -1
  124. data/openapi.json +176 -177
  125. data/spec/models/recommend_group_chunks_request_spec.rb +84 -0
  126. data/spec/spec_helper.rb +1 -1
  127. data/trieve_ruby_client-0.5.7.gem +0 -0
  128. data/trieve_ruby_client.gemspec +1 -1
  129. metadata +7 -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.5.7
6
+ The version of the OpenAPI document: 0.6.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.5.7
6
+ The version of the OpenAPI document: 0.6.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.5.7
6
+ The version of the OpenAPI document: 0.6.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.5.7
6
+ The version of the OpenAPI document: 0.6.0
7
7
  Contact: developers@trieve.ai
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.4.0
@@ -18,9 +18,15 @@ module TrieveRubyClient
18
18
  # Description to assign to the chunk_group. Convenience field for you to avoid having to remember what the group is for.
19
19
  attr_accessor :description
20
20
 
21
+ # 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.
22
+ attr_accessor :metadata
23
+
21
24
  # Name to assign to the chunk_group. Does not need to be unique.
22
25
  attr_accessor :name
23
26
 
27
+ # 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.
28
+ attr_accessor :tag_set
29
+
24
30
  # Optional tracking id to assign to the chunk_group. This is a unique identifier for the chunk_group.
25
31
  attr_accessor :tracking_id
26
32
 
@@ -28,7 +34,9 @@ module TrieveRubyClient
28
34
  def self.attribute_map
29
35
  {
30
36
  :'description' => :'description',
37
+ :'metadata' => :'metadata',
31
38
  :'name' => :'name',
39
+ :'tag_set' => :'tag_set',
32
40
  :'tracking_id' => :'tracking_id'
33
41
  }
34
42
  end
@@ -42,7 +50,9 @@ module TrieveRubyClient
42
50
  def self.openapi_types
43
51
  {
44
52
  :'description' => :'String',
53
+ :'metadata' => :'Object',
45
54
  :'name' => :'String',
55
+ :'tag_set' => :'Array<String>',
46
56
  :'tracking_id' => :'String'
47
57
  }
48
58
  end
@@ -50,6 +60,8 @@ module TrieveRubyClient
50
60
  # List of attributes with nullable: true
51
61
  def self.openapi_nullable
52
62
  Set.new([
63
+ :'metadata',
64
+ :'tag_set',
53
65
  :'tracking_id'
54
66
  ])
55
67
  end
@@ -75,12 +87,22 @@ module TrieveRubyClient
75
87
  self.description = nil
76
88
  end
77
89
 
90
+ if attributes.key?(:'metadata')
91
+ self.metadata = attributes[:'metadata']
92
+ end
93
+
78
94
  if attributes.key?(:'name')
79
95
  self.name = attributes[:'name']
80
96
  else
81
97
  self.name = nil
82
98
  end
83
99
 
100
+ if attributes.key?(:'tag_set')
101
+ if (value = attributes[:'tag_set']).is_a?(Array)
102
+ self.tag_set = value
103
+ end
104
+ end
105
+
84
106
  if attributes.key?(:'tracking_id')
85
107
  self.tracking_id = attributes[:'tracking_id']
86
108
  end
@@ -117,7 +139,9 @@ module TrieveRubyClient
117
139
  return true if self.equal?(o)
118
140
  self.class == o.class &&
119
141
  description == o.description &&
142
+ metadata == o.metadata &&
120
143
  name == o.name &&
144
+ tag_set == o.tag_set &&
121
145
  tracking_id == o.tracking_id
122
146
  end
123
147
 
@@ -130,7 +154,7 @@ module TrieveRubyClient
130
154
  # Calculates hash code according to all attributes.
131
155
  # @return [Integer] Hash code
132
156
  def hash
133
- [description, name, tracking_id].hash
157
+ [description, metadata, name, tag_set, tracking_id].hash
134
158
  end
135
159
 
136
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.5.7
6
+ The version of the OpenAPI document: 0.6.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.5.7
6
+ The version of the OpenAPI document: 0.6.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.5.7
6
+ The version of the OpenAPI document: 0.6.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.5.7
6
+ The version of the OpenAPI document: 0.6.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.5.7
6
+ The version of the OpenAPI document: 0.6.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.5.7
6
+ The version of the OpenAPI document: 0.6.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.5.7
6
+ The version of the OpenAPI document: 0.6.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.5.7
6
+ The version of the OpenAPI document: 0.6.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.5.7
6
+ The version of the OpenAPI document: 0.6.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.5.7
6
+ The version of the OpenAPI document: 0.6.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.5.7
6
+ The version of the OpenAPI document: 0.6.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.5.7
6
+ The version of the OpenAPI document: 0.6.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.5.7
6
+ The version of the OpenAPI document: 0.6.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.5.7
6
+ The version of the OpenAPI document: 0.6.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.5.7
6
+ The version of the OpenAPI document: 0.6.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.5.7
6
+ The version of the OpenAPI document: 0.6.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.5.7
6
+ The version of the OpenAPI document: 0.6.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.5.7
6
+ The version of the OpenAPI document: 0.6.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.5.7
6
+ The version of the OpenAPI document: 0.6.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.5.7
6
+ The version of the OpenAPI document: 0.6.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.5.7
6
+ The version of the OpenAPI document: 0.6.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.5.7
6
+ The version of the OpenAPI document: 0.6.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.5.7
6
+ The version of the OpenAPI document: 0.6.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.5.7
6
+ The version of the OpenAPI document: 0.6.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.5.7
6
+ The version of the OpenAPI document: 0.6.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.5.7
6
+ The version of the OpenAPI document: 0.6.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.5.7
6
+ The version of the OpenAPI document: 0.6.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.5.7
6
+ The version of the OpenAPI document: 0.6.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.5.7
6
+ The version of the OpenAPI document: 0.6.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.5.7
6
+ The version of the OpenAPI document: 0.6.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.5.7
6
+ The version of the OpenAPI document: 0.6.0
7
7
  Contact: developers@trieve.ai
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.4.0
@@ -35,6 +35,9 @@ module TrieveRubyClient
35
35
  # 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.
36
36
  attr_accessor :slim_chunks
37
37
 
38
+ # 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.
39
+ attr_accessor :strategy
40
+
38
41
  # Attribute mapping from ruby-style variable name to JSON key.
39
42
  def self.attribute_map
40
43
  {
@@ -44,7 +47,8 @@ module TrieveRubyClient
44
47
  :'negative_tracking_ids' => :'negative_tracking_ids',
45
48
  :'positive_chunk_ids' => :'positive_chunk_ids',
46
49
  :'positive_tracking_ids' => :'positive_tracking_ids',
47
- :'slim_chunks' => :'slim_chunks'
50
+ :'slim_chunks' => :'slim_chunks',
51
+ :'strategy' => :'strategy'
48
52
  }
49
53
  end
50
54
 
@@ -62,7 +66,8 @@ module TrieveRubyClient
62
66
  :'negative_tracking_ids' => :'Array<String>',
63
67
  :'positive_chunk_ids' => :'Array<String>',
64
68
  :'positive_tracking_ids' => :'Array<String>',
65
- :'slim_chunks' => :'Boolean'
69
+ :'slim_chunks' => :'Boolean',
70
+ :'strategy' => :'String'
66
71
  }
67
72
  end
68
73
 
@@ -75,7 +80,8 @@ module TrieveRubyClient
75
80
  :'negative_tracking_ids',
76
81
  :'positive_chunk_ids',
77
82
  :'positive_tracking_ids',
78
- :'slim_chunks'
83
+ :'slim_chunks',
84
+ :'strategy'
79
85
  ])
80
86
  end
81
87
 
@@ -129,6 +135,10 @@ module TrieveRubyClient
129
135
  if attributes.key?(:'slim_chunks')
130
136
  self.slim_chunks = attributes[:'slim_chunks']
131
137
  end
138
+
139
+ if attributes.key?(:'strategy')
140
+ self.strategy = attributes[:'strategy']
141
+ end
132
142
  end
133
143
 
134
144
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -172,7 +182,8 @@ module TrieveRubyClient
172
182
  negative_tracking_ids == o.negative_tracking_ids &&
173
183
  positive_chunk_ids == o.positive_chunk_ids &&
174
184
  positive_tracking_ids == o.positive_tracking_ids &&
175
- slim_chunks == o.slim_chunks
185
+ slim_chunks == o.slim_chunks &&
186
+ strategy == o.strategy
176
187
  end
177
188
 
178
189
  # @see the `==` method
@@ -184,7 +195,7 @@ module TrieveRubyClient
184
195
  # Calculates hash code according to all attributes.
185
196
  # @return [Integer] Hash code
186
197
  def hash
187
- [filters, limit, negative_chunk_ids, negative_tracking_ids, positive_chunk_ids, positive_tracking_ids, slim_chunks].hash
198
+ [filters, limit, negative_chunk_ids, negative_tracking_ids, positive_chunk_ids, positive_tracking_ids, slim_chunks, strategy].hash
188
199
  end
189
200
 
190
201
  # 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.5.7
6
+ The version of the OpenAPI document: 0.6.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.5.7
6
+ The version of the OpenAPI document: 0.6.0
7
7
  Contact: developers@trieve.ai
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.4.0