carbon_ruby_sdk 0.1.11 → 0.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +6 -6
- data/README.md +28 -2
- data/lib/carbon_ruby_sdk/api/integrations_api.rb +66 -22
- data/lib/carbon_ruby_sdk/models/embedding_and_chunk.rb +15 -5
- data/lib/carbon_ruby_sdk/models/external_source_item.rb +11 -1
- data/lib/carbon_ruby_sdk/models/fresh_desk_connect_request.rb +15 -5
- data/lib/carbon_ruby_sdk/models/gitbook_connect_request.rb +15 -5
- data/lib/carbon_ruby_sdk/models/gitbook_sync_request.rb +15 -5
- data/lib/carbon_ruby_sdk/models/gmail_sync_input.rb +15 -5
- data/lib/carbon_ruby_sdk/models/list_data_source_items_request.rb +11 -1
- data/lib/carbon_ruby_sdk/models/list_items_filters.rb +250 -0
- data/lib/carbon_ruby_sdk/models/list_items_filters_nullable.rb +250 -0
- data/lib/carbon_ruby_sdk/models/o_auth_url_request.rb +16 -5
- data/lib/carbon_ruby_sdk/models/organization_user_files_to_sync_filters.rb +32 -4
- data/lib/carbon_ruby_sdk/models/outlook_sync_input.rb +15 -5
- data/lib/carbon_ruby_sdk/models/rss_feed_input.rb +15 -5
- data/lib/carbon_ruby_sdk/models/s3_file_sync_input.rb +15 -5
- data/lib/carbon_ruby_sdk/models/sync_files_request.rb +14 -4
- data/lib/carbon_ruby_sdk/models/user_file.rb +11 -1
- data/lib/carbon_ruby_sdk/version.rb +1 -1
- data/lib/carbon_ruby_sdk.rb +2 -0
- data/spec/models/embedding_and_chunk_spec.rb +6 -0
- data/spec/models/external_source_item_spec.rb +6 -0
- data/spec/models/fresh_desk_connect_request_spec.rb +6 -0
- data/spec/models/gitbook_connect_request_spec.rb +6 -0
- data/spec/models/gitbook_sync_request_spec.rb +6 -0
- data/spec/models/gmail_sync_input_spec.rb +6 -0
- data/spec/models/list_data_source_items_request_spec.rb +6 -0
- data/spec/models/list_items_filters_nullable_spec.rb +46 -0
- data/spec/models/list_items_filters_spec.rb +46 -0
- data/spec/models/o_auth_url_request_spec.rb +6 -0
- data/spec/models/organization_user_files_to_sync_filters_spec.rb +6 -0
- data/spec/models/outlook_sync_input_spec.rb +6 -0
- data/spec/models/rss_feed_input_spec.rb +6 -0
- data/spec/models/s3_file_sync_input_spec.rb +6 -0
- data/spec/models/sync_files_request_spec.rb +6 -0
- data/spec/models/user_file_spec.rb +6 -0
- metadata +9 -3
@@ -130,9 +130,10 @@ module Carbon
|
|
130
130
|
# @param generate_sparse_vectors [Boolean]
|
131
131
|
# @param prepend_filename_to_chunks [Boolean]
|
132
132
|
# @param sync_files_on_connection [Boolean]
|
133
|
+
# @param request_id [String]
|
133
134
|
# @param body [FreshDeskConnectRequest]
|
134
135
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
135
|
-
def connect_freshdesk(domain:, api_key:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, sync_files_on_connection: true, extra: {})
|
136
|
+
def connect_freshdesk(domain:, api_key:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, sync_files_on_connection: true, request_id: SENTINEL, extra: {})
|
136
137
|
_body = {}
|
137
138
|
_body[:tags] = tags if tags != SENTINEL
|
138
139
|
_body[:domain] = domain if domain != SENTINEL
|
@@ -144,6 +145,7 @@ module Carbon
|
|
144
145
|
_body[:generate_sparse_vectors] = generate_sparse_vectors if generate_sparse_vectors != SENTINEL
|
145
146
|
_body[:prepend_filename_to_chunks] = prepend_filename_to_chunks if prepend_filename_to_chunks != SENTINEL
|
146
147
|
_body[:sync_files_on_connection] = sync_files_on_connection if sync_files_on_connection != SENTINEL
|
148
|
+
_body[:request_id] = request_id if request_id != SENTINEL
|
147
149
|
fresh_desk_connect_request = _body
|
148
150
|
api_response = connect_freshdesk_with_http_info_impl(fresh_desk_connect_request, extra)
|
149
151
|
api_response.data
|
@@ -167,9 +169,10 @@ module Carbon
|
|
167
169
|
# @param generate_sparse_vectors [Boolean]
|
168
170
|
# @param prepend_filename_to_chunks [Boolean]
|
169
171
|
# @param sync_files_on_connection [Boolean]
|
172
|
+
# @param request_id [String]
|
170
173
|
# @param body [FreshDeskConnectRequest]
|
171
174
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
172
|
-
def connect_freshdesk_with_http_info(domain:, api_key:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, sync_files_on_connection: true, extra: {})
|
175
|
+
def connect_freshdesk_with_http_info(domain:, api_key:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, sync_files_on_connection: true, request_id: SENTINEL, extra: {})
|
173
176
|
_body = {}
|
174
177
|
_body[:tags] = tags if tags != SENTINEL
|
175
178
|
_body[:domain] = domain if domain != SENTINEL
|
@@ -181,6 +184,7 @@ module Carbon
|
|
181
184
|
_body[:generate_sparse_vectors] = generate_sparse_vectors if generate_sparse_vectors != SENTINEL
|
182
185
|
_body[:prepend_filename_to_chunks] = prepend_filename_to_chunks if prepend_filename_to_chunks != SENTINEL
|
183
186
|
_body[:sync_files_on_connection] = sync_files_on_connection if sync_files_on_connection != SENTINEL
|
187
|
+
_body[:request_id] = request_id if request_id != SENTINEL
|
184
188
|
fresh_desk_connect_request = _body
|
185
189
|
connect_freshdesk_with_http_info_impl(fresh_desk_connect_request, extra)
|
186
190
|
end
|
@@ -271,9 +275,10 @@ module Carbon
|
|
271
275
|
# @param generate_sparse_vectors [Boolean]
|
272
276
|
# @param prepend_filename_to_chunks [Boolean]
|
273
277
|
# @param sync_files_on_connection [Boolean]
|
278
|
+
# @param request_id [String]
|
274
279
|
# @param body [GitbookConnectRequest]
|
275
280
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
276
|
-
def connect_gitbook(organization:, access_token:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, sync_files_on_connection: true, extra: {})
|
281
|
+
def connect_gitbook(organization:, access_token:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, sync_files_on_connection: true, request_id: SENTINEL, extra: {})
|
277
282
|
_body = {}
|
278
283
|
_body[:tags] = tags if tags != SENTINEL
|
279
284
|
_body[:organization] = organization if organization != SENTINEL
|
@@ -285,6 +290,7 @@ module Carbon
|
|
285
290
|
_body[:generate_sparse_vectors] = generate_sparse_vectors if generate_sparse_vectors != SENTINEL
|
286
291
|
_body[:prepend_filename_to_chunks] = prepend_filename_to_chunks if prepend_filename_to_chunks != SENTINEL
|
287
292
|
_body[:sync_files_on_connection] = sync_files_on_connection if sync_files_on_connection != SENTINEL
|
293
|
+
_body[:request_id] = request_id if request_id != SENTINEL
|
288
294
|
gitbook_connect_request = _body
|
289
295
|
api_response = connect_gitbook_with_http_info_impl(gitbook_connect_request, extra)
|
290
296
|
api_response.data
|
@@ -307,9 +313,10 @@ module Carbon
|
|
307
313
|
# @param generate_sparse_vectors [Boolean]
|
308
314
|
# @param prepend_filename_to_chunks [Boolean]
|
309
315
|
# @param sync_files_on_connection [Boolean]
|
316
|
+
# @param request_id [String]
|
310
317
|
# @param body [GitbookConnectRequest]
|
311
318
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
312
|
-
def connect_gitbook_with_http_info(organization:, access_token:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, sync_files_on_connection: true, extra: {})
|
319
|
+
def connect_gitbook_with_http_info(organization:, access_token:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, sync_files_on_connection: true, request_id: SENTINEL, extra: {})
|
313
320
|
_body = {}
|
314
321
|
_body[:tags] = tags if tags != SENTINEL
|
315
322
|
_body[:organization] = organization if organization != SENTINEL
|
@@ -321,6 +328,7 @@ module Carbon
|
|
321
328
|
_body[:generate_sparse_vectors] = generate_sparse_vectors if generate_sparse_vectors != SENTINEL
|
322
329
|
_body[:prepend_filename_to_chunks] = prepend_filename_to_chunks if prepend_filename_to_chunks != SENTINEL
|
323
330
|
_body[:sync_files_on_connection] = sync_files_on_connection if sync_files_on_connection != SENTINEL
|
331
|
+
_body[:request_id] = request_id if request_id != SENTINEL
|
324
332
|
gitbook_connect_request = _body
|
325
333
|
connect_gitbook_with_http_info_impl(gitbook_connect_request, extra)
|
326
334
|
end
|
@@ -534,9 +542,10 @@ module Carbon
|
|
534
542
|
# @param set_page_as_boundary [Boolean]
|
535
543
|
# @param data_source_id [Integer] Used to specify a data source to sync from if you have multiple connected. It can be skipped if you only have one data source of that type connected or are connecting a new account.
|
536
544
|
# @param connecting_new_account [Boolean] Used to connect a new data source. If not specified, we will attempt to create a sync URL for an existing data source based on type and ID.
|
545
|
+
# @param request_id [String] This request id will be added to all files that get synced using the generated OAuth URL
|
537
546
|
# @param body [OAuthURLRequest]
|
538
547
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
539
|
-
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, extra: {})
|
548
|
+
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: SENTINEL, extra: {})
|
540
549
|
_body = {}
|
541
550
|
_body[:tags] = tags if tags != SENTINEL
|
542
551
|
_body[:scope] = scope if scope != SENTINEL
|
@@ -557,6 +566,7 @@ module Carbon
|
|
557
566
|
_body[:set_page_as_boundary] = set_page_as_boundary if set_page_as_boundary != SENTINEL
|
558
567
|
_body[:data_source_id] = data_source_id if data_source_id != SENTINEL
|
559
568
|
_body[:connecting_new_account] = connecting_new_account if connecting_new_account != SENTINEL
|
569
|
+
_body[:request_id] = request_id if request_id != SENTINEL
|
560
570
|
o_auth_url_request = _body
|
561
571
|
api_response = get_oauth_url_with_http_info_impl(o_auth_url_request, extra)
|
562
572
|
api_response.data
|
@@ -588,9 +598,10 @@ module Carbon
|
|
588
598
|
# @param set_page_as_boundary [Boolean]
|
589
599
|
# @param data_source_id [Integer] Used to specify a data source to sync from if you have multiple connected. It can be skipped if you only have one data source of that type connected or are connecting a new account.
|
590
600
|
# @param connecting_new_account [Boolean] Used to connect a new data source. If not specified, we will attempt to create a sync URL for an existing data source based on type and ID.
|
601
|
+
# @param request_id [String] This request id will be added to all files that get synced using the generated OAuth URL
|
591
602
|
# @param body [OAuthURLRequest]
|
592
603
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
593
|
-
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, extra: {})
|
604
|
+
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: SENTINEL, extra: {})
|
594
605
|
_body = {}
|
595
606
|
_body[:tags] = tags if tags != SENTINEL
|
596
607
|
_body[:scope] = scope if scope != SENTINEL
|
@@ -611,6 +622,7 @@ module Carbon
|
|
611
622
|
_body[:set_page_as_boundary] = set_page_as_boundary if set_page_as_boundary != SENTINEL
|
612
623
|
_body[:data_source_id] = data_source_id if data_source_id != SENTINEL
|
613
624
|
_body[:connecting_new_account] = connecting_new_account if connecting_new_account != SENTINEL
|
625
|
+
_body[:request_id] = request_id if request_id != SENTINEL
|
614
626
|
o_auth_url_request = _body
|
615
627
|
get_oauth_url_with_http_info_impl(o_auth_url_request, extra)
|
616
628
|
end
|
@@ -802,13 +814,15 @@ module Carbon
|
|
802
814
|
#
|
803
815
|
# @param data_source_id [Integer]
|
804
816
|
# @param parent_id [String]
|
817
|
+
# @param filters [ListItemsFiltersNullable]
|
805
818
|
# @param pagination [Pagination]
|
806
819
|
# @param body [ListDataSourceItemsRequest]
|
807
820
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
808
|
-
def list_data_source_items(data_source_id:, parent_id: SENTINEL, pagination: SENTINEL, extra: {})
|
821
|
+
def list_data_source_items(data_source_id:, parent_id: SENTINEL, filters: SENTINEL, pagination: SENTINEL, extra: {})
|
809
822
|
_body = {}
|
810
823
|
_body[:data_source_id] = data_source_id if data_source_id != SENTINEL
|
811
824
|
_body[:parent_id] = parent_id if parent_id != SENTINEL
|
825
|
+
_body[:filters] = filters if filters != SENTINEL
|
812
826
|
_body[:pagination] = pagination if pagination != SENTINEL
|
813
827
|
list_data_source_items_request = _body
|
814
828
|
api_response = list_data_source_items_with_http_info_impl(list_data_source_items_request, extra)
|
@@ -819,13 +833,15 @@ module Carbon
|
|
819
833
|
#
|
820
834
|
# @param data_source_id [Integer]
|
821
835
|
# @param parent_id [String]
|
836
|
+
# @param filters [ListItemsFiltersNullable]
|
822
837
|
# @param pagination [Pagination]
|
823
838
|
# @param body [ListDataSourceItemsRequest]
|
824
839
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
825
|
-
def list_data_source_items_with_http_info(data_source_id:, parent_id: SENTINEL, pagination: SENTINEL, extra: {})
|
840
|
+
def list_data_source_items_with_http_info(data_source_id:, parent_id: SENTINEL, filters: SENTINEL, pagination: SENTINEL, extra: {})
|
826
841
|
_body = {}
|
827
842
|
_body[:data_source_id] = data_source_id if data_source_id != SENTINEL
|
828
843
|
_body[:parent_id] = parent_id if parent_id != SENTINEL
|
844
|
+
_body[:filters] = filters if filters != SENTINEL
|
829
845
|
_body[:pagination] = pagination if pagination != SENTINEL
|
830
846
|
list_data_source_items_request = _body
|
831
847
|
list_data_source_items_with_http_info_impl(list_data_source_items_request, extra)
|
@@ -1260,9 +1276,10 @@ module Carbon
|
|
1260
1276
|
# @param prepend_filename_to_chunks [Boolean]
|
1261
1277
|
# @param max_items_per_chunk [Integer] Number of objects per chunk. For csv, tsv, xlsx, and json files only.
|
1262
1278
|
# @param set_page_as_boundary [Boolean]
|
1279
|
+
# @param request_id [String]
|
1263
1280
|
# @param body [SyncFilesRequest]
|
1264
1281
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
1265
|
-
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, extra: {})
|
1282
|
+
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: SENTINEL, extra: {})
|
1266
1283
|
_body = {}
|
1267
1284
|
_body[:tags] = tags if tags != SENTINEL
|
1268
1285
|
_body[:data_source_id] = data_source_id if data_source_id != SENTINEL
|
@@ -1275,6 +1292,7 @@ module Carbon
|
|
1275
1292
|
_body[:prepend_filename_to_chunks] = prepend_filename_to_chunks if prepend_filename_to_chunks != SENTINEL
|
1276
1293
|
_body[:max_items_per_chunk] = max_items_per_chunk if max_items_per_chunk != SENTINEL
|
1277
1294
|
_body[:set_page_as_boundary] = set_page_as_boundary if set_page_as_boundary != SENTINEL
|
1295
|
+
_body[:request_id] = request_id if request_id != SENTINEL
|
1278
1296
|
sync_files_request = _body
|
1279
1297
|
api_response = sync_confluence_with_http_info_impl(sync_files_request, extra)
|
1280
1298
|
api_response.data
|
@@ -1298,9 +1316,10 @@ module Carbon
|
|
1298
1316
|
# @param prepend_filename_to_chunks [Boolean]
|
1299
1317
|
# @param max_items_per_chunk [Integer] Number of objects per chunk. For csv, tsv, xlsx, and json files only.
|
1300
1318
|
# @param set_page_as_boundary [Boolean]
|
1319
|
+
# @param request_id [String]
|
1301
1320
|
# @param body [SyncFilesRequest]
|
1302
1321
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
1303
|
-
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, extra: {})
|
1322
|
+
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: SENTINEL, extra: {})
|
1304
1323
|
_body = {}
|
1305
1324
|
_body[:tags] = tags if tags != SENTINEL
|
1306
1325
|
_body[:data_source_id] = data_source_id if data_source_id != SENTINEL
|
@@ -1313,6 +1332,7 @@ module Carbon
|
|
1313
1332
|
_body[:prepend_filename_to_chunks] = prepend_filename_to_chunks if prepend_filename_to_chunks != SENTINEL
|
1314
1333
|
_body[:max_items_per_chunk] = max_items_per_chunk if max_items_per_chunk != SENTINEL
|
1315
1334
|
_body[:set_page_as_boundary] = set_page_as_boundary if set_page_as_boundary != SENTINEL
|
1335
|
+
_body[:request_id] = request_id if request_id != SENTINEL
|
1316
1336
|
sync_files_request = _body
|
1317
1337
|
sync_confluence_with_http_info_impl(sync_files_request, extra)
|
1318
1338
|
end
|
@@ -1496,9 +1516,10 @@ module Carbon
|
|
1496
1516
|
# @param prepend_filename_to_chunks [Boolean]
|
1497
1517
|
# @param max_items_per_chunk [Integer] Number of objects per chunk. For csv, tsv, xlsx, and json files only.
|
1498
1518
|
# @param set_page_as_boundary [Boolean]
|
1519
|
+
# @param request_id [String]
|
1499
1520
|
# @param body [SyncFilesRequest]
|
1500
1521
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
1501
|
-
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, extra: {})
|
1522
|
+
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: SENTINEL, extra: {})
|
1502
1523
|
_body = {}
|
1503
1524
|
_body[:tags] = tags if tags != SENTINEL
|
1504
1525
|
_body[:data_source_id] = data_source_id if data_source_id != SENTINEL
|
@@ -1511,6 +1532,7 @@ module Carbon
|
|
1511
1532
|
_body[:prepend_filename_to_chunks] = prepend_filename_to_chunks if prepend_filename_to_chunks != SENTINEL
|
1512
1533
|
_body[:max_items_per_chunk] = max_items_per_chunk if max_items_per_chunk != SENTINEL
|
1513
1534
|
_body[:set_page_as_boundary] = set_page_as_boundary if set_page_as_boundary != SENTINEL
|
1535
|
+
_body[:request_id] = request_id if request_id != SENTINEL
|
1514
1536
|
sync_files_request = _body
|
1515
1537
|
api_response = sync_files_with_http_info_impl(sync_files_request, extra)
|
1516
1538
|
api_response.data
|
@@ -1534,9 +1556,10 @@ module Carbon
|
|
1534
1556
|
# @param prepend_filename_to_chunks [Boolean]
|
1535
1557
|
# @param max_items_per_chunk [Integer] Number of objects per chunk. For csv, tsv, xlsx, and json files only.
|
1536
1558
|
# @param set_page_as_boundary [Boolean]
|
1559
|
+
# @param request_id [String]
|
1537
1560
|
# @param body [SyncFilesRequest]
|
1538
1561
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
1539
|
-
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, extra: {})
|
1562
|
+
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: SENTINEL, extra: {})
|
1540
1563
|
_body = {}
|
1541
1564
|
_body[:tags] = tags if tags != SENTINEL
|
1542
1565
|
_body[:data_source_id] = data_source_id if data_source_id != SENTINEL
|
@@ -1549,6 +1572,7 @@ module Carbon
|
|
1549
1572
|
_body[:prepend_filename_to_chunks] = prepend_filename_to_chunks if prepend_filename_to_chunks != SENTINEL
|
1550
1573
|
_body[:max_items_per_chunk] = max_items_per_chunk if max_items_per_chunk != SENTINEL
|
1551
1574
|
_body[:set_page_as_boundary] = set_page_as_boundary if set_page_as_boundary != SENTINEL
|
1575
|
+
_body[:request_id] = request_id if request_id != SENTINEL
|
1552
1576
|
sync_files_request = _body
|
1553
1577
|
sync_files_with_http_info_impl(sync_files_request, extra)
|
1554
1578
|
end
|
@@ -1636,9 +1660,10 @@ module Carbon
|
|
1636
1660
|
# @param embedding_model [EmbeddingGenerators]
|
1637
1661
|
# @param generate_sparse_vectors [Boolean]
|
1638
1662
|
# @param prepend_filename_to_chunks [Boolean]
|
1663
|
+
# @param request_id [String]
|
1639
1664
|
# @param body [GitbookSyncRequest]
|
1640
1665
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
1641
|
-
def sync_gitbook(space_ids:, data_source_id:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, extra: {})
|
1666
|
+
def sync_gitbook(space_ids:, data_source_id:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, request_id: SENTINEL, extra: {})
|
1642
1667
|
_body = {}
|
1643
1668
|
_body[:tags] = tags if tags != SENTINEL
|
1644
1669
|
_body[:space_ids] = space_ids if space_ids != SENTINEL
|
@@ -1649,6 +1674,7 @@ module Carbon
|
|
1649
1674
|
_body[:embedding_model] = embedding_model if embedding_model != SENTINEL
|
1650
1675
|
_body[:generate_sparse_vectors] = generate_sparse_vectors if generate_sparse_vectors != SENTINEL
|
1651
1676
|
_body[:prepend_filename_to_chunks] = prepend_filename_to_chunks if prepend_filename_to_chunks != SENTINEL
|
1677
|
+
_body[:request_id] = request_id if request_id != SENTINEL
|
1652
1678
|
gitbook_sync_request = _body
|
1653
1679
|
api_response = sync_gitbook_with_http_info_impl(gitbook_sync_request, extra)
|
1654
1680
|
api_response.data
|
@@ -1668,9 +1694,10 @@ module Carbon
|
|
1668
1694
|
# @param embedding_model [EmbeddingGenerators]
|
1669
1695
|
# @param generate_sparse_vectors [Boolean]
|
1670
1696
|
# @param prepend_filename_to_chunks [Boolean]
|
1697
|
+
# @param request_id [String]
|
1671
1698
|
# @param body [GitbookSyncRequest]
|
1672
1699
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
1673
|
-
def sync_gitbook_with_http_info(space_ids:, data_source_id:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, extra: {})
|
1700
|
+
def sync_gitbook_with_http_info(space_ids:, data_source_id:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, request_id: SENTINEL, extra: {})
|
1674
1701
|
_body = {}
|
1675
1702
|
_body[:tags] = tags if tags != SENTINEL
|
1676
1703
|
_body[:space_ids] = space_ids if space_ids != SENTINEL
|
@@ -1681,6 +1708,7 @@ module Carbon
|
|
1681
1708
|
_body[:embedding_model] = embedding_model if embedding_model != SENTINEL
|
1682
1709
|
_body[:generate_sparse_vectors] = generate_sparse_vectors if generate_sparse_vectors != SENTINEL
|
1683
1710
|
_body[:prepend_filename_to_chunks] = prepend_filename_to_chunks if prepend_filename_to_chunks != SENTINEL
|
1711
|
+
_body[:request_id] = request_id if request_id != SENTINEL
|
1684
1712
|
gitbook_sync_request = _body
|
1685
1713
|
sync_gitbook_with_http_info_impl(gitbook_sync_request, extra)
|
1686
1714
|
end
|
@@ -1816,9 +1844,10 @@ module Carbon
|
|
1816
1844
|
# @param generate_sparse_vectors [Boolean]
|
1817
1845
|
# @param prepend_filename_to_chunks [Boolean]
|
1818
1846
|
# @param data_source_id [Integer]
|
1847
|
+
# @param request_id [String]
|
1819
1848
|
# @param body [GmailSyncInput]
|
1820
1849
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
1821
|
-
def sync_gmail(filters:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, data_source_id: SENTINEL, extra: {})
|
1850
|
+
def sync_gmail(filters:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, data_source_id: SENTINEL, request_id: SENTINEL, extra: {})
|
1822
1851
|
_body = {}
|
1823
1852
|
_body[:tags] = tags if tags != SENTINEL
|
1824
1853
|
_body[:filters] = filters if filters != SENTINEL
|
@@ -1829,6 +1858,7 @@ module Carbon
|
|
1829
1858
|
_body[:generate_sparse_vectors] = generate_sparse_vectors if generate_sparse_vectors != SENTINEL
|
1830
1859
|
_body[:prepend_filename_to_chunks] = prepend_filename_to_chunks if prepend_filename_to_chunks != SENTINEL
|
1831
1860
|
_body[:data_source_id] = data_source_id if data_source_id != SENTINEL
|
1861
|
+
_body[:request_id] = request_id if request_id != SENTINEL
|
1832
1862
|
gmail_sync_input = _body
|
1833
1863
|
api_response = sync_gmail_with_http_info_impl(gmail_sync_input, extra)
|
1834
1864
|
api_response.data
|
@@ -1896,9 +1926,10 @@ module Carbon
|
|
1896
1926
|
# @param generate_sparse_vectors [Boolean]
|
1897
1927
|
# @param prepend_filename_to_chunks [Boolean]
|
1898
1928
|
# @param data_source_id [Integer]
|
1929
|
+
# @param request_id [String]
|
1899
1930
|
# @param body [GmailSyncInput]
|
1900
1931
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
1901
|
-
def sync_gmail_with_http_info(filters:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, data_source_id: SENTINEL, extra: {})
|
1932
|
+
def sync_gmail_with_http_info(filters:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, data_source_id: SENTINEL, request_id: SENTINEL, extra: {})
|
1902
1933
|
_body = {}
|
1903
1934
|
_body[:tags] = tags if tags != SENTINEL
|
1904
1935
|
_body[:filters] = filters if filters != SENTINEL
|
@@ -1909,6 +1940,7 @@ module Carbon
|
|
1909
1940
|
_body[:generate_sparse_vectors] = generate_sparse_vectors if generate_sparse_vectors != SENTINEL
|
1910
1941
|
_body[:prepend_filename_to_chunks] = prepend_filename_to_chunks if prepend_filename_to_chunks != SENTINEL
|
1911
1942
|
_body[:data_source_id] = data_source_id if data_source_id != SENTINEL
|
1943
|
+
_body[:request_id] = request_id if request_id != SENTINEL
|
1912
1944
|
gmail_sync_input = _body
|
1913
1945
|
sync_gmail_with_http_info_impl(gmail_sync_input, extra)
|
1914
1946
|
end
|
@@ -2055,9 +2087,10 @@ module Carbon
|
|
2055
2087
|
# @param generate_sparse_vectors [Boolean]
|
2056
2088
|
# @param prepend_filename_to_chunks [Boolean]
|
2057
2089
|
# @param data_source_id [Integer]
|
2090
|
+
# @param request_id [String]
|
2058
2091
|
# @param body [OutlookSyncInput]
|
2059
2092
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
2060
|
-
def sync_outlook(filters:, tags: SENTINEL, folder: 'Inbox', chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, data_source_id: SENTINEL, extra: {})
|
2093
|
+
def sync_outlook(filters:, tags: SENTINEL, folder: 'Inbox', chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, data_source_id: SENTINEL, request_id: SENTINEL, extra: {})
|
2061
2094
|
_body = {}
|
2062
2095
|
_body[:tags] = tags if tags != SENTINEL
|
2063
2096
|
_body[:folder] = folder if folder != SENTINEL
|
@@ -2069,6 +2102,7 @@ module Carbon
|
|
2069
2102
|
_body[:generate_sparse_vectors] = generate_sparse_vectors if generate_sparse_vectors != SENTINEL
|
2070
2103
|
_body[:prepend_filename_to_chunks] = prepend_filename_to_chunks if prepend_filename_to_chunks != SENTINEL
|
2071
2104
|
_body[:data_source_id] = data_source_id if data_source_id != SENTINEL
|
2105
|
+
_body[:request_id] = request_id if request_id != SENTINEL
|
2072
2106
|
outlook_sync_input = _body
|
2073
2107
|
api_response = sync_outlook_with_http_info_impl(outlook_sync_input, extra)
|
2074
2108
|
api_response.data
|
@@ -2147,9 +2181,10 @@ module Carbon
|
|
2147
2181
|
# @param generate_sparse_vectors [Boolean]
|
2148
2182
|
# @param prepend_filename_to_chunks [Boolean]
|
2149
2183
|
# @param data_source_id [Integer]
|
2184
|
+
# @param request_id [String]
|
2150
2185
|
# @param body [OutlookSyncInput]
|
2151
2186
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
2152
|
-
def sync_outlook_with_http_info(filters:, tags: SENTINEL, folder: 'Inbox', chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, data_source_id: SENTINEL, extra: {})
|
2187
|
+
def sync_outlook_with_http_info(filters:, tags: SENTINEL, folder: 'Inbox', chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, data_source_id: SENTINEL, request_id: SENTINEL, extra: {})
|
2153
2188
|
_body = {}
|
2154
2189
|
_body[:tags] = tags if tags != SENTINEL
|
2155
2190
|
_body[:folder] = folder if folder != SENTINEL
|
@@ -2161,6 +2196,7 @@ module Carbon
|
|
2161
2196
|
_body[:generate_sparse_vectors] = generate_sparse_vectors if generate_sparse_vectors != SENTINEL
|
2162
2197
|
_body[:prepend_filename_to_chunks] = prepend_filename_to_chunks if prepend_filename_to_chunks != SENTINEL
|
2163
2198
|
_body[:data_source_id] = data_source_id if data_source_id != SENTINEL
|
2199
|
+
_body[:request_id] = request_id if request_id != SENTINEL
|
2164
2200
|
outlook_sync_input = _body
|
2165
2201
|
sync_outlook_with_http_info_impl(outlook_sync_input, extra)
|
2166
2202
|
end
|
@@ -2244,9 +2280,10 @@ module Carbon
|
|
2244
2280
|
# @param embedding_model [EmbeddingGenerators]
|
2245
2281
|
# @param generate_sparse_vectors [Boolean]
|
2246
2282
|
# @param prepend_filename_to_chunks [Boolean]
|
2283
|
+
# @param request_id [String]
|
2247
2284
|
# @param body [RSSFeedInput]
|
2248
2285
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
2249
|
-
def sync_rss_feed(url:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, extra: {})
|
2286
|
+
def sync_rss_feed(url:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, request_id: SENTINEL, extra: {})
|
2250
2287
|
_body = {}
|
2251
2288
|
_body[:tags] = tags if tags != SENTINEL
|
2252
2289
|
_body[:url] = url if url != SENTINEL
|
@@ -2256,6 +2293,7 @@ module Carbon
|
|
2256
2293
|
_body[:embedding_model] = embedding_model if embedding_model != SENTINEL
|
2257
2294
|
_body[:generate_sparse_vectors] = generate_sparse_vectors if generate_sparse_vectors != SENTINEL
|
2258
2295
|
_body[:prepend_filename_to_chunks] = prepend_filename_to_chunks if prepend_filename_to_chunks != SENTINEL
|
2296
|
+
_body[:request_id] = request_id if request_id != SENTINEL
|
2259
2297
|
rss_feed_input = _body
|
2260
2298
|
api_response = sync_rss_feed_with_http_info_impl(rss_feed_input, extra)
|
2261
2299
|
api_response.data
|
@@ -2271,9 +2309,10 @@ module Carbon
|
|
2271
2309
|
# @param embedding_model [EmbeddingGenerators]
|
2272
2310
|
# @param generate_sparse_vectors [Boolean]
|
2273
2311
|
# @param prepend_filename_to_chunks [Boolean]
|
2312
|
+
# @param request_id [String]
|
2274
2313
|
# @param body [RSSFeedInput]
|
2275
2314
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
2276
|
-
def sync_rss_feed_with_http_info(url:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, extra: {})
|
2315
|
+
def sync_rss_feed_with_http_info(url:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, request_id: SENTINEL, extra: {})
|
2277
2316
|
_body = {}
|
2278
2317
|
_body[:tags] = tags if tags != SENTINEL
|
2279
2318
|
_body[:url] = url if url != SENTINEL
|
@@ -2283,6 +2322,7 @@ module Carbon
|
|
2283
2322
|
_body[:embedding_model] = embedding_model if embedding_model != SENTINEL
|
2284
2323
|
_body[:generate_sparse_vectors] = generate_sparse_vectors if generate_sparse_vectors != SENTINEL
|
2285
2324
|
_body[:prepend_filename_to_chunks] = prepend_filename_to_chunks if prepend_filename_to_chunks != SENTINEL
|
2325
|
+
_body[:request_id] = request_id if request_id != SENTINEL
|
2286
2326
|
rss_feed_input = _body
|
2287
2327
|
sync_rss_feed_with_http_info_impl(rss_feed_input, extra)
|
2288
2328
|
end
|
@@ -2371,9 +2411,10 @@ module Carbon
|
|
2371
2411
|
# @param max_items_per_chunk [Integer] Number of objects per chunk. For csv, tsv, xlsx, and json files only.
|
2372
2412
|
# @param set_page_as_boundary [Boolean]
|
2373
2413
|
# @param data_source_id [Integer]
|
2414
|
+
# @param request_id [String]
|
2374
2415
|
# @param body [S3FileSyncInput]
|
2375
2416
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
2376
|
-
def sync_s3_files(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, data_source_id: SENTINEL, extra: {})
|
2417
|
+
def sync_s3_files(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, data_source_id: SENTINEL, request_id: SENTINEL, extra: {})
|
2377
2418
|
_body = {}
|
2378
2419
|
_body[:tags] = tags if tags != SENTINEL
|
2379
2420
|
_body[:ids] = ids if ids != SENTINEL
|
@@ -2386,6 +2427,7 @@ module Carbon
|
|
2386
2427
|
_body[:max_items_per_chunk] = max_items_per_chunk if max_items_per_chunk != SENTINEL
|
2387
2428
|
_body[:set_page_as_boundary] = set_page_as_boundary if set_page_as_boundary != SENTINEL
|
2388
2429
|
_body[:data_source_id] = data_source_id if data_source_id != SENTINEL
|
2430
|
+
_body[:request_id] = request_id if request_id != SENTINEL
|
2389
2431
|
s3_file_sync_input = _body
|
2390
2432
|
api_response = sync_s3_files_with_http_info_impl(s3_file_sync_input, extra)
|
2391
2433
|
api_response.data
|
@@ -2408,9 +2450,10 @@ module Carbon
|
|
2408
2450
|
# @param max_items_per_chunk [Integer] Number of objects per chunk. For csv, tsv, xlsx, and json files only.
|
2409
2451
|
# @param set_page_as_boundary [Boolean]
|
2410
2452
|
# @param data_source_id [Integer]
|
2453
|
+
# @param request_id [String]
|
2411
2454
|
# @param body [S3FileSyncInput]
|
2412
2455
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
2413
|
-
def sync_s3_files_with_http_info(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, data_source_id: SENTINEL, extra: {})
|
2456
|
+
def sync_s3_files_with_http_info(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, data_source_id: SENTINEL, request_id: SENTINEL, extra: {})
|
2414
2457
|
_body = {}
|
2415
2458
|
_body[:tags] = tags if tags != SENTINEL
|
2416
2459
|
_body[:ids] = ids if ids != SENTINEL
|
@@ -2423,6 +2466,7 @@ module Carbon
|
|
2423
2466
|
_body[:max_items_per_chunk] = max_items_per_chunk if max_items_per_chunk != SENTINEL
|
2424
2467
|
_body[:set_page_as_boundary] = set_page_as_boundary if set_page_as_boundary != SENTINEL
|
2425
2468
|
_body[:data_source_id] = data_source_id if data_source_id != SENTINEL
|
2469
|
+
_body[:request_id] = request_id if request_id != SENTINEL
|
2426
2470
|
s3_file_sync_input = _body
|
2427
2471
|
sync_s3_files_with_http_info_impl(s3_file_sync_input, extra)
|
2428
2472
|
end
|
@@ -19,13 +19,16 @@ module Carbon
|
|
19
19
|
|
20
20
|
attr_accessor :embedding
|
21
21
|
|
22
|
+
attr_accessor :content_metadata
|
23
|
+
|
22
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
23
25
|
def self.attribute_map
|
24
26
|
{
|
25
27
|
:'user_file_id' => :'user_file_id',
|
26
28
|
:'chunk_index' => :'chunk_index',
|
27
29
|
:'source_content' => :'source_content',
|
28
|
-
:'embedding' => :'embedding'
|
30
|
+
:'embedding' => :'embedding',
|
31
|
+
:'content_metadata' => :'content_metadata'
|
29
32
|
}
|
30
33
|
end
|
31
34
|
|
@@ -40,7 +43,8 @@ module Carbon
|
|
40
43
|
:'user_file_id' => :'Integer',
|
41
44
|
:'chunk_index' => :'Integer',
|
42
45
|
:'source_content' => :'String',
|
43
|
-
:'embedding' => :'Array<Float>'
|
46
|
+
:'embedding' => :'Array<Float>',
|
47
|
+
:'content_metadata' => :'Object'
|
44
48
|
}
|
45
49
|
end
|
46
50
|
|
@@ -48,7 +52,8 @@ module Carbon
|
|
48
52
|
def self.openapi_nullable
|
49
53
|
Set.new([
|
50
54
|
:'chunk_index',
|
51
|
-
:'embedding'
|
55
|
+
:'embedding',
|
56
|
+
:'content_metadata'
|
52
57
|
])
|
53
58
|
end
|
54
59
|
|
@@ -84,6 +89,10 @@ module Carbon
|
|
84
89
|
self.embedding = value
|
85
90
|
end
|
86
91
|
end
|
92
|
+
|
93
|
+
if attributes.key?(:'content_metadata')
|
94
|
+
self.content_metadata = attributes[:'content_metadata']
|
95
|
+
end
|
87
96
|
end
|
88
97
|
|
89
98
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -117,7 +126,8 @@ module Carbon
|
|
117
126
|
user_file_id == o.user_file_id &&
|
118
127
|
chunk_index == o.chunk_index &&
|
119
128
|
source_content == o.source_content &&
|
120
|
-
embedding == o.embedding
|
129
|
+
embedding == o.embedding &&
|
130
|
+
content_metadata == o.content_metadata
|
121
131
|
end
|
122
132
|
|
123
133
|
# @see the `==` method
|
@@ -129,7 +139,7 @@ module Carbon
|
|
129
139
|
# Calculates hash code according to all attributes.
|
130
140
|
# @return [Integer] Hash code
|
131
141
|
def hash
|
132
|
-
[user_file_id, chunk_index, source_content, embedding].hash
|
142
|
+
[user_file_id, chunk_index, source_content, embedding, content_metadata].hash
|
133
143
|
end
|
134
144
|
|
135
145
|
# Builds the object from hash
|
@@ -41,6 +41,8 @@ module Carbon
|
|
41
41
|
|
42
42
|
attr_accessor :root_external_id
|
43
43
|
|
44
|
+
attr_accessor :external_url
|
45
|
+
|
44
46
|
attr_accessor :created_at
|
45
47
|
|
46
48
|
attr_accessor :updated_at
|
@@ -63,6 +65,7 @@ module Carbon
|
|
63
65
|
:'parent_external_id' => :'parent_external_id',
|
64
66
|
:'item_type' => :'item_type',
|
65
67
|
:'root_external_id' => :'root_external_id',
|
68
|
+
:'external_url' => :'external_url',
|
66
69
|
:'created_at' => :'created_at',
|
67
70
|
:'updated_at' => :'updated_at'
|
68
71
|
}
|
@@ -91,6 +94,7 @@ module Carbon
|
|
91
94
|
:'parent_external_id' => :'String',
|
92
95
|
:'item_type' => :'String',
|
93
96
|
:'root_external_id' => :'String',
|
97
|
+
:'external_url' => :'String',
|
94
98
|
:'created_at' => :'Time',
|
95
99
|
:'updated_at' => :'Time'
|
96
100
|
}
|
@@ -105,6 +109,7 @@ module Carbon
|
|
105
109
|
:'parent_external_id',
|
106
110
|
:'item_type',
|
107
111
|
:'root_external_id',
|
112
|
+
:'external_url',
|
108
113
|
])
|
109
114
|
end
|
110
115
|
|
@@ -183,6 +188,10 @@ module Carbon
|
|
183
188
|
self.root_external_id = attributes[:'root_external_id']
|
184
189
|
end
|
185
190
|
|
191
|
+
if attributes.key?(:'external_url')
|
192
|
+
self.external_url = attributes[:'external_url']
|
193
|
+
end
|
194
|
+
|
186
195
|
if attributes.key?(:'created_at')
|
187
196
|
self.created_at = attributes[:'created_at']
|
188
197
|
end
|
@@ -280,6 +289,7 @@ module Carbon
|
|
280
289
|
parent_external_id == o.parent_external_id &&
|
281
290
|
item_type == o.item_type &&
|
282
291
|
root_external_id == o.root_external_id &&
|
292
|
+
external_url == o.external_url &&
|
283
293
|
created_at == o.created_at &&
|
284
294
|
updated_at == o.updated_at
|
285
295
|
end
|
@@ -293,7 +303,7 @@ module Carbon
|
|
293
303
|
# Calculates hash code according to all attributes.
|
294
304
|
# @return [Integer] Hash code
|
295
305
|
def hash
|
296
|
-
[id, external_id, source, name, synced_at, is_selectable, is_expandable, organization_id, organization_supplied_user_id, organization_user_id, organization_user_data_source_id, organization_user_file_to_sync_id, parent_external_id, item_type, root_external_id, created_at, updated_at].hash
|
306
|
+
[id, external_id, source, name, synced_at, is_selectable, is_expandable, organization_id, organization_supplied_user_id, organization_user_id, organization_user_data_source_id, organization_user_file_to_sync_id, parent_external_id, item_type, root_external_id, external_url, created_at, updated_at].hash
|
297
307
|
end
|
298
308
|
|
299
309
|
# Builds the object from hash
|
@@ -31,6 +31,8 @@ module Carbon
|
|
31
31
|
|
32
32
|
attr_accessor :sync_files_on_connection
|
33
33
|
|
34
|
+
attr_accessor :request_id
|
35
|
+
|
34
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
35
37
|
def self.attribute_map
|
36
38
|
{
|
@@ -43,7 +45,8 @@ module Carbon
|
|
43
45
|
:'embedding_model' => :'embedding_model',
|
44
46
|
:'generate_sparse_vectors' => :'generate_sparse_vectors',
|
45
47
|
:'prepend_filename_to_chunks' => :'prepend_filename_to_chunks',
|
46
|
-
:'sync_files_on_connection' => :'sync_files_on_connection'
|
48
|
+
:'sync_files_on_connection' => :'sync_files_on_connection',
|
49
|
+
:'request_id' => :'request_id'
|
47
50
|
}
|
48
51
|
end
|
49
52
|
|
@@ -64,7 +67,8 @@ module Carbon
|
|
64
67
|
:'embedding_model' => :'EmbeddingGeneratorsNullable',
|
65
68
|
:'generate_sparse_vectors' => :'Boolean',
|
66
69
|
:'prepend_filename_to_chunks' => :'Boolean',
|
67
|
-
:'sync_files_on_connection' => :'Boolean'
|
70
|
+
:'sync_files_on_connection' => :'Boolean',
|
71
|
+
:'request_id' => :'String'
|
68
72
|
}
|
69
73
|
end
|
70
74
|
|
@@ -78,7 +82,8 @@ module Carbon
|
|
78
82
|
:'embedding_model',
|
79
83
|
:'generate_sparse_vectors',
|
80
84
|
:'prepend_filename_to_chunks',
|
81
|
-
:'sync_files_on_connection'
|
85
|
+
:'sync_files_on_connection',
|
86
|
+
:'request_id'
|
82
87
|
])
|
83
88
|
end
|
84
89
|
|
@@ -150,6 +155,10 @@ module Carbon
|
|
150
155
|
else
|
151
156
|
self.sync_files_on_connection = true
|
152
157
|
end
|
158
|
+
|
159
|
+
if attributes.key?(:'request_id')
|
160
|
+
self.request_id = attributes[:'request_id']
|
161
|
+
end
|
153
162
|
end
|
154
163
|
|
155
164
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -189,7 +198,8 @@ module Carbon
|
|
189
198
|
embedding_model == o.embedding_model &&
|
190
199
|
generate_sparse_vectors == o.generate_sparse_vectors &&
|
191
200
|
prepend_filename_to_chunks == o.prepend_filename_to_chunks &&
|
192
|
-
sync_files_on_connection == o.sync_files_on_connection
|
201
|
+
sync_files_on_connection == o.sync_files_on_connection &&
|
202
|
+
request_id == o.request_id
|
193
203
|
end
|
194
204
|
|
195
205
|
# @see the `==` method
|
@@ -201,7 +211,7 @@ module Carbon
|
|
201
211
|
# Calculates hash code according to all attributes.
|
202
212
|
# @return [Integer] Hash code
|
203
213
|
def hash
|
204
|
-
[tags, domain, api_key, chunk_size, chunk_overlap, skip_embedding_generation, embedding_model, generate_sparse_vectors, prepend_filename_to_chunks, sync_files_on_connection].hash
|
214
|
+
[tags, domain, api_key, chunk_size, chunk_overlap, skip_embedding_generation, embedding_model, generate_sparse_vectors, prepend_filename_to_chunks, sync_files_on_connection, request_id].hash
|
205
215
|
end
|
206
216
|
|
207
217
|
# Builds the object from hash
|