carbon_ruby_sdk 0.2.12 → 0.2.14

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e46e23bcb9933bb4467a940645cf27e79739674f7969d70a655f3ab55bef38c7
4
- data.tar.gz: 5cae95c5ebd2db0bcef1291135198008b03b32cd80ec21adb70b5615a61fbac1
3
+ metadata.gz: 984e5089a3db27f2a5612d3bdf0dcfd39fe085da968e42eb3478209784f585a8
4
+ data.tar.gz: ff2177a599a167616aa47081b6116e417e83322dda52cd53bfa49b2e2a82578a
5
5
  SHA512:
6
- metadata.gz: c36c755ccf4bdf990f59bedd164b2d3e9d8af63ff2ce29c2100c2d82c49df696a1d9f66fc855f05576c31326353f30f68bf88edf43d59f3ec3fe5517780f7f11
7
- data.tar.gz: f36a6432f38fcd3e376c9fba1f37f3ec7e8a4b33b9f6daccf67ea753e9b2de9d88f8e4f7b8e20b1a6ab40f33101c48a7c2ab981c513a1e4d71c3117601ba0ab8
6
+ metadata.gz: 128fde907d3414ddf759bbc45edc6a6328193af688d789dc43f759e2646c6ed194ce3951094cc4ec8f5728e071d62108fce87d51e73e70f0ddd0be9a443c458d
7
+ data.tar.gz: e656ca1e4059b26a0ea3b3ac387bd5ec1dcfa8e55cd831c5efead211d5fd68b10db1f717c7fb1ff59a7fb1222bbbb3aa2310086b267ba2a622e1d6309fb8795c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- carbon_ruby_sdk (0.2.11)
4
+ carbon_ruby_sdk (0.2.13)
5
5
  faraday (>= 1.0.1, < 3.0)
6
6
  faraday-multipart (~> 1.0, >= 1.0.4)
7
7
 
data/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  Connect external data to LLMs, no matter the source.
8
8
 
9
- [![npm](https://img.shields.io/badge/gem-v0.2.12-blue)](https://rubygems.org/gems/carbon_ruby_sdk/versions/0.2.12)
9
+ [![npm](https://img.shields.io/badge/gem-v0.2.14-blue)](https://rubygems.org/gems/carbon_ruby_sdk/versions/0.2.14)
10
10
 
11
11
  </div>
12
12
 
@@ -91,7 +91,7 @@ Connect external data to LLMs, no matter the source.
91
91
  Add to Gemfile:
92
92
 
93
93
  ```ruby
94
- gem 'carbon_ruby_sdk', '~> 0.2.12'
94
+ gem 'carbon_ruby_sdk', '~> 0.2.14'
95
95
  ```
96
96
 
97
97
  ## Getting Started<a id="getting-started"></a>
@@ -382,6 +382,9 @@ result = carbon.embeddings.get_documents(
382
382
  embedding_model: "OPENAI",
383
383
  include_file_level_metadata: false,
384
384
  high_accuracy: false,
385
+ rerank: {
386
+ "model" => "model_example",
387
+ },
385
388
  )
386
389
  p result
387
390
  ```
@@ -445,6 +448,7 @@ Flag to control whether or not to perform a high accuracy embedding search. By
445
448
  default, this is set to false. If true, the search may return more accurate
446
449
  results, but may take longer to complete.
447
450
 
451
+ ##### rerank: [`RerankParamsNullable`](./lib/carbon_ruby_sdk/models/rerank_params_nullable.rb)<a id="rerank-rerankparamsnullablelibcarbon_ruby_sdkmodelsrerank_params_nullablerb"></a>
448
452
  #### 🔄 Return<a id="🔄-return"></a>
449
453
 
450
454
  [DocumentResponseList](./lib/carbon_ruby_sdk/models/document_response_list.rb)
@@ -1296,7 +1300,7 @@ result = carbon.integrations.connect_data_source(
1296
1300
  "prepend_filename_to_chunks" => false,
1297
1301
  "sync_files_on_connection" => true,
1298
1302
  "set_page_as_boundary" => false,
1299
- "request_id" => "0210abaa-8c19-4ac6-9c4b-fb856acce902",
1303
+ "request_id" => "3a0195db-42f0-48ed-b809-d253f436a8e0",
1300
1304
  "enable_file_picker" => true,
1301
1305
  "sync_source_items" => true,
1302
1306
  "incremental_sync" => false,
@@ -1516,7 +1520,7 @@ result = carbon.integrations.get_oauth_url(
1516
1520
  set_page_as_boundary: false,
1517
1521
  data_source_id: 1,
1518
1522
  connecting_new_account: false,
1519
- request_id: "1c47fc7c-4c6e-466f-9bf9-979ad9dc87a7",
1523
+ request_id: "b2935b7f-ee64-4d76-8864-8b6731211938",
1520
1524
  use_ocr: false,
1521
1525
  parse_pdf_tables_with_ocr: false,
1522
1526
  enable_file_picker: true,
@@ -1577,7 +1581,7 @@ Enable OCR for files that support it. Supported formats: pdf
1577
1581
  ##### parse_pdf_tables_with_ocr: `Boolean`<a id="parse_pdf_tables_with_ocr-boolean"></a>
1578
1582
  ##### enable_file_picker: `Boolean`<a id="enable_file_picker-boolean"></a>
1579
1583
  Enable integration's file picker for sources that support it. Supported sources:
1580
- GOOGLE_DRIVE, DROPBOX, BOX, ONEDRIVE, SHAREPOINT
1584
+ SHAREPOINT, DROPBOX, ONEDRIVE, GOOGLE_DRIVE, BOX
1581
1585
 
1582
1586
  ##### sync_source_items: `Boolean`<a id="sync_source_items-boolean"></a>
1583
1587
  Enabling this flag will fetch all available content from the source to be listed
@@ -1877,7 +1881,7 @@ result = carbon.integrations.sync_confluence(
1877
1881
  prepend_filename_to_chunks: false,
1878
1882
  max_items_per_chunk: 1,
1879
1883
  set_page_as_boundary: false,
1880
- request_id: "791318ee-229d-4c64-bb0a-2563b8014484",
1884
+ request_id: "50140a8f-c06f-40df-9b91-d10d074bcb67",
1881
1885
  use_ocr: false,
1882
1886
  parse_pdf_tables_with_ocr: false,
1883
1887
  incremental_sync: false,
@@ -1982,7 +1986,7 @@ result = carbon.integrations.sync_files(
1982
1986
  prepend_filename_to_chunks: false,
1983
1987
  max_items_per_chunk: 1,
1984
1988
  set_page_as_boundary: false,
1985
- request_id: "791318ee-229d-4c64-bb0a-2563b8014484",
1989
+ request_id: "50140a8f-c06f-40df-9b91-d10d074bcb67",
1986
1990
  use_ocr: false,
1987
1991
  parse_pdf_tables_with_ocr: false,
1988
1992
  incremental_sync: false,
@@ -130,9 +130,10 @@ module Carbon
130
130
  # @param embedding_model [EmbeddingGeneratorsNullable]
131
131
  # @param include_file_level_metadata [Boolean] Flag to control whether or not to include file-level metadata in the response. This metadata will be included in the `content_metadata` field of each document along with chunk/embedding level metadata.
132
132
  # @param high_accuracy [Boolean] Flag to control whether or not to perform a high accuracy embedding search. By default, this is set to false. If true, the search may return more accurate results, but may take longer to complete.
133
+ # @param rerank [RerankParamsNullable]
133
134
  # @param body [GetEmbeddingDocumentsBody]
134
135
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
135
- def get_documents(query:, k:, tags: SENTINEL, query_vector: SENTINEL, file_ids: SENTINEL, parent_file_ids: SENTINEL, include_all_children: false, tags_v2: SENTINEL, include_tags: SENTINEL, include_vectors: SENTINEL, include_raw_file: SENTINEL, hybrid_search: SENTINEL, hybrid_search_tuning_parameters: SENTINEL, media_type: SENTINEL, embedding_model: 'OPENAI', include_file_level_metadata: false, high_accuracy: false, extra: {})
136
+ def get_documents(query:, k:, tags: SENTINEL, query_vector: SENTINEL, file_ids: SENTINEL, parent_file_ids: SENTINEL, include_all_children: false, tags_v2: SENTINEL, include_tags: SENTINEL, include_vectors: SENTINEL, include_raw_file: SENTINEL, hybrid_search: SENTINEL, hybrid_search_tuning_parameters: SENTINEL, media_type: SENTINEL, embedding_model: 'OPENAI', include_file_level_metadata: false, high_accuracy: false, rerank: SENTINEL, extra: {})
136
137
  _body = {}
137
138
  _body[:tags] = tags if tags != SENTINEL
138
139
  _body[:query] = query if query != SENTINEL
@@ -151,6 +152,7 @@ module Carbon
151
152
  _body[:embedding_model] = embedding_model if embedding_model != SENTINEL
152
153
  _body[:include_file_level_metadata] = include_file_level_metadata if include_file_level_metadata != SENTINEL
153
154
  _body[:high_accuracy] = high_accuracy if high_accuracy != SENTINEL
155
+ _body[:rerank] = rerank if rerank != SENTINEL
154
156
  get_embedding_documents_body = _body
155
157
  api_response = get_documents_with_http_info_impl(get_embedding_documents_body, extra)
156
158
  api_response.data
@@ -270,9 +272,10 @@ module Carbon
270
272
  # @param embedding_model [EmbeddingGeneratorsNullable]
271
273
  # @param include_file_level_metadata [Boolean] Flag to control whether or not to include file-level metadata in the response. This metadata will be included in the `content_metadata` field of each document along with chunk/embedding level metadata.
272
274
  # @param high_accuracy [Boolean] Flag to control whether or not to perform a high accuracy embedding search. By default, this is set to false. If true, the search may return more accurate results, but may take longer to complete.
275
+ # @param rerank [RerankParamsNullable]
273
276
  # @param body [GetEmbeddingDocumentsBody]
274
277
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
275
- def get_documents_with_http_info(query:, k:, tags: SENTINEL, query_vector: SENTINEL, file_ids: SENTINEL, parent_file_ids: SENTINEL, include_all_children: false, tags_v2: SENTINEL, include_tags: SENTINEL, include_vectors: SENTINEL, include_raw_file: SENTINEL, hybrid_search: SENTINEL, hybrid_search_tuning_parameters: SENTINEL, media_type: SENTINEL, embedding_model: 'OPENAI', include_file_level_metadata: false, high_accuracy: false, extra: {})
278
+ def get_documents_with_http_info(query:, k:, tags: SENTINEL, query_vector: SENTINEL, file_ids: SENTINEL, parent_file_ids: SENTINEL, include_all_children: false, tags_v2: SENTINEL, include_tags: SENTINEL, include_vectors: SENTINEL, include_raw_file: SENTINEL, hybrid_search: SENTINEL, hybrid_search_tuning_parameters: SENTINEL, media_type: SENTINEL, embedding_model: 'OPENAI', include_file_level_metadata: false, high_accuracy: false, rerank: SENTINEL, extra: {})
276
279
  _body = {}
277
280
  _body[:tags] = tags if tags != SENTINEL
278
281
  _body[:query] = query if query != SENTINEL
@@ -291,6 +294,7 @@ module Carbon
291
294
  _body[:embedding_model] = embedding_model if embedding_model != SENTINEL
292
295
  _body[:include_file_level_metadata] = include_file_level_metadata if include_file_level_metadata != SENTINEL
293
296
  _body[:high_accuracy] = high_accuracy if high_accuracy != SENTINEL
297
+ _body[:rerank] = rerank if rerank != SENTINEL
294
298
  get_embedding_documents_body = _body
295
299
  get_documents_with_http_info_impl(get_embedding_documents_body, extra)
296
300
  end
@@ -653,13 +653,13 @@ module Carbon
653
653
  # @param request_id [String] This request id will be added to all files that get synced using the generated OAuth URL
654
654
  # @param use_ocr [Boolean] Enable OCR for files that support it. Supported formats: pdf
655
655
  # @param parse_pdf_tables_with_ocr [Boolean]
656
- # @param enable_file_picker [Boolean] Enable integration's file picker for sources that support it. Supported sources: GOOGLE_DRIVE, DROPBOX, BOX, ONEDRIVE, SHAREPOINT
656
+ # @param enable_file_picker [Boolean] Enable integration's file picker for sources that support it. Supported sources: SHAREPOINT, DROPBOX, ONEDRIVE, GOOGLE_DRIVE, BOX
657
657
  # @param sync_source_items [Boolean] Enabling this flag will fetch all available content from the source to be listed via list items endpoint
658
658
  # @param incremental_sync [Boolean] Only sync files if they have not already been synced or if the embedding properties have changed. This flag is currently supported by ONEDRIVE, GOOGLE_DRIVE, BOX, DROPBOX, INTERCOM, GMAIL, OUTLOOK. It will be ignored for other data sources.
659
659
  # @param file_sync_config [FileSyncConfigNullable]
660
660
  # @param body [OAuthURLRequest]
661
661
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
662
- def get_oauth_url(service:, tags: SENTINEL, scope: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', zendesk_subdomain: SENTINEL, microsoft_tenant: SENTINEL, sharepoint_site_name: SENTINEL, confluence_subdomain: SENTINEL, generate_sparse_vectors: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, salesforce_domain: SENTINEL, sync_files_on_connection: true, set_page_as_boundary: false, data_source_id: SENTINEL, connecting_new_account: false, request_id: '1c47fc7c-4c6e-466f-9bf9-979ad9dc87a7', use_ocr: false, parse_pdf_tables_with_ocr: false, enable_file_picker: true, sync_source_items: true, incremental_sync: false, file_sync_config: SENTINEL, extra: {})
662
+ def get_oauth_url(service:, tags: SENTINEL, scope: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', zendesk_subdomain: SENTINEL, microsoft_tenant: SENTINEL, sharepoint_site_name: SENTINEL, confluence_subdomain: SENTINEL, generate_sparse_vectors: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, salesforce_domain: SENTINEL, sync_files_on_connection: true, set_page_as_boundary: false, data_source_id: SENTINEL, connecting_new_account: false, request_id: 'b2935b7f-ee64-4d76-8864-8b6731211938', use_ocr: false, parse_pdf_tables_with_ocr: false, enable_file_picker: true, sync_source_items: true, incremental_sync: false, file_sync_config: SENTINEL, extra: {})
663
663
  _body = {}
664
664
  _body[:tags] = tags if tags != SENTINEL
665
665
  _body[:scope] = scope if scope != SENTINEL
@@ -721,13 +721,13 @@ module Carbon
721
721
  # @param request_id [String] This request id will be added to all files that get synced using the generated OAuth URL
722
722
  # @param use_ocr [Boolean] Enable OCR for files that support it. Supported formats: pdf
723
723
  # @param parse_pdf_tables_with_ocr [Boolean]
724
- # @param enable_file_picker [Boolean] Enable integration's file picker for sources that support it. Supported sources: GOOGLE_DRIVE, DROPBOX, BOX, ONEDRIVE, SHAREPOINT
724
+ # @param enable_file_picker [Boolean] Enable integration's file picker for sources that support it. Supported sources: SHAREPOINT, DROPBOX, ONEDRIVE, GOOGLE_DRIVE, BOX
725
725
  # @param sync_source_items [Boolean] Enabling this flag will fetch all available content from the source to be listed via list items endpoint
726
726
  # @param incremental_sync [Boolean] Only sync files if they have not already been synced or if the embedding properties have changed. This flag is currently supported by ONEDRIVE, GOOGLE_DRIVE, BOX, DROPBOX, INTERCOM, GMAIL, OUTLOOK. It will be ignored for other data sources.
727
727
  # @param file_sync_config [FileSyncConfigNullable]
728
728
  # @param body [OAuthURLRequest]
729
729
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
730
- def get_oauth_url_with_http_info(service:, tags: SENTINEL, scope: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', zendesk_subdomain: SENTINEL, microsoft_tenant: SENTINEL, sharepoint_site_name: SENTINEL, confluence_subdomain: SENTINEL, generate_sparse_vectors: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, salesforce_domain: SENTINEL, sync_files_on_connection: true, set_page_as_boundary: false, data_source_id: SENTINEL, connecting_new_account: false, request_id: '1c47fc7c-4c6e-466f-9bf9-979ad9dc87a7', use_ocr: false, parse_pdf_tables_with_ocr: false, enable_file_picker: true, sync_source_items: true, incremental_sync: false, file_sync_config: SENTINEL, extra: {})
730
+ def get_oauth_url_with_http_info(service:, tags: SENTINEL, scope: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', zendesk_subdomain: SENTINEL, microsoft_tenant: SENTINEL, sharepoint_site_name: SENTINEL, confluence_subdomain: SENTINEL, generate_sparse_vectors: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, salesforce_domain: SENTINEL, sync_files_on_connection: true, set_page_as_boundary: false, data_source_id: SENTINEL, connecting_new_account: false, request_id: 'b2935b7f-ee64-4d76-8864-8b6731211938', use_ocr: false, parse_pdf_tables_with_ocr: false, enable_file_picker: true, sync_source_items: true, incremental_sync: false, file_sync_config: SENTINEL, extra: {})
731
731
  _body = {}
732
732
  _body[:tags] = tags if tags != SENTINEL
733
733
  _body[:scope] = scope if scope != SENTINEL
@@ -1640,7 +1640,7 @@ module Carbon
1640
1640
  # @param file_sync_config [FileSyncConfigNullable]
1641
1641
  # @param body [SyncFilesRequest]
1642
1642
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
1643
- def sync_confluence(data_source_id:, ids:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, set_page_as_boundary: false, request_id: '791318ee-229d-4c64-bb0a-2563b8014484', use_ocr: false, parse_pdf_tables_with_ocr: false, incremental_sync: false, file_sync_config: SENTINEL, extra: {})
1643
+ def sync_confluence(data_source_id:, ids:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, set_page_as_boundary: false, request_id: '50140a8f-c06f-40df-9b91-d10d074bcb67', use_ocr: false, parse_pdf_tables_with_ocr: false, incremental_sync: false, file_sync_config: SENTINEL, extra: {})
1644
1644
  _body = {}
1645
1645
  _body[:tags] = tags if tags != SENTINEL
1646
1646
  _body[:data_source_id] = data_source_id if data_source_id != SENTINEL
@@ -1688,7 +1688,7 @@ module Carbon
1688
1688
  # @param file_sync_config [FileSyncConfigNullable]
1689
1689
  # @param body [SyncFilesRequest]
1690
1690
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
1691
- def sync_confluence_with_http_info(data_source_id:, ids:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, set_page_as_boundary: false, request_id: '791318ee-229d-4c64-bb0a-2563b8014484', use_ocr: false, parse_pdf_tables_with_ocr: false, incremental_sync: false, file_sync_config: SENTINEL, extra: {})
1691
+ def sync_confluence_with_http_info(data_source_id:, ids:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, set_page_as_boundary: false, request_id: '50140a8f-c06f-40df-9b91-d10d074bcb67', use_ocr: false, parse_pdf_tables_with_ocr: false, incremental_sync: false, file_sync_config: SENTINEL, extra: {})
1692
1692
  _body = {}
1693
1693
  _body[:tags] = tags if tags != SENTINEL
1694
1694
  _body[:data_source_id] = data_source_id if data_source_id != SENTINEL
@@ -1896,7 +1896,7 @@ module Carbon
1896
1896
  # @param file_sync_config [FileSyncConfigNullable]
1897
1897
  # @param body [SyncFilesRequest]
1898
1898
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
1899
- def sync_files(data_source_id:, ids:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, set_page_as_boundary: false, request_id: '791318ee-229d-4c64-bb0a-2563b8014484', use_ocr: false, parse_pdf_tables_with_ocr: false, incremental_sync: false, file_sync_config: SENTINEL, extra: {})
1899
+ def sync_files(data_source_id:, ids:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, set_page_as_boundary: false, request_id: '50140a8f-c06f-40df-9b91-d10d074bcb67', use_ocr: false, parse_pdf_tables_with_ocr: false, incremental_sync: false, file_sync_config: SENTINEL, extra: {})
1900
1900
  _body = {}
1901
1901
  _body[:tags] = tags if tags != SENTINEL
1902
1902
  _body[:data_source_id] = data_source_id if data_source_id != SENTINEL
@@ -1944,7 +1944,7 @@ module Carbon
1944
1944
  # @param file_sync_config [FileSyncConfigNullable]
1945
1945
  # @param body [SyncFilesRequest]
1946
1946
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
1947
- def sync_files_with_http_info(data_source_id:, ids:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, set_page_as_boundary: false, request_id: '791318ee-229d-4c64-bb0a-2563b8014484', use_ocr: false, parse_pdf_tables_with_ocr: false, incremental_sync: false, file_sync_config: SENTINEL, extra: {})
1947
+ def sync_files_with_http_info(data_source_id:, ids:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, set_page_as_boundary: false, request_id: '50140a8f-c06f-40df-9b91-d10d074bcb67', use_ocr: false, parse_pdf_tables_with_ocr: false, incremental_sync: false, file_sync_config: SENTINEL, extra: {})
1948
1948
  _body = {}
1949
1949
  _body[:tags] = tags if tags != SENTINEL
1950
1950
  _body[:data_source_id] = data_source_id if data_source_id != SENTINEL
@@ -59,6 +59,8 @@ module Carbon
59
59
  # Flag to control whether or not to perform a high accuracy embedding search. By default, this is set to false. If true, the search may return more accurate results, but may take longer to complete.
60
60
  attr_accessor :high_accuracy
61
61
 
62
+ attr_accessor :rerank
63
+
62
64
  # Attribute mapping from ruby-style variable name to JSON key.
63
65
  def self.attribute_map
64
66
  {
@@ -78,7 +80,8 @@ module Carbon
78
80
  :'media_type' => :'media_type',
79
81
  :'embedding_model' => :'embedding_model',
80
82
  :'include_file_level_metadata' => :'include_file_level_metadata',
81
- :'high_accuracy' => :'high_accuracy'
83
+ :'high_accuracy' => :'high_accuracy',
84
+ :'rerank' => :'rerank'
82
85
  }
83
86
  end
84
87
 
@@ -106,7 +109,8 @@ module Carbon
106
109
  :'media_type' => :'FileContentTypesNullable',
107
110
  :'embedding_model' => :'EmbeddingGeneratorsNullable',
108
111
  :'include_file_level_metadata' => :'Boolean',
109
- :'high_accuracy' => :'Boolean'
112
+ :'high_accuracy' => :'Boolean',
113
+ :'rerank' => :'RerankParamsNullable'
110
114
  }
111
115
  end
112
116
 
@@ -126,7 +130,8 @@ module Carbon
126
130
  :'media_type',
127
131
  :'embedding_model',
128
132
  :'include_file_level_metadata',
129
- :'high_accuracy'
133
+ :'high_accuracy',
134
+ :'rerank'
130
135
  ])
131
136
  end
132
137
 
@@ -228,6 +233,10 @@ module Carbon
228
233
  else
229
234
  self.high_accuracy = false
230
235
  end
236
+
237
+ if attributes.key?(:'rerank')
238
+ self.rerank = attributes[:'rerank']
239
+ end
231
240
  end
232
241
 
233
242
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -312,7 +321,8 @@ module Carbon
312
321
  media_type == o.media_type &&
313
322
  embedding_model == o.embedding_model &&
314
323
  include_file_level_metadata == o.include_file_level_metadata &&
315
- high_accuracy == o.high_accuracy
324
+ high_accuracy == o.high_accuracy &&
325
+ rerank == o.rerank
316
326
  end
317
327
 
318
328
  # @see the `==` method
@@ -324,7 +334,7 @@ module Carbon
324
334
  # Calculates hash code according to all attributes.
325
335
  # @return [Integer] Hash code
326
336
  def hash
327
- [tags, query, query_vector, k, file_ids, parent_file_ids, include_all_children, tags_v2, include_tags, include_vectors, include_raw_file, hybrid_search, hybrid_search_tuning_parameters, media_type, embedding_model, include_file_level_metadata, high_accuracy].hash
337
+ [tags, query, query_vector, k, file_ids, parent_file_ids, include_all_children, tags_v2, include_tags, include_vectors, include_raw_file, hybrid_search, hybrid_search_tuning_parameters, media_type, embedding_model, include_file_level_metadata, high_accuracy, rerank].hash
328
338
  end
329
339
 
330
340
  # Builds the object from hash
@@ -61,7 +61,7 @@ module Carbon
61
61
 
62
62
  attr_accessor :parse_pdf_tables_with_ocr
63
63
 
64
- # Enable integration's file picker for sources that support it. Supported sources: GOOGLE_DRIVE, DROPBOX, BOX, ONEDRIVE, SHAREPOINT
64
+ # Enable integration's file picker for sources that support it. Supported sources: SHAREPOINT, DROPBOX, ONEDRIVE, GOOGLE_DRIVE, BOX
65
65
  attr_accessor :enable_file_picker
66
66
 
67
67
  # Enabling this flag will fetch all available content from the source to be listed via list items endpoint
@@ -279,7 +279,7 @@ module Carbon
279
279
  if attributes.key?(:'request_id')
280
280
  self.request_id = attributes[:'request_id']
281
281
  else
282
- self.request_id = '1c47fc7c-4c6e-466f-9bf9-979ad9dc87a7'
282
+ self.request_id = 'b2935b7f-ee64-4d76-8864-8b6731211938'
283
283
  end
284
284
 
285
285
  if attributes.key?(:'use_ocr')
@@ -56,6 +56,9 @@ module Carbon
56
56
  # If true, the query will return containers in the response. Containers are files that group other files together and have no content themselves. Default behavior is to include containers.
57
57
  attr_accessor :include_containers
58
58
 
59
+ # The external URLs of the files. The query will return files with these external URLs.
60
+ attr_accessor :external_urls
61
+
59
62
  # Attribute mapping from ruby-style variable name to JSON key.
60
63
  def self.attribute_map
61
64
  {
@@ -74,7 +77,8 @@ module Carbon
74
77
  :'non_synced_only' => :'non_synced_only',
75
78
  :'request_ids' => :'request_ids',
76
79
  :'sync_error_message' => :'sync_error_message',
77
- :'include_containers' => :'include_containers'
80
+ :'include_containers' => :'include_containers',
81
+ :'external_urls' => :'external_urls'
78
82
  }
79
83
  end
80
84
 
@@ -101,7 +105,8 @@ module Carbon
101
105
  :'non_synced_only' => :'Boolean',
102
106
  :'request_ids' => :'Array<String>',
103
107
  :'sync_error_message' => :'String',
104
- :'include_containers' => :'Boolean'
108
+ :'include_containers' => :'Boolean',
109
+ :'external_urls' => :'Array<String>'
105
110
  }
106
111
  end
107
112
 
@@ -121,7 +126,8 @@ module Carbon
121
126
  :'root_files_only',
122
127
  :'request_ids',
123
128
  :'sync_error_message',
124
- :'include_containers'
129
+ :'include_containers',
130
+ :'external_urls'
125
131
  ])
126
132
  end
127
133
 
@@ -223,6 +229,12 @@ module Carbon
223
229
  if attributes.key?(:'include_containers')
224
230
  self.include_containers = attributes[:'include_containers']
225
231
  end
232
+
233
+ if attributes.key?(:'external_urls')
234
+ if (value = attributes[:'external_urls']).is_a?(Array)
235
+ self.external_urls = value
236
+ end
237
+ end
226
238
  end
227
239
 
228
240
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -273,7 +285,8 @@ module Carbon
273
285
  non_synced_only == o.non_synced_only &&
274
286
  request_ids == o.request_ids &&
275
287
  sync_error_message == o.sync_error_message &&
276
- include_containers == o.include_containers
288
+ include_containers == o.include_containers &&
289
+ external_urls == o.external_urls
277
290
  end
278
291
 
279
292
  # @see the `==` method
@@ -285,7 +298,7 @@ module Carbon
285
298
  # Calculates hash code according to all attributes.
286
299
  # @return [Integer] Hash code
287
300
  def hash
288
- [tags, source, name, tags_v2, ids, external_file_ids, sync_statuses, parent_file_ids, organization_user_data_source_id, embedding_generators, root_files_only, include_all_children, non_synced_only, request_ids, sync_error_message, include_containers].hash
301
+ [tags, source, name, tags_v2, ids, external_file_ids, sync_statuses, parent_file_ids, organization_user_data_source_id, embedding_generators, root_files_only, include_all_children, non_synced_only, request_ids, sync_error_message, include_containers, external_urls].hash
289
302
  end
290
303
 
291
304
  # Builds the object from hash
@@ -0,0 +1,220 @@
1
+ =begin
2
+ #Carbon
3
+
4
+ #Connect external data to LLMs, no matter the source.
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ =end
8
+
9
+ require 'date'
10
+ require 'time'
11
+
12
+ module Carbon
13
+ class RerankParams
14
+ attr_accessor :model
15
+
16
+ # Attribute mapping from ruby-style variable name to JSON key.
17
+ def self.attribute_map
18
+ {
19
+ :'model' => :'model'
20
+ }
21
+ end
22
+
23
+ # Returns all the JSON keys this model knows about
24
+ def self.acceptable_attributes
25
+ attribute_map.values
26
+ end
27
+
28
+ # Attribute type mapping.
29
+ def self.openapi_types
30
+ {
31
+ :'model' => :'String'
32
+ }
33
+ end
34
+
35
+ # List of attributes with nullable: true
36
+ def self.openapi_nullable
37
+ Set.new([
38
+ ])
39
+ end
40
+
41
+ # Initializes the object
42
+ # @param [Hash] attributes Model attributes in the form of hash
43
+ def initialize(attributes = {})
44
+ if (!attributes.is_a?(Hash))
45
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Carbon::RerankParams` initialize method"
46
+ end
47
+
48
+ # check to see if the attribute exists and convert string to symbol for hash key
49
+ attributes = attributes.each_with_object({}) { |(k, v), h|
50
+ if (!self.class.attribute_map.key?(k.to_sym))
51
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Carbon::RerankParams`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
52
+ end
53
+ h[k.to_sym] = v
54
+ }
55
+
56
+ if attributes.key?(:'model')
57
+ self.model = attributes[:'model']
58
+ end
59
+ end
60
+
61
+ # Show invalid properties with the reasons. Usually used together with valid?
62
+ # @return Array for valid properties with the reasons
63
+ def list_invalid_properties
64
+ invalid_properties = Array.new
65
+ if @model.nil?
66
+ invalid_properties.push('invalid value for "model", model cannot be nil.')
67
+ end
68
+
69
+ invalid_properties
70
+ end
71
+
72
+ # Check to see if the all the properties in the model are valid
73
+ # @return true if the model is valid
74
+ def valid?
75
+ return false if @model.nil?
76
+ true
77
+ end
78
+
79
+ # Checks equality by comparing each attribute.
80
+ # @param [Object] Object to be compared
81
+ def ==(o)
82
+ return true if self.equal?(o)
83
+ self.class == o.class &&
84
+ model == o.model
85
+ end
86
+
87
+ # @see the `==` method
88
+ # @param [Object] Object to be compared
89
+ def eql?(o)
90
+ self == o
91
+ end
92
+
93
+ # Calculates hash code according to all attributes.
94
+ # @return [Integer] Hash code
95
+ def hash
96
+ [model].hash
97
+ end
98
+
99
+ # Builds the object from hash
100
+ # @param [Hash] attributes Model attributes in the form of hash
101
+ # @return [Object] Returns the model itself
102
+ def self.build_from_hash(attributes)
103
+ new.build_from_hash(attributes)
104
+ end
105
+
106
+ # Builds the object from hash
107
+ # @param [Hash] attributes Model attributes in the form of hash
108
+ # @return [Object] Returns the model itself
109
+ def build_from_hash(attributes)
110
+ return nil unless attributes.is_a?(Hash)
111
+ attributes = attributes.transform_keys(&:to_sym)
112
+ self.class.openapi_types.each_pair do |key, type|
113
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
114
+ self.send("#{key}=", nil)
115
+ elsif type =~ /\AArray<(.*)>/i
116
+ # check to ensure the input is an array given that the attribute
117
+ # is documented as an array but the input is not
118
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
119
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
120
+ end
121
+ elsif !attributes[self.class.attribute_map[key]].nil?
122
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
123
+ end
124
+ end
125
+
126
+ self
127
+ end
128
+
129
+ # Deserializes the data based on type
130
+ # @param string type Data type
131
+ # @param string value Value to be deserialized
132
+ # @return [Object] Deserialized data
133
+ def _deserialize(type, value)
134
+ case type.to_sym
135
+ when :Time
136
+ Time.parse(value)
137
+ when :Date
138
+ Date.parse(value)
139
+ when :String
140
+ value.to_s
141
+ when :Integer
142
+ value.to_i
143
+ when :Float
144
+ value.to_f
145
+ when :Boolean
146
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
147
+ true
148
+ else
149
+ false
150
+ end
151
+ when :Object
152
+ # generic object (usually a Hash), return directly
153
+ value
154
+ when /\AArray<(?<inner_type>.+)>\z/
155
+ inner_type = Regexp.last_match[:inner_type]
156
+ value.map { |v| _deserialize(inner_type, v) }
157
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
158
+ k_type = Regexp.last_match[:k_type]
159
+ v_type = Regexp.last_match[:v_type]
160
+ {}.tap do |hash|
161
+ value.each do |k, v|
162
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
163
+ end
164
+ end
165
+ else # model
166
+ # models (e.g. Pet) or oneOf
167
+ klass = Carbon.const_get(type)
168
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
169
+ end
170
+ end
171
+
172
+ # Returns the string representation of the object
173
+ # @return [String] String presentation of the object
174
+ def to_s
175
+ to_hash.to_s
176
+ end
177
+
178
+ # to_body is an alias to to_hash (backward compatibility)
179
+ # @return [Hash] Returns the object in the form of hash
180
+ def to_body
181
+ to_hash
182
+ end
183
+
184
+ # Returns the object in the form of hash
185
+ # @return [Hash] Returns the object in the form of hash
186
+ def to_hash
187
+ hash = {}
188
+ self.class.attribute_map.each_pair do |attr, param|
189
+ value = self.send(attr)
190
+ if value.nil?
191
+ is_nullable = self.class.openapi_nullable.include?(attr)
192
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
193
+ end
194
+
195
+ hash[param] = _to_hash(value)
196
+ end
197
+ hash
198
+ end
199
+
200
+ # Outputs non-array value in the form of hash
201
+ # For object, use to_hash. Otherwise, just return the value
202
+ # @param [Object] value Any valid value
203
+ # @return [Hash] Returns the value in the form of hash
204
+ def _to_hash(value)
205
+ if value.is_a?(Array)
206
+ value.compact.map { |v| _to_hash(v) }
207
+ elsif value.is_a?(Hash)
208
+ {}.tap do |hash|
209
+ value.each { |k, v| hash[k] = _to_hash(v) }
210
+ end
211
+ elsif value.respond_to? :to_hash
212
+ value.to_hash
213
+ else
214
+ value
215
+ end
216
+ end
217
+
218
+ end
219
+
220
+ end
@@ -0,0 +1,221 @@
1
+ =begin
2
+ #Carbon
3
+
4
+ #Connect external data to LLMs, no matter the source.
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ =end
8
+
9
+ require 'date'
10
+ require 'time'
11
+
12
+ module Carbon
13
+ # Parameters for reranking the chunks using a specified model. This field accepts an object with details of the reranking model to be used; either 'Cohere' or 'Jina'. If provided, the specified reranking model will reorder the retrieved chunks based on their relevance to the query.
14
+ class RerankParamsNullable
15
+ attr_accessor :model
16
+
17
+ # Attribute mapping from ruby-style variable name to JSON key.
18
+ def self.attribute_map
19
+ {
20
+ :'model' => :'model'
21
+ }
22
+ end
23
+
24
+ # Returns all the JSON keys this model knows about
25
+ def self.acceptable_attributes
26
+ attribute_map.values
27
+ end
28
+
29
+ # Attribute type mapping.
30
+ def self.openapi_types
31
+ {
32
+ :'model' => :'String'
33
+ }
34
+ end
35
+
36
+ # List of attributes with nullable: true
37
+ def self.openapi_nullable
38
+ Set.new([
39
+ ])
40
+ end
41
+
42
+ # Initializes the object
43
+ # @param [Hash] attributes Model attributes in the form of hash
44
+ def initialize(attributes = {})
45
+ if (!attributes.is_a?(Hash))
46
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Carbon::RerankParamsNullable` initialize method"
47
+ end
48
+
49
+ # check to see if the attribute exists and convert string to symbol for hash key
50
+ attributes = attributes.each_with_object({}) { |(k, v), h|
51
+ if (!self.class.attribute_map.key?(k.to_sym))
52
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Carbon::RerankParamsNullable`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
53
+ end
54
+ h[k.to_sym] = v
55
+ }
56
+
57
+ if attributes.key?(:'model')
58
+ self.model = attributes[:'model']
59
+ end
60
+ end
61
+
62
+ # Show invalid properties with the reasons. Usually used together with valid?
63
+ # @return Array for valid properties with the reasons
64
+ def list_invalid_properties
65
+ invalid_properties = Array.new
66
+ if @model.nil?
67
+ invalid_properties.push('invalid value for "model", model cannot be nil.')
68
+ end
69
+
70
+ invalid_properties
71
+ end
72
+
73
+ # Check to see if the all the properties in the model are valid
74
+ # @return true if the model is valid
75
+ def valid?
76
+ return false if @model.nil?
77
+ true
78
+ end
79
+
80
+ # Checks equality by comparing each attribute.
81
+ # @param [Object] Object to be compared
82
+ def ==(o)
83
+ return true if self.equal?(o)
84
+ self.class == o.class &&
85
+ model == o.model
86
+ end
87
+
88
+ # @see the `==` method
89
+ # @param [Object] Object to be compared
90
+ def eql?(o)
91
+ self == o
92
+ end
93
+
94
+ # Calculates hash code according to all attributes.
95
+ # @return [Integer] Hash code
96
+ def hash
97
+ [model].hash
98
+ end
99
+
100
+ # Builds the object from hash
101
+ # @param [Hash] attributes Model attributes in the form of hash
102
+ # @return [Object] Returns the model itself
103
+ def self.build_from_hash(attributes)
104
+ new.build_from_hash(attributes)
105
+ end
106
+
107
+ # Builds the object from hash
108
+ # @param [Hash] attributes Model attributes in the form of hash
109
+ # @return [Object] Returns the model itself
110
+ def build_from_hash(attributes)
111
+ return nil unless attributes.is_a?(Hash)
112
+ attributes = attributes.transform_keys(&:to_sym)
113
+ self.class.openapi_types.each_pair do |key, type|
114
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
115
+ self.send("#{key}=", nil)
116
+ elsif type =~ /\AArray<(.*)>/i
117
+ # check to ensure the input is an array given that the attribute
118
+ # is documented as an array but the input is not
119
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
120
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
121
+ end
122
+ elsif !attributes[self.class.attribute_map[key]].nil?
123
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
124
+ end
125
+ end
126
+
127
+ self
128
+ end
129
+
130
+ # Deserializes the data based on type
131
+ # @param string type Data type
132
+ # @param string value Value to be deserialized
133
+ # @return [Object] Deserialized data
134
+ def _deserialize(type, value)
135
+ case type.to_sym
136
+ when :Time
137
+ Time.parse(value)
138
+ when :Date
139
+ Date.parse(value)
140
+ when :String
141
+ value.to_s
142
+ when :Integer
143
+ value.to_i
144
+ when :Float
145
+ value.to_f
146
+ when :Boolean
147
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
148
+ true
149
+ else
150
+ false
151
+ end
152
+ when :Object
153
+ # generic object (usually a Hash), return directly
154
+ value
155
+ when /\AArray<(?<inner_type>.+)>\z/
156
+ inner_type = Regexp.last_match[:inner_type]
157
+ value.map { |v| _deserialize(inner_type, v) }
158
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
159
+ k_type = Regexp.last_match[:k_type]
160
+ v_type = Regexp.last_match[:v_type]
161
+ {}.tap do |hash|
162
+ value.each do |k, v|
163
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
164
+ end
165
+ end
166
+ else # model
167
+ # models (e.g. Pet) or oneOf
168
+ klass = Carbon.const_get(type)
169
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
170
+ end
171
+ end
172
+
173
+ # Returns the string representation of the object
174
+ # @return [String] String presentation of the object
175
+ def to_s
176
+ to_hash.to_s
177
+ end
178
+
179
+ # to_body is an alias to to_hash (backward compatibility)
180
+ # @return [Hash] Returns the object in the form of hash
181
+ def to_body
182
+ to_hash
183
+ end
184
+
185
+ # Returns the object in the form of hash
186
+ # @return [Hash] Returns the object in the form of hash
187
+ def to_hash
188
+ hash = {}
189
+ self.class.attribute_map.each_pair do |attr, param|
190
+ value = self.send(attr)
191
+ if value.nil?
192
+ is_nullable = self.class.openapi_nullable.include?(attr)
193
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
194
+ end
195
+
196
+ hash[param] = _to_hash(value)
197
+ end
198
+ hash
199
+ end
200
+
201
+ # Outputs non-array value in the form of hash
202
+ # For object, use to_hash. Otherwise, just return the value
203
+ # @param [Object] value Any valid value
204
+ # @return [Hash] Returns the value in the form of hash
205
+ def _to_hash(value)
206
+ if value.is_a?(Array)
207
+ value.compact.map { |v| _to_hash(v) }
208
+ elsif value.is_a?(Hash)
209
+ {}.tap do |hash|
210
+ value.each { |k, v| hash[k] = _to_hash(v) }
211
+ end
212
+ elsif value.respond_to? :to_hash
213
+ value.to_hash
214
+ else
215
+ value
216
+ end
217
+ end
218
+
219
+ end
220
+
221
+ end
@@ -187,7 +187,7 @@ module Carbon
187
187
  if attributes.key?(:'request_id')
188
188
  self.request_id = attributes[:'request_id']
189
189
  else
190
- self.request_id = '791318ee-229d-4c64-bb0a-2563b8014484'
190
+ self.request_id = '50140a8f-c06f-40df-9b91-d10d074bcb67'
191
191
  end
192
192
 
193
193
  if attributes.key?(:'use_ocr')
@@ -182,7 +182,7 @@ module Carbon
182
182
  if attributes.key?(:'request_id')
183
183
  self.request_id = attributes[:'request_id']
184
184
  else
185
- self.request_id = '0210abaa-8c19-4ac6-9c4b-fb856acce902'
185
+ self.request_id = '3a0195db-42f0-48ed-b809-d253f436a8e0'
186
186
  end
187
187
 
188
188
  if attributes.key?(:'enable_file_picker')
@@ -7,5 +7,5 @@ The version of the OpenAPI document: 1.0.0
7
7
  =end
8
8
 
9
9
  module Carbon
10
- VERSION = '0.2.12'
10
+ VERSION = '0.2.14'
11
11
  end
@@ -112,6 +112,8 @@ require 'carbon_ruby_sdk/models/rss_feed_input'
112
112
  require 'carbon_ruby_sdk/models/rank_property'
113
113
  require 'carbon_ruby_sdk/models/raw_text_input'
114
114
  require 'carbon_ruby_sdk/models/raw_transcript_property_inner_value'
115
+ require 'carbon_ruby_sdk/models/rerank_params'
116
+ require 'carbon_ruby_sdk/models/rerank_params_nullable'
115
117
  require 'carbon_ruby_sdk/models/resync_file_query_input'
116
118
  require 'carbon_ruby_sdk/models/revoke_access_token_input'
117
119
  require 'carbon_ruby_sdk/models/s3_auth_request'
@@ -121,4 +121,10 @@ describe Carbon::GetEmbeddingDocumentsBody do
121
121
  end
122
122
  end
123
123
 
124
+ describe 'test attribute "rerank"' do
125
+ it 'should work' do
126
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
127
+ end
128
+ end
129
+
124
130
  end
@@ -115,4 +115,10 @@ describe Carbon::OrganizationUserFilesToSyncFilters do
115
115
  end
116
116
  end
117
117
 
118
+ describe 'test attribute "external_urls"' do
119
+ it 'should work' do
120
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
121
+ end
122
+ end
123
+
118
124
  end
@@ -0,0 +1,28 @@
1
+ =begin
2
+ #Carbon
3
+
4
+ #Connect external data to LLMs, no matter the source.
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ =end
8
+
9
+ require 'spec_helper'
10
+ require 'json'
11
+ require 'date'
12
+
13
+ # Unit tests for Carbon::RerankParamsNullable
14
+ describe Carbon::RerankParamsNullable do
15
+ let(:instance) { Carbon::RerankParamsNullable.new }
16
+
17
+ describe 'test an instance of RerankParamsNullable' do
18
+ it 'should create an instance of RerankParamsNullable' do
19
+ expect(instance).to be_instance_of(Carbon::RerankParamsNullable)
20
+ end
21
+ end
22
+ describe 'test attribute "model"' do
23
+ it 'should work' do
24
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
25
+ end
26
+ end
27
+
28
+ end
@@ -0,0 +1,28 @@
1
+ =begin
2
+ #Carbon
3
+
4
+ #Connect external data to LLMs, no matter the source.
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ =end
8
+
9
+ require 'spec_helper'
10
+ require 'json'
11
+ require 'date'
12
+
13
+ # Unit tests for Carbon::RerankParams
14
+ describe Carbon::RerankParams do
15
+ let(:instance) { Carbon::RerankParams.new }
16
+
17
+ describe 'test an instance of RerankParams' do
18
+ it 'should create an instance of RerankParams' do
19
+ expect(instance).to be_instance_of(Carbon::RerankParams)
20
+ end
21
+ end
22
+ describe 'test attribute "model"' do
23
+ it 'should work' do
24
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
25
+ end
26
+ end
27
+
28
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carbon_ruby_sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.12
4
+ version: 0.2.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konfig
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-09 00:00:00.000000000 Z
11
+ date: 2024-07-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -193,6 +193,8 @@ files:
193
193
  - lib/carbon_ruby_sdk/models/rank_property.rb
194
194
  - lib/carbon_ruby_sdk/models/raw_text_input.rb
195
195
  - lib/carbon_ruby_sdk/models/raw_transcript_property_inner_value.rb
196
+ - lib/carbon_ruby_sdk/models/rerank_params.rb
197
+ - lib/carbon_ruby_sdk/models/rerank_params_nullable.rb
196
198
  - lib/carbon_ruby_sdk/models/resync_file_query_input.rb
197
199
  - lib/carbon_ruby_sdk/models/revoke_access_token_input.rb
198
200
  - lib/carbon_ruby_sdk/models/rss_feed_input.rb
@@ -351,6 +353,8 @@ files:
351
353
  - spec/models/rank_property_spec.rb
352
354
  - spec/models/raw_text_input_spec.rb
353
355
  - spec/models/raw_transcript_property_inner_value_spec.rb
356
+ - spec/models/rerank_params_nullable_spec.rb
357
+ - spec/models/rerank_params_spec.rb
354
358
  - spec/models/resync_file_query_input_spec.rb
355
359
  - spec/models/revoke_access_token_input_spec.rb
356
360
  - spec/models/rss_feed_input_spec.rb
@@ -463,6 +467,7 @@ test_files:
463
467
  - spec/models/sync_options_spec.rb
464
468
  - spec/models/file_formats_spec.rb
465
469
  - spec/models/update_organization_input_spec.rb
470
+ - spec/models/rerank_params_nullable_spec.rb
466
471
  - spec/models/user_request_content_spec.rb
467
472
  - spec/models/gmail_sync_input_spec.rb
468
473
  - spec/models/fetch_urls_request_spec.rb
@@ -553,6 +558,7 @@ test_files:
553
558
  - spec/models/organization_user_data_source_order_by_columns_spec.rb
554
559
  - spec/models/custom_credentials_type_spec.rb
555
560
  - spec/models/file_formats_nullable_spec.rb
561
+ - spec/models/rerank_params_spec.rb
556
562
  - spec/models/s3_authentication_spec.rb
557
563
  - spec/models/slack_filters_spec.rb
558
564
  - spec/models/file_statistics_spec.rb