xberg 1.3.9 → 1.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +11 -4
- data/ext/xberg_rb/native/Cargo.lock +798 -857
- data/ext/xberg_rb/native/Cargo.toml +9 -8
- data/ext/xberg_rb/src/lib.rs +2122 -470
- data/lib/xberg/native.rb +135 -100
- data/lib/xberg/version.rb +2 -2
- data/sig/types.rbs +2343 -27
- metadata +3 -3
data/sig/types.rbs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# This file is auto-generated by alef — DO NOT EDIT.
|
|
2
|
-
# alef:hash:
|
|
2
|
+
# alef:hash:6f6b3afa8d6d28944a7896d70b62a3f976e90663b63d885ada140e87696170e4
|
|
3
3
|
# To regenerate: alef generate
|
|
4
4
|
# To verify freshness: alef verify
|
|
5
5
|
|
|
@@ -109,8 +109,11 @@ def initialize: (?entry_count: Integer, ?citation_keys: Array[String], ?authors:
|
|
|
109
109
|
attr_reader session_affinity: bool
|
|
110
110
|
attr_reader chrome_path: String?
|
|
111
111
|
attr_reader chrome_args: Array[String]
|
|
112
|
+
attr_reader scroll_containers: bool
|
|
113
|
+
attr_reader dom_quiet_window: Integer
|
|
114
|
+
attr_reader dom_quiet_cap: Integer
|
|
112
115
|
|
|
113
|
-
def initialize: (?mode: enum_BrowserMode, ?backend: enum_BrowserBackend, ?endpoint: String, ?timeout: Integer, ?overall_timeout: Integer, ?shutdown_timeout: Integer, ?wait: enum_BrowserWait, ?wait_selector: String, ?extra_wait: Integer, ?proxy: ProxyConfig, ?block_url_patterns: Array[String], ?eval_script: String, ?robots_user_agent: String, ?capture_network_events: bool, ?session_affinity: bool, ?chrome_path: String, ?chrome_args: Array[String]) -> void
|
|
116
|
+
def initialize: (?mode: enum_BrowserMode, ?backend: enum_BrowserBackend, ?endpoint: String, ?timeout: Integer, ?overall_timeout: Integer, ?shutdown_timeout: Integer, ?wait: enum_BrowserWait, ?wait_selector: String, ?extra_wait: Integer, ?proxy: ProxyConfig, ?block_url_patterns: Array[String], ?eval_script: String, ?robots_user_agent: String, ?capture_network_events: bool, ?session_affinity: bool, ?chrome_path: String, ?chrome_args: Array[String], ?scroll_containers: bool, ?dom_quiet_window: Integer, ?dom_quiet_cap: Integer) -> void
|
|
114
117
|
end
|
|
115
118
|
|
|
116
119
|
class CacheStats
|
|
@@ -303,8 +306,19 @@ def initialize: (?chunks: Array[CodeChunkInfo], ?data: CodeDataNode) -> void
|
|
|
303
306
|
attr_reader wrap_width: Integer
|
|
304
307
|
attr_reader include_document_structure: bool
|
|
305
308
|
attr_reader extract_metadata: bool
|
|
309
|
+
attr_reader strip_newlines: bool
|
|
310
|
+
attr_reader bullets: String
|
|
311
|
+
attr_reader list_indent_width: Integer
|
|
312
|
+
attr_reader strong_em_symbol: String
|
|
313
|
+
attr_reader compact_tables: bool
|
|
314
|
+
attr_reader keep_inline_images_in: Array[String]
|
|
315
|
+
attr_reader keep_hidden: bool
|
|
316
|
+
attr_reader expand_abbreviations: bool
|
|
317
|
+
attr_reader escape_misc: bool
|
|
318
|
+
attr_reader escape_asterisks: bool
|
|
319
|
+
attr_reader include_icon_labels: bool
|
|
306
320
|
|
|
307
|
-
def initialize: (?output_format: String, ?preprocessing_preset: String, ?remove_navigation: bool, ?remove_forms: bool, ?strip_tags: Array[String], ?preserve_tags: Array[String], ?exclude_selectors: Array[String], ?skip_images: bool, ?max_depth: Integer, ?wrap: bool, ?wrap_width: Integer, ?include_document_structure: bool, ?extract_metadata: bool) -> void
|
|
321
|
+
def initialize: (?output_format: String, ?preprocessing_preset: String, ?remove_navigation: bool, ?remove_forms: bool, ?strip_tags: Array[String], ?preserve_tags: Array[String], ?exclude_selectors: Array[String], ?skip_images: bool, ?max_depth: Integer, ?wrap: bool, ?wrap_width: Integer, ?include_document_structure: bool, ?extract_metadata: bool, ?strip_newlines: bool, ?bullets: String, ?list_indent_width: Integer, ?strong_em_symbol: String, ?compact_tables: bool, ?keep_inline_images_in: Array[String], ?keep_hidden: bool, ?expand_abbreviations: bool, ?escape_misc: bool, ?escape_asterisks: bool, ?include_icon_labels: bool) -> void
|
|
308
322
|
end
|
|
309
323
|
|
|
310
324
|
class ContentFilterConfig
|
|
@@ -336,6 +350,8 @@ def initialize: (?output_format: String, ?preprocessing_preset: String, ?remove_
|
|
|
336
350
|
attr_reader escape_ascii: bool
|
|
337
351
|
attr_reader code_language: String
|
|
338
352
|
attr_reader autolinks: bool
|
|
353
|
+
attr_reader expand_abbreviations: bool
|
|
354
|
+
attr_reader include_blockquote_citations: bool
|
|
339
355
|
attr_reader default_title: bool
|
|
340
356
|
attr_reader br_in_tables: bool
|
|
341
357
|
attr_reader compact_tables: bool
|
|
@@ -358,6 +374,7 @@ def initialize: (?output_format: String, ?preprocessing_preset: String, ?remove_
|
|
|
358
374
|
attr_reader preserve_tags: Array[String]
|
|
359
375
|
attr_reader skip_images: bool
|
|
360
376
|
attr_reader inline_data_media: enum_InlineDataMedia
|
|
377
|
+
attr_reader hidden_content: enum_HiddenContent
|
|
361
378
|
attr_reader url_escape_style: enum_UrlEscapeStyle
|
|
362
379
|
attr_reader link_style: enum_LinkStyle
|
|
363
380
|
attr_reader output_format: enum_HtmlToMarkdownRsOutputFormat
|
|
@@ -372,7 +389,7 @@ def initialize: (?output_format: String, ?preprocessing_preset: String, ?remove_
|
|
|
372
389
|
attr_reader tier_strategy: enum_TierStrategy
|
|
373
390
|
attr_reader base_url: String?
|
|
374
391
|
|
|
375
|
-
def initialize: (?heading_style: enum_HeadingStyle, ?list_indent_type: enum_ListIndentType, ?list_indent_width: Integer, ?bullets: String, ?strong_em_symbol: String, ?escape_asterisks: bool, ?escape_underscores: bool, ?escape_misc: bool, ?escape_ascii: bool, ?code_language: String, ?autolinks: bool, ?default_title: bool, ?br_in_tables: bool, ?compact_tables: bool, ?highlight_style: enum_HighlightStyle, ?extract_metadata: bool, ?whitespace_mode: enum_WhitespaceMode, ?strip_newlines: bool, ?wrap: bool, ?wrap_width: Integer, ?convert_as_inline: bool, ?sub_symbol: String, ?sup_symbol: String, ?newline_style: enum_NewlineStyle, ?code_block_style: enum_CodeBlockStyle, ?keep_inline_images_in: Array[String], ?preprocessing: PreprocessingOptions, ?encoding: String, ?debug: bool, ?strip_tags: Array[String], ?preserve_tags: Array[String], ?skip_images: bool, ?inline_data_media: enum_InlineDataMedia, ?url_escape_style: enum_UrlEscapeStyle, ?link_style: enum_LinkStyle, ?output_format: enum_HtmlToMarkdownRsOutputFormat, ?include_document_structure: bool, ?extract_images: bool, ?max_image_size: Integer, ?max_input_size: Integer, ?capture_svg: bool, ?infer_dimensions: bool, ?max_depth: Integer, ?exclude_selectors: Array[String], ?tier_strategy: enum_TierStrategy, ?base_url: String) -> void
|
|
392
|
+
def initialize: (?heading_style: enum_HeadingStyle, ?list_indent_type: enum_ListIndentType, ?list_indent_width: Integer, ?bullets: String, ?strong_em_symbol: String, ?escape_asterisks: bool, ?escape_underscores: bool, ?escape_misc: bool, ?escape_ascii: bool, ?code_language: String, ?autolinks: bool, ?expand_abbreviations: bool, ?include_blockquote_citations: bool, ?default_title: bool, ?br_in_tables: bool, ?compact_tables: bool, ?highlight_style: enum_HighlightStyle, ?extract_metadata: bool, ?whitespace_mode: enum_WhitespaceMode, ?strip_newlines: bool, ?wrap: bool, ?wrap_width: Integer, ?convert_as_inline: bool, ?sub_symbol: String, ?sup_symbol: String, ?newline_style: enum_NewlineStyle, ?code_block_style: enum_CodeBlockStyle, ?keep_inline_images_in: Array[String], ?preprocessing: PreprocessingOptions, ?encoding: String, ?debug: bool, ?strip_tags: Array[String], ?preserve_tags: Array[String], ?skip_images: bool, ?inline_data_media: enum_InlineDataMedia, ?hidden_content: enum_HiddenContent, ?url_escape_style: enum_UrlEscapeStyle, ?link_style: enum_LinkStyle, ?output_format: enum_HtmlToMarkdownRsOutputFormat, ?include_document_structure: bool, ?extract_images: bool, ?max_image_size: Integer, ?max_input_size: Integer, ?capture_svg: bool, ?infer_dimensions: bool, ?max_depth: Integer, ?exclude_selectors: Array[String], ?tier_strategy: enum_TierStrategy, ?base_url: String) -> void
|
|
376
393
|
end
|
|
377
394
|
|
|
378
395
|
class CoreProperties
|
|
@@ -451,8 +468,10 @@ def initialize: (?heading_style: enum_HeadingStyle, ?list_indent_type: enum_List
|
|
|
451
468
|
attr_reader save_browser_profile: bool
|
|
452
469
|
attr_reader ssrf: SsrfPolicy
|
|
453
470
|
attr_reader ssrf_deny_private_explicit: bool?
|
|
471
|
+
attr_reader danger_accept_invalid_certs: bool
|
|
472
|
+
attr_reader subdomain_header_allowlist: Array[String]
|
|
454
473
|
|
|
455
|
-
def initialize: (?max_depth: Integer, ?max_pages: Integer, ?max_links_per_page: Integer, ?max_concurrent: Integer, ?crawl_strategy: enum_CrawlStrategyKind, ?content_filter: enum_ContentFilterKind, ?bm25_query: String, ?bm25_threshold: Float, ?respect_robots_txt: bool, ?soft_http_errors: bool, ?user_agent: String, ?stay_on_domain: bool, ?allow_subdomains: bool, ?include_paths: Array[String], ?exclude_paths: Array[String], ?path_patterns_match_query: bool, ?path_patterns_match_url: bool, ?dedup_include_query: bool, ?strip_tracking_params: bool, ?tracking_params: Array[String], ?custom_headers: Hash[String, String], ?request_timeout: Integer, ?rate_limit_ms: Integer, ?max_redirects: Integer, ?retry_count: Integer, ?retry_codes: Array[Integer], ?retry_initial_delay_ms: Integer, ?retry_max_delay_ms: Integer, ?rate_limit_jitter_ratio: Float, ?cookies_enabled: bool, ?auth: AuthConfig, ?max_body_size: Integer, ?remove_tags: Array[String], ?content: ContentConfig, ?map_limit: Integer, ?map_search: String, ?download_assets: bool, ?asset_types: Array[enum_AssetCategory], ?max_asset_size: Integer, ?browser: BrowserConfig, ?proxy: ProxyConfig, ?user_agents: Array[String], ?capture_screenshot: bool, ?follow_document_urls: bool, ?document_url_depth: Integer, ?download_documents: bool, ?document_max_size: Integer, ?document_mime_types: Array[String], ?document_output_dir: String, ?document_content_encoding: enum_DocumentContentEncoding, ?warc_output: String, ?browser_profile: String, ?save_browser_profile: bool, ?ssrf: SsrfPolicy, ?ssrf_deny_private_explicit: bool) -> void
|
|
474
|
+
def initialize: (?max_depth: Integer, ?max_pages: Integer, ?max_links_per_page: Integer, ?max_concurrent: Integer, ?crawl_strategy: enum_CrawlStrategyKind, ?content_filter: enum_ContentFilterKind, ?bm25_query: String, ?bm25_threshold: Float, ?respect_robots_txt: bool, ?soft_http_errors: bool, ?user_agent: String, ?stay_on_domain: bool, ?allow_subdomains: bool, ?include_paths: Array[String], ?exclude_paths: Array[String], ?path_patterns_match_query: bool, ?path_patterns_match_url: bool, ?dedup_include_query: bool, ?strip_tracking_params: bool, ?tracking_params: Array[String], ?custom_headers: Hash[String, String], ?request_timeout: Integer, ?rate_limit_ms: Integer, ?max_redirects: Integer, ?retry_count: Integer, ?retry_codes: Array[Integer], ?retry_initial_delay_ms: Integer, ?retry_max_delay_ms: Integer, ?rate_limit_jitter_ratio: Float, ?cookies_enabled: bool, ?auth: AuthConfig, ?max_body_size: Integer, ?remove_tags: Array[String], ?content: ContentConfig, ?map_limit: Integer, ?map_search: String, ?download_assets: bool, ?asset_types: Array[enum_AssetCategory], ?max_asset_size: Integer, ?browser: BrowserConfig, ?proxy: ProxyConfig, ?user_agents: Array[String], ?capture_screenshot: bool, ?follow_document_urls: bool, ?document_url_depth: Integer, ?download_documents: bool, ?document_max_size: Integer, ?document_mime_types: Array[String], ?document_output_dir: String, ?document_content_encoding: enum_DocumentContentEncoding, ?warc_output: String, ?browser_profile: String, ?save_browser_profile: bool, ?ssrf: SsrfPolicy, ?ssrf_deny_private_explicit: bool, ?danger_accept_invalid_certs: bool, ?subdomain_header_allowlist: Array[String]) -> void
|
|
456
475
|
end
|
|
457
476
|
|
|
458
477
|
class CsvConfig
|
|
@@ -872,6 +891,13 @@ def initialize: (sheets: Array[ExcelSheet], metadata: Hash[String, String], ?rev
|
|
|
872
891
|
def initialize: (?kind: enum_ExtractInputKind, ?bytes: String, ?uri: String, ?mime_type: String, ?filename: String, ?config: FileExtractionConfig) -> void
|
|
873
892
|
end
|
|
874
893
|
|
|
894
|
+
class ExtractInputWithOptions
|
|
895
|
+
attr_reader input: ExtractInput
|
|
896
|
+
attr_reader use_layout_for_markdown: bool?
|
|
897
|
+
|
|
898
|
+
def initialize: (?input: ExtractInput, ?use_layout_for_markdown: bool) -> void
|
|
899
|
+
end
|
|
900
|
+
|
|
875
901
|
class ExtractedDocument
|
|
876
902
|
attr_reader content: String
|
|
877
903
|
attr_reader mime_type: String
|
|
@@ -1485,8 +1511,9 @@ def initialize: (name: String, model_repo: String, model_file: String, additiona
|
|
|
1485
1511
|
attr_reader table_overlap_preference: enum_TableOverlapPreference
|
|
1486
1512
|
attr_reader acceleration: AccelerationConfig?
|
|
1487
1513
|
attr_reader enable_chart_understanding: bool
|
|
1514
|
+
attr_reader model: enum_LayoutDetectionModel
|
|
1488
1515
|
|
|
1489
|
-
def initialize: (?strategy: enum_LayoutStrategy, ?confidence_threshold: Float, ?apply_heuristics: bool, ?table_model: enum_TableModel, ?formula_model: enum_FormulaModel, ?table_overlap_preference: enum_TableOverlapPreference, ?acceleration: AccelerationConfig, ?enable_chart_understanding: bool) -> void
|
|
1516
|
+
def initialize: (?strategy: enum_LayoutStrategy, ?confidence_threshold: Float, ?apply_heuristics: bool, ?table_model: enum_TableModel, ?formula_model: enum_FormulaModel, ?table_overlap_preference: enum_TableOverlapPreference, ?acceleration: AccelerationConfig, ?enable_chart_understanding: bool, ?model: enum_LayoutDetectionModel) -> void
|
|
1490
1517
|
end
|
|
1491
1518
|
|
|
1492
1519
|
class LayoutRegion
|
|
@@ -1716,7 +1743,7 @@ def initialize: (name: String, supported_languages: Array[String]) -> void
|
|
|
1716
1743
|
attr_reader element_config: OcrElementConfig?
|
|
1717
1744
|
attr_reader quality_thresholds: OcrQualityThresholds?
|
|
1718
1745
|
attr_reader pipeline: OcrPipelineConfig?
|
|
1719
|
-
attr_reader auto_rotate: bool
|
|
1746
|
+
attr_reader auto_rotate: bool?
|
|
1720
1747
|
attr_reader vlm_fallback: VlmFallbackPolicy
|
|
1721
1748
|
attr_reader vlm_config: LlmConfig?
|
|
1722
1749
|
attr_reader vlm_prompt: String?
|
|
@@ -1821,6 +1848,7 @@ def initialize: (backend: String, priority: Integer, ?language: Array[String], ?
|
|
|
1821
1848
|
attr_reader min_words_for_ocr_output_check: Integer
|
|
1822
1849
|
attr_reader max_ocr_output_dict_invalid_word_ratio: Float
|
|
1823
1850
|
attr_reader discard_suspected_ocr_noise: bool
|
|
1851
|
+
attr_reader prune_symbol_noise_lines: bool
|
|
1824
1852
|
attr_reader min_avg_word_length: Float
|
|
1825
1853
|
attr_reader min_words_for_avg_length_check: Integer
|
|
1826
1854
|
attr_reader min_consecutive_repeat_ratio: Float
|
|
@@ -1835,7 +1863,7 @@ def initialize: (backend: String, priority: Integer, ?language: Array[String], ?
|
|
|
1835
1863
|
attr_reader enable_plausibility_ocr_routing: bool
|
|
1836
1864
|
attr_reader min_reliable_language_chunk_ratio: Float
|
|
1837
1865
|
|
|
1838
|
-
def initialize: (?min_total_non_whitespace: Integer, ?min_non_whitespace_per_page: Float, ?min_meaningful_word_len: Integer, ?min_meaningful_words: Integer, ?min_alnum_ratio: Float, ?min_garbage_chars: Integer, ?max_fragmented_word_ratio: Float, ?critical_fragmented_word_ratio: Float, ?max_ocr_output_fragmented_word_ratio: Float, ?min_ocr_mean_confidence: Float, ?min_words_for_ocr_output_check: Integer, ?max_ocr_output_dict_invalid_word_ratio: Float, ?discard_suspected_ocr_noise: bool, ?min_avg_word_length: Float, ?min_words_for_avg_length_check: Integer, ?min_consecutive_repeat_ratio: Float, ?min_words_for_repeat_check: Integer, ?substantive_min_chars: Integer, ?non_text_min_chars: Integer, ?alnum_ws_ratio_threshold: Float, ?pipeline_min_quality: Float, ?min_undecodable_ratio: Float, ?enable_provenance_ocr_routing: bool, ?min_provenance_fallback_ratio: Float, ?enable_plausibility_ocr_routing: bool, ?min_reliable_language_chunk_ratio: Float) -> void
|
|
1866
|
+
def initialize: (?min_total_non_whitespace: Integer, ?min_non_whitespace_per_page: Float, ?min_meaningful_word_len: Integer, ?min_meaningful_words: Integer, ?min_alnum_ratio: Float, ?min_garbage_chars: Integer, ?max_fragmented_word_ratio: Float, ?critical_fragmented_word_ratio: Float, ?max_ocr_output_fragmented_word_ratio: Float, ?min_ocr_mean_confidence: Float, ?min_words_for_ocr_output_check: Integer, ?max_ocr_output_dict_invalid_word_ratio: Float, ?discard_suspected_ocr_noise: bool, ?prune_symbol_noise_lines: bool, ?min_avg_word_length: Float, ?min_words_for_avg_length_check: Integer, ?min_consecutive_repeat_ratio: Float, ?min_words_for_repeat_check: Integer, ?substantive_min_chars: Integer, ?non_text_min_chars: Integer, ?alnum_ws_ratio_threshold: Float, ?pipeline_min_quality: Float, ?min_undecodable_ratio: Float, ?enable_provenance_ocr_routing: bool, ?min_provenance_fallback_ratio: Float, ?enable_plausibility_ocr_routing: bool, ?min_reliable_language_chunk_ratio: Float) -> void
|
|
1839
1867
|
end
|
|
1840
1868
|
|
|
1841
1869
|
class OcrRotation
|
|
@@ -2781,12 +2809,290 @@ def initialize: (?element_count: Integer, ?unique_elements: Array[String]) -> vo
|
|
|
2781
2809
|
def initialize: (?min: Integer, ?max: Integer, years: Array[Integer]) -> void
|
|
2782
2810
|
end
|
|
2783
2811
|
|
|
2784
|
-
|
|
2812
|
+
module AnnotationKind
|
|
2813
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
2814
|
+
end
|
|
2815
|
+
|
|
2816
|
+
class AnnotationKindBold
|
|
2817
|
+
include AnnotationKind
|
|
2818
|
+
def bold?: () -> bool
|
|
2819
|
+
def italic?: () -> bool
|
|
2820
|
+
def underline?: () -> bool
|
|
2821
|
+
def strikethrough?: () -> bool
|
|
2822
|
+
def code?: () -> bool
|
|
2823
|
+
def subscript?: () -> bool
|
|
2824
|
+
def superscript?: () -> bool
|
|
2825
|
+
def link?: () -> bool
|
|
2826
|
+
def highlight?: () -> bool
|
|
2827
|
+
def color?: () -> bool
|
|
2828
|
+
def font_size?: () -> bool
|
|
2829
|
+
def custom?: () -> bool
|
|
2830
|
+
|
|
2831
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
2832
|
+
def self.new: -> AnnotationKindBold
|
|
2833
|
+
end
|
|
2834
|
+
|
|
2835
|
+
class AnnotationKindItalic
|
|
2836
|
+
include AnnotationKind
|
|
2837
|
+
def bold?: () -> bool
|
|
2838
|
+
def italic?: () -> bool
|
|
2839
|
+
def underline?: () -> bool
|
|
2840
|
+
def strikethrough?: () -> bool
|
|
2841
|
+
def code?: () -> bool
|
|
2842
|
+
def subscript?: () -> bool
|
|
2843
|
+
def superscript?: () -> bool
|
|
2844
|
+
def link?: () -> bool
|
|
2845
|
+
def highlight?: () -> bool
|
|
2846
|
+
def color?: () -> bool
|
|
2847
|
+
def font_size?: () -> bool
|
|
2848
|
+
def custom?: () -> bool
|
|
2849
|
+
|
|
2850
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
2851
|
+
def self.new: -> AnnotationKindItalic
|
|
2852
|
+
end
|
|
2853
|
+
|
|
2854
|
+
class AnnotationKindUnderline
|
|
2855
|
+
include AnnotationKind
|
|
2856
|
+
def bold?: () -> bool
|
|
2857
|
+
def italic?: () -> bool
|
|
2858
|
+
def underline?: () -> bool
|
|
2859
|
+
def strikethrough?: () -> bool
|
|
2860
|
+
def code?: () -> bool
|
|
2861
|
+
def subscript?: () -> bool
|
|
2862
|
+
def superscript?: () -> bool
|
|
2863
|
+
def link?: () -> bool
|
|
2864
|
+
def highlight?: () -> bool
|
|
2865
|
+
def color?: () -> bool
|
|
2866
|
+
def font_size?: () -> bool
|
|
2867
|
+
def custom?: () -> bool
|
|
2868
|
+
|
|
2869
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
2870
|
+
def self.new: -> AnnotationKindUnderline
|
|
2871
|
+
end
|
|
2872
|
+
|
|
2873
|
+
class AnnotationKindStrikethrough
|
|
2874
|
+
include AnnotationKind
|
|
2875
|
+
def bold?: () -> bool
|
|
2876
|
+
def italic?: () -> bool
|
|
2877
|
+
def underline?: () -> bool
|
|
2878
|
+
def strikethrough?: () -> bool
|
|
2879
|
+
def code?: () -> bool
|
|
2880
|
+
def subscript?: () -> bool
|
|
2881
|
+
def superscript?: () -> bool
|
|
2882
|
+
def link?: () -> bool
|
|
2883
|
+
def highlight?: () -> bool
|
|
2884
|
+
def color?: () -> bool
|
|
2885
|
+
def font_size?: () -> bool
|
|
2886
|
+
def custom?: () -> bool
|
|
2887
|
+
|
|
2888
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
2889
|
+
def self.new: -> AnnotationKindStrikethrough
|
|
2890
|
+
end
|
|
2891
|
+
|
|
2892
|
+
class AnnotationKindCode
|
|
2893
|
+
include AnnotationKind
|
|
2894
|
+
def bold?: () -> bool
|
|
2895
|
+
def italic?: () -> bool
|
|
2896
|
+
def underline?: () -> bool
|
|
2897
|
+
def strikethrough?: () -> bool
|
|
2898
|
+
def code?: () -> bool
|
|
2899
|
+
def subscript?: () -> bool
|
|
2900
|
+
def superscript?: () -> bool
|
|
2901
|
+
def link?: () -> bool
|
|
2902
|
+
def highlight?: () -> bool
|
|
2903
|
+
def color?: () -> bool
|
|
2904
|
+
def font_size?: () -> bool
|
|
2905
|
+
def custom?: () -> bool
|
|
2906
|
+
|
|
2907
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
2908
|
+
def self.new: -> AnnotationKindCode
|
|
2909
|
+
end
|
|
2910
|
+
|
|
2911
|
+
class AnnotationKindSubscript
|
|
2912
|
+
include AnnotationKind
|
|
2913
|
+
def bold?: () -> bool
|
|
2914
|
+
def italic?: () -> bool
|
|
2915
|
+
def underline?: () -> bool
|
|
2916
|
+
def strikethrough?: () -> bool
|
|
2917
|
+
def code?: () -> bool
|
|
2918
|
+
def subscript?: () -> bool
|
|
2919
|
+
def superscript?: () -> bool
|
|
2920
|
+
def link?: () -> bool
|
|
2921
|
+
def highlight?: () -> bool
|
|
2922
|
+
def color?: () -> bool
|
|
2923
|
+
def font_size?: () -> bool
|
|
2924
|
+
def custom?: () -> bool
|
|
2925
|
+
|
|
2926
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
2927
|
+
def self.new: -> AnnotationKindSubscript
|
|
2928
|
+
end
|
|
2929
|
+
|
|
2930
|
+
class AnnotationKindSuperscript
|
|
2931
|
+
include AnnotationKind
|
|
2932
|
+
def bold?: () -> bool
|
|
2933
|
+
def italic?: () -> bool
|
|
2934
|
+
def underline?: () -> bool
|
|
2935
|
+
def strikethrough?: () -> bool
|
|
2936
|
+
def code?: () -> bool
|
|
2937
|
+
def subscript?: () -> bool
|
|
2938
|
+
def superscript?: () -> bool
|
|
2939
|
+
def link?: () -> bool
|
|
2940
|
+
def highlight?: () -> bool
|
|
2941
|
+
def color?: () -> bool
|
|
2942
|
+
def font_size?: () -> bool
|
|
2943
|
+
def custom?: () -> bool
|
|
2944
|
+
|
|
2945
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
2946
|
+
def self.new: -> AnnotationKindSuperscript
|
|
2947
|
+
end
|
|
2948
|
+
|
|
2949
|
+
class AnnotationKindLink
|
|
2950
|
+
include AnnotationKind
|
|
2951
|
+
attr_reader url: String
|
|
2952
|
+
attr_reader title: String?
|
|
2953
|
+
|
|
2954
|
+
def bold?: () -> bool
|
|
2955
|
+
def italic?: () -> bool
|
|
2956
|
+
def underline?: () -> bool
|
|
2957
|
+
def strikethrough?: () -> bool
|
|
2958
|
+
def code?: () -> bool
|
|
2959
|
+
def subscript?: () -> bool
|
|
2960
|
+
def superscript?: () -> bool
|
|
2961
|
+
def link?: () -> bool
|
|
2962
|
+
def highlight?: () -> bool
|
|
2963
|
+
def color?: () -> bool
|
|
2964
|
+
def font_size?: () -> bool
|
|
2965
|
+
def custom?: () -> bool
|
|
2966
|
+
|
|
2967
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
2968
|
+
def self.new: (url: String, title: String?) -> AnnotationKindLink
|
|
2969
|
+
end
|
|
2970
|
+
|
|
2971
|
+
class AnnotationKindHighlight
|
|
2972
|
+
include AnnotationKind
|
|
2973
|
+
def bold?: () -> bool
|
|
2974
|
+
def italic?: () -> bool
|
|
2975
|
+
def underline?: () -> bool
|
|
2976
|
+
def strikethrough?: () -> bool
|
|
2977
|
+
def code?: () -> bool
|
|
2978
|
+
def subscript?: () -> bool
|
|
2979
|
+
def superscript?: () -> bool
|
|
2980
|
+
def link?: () -> bool
|
|
2981
|
+
def highlight?: () -> bool
|
|
2982
|
+
def color?: () -> bool
|
|
2983
|
+
def font_size?: () -> bool
|
|
2984
|
+
def custom?: () -> bool
|
|
2985
|
+
|
|
2986
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
2987
|
+
def self.new: -> AnnotationKindHighlight
|
|
2988
|
+
end
|
|
2989
|
+
|
|
2990
|
+
class AnnotationKindColor
|
|
2991
|
+
include AnnotationKind
|
|
2992
|
+
attr_reader value: String
|
|
2993
|
+
|
|
2994
|
+
def bold?: () -> bool
|
|
2995
|
+
def italic?: () -> bool
|
|
2996
|
+
def underline?: () -> bool
|
|
2997
|
+
def strikethrough?: () -> bool
|
|
2998
|
+
def code?: () -> bool
|
|
2999
|
+
def subscript?: () -> bool
|
|
3000
|
+
def superscript?: () -> bool
|
|
3001
|
+
def link?: () -> bool
|
|
3002
|
+
def highlight?: () -> bool
|
|
3003
|
+
def color?: () -> bool
|
|
3004
|
+
def font_size?: () -> bool
|
|
3005
|
+
def custom?: () -> bool
|
|
3006
|
+
|
|
3007
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
3008
|
+
def self.new: (value: String) -> AnnotationKindColor
|
|
3009
|
+
end
|
|
3010
|
+
|
|
3011
|
+
class AnnotationKindFontSize
|
|
3012
|
+
include AnnotationKind
|
|
3013
|
+
attr_reader value: String
|
|
3014
|
+
|
|
3015
|
+
def bold?: () -> bool
|
|
3016
|
+
def italic?: () -> bool
|
|
3017
|
+
def underline?: () -> bool
|
|
3018
|
+
def strikethrough?: () -> bool
|
|
3019
|
+
def code?: () -> bool
|
|
3020
|
+
def subscript?: () -> bool
|
|
3021
|
+
def superscript?: () -> bool
|
|
3022
|
+
def link?: () -> bool
|
|
3023
|
+
def highlight?: () -> bool
|
|
3024
|
+
def color?: () -> bool
|
|
3025
|
+
def font_size?: () -> bool
|
|
3026
|
+
def custom?: () -> bool
|
|
3027
|
+
|
|
3028
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
3029
|
+
def self.new: (value: String) -> AnnotationKindFontSize
|
|
3030
|
+
end
|
|
3031
|
+
|
|
3032
|
+
class AnnotationKindCustom
|
|
3033
|
+
include AnnotationKind
|
|
3034
|
+
attr_reader name: String
|
|
3035
|
+
attr_reader value: String?
|
|
3036
|
+
|
|
3037
|
+
def bold?: () -> bool
|
|
3038
|
+
def italic?: () -> bool
|
|
3039
|
+
def underline?: () -> bool
|
|
3040
|
+
def strikethrough?: () -> bool
|
|
3041
|
+
def code?: () -> bool
|
|
3042
|
+
def subscript?: () -> bool
|
|
3043
|
+
def superscript?: () -> bool
|
|
3044
|
+
def link?: () -> bool
|
|
3045
|
+
def highlight?: () -> bool
|
|
3046
|
+
def color?: () -> bool
|
|
3047
|
+
def font_size?: () -> bool
|
|
3048
|
+
def custom?: () -> bool
|
|
3049
|
+
|
|
3050
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
3051
|
+
def self.new: (name: String, value: String?) -> AnnotationKindCustom
|
|
2785
3052
|
end
|
|
2786
3053
|
|
|
2787
3054
|
type enum_AssetCategory = :document | :image | :audio | :video | :font | :stylesheet | :script | :archive | :data | :other
|
|
2788
3055
|
|
|
2789
|
-
|
|
3056
|
+
module AuthConfig
|
|
3057
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
3058
|
+
end
|
|
3059
|
+
|
|
3060
|
+
class AuthConfigBasic
|
|
3061
|
+
include AuthConfig
|
|
3062
|
+
attr_reader username: String
|
|
3063
|
+
attr_reader password: String
|
|
3064
|
+
|
|
3065
|
+
def basic?: () -> bool
|
|
3066
|
+
def bearer?: () -> bool
|
|
3067
|
+
def header?: () -> bool
|
|
3068
|
+
|
|
3069
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
3070
|
+
def self.new: (username: String, password: String) -> AuthConfigBasic
|
|
3071
|
+
end
|
|
3072
|
+
|
|
3073
|
+
class AuthConfigBearer
|
|
3074
|
+
include AuthConfig
|
|
3075
|
+
attr_reader token: String
|
|
3076
|
+
|
|
3077
|
+
def basic?: () -> bool
|
|
3078
|
+
def bearer?: () -> bool
|
|
3079
|
+
def header?: () -> bool
|
|
3080
|
+
|
|
3081
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
3082
|
+
def self.new: (token: String) -> AuthConfigBearer
|
|
3083
|
+
end
|
|
3084
|
+
|
|
3085
|
+
class AuthConfigHeader
|
|
3086
|
+
include AuthConfig
|
|
3087
|
+
attr_reader name: String
|
|
3088
|
+
attr_reader value: String
|
|
3089
|
+
|
|
3090
|
+
def basic?: () -> bool
|
|
3091
|
+
def bearer?: () -> bool
|
|
3092
|
+
def header?: () -> bool
|
|
3093
|
+
|
|
3094
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
3095
|
+
def self.new: (name: String, value: String) -> AuthConfigHeader
|
|
2790
3096
|
end
|
|
2791
3097
|
|
|
2792
3098
|
type enum_BlockType = :paragraph | :heading | :blockquote | :code_block | :list_item | :ordered_list | :bullet_list | :task_list | :definition_list | :definition_term | :definition_description | :div | :section | :thematic_break | :raw_block | :math_display
|
|
@@ -2809,14 +3115,93 @@ def initialize: (?min: Integer, ?max: Integer, years: Array[Integer]) -> void
|
|
|
2809
3115
|
|
|
2810
3116
|
type enum_CaptionAltTextMode = :preserve | :combine | :replace
|
|
2811
3117
|
|
|
2812
|
-
|
|
3118
|
+
module ChunkSizing
|
|
3119
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
3120
|
+
end
|
|
3121
|
+
|
|
3122
|
+
class ChunkSizingCharacters
|
|
3123
|
+
include ChunkSizing
|
|
3124
|
+
def characters?: () -> bool
|
|
3125
|
+
def tokenizer?: () -> bool
|
|
3126
|
+
|
|
3127
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
3128
|
+
def self.new: -> ChunkSizingCharacters
|
|
3129
|
+
end
|
|
3130
|
+
|
|
3131
|
+
class ChunkSizingTokenizer
|
|
3132
|
+
include ChunkSizing
|
|
3133
|
+
attr_reader model: String
|
|
3134
|
+
attr_reader cache_dir: String?
|
|
3135
|
+
|
|
3136
|
+
def characters?: () -> bool
|
|
3137
|
+
def tokenizer?: () -> bool
|
|
3138
|
+
|
|
3139
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
3140
|
+
def self.new: (model: String, cache_dir: String?) -> ChunkSizingTokenizer
|
|
2813
3141
|
end
|
|
2814
3142
|
|
|
2815
3143
|
type enum_ChunkType = :heading | :party_list | :definitions | :operative_clause | :signature_block | :schedule | :table_like | :formula | :code_block | :function | :class | :module | :image | :org_chart | :diagram | :unknown
|
|
2816
3144
|
|
|
2817
3145
|
type enum_ChunkerType = :text | :markdown | :yaml | :semantic
|
|
2818
3146
|
|
|
2819
|
-
|
|
3147
|
+
module ChunkingReason
|
|
3148
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
3149
|
+
end
|
|
3150
|
+
|
|
3151
|
+
class ChunkingReasonLargeFile
|
|
3152
|
+
include ChunkingReason
|
|
3153
|
+
attr_reader size_bytes: Integer
|
|
3154
|
+
attr_reader threshold_bytes: Integer
|
|
3155
|
+
|
|
3156
|
+
def large_file?: () -> bool
|
|
3157
|
+
def many_pages?: () -> bool
|
|
3158
|
+
def ocr_required?: () -> bool
|
|
3159
|
+
def large_and_many_pages?: () -> bool
|
|
3160
|
+
|
|
3161
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
3162
|
+
def self.new: (size_bytes: Integer, threshold_bytes: Integer) -> ChunkingReasonLargeFile
|
|
3163
|
+
end
|
|
3164
|
+
|
|
3165
|
+
class ChunkingReasonManyPages
|
|
3166
|
+
include ChunkingReason
|
|
3167
|
+
attr_reader page_count: Integer
|
|
3168
|
+
attr_reader threshold: Integer
|
|
3169
|
+
|
|
3170
|
+
def large_file?: () -> bool
|
|
3171
|
+
def many_pages?: () -> bool
|
|
3172
|
+
def ocr_required?: () -> bool
|
|
3173
|
+
def large_and_many_pages?: () -> bool
|
|
3174
|
+
|
|
3175
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
3176
|
+
def self.new: (page_count: Integer, threshold: Integer) -> ChunkingReasonManyPages
|
|
3177
|
+
end
|
|
3178
|
+
|
|
3179
|
+
class ChunkingReasonOcrRequired
|
|
3180
|
+
include ChunkingReason
|
|
3181
|
+
attr_reader page_count: Integer
|
|
3182
|
+
attr_reader force_ocr: bool
|
|
3183
|
+
|
|
3184
|
+
def large_file?: () -> bool
|
|
3185
|
+
def many_pages?: () -> bool
|
|
3186
|
+
def ocr_required?: () -> bool
|
|
3187
|
+
def large_and_many_pages?: () -> bool
|
|
3188
|
+
|
|
3189
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
3190
|
+
def self.new: (page_count: Integer, force_ocr: bool) -> ChunkingReasonOcrRequired
|
|
3191
|
+
end
|
|
3192
|
+
|
|
3193
|
+
class ChunkingReasonLargeAndManyPages
|
|
3194
|
+
include ChunkingReason
|
|
3195
|
+
attr_reader size_bytes: Integer
|
|
3196
|
+
attr_reader page_count: Integer
|
|
3197
|
+
|
|
3198
|
+
def large_file?: () -> bool
|
|
3199
|
+
def many_pages?: () -> bool
|
|
3200
|
+
def ocr_required?: () -> bool
|
|
3201
|
+
def large_and_many_pages?: () -> bool
|
|
3202
|
+
|
|
3203
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
3204
|
+
def self.new: (size_bytes: Integer, page_count: Integer) -> ChunkingReasonLargeAndManyPages
|
|
2820
3205
|
end
|
|
2821
3206
|
|
|
2822
3207
|
type enum_CodeBlockStyle = :Indented | :Backticks | :Tildes
|
|
@@ -2836,17 +3221,168 @@ def initialize: (?min: Integer, ?max: Integer, years: Array[Integer]) -> void
|
|
|
2836
3221
|
|
|
2837
3222
|
type enum_CrawlStrategyKind = :bfs | :dfs | :best_first | :adaptive
|
|
2838
3223
|
|
|
2839
|
-
|
|
3224
|
+
module CredentialProviderConfig
|
|
3225
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
3226
|
+
end
|
|
3227
|
+
|
|
3228
|
+
class CredentialProviderConfigAzureAd
|
|
3229
|
+
include CredentialProviderConfig
|
|
3230
|
+
attr_reader tenant_id: String
|
|
3231
|
+
attr_reader client_id: String
|
|
3232
|
+
attr_reader client_secret: String
|
|
3233
|
+
attr_reader scope: String?
|
|
3234
|
+
|
|
3235
|
+
def azure_ad?: () -> bool
|
|
3236
|
+
def vertex_oauth2?: () -> bool
|
|
3237
|
+
def vertex_adc?: () -> bool
|
|
3238
|
+
def bedrock_web_identity?: () -> bool
|
|
3239
|
+
|
|
3240
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
3241
|
+
def self.new: (tenant_id: String, client_id: String, client_secret: String, scope: String?) -> CredentialProviderConfigAzureAd
|
|
3242
|
+
end
|
|
3243
|
+
|
|
3244
|
+
class CredentialProviderConfigVertexOauth2
|
|
3245
|
+
include CredentialProviderConfig
|
|
3246
|
+
attr_reader service_account_key_file: String
|
|
3247
|
+
attr_reader scope: String?
|
|
3248
|
+
|
|
3249
|
+
def azure_ad?: () -> bool
|
|
3250
|
+
def vertex_oauth2?: () -> bool
|
|
3251
|
+
def vertex_adc?: () -> bool
|
|
3252
|
+
def bedrock_web_identity?: () -> bool
|
|
3253
|
+
|
|
3254
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
3255
|
+
def self.new: (service_account_key_file: String, scope: String?) -> CredentialProviderConfigVertexOauth2
|
|
3256
|
+
end
|
|
3257
|
+
|
|
3258
|
+
class CredentialProviderConfigVertexAdc
|
|
3259
|
+
include CredentialProviderConfig
|
|
3260
|
+
attr_reader scope: String?
|
|
3261
|
+
|
|
3262
|
+
def azure_ad?: () -> bool
|
|
3263
|
+
def vertex_oauth2?: () -> bool
|
|
3264
|
+
def vertex_adc?: () -> bool
|
|
3265
|
+
def bedrock_web_identity?: () -> bool
|
|
3266
|
+
|
|
3267
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
3268
|
+
def self.new: (scope: String?) -> CredentialProviderConfigVertexAdc
|
|
2840
3269
|
end
|
|
2841
3270
|
|
|
2842
|
-
class
|
|
3271
|
+
class CredentialProviderConfigBedrockWebIdentity
|
|
3272
|
+
include CredentialProviderConfig
|
|
3273
|
+
attr_reader role_arn: String
|
|
3274
|
+
attr_reader token_file: String
|
|
3275
|
+
attr_reader session_name: String?
|
|
3276
|
+
attr_reader region: String?
|
|
3277
|
+
|
|
3278
|
+
def azure_ad?: () -> bool
|
|
3279
|
+
def vertex_oauth2?: () -> bool
|
|
3280
|
+
def vertex_adc?: () -> bool
|
|
3281
|
+
def bedrock_web_identity?: () -> bool
|
|
3282
|
+
|
|
3283
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
3284
|
+
def self.new: (role_arn: String, token_file: String, session_name: String?, region: String?) -> CredentialProviderConfigBedrockWebIdentity
|
|
3285
|
+
end
|
|
3286
|
+
|
|
3287
|
+
module DiffLine
|
|
3288
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
3289
|
+
end
|
|
3290
|
+
|
|
3291
|
+
class DiffLineContext
|
|
3292
|
+
include DiffLine
|
|
3293
|
+
attr_reader value: String
|
|
3294
|
+
|
|
3295
|
+
def context?: () -> bool
|
|
3296
|
+
def added?: () -> bool
|
|
3297
|
+
def removed?: () -> bool
|
|
3298
|
+
|
|
3299
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
3300
|
+
def self.new: (value: String) -> DiffLineContext
|
|
3301
|
+
end
|
|
3302
|
+
|
|
3303
|
+
class DiffLineAdded
|
|
3304
|
+
include DiffLine
|
|
3305
|
+
attr_reader value: String
|
|
3306
|
+
|
|
3307
|
+
def context?: () -> bool
|
|
3308
|
+
def added?: () -> bool
|
|
3309
|
+
def removed?: () -> bool
|
|
3310
|
+
|
|
3311
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
3312
|
+
def self.new: (value: String) -> DiffLineAdded
|
|
3313
|
+
end
|
|
3314
|
+
|
|
3315
|
+
class DiffLineRemoved
|
|
3316
|
+
include DiffLine
|
|
3317
|
+
attr_reader value: String
|
|
3318
|
+
|
|
3319
|
+
def context?: () -> bool
|
|
3320
|
+
def added?: () -> bool
|
|
3321
|
+
def removed?: () -> bool
|
|
3322
|
+
|
|
3323
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
3324
|
+
def self.new: (value: String) -> DiffLineRemoved
|
|
2843
3325
|
end
|
|
2844
3326
|
|
|
2845
3327
|
type enum_DocumentContentEncoding = :base64
|
|
2846
3328
|
|
|
2847
3329
|
type enum_ElementType = :title | :narrative_text | :heading | :list_item | :table | :image | :page_break | :code_block | :formula | :block_quote | :footer | :header
|
|
2848
3330
|
|
|
2849
|
-
|
|
3331
|
+
module EmbeddingModelType
|
|
3332
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
3333
|
+
end
|
|
3334
|
+
|
|
3335
|
+
class EmbeddingModelTypePreset
|
|
3336
|
+
include EmbeddingModelType
|
|
3337
|
+
attr_reader name: String
|
|
3338
|
+
|
|
3339
|
+
def preset?: () -> bool
|
|
3340
|
+
def custom?: () -> bool
|
|
3341
|
+
def llm?: () -> bool
|
|
3342
|
+
def plugin?: () -> bool
|
|
3343
|
+
|
|
3344
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
3345
|
+
def self.new: (name: String) -> EmbeddingModelTypePreset
|
|
3346
|
+
end
|
|
3347
|
+
|
|
3348
|
+
class EmbeddingModelTypeCustom
|
|
3349
|
+
include EmbeddingModelType
|
|
3350
|
+
attr_reader model_id: String
|
|
3351
|
+
attr_reader dimensions: Integer
|
|
3352
|
+
|
|
3353
|
+
def preset?: () -> bool
|
|
3354
|
+
def custom?: () -> bool
|
|
3355
|
+
def llm?: () -> bool
|
|
3356
|
+
def plugin?: () -> bool
|
|
3357
|
+
|
|
3358
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
3359
|
+
def self.new: (model_id: String, dimensions: Integer) -> EmbeddingModelTypeCustom
|
|
3360
|
+
end
|
|
3361
|
+
|
|
3362
|
+
class EmbeddingModelTypeLlm
|
|
3363
|
+
include EmbeddingModelType
|
|
3364
|
+
attr_reader llm: LlmConfig
|
|
3365
|
+
|
|
3366
|
+
def preset?: () -> bool
|
|
3367
|
+
def custom?: () -> bool
|
|
3368
|
+
def llm?: () -> bool
|
|
3369
|
+
def plugin?: () -> bool
|
|
3370
|
+
|
|
3371
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
3372
|
+
def self.new: (llm: LlmConfig) -> EmbeddingModelTypeLlm
|
|
3373
|
+
end
|
|
3374
|
+
|
|
3375
|
+
class EmbeddingModelTypePlugin
|
|
3376
|
+
include EmbeddingModelType
|
|
3377
|
+
attr_reader name: String
|
|
3378
|
+
|
|
3379
|
+
def preset?: () -> bool
|
|
3380
|
+
def custom?: () -> bool
|
|
3381
|
+
def llm?: () -> bool
|
|
3382
|
+
def plugin?: () -> bool
|
|
3383
|
+
|
|
3384
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
3385
|
+
def self.new: (name: String) -> EmbeddingModelTypePlugin
|
|
2850
3386
|
end
|
|
2851
3387
|
|
|
2852
3388
|
type enum_EmbeddingsEmbeddingBackend = :onnx | :static
|
|
@@ -2862,7 +3398,638 @@ def initialize: (?min: Integer, ?max: Integer, years: Array[Integer]) -> void
|
|
|
2862
3398
|
|
|
2863
3399
|
type enum_FormFieldType = :text | :checkbox | :radio | :choice | :signature | :button | :unknown
|
|
2864
3400
|
|
|
2865
|
-
|
|
3401
|
+
module FormatMetadata
|
|
3402
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
3403
|
+
end
|
|
3404
|
+
|
|
3405
|
+
class FormatMetadataPdf
|
|
3406
|
+
include FormatMetadata
|
|
3407
|
+
attr_reader value: PdfMetadata
|
|
3408
|
+
|
|
3409
|
+
def pdf?: () -> bool
|
|
3410
|
+
def docx?: () -> bool
|
|
3411
|
+
def excel?: () -> bool
|
|
3412
|
+
def email?: () -> bool
|
|
3413
|
+
def pptx?: () -> bool
|
|
3414
|
+
def archive?: () -> bool
|
|
3415
|
+
def image?: () -> bool
|
|
3416
|
+
def xml?: () -> bool
|
|
3417
|
+
def text?: () -> bool
|
|
3418
|
+
def html?: () -> bool
|
|
3419
|
+
def ocr?: () -> bool
|
|
3420
|
+
def csv?: () -> bool
|
|
3421
|
+
def bibtex?: () -> bool
|
|
3422
|
+
def citation?: () -> bool
|
|
3423
|
+
def fiction_book?: () -> bool
|
|
3424
|
+
def dbf?: () -> bool
|
|
3425
|
+
def jats?: () -> bool
|
|
3426
|
+
def epub?: () -> bool
|
|
3427
|
+
def pst?: () -> bool
|
|
3428
|
+
def audio?: () -> bool
|
|
3429
|
+
def code?: () -> bool
|
|
3430
|
+
|
|
3431
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
3432
|
+
def self.new: (value: PdfMetadata) -> FormatMetadataPdf
|
|
3433
|
+
end
|
|
3434
|
+
|
|
3435
|
+
class FormatMetadataDocx
|
|
3436
|
+
include FormatMetadata
|
|
3437
|
+
attr_reader value: DocxMetadata
|
|
3438
|
+
|
|
3439
|
+
def pdf?: () -> bool
|
|
3440
|
+
def docx?: () -> bool
|
|
3441
|
+
def excel?: () -> bool
|
|
3442
|
+
def email?: () -> bool
|
|
3443
|
+
def pptx?: () -> bool
|
|
3444
|
+
def archive?: () -> bool
|
|
3445
|
+
def image?: () -> bool
|
|
3446
|
+
def xml?: () -> bool
|
|
3447
|
+
def text?: () -> bool
|
|
3448
|
+
def html?: () -> bool
|
|
3449
|
+
def ocr?: () -> bool
|
|
3450
|
+
def csv?: () -> bool
|
|
3451
|
+
def bibtex?: () -> bool
|
|
3452
|
+
def citation?: () -> bool
|
|
3453
|
+
def fiction_book?: () -> bool
|
|
3454
|
+
def dbf?: () -> bool
|
|
3455
|
+
def jats?: () -> bool
|
|
3456
|
+
def epub?: () -> bool
|
|
3457
|
+
def pst?: () -> bool
|
|
3458
|
+
def audio?: () -> bool
|
|
3459
|
+
def code?: () -> bool
|
|
3460
|
+
|
|
3461
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
3462
|
+
def self.new: (value: DocxMetadata) -> FormatMetadataDocx
|
|
3463
|
+
end
|
|
3464
|
+
|
|
3465
|
+
class FormatMetadataExcel
|
|
3466
|
+
include FormatMetadata
|
|
3467
|
+
attr_reader value: ExcelMetadata
|
|
3468
|
+
|
|
3469
|
+
def pdf?: () -> bool
|
|
3470
|
+
def docx?: () -> bool
|
|
3471
|
+
def excel?: () -> bool
|
|
3472
|
+
def email?: () -> bool
|
|
3473
|
+
def pptx?: () -> bool
|
|
3474
|
+
def archive?: () -> bool
|
|
3475
|
+
def image?: () -> bool
|
|
3476
|
+
def xml?: () -> bool
|
|
3477
|
+
def text?: () -> bool
|
|
3478
|
+
def html?: () -> bool
|
|
3479
|
+
def ocr?: () -> bool
|
|
3480
|
+
def csv?: () -> bool
|
|
3481
|
+
def bibtex?: () -> bool
|
|
3482
|
+
def citation?: () -> bool
|
|
3483
|
+
def fiction_book?: () -> bool
|
|
3484
|
+
def dbf?: () -> bool
|
|
3485
|
+
def jats?: () -> bool
|
|
3486
|
+
def epub?: () -> bool
|
|
3487
|
+
def pst?: () -> bool
|
|
3488
|
+
def audio?: () -> bool
|
|
3489
|
+
def code?: () -> bool
|
|
3490
|
+
|
|
3491
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
3492
|
+
def self.new: (value: ExcelMetadata) -> FormatMetadataExcel
|
|
3493
|
+
end
|
|
3494
|
+
|
|
3495
|
+
class FormatMetadataEmail
|
|
3496
|
+
include FormatMetadata
|
|
3497
|
+
attr_reader value: EmailMetadata
|
|
3498
|
+
|
|
3499
|
+
def pdf?: () -> bool
|
|
3500
|
+
def docx?: () -> bool
|
|
3501
|
+
def excel?: () -> bool
|
|
3502
|
+
def email?: () -> bool
|
|
3503
|
+
def pptx?: () -> bool
|
|
3504
|
+
def archive?: () -> bool
|
|
3505
|
+
def image?: () -> bool
|
|
3506
|
+
def xml?: () -> bool
|
|
3507
|
+
def text?: () -> bool
|
|
3508
|
+
def html?: () -> bool
|
|
3509
|
+
def ocr?: () -> bool
|
|
3510
|
+
def csv?: () -> bool
|
|
3511
|
+
def bibtex?: () -> bool
|
|
3512
|
+
def citation?: () -> bool
|
|
3513
|
+
def fiction_book?: () -> bool
|
|
3514
|
+
def dbf?: () -> bool
|
|
3515
|
+
def jats?: () -> bool
|
|
3516
|
+
def epub?: () -> bool
|
|
3517
|
+
def pst?: () -> bool
|
|
3518
|
+
def audio?: () -> bool
|
|
3519
|
+
def code?: () -> bool
|
|
3520
|
+
|
|
3521
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
3522
|
+
def self.new: (value: EmailMetadata) -> FormatMetadataEmail
|
|
3523
|
+
end
|
|
3524
|
+
|
|
3525
|
+
class FormatMetadataPptx
|
|
3526
|
+
include FormatMetadata
|
|
3527
|
+
attr_reader value: PptxMetadata
|
|
3528
|
+
|
|
3529
|
+
def pdf?: () -> bool
|
|
3530
|
+
def docx?: () -> bool
|
|
3531
|
+
def excel?: () -> bool
|
|
3532
|
+
def email?: () -> bool
|
|
3533
|
+
def pptx?: () -> bool
|
|
3534
|
+
def archive?: () -> bool
|
|
3535
|
+
def image?: () -> bool
|
|
3536
|
+
def xml?: () -> bool
|
|
3537
|
+
def text?: () -> bool
|
|
3538
|
+
def html?: () -> bool
|
|
3539
|
+
def ocr?: () -> bool
|
|
3540
|
+
def csv?: () -> bool
|
|
3541
|
+
def bibtex?: () -> bool
|
|
3542
|
+
def citation?: () -> bool
|
|
3543
|
+
def fiction_book?: () -> bool
|
|
3544
|
+
def dbf?: () -> bool
|
|
3545
|
+
def jats?: () -> bool
|
|
3546
|
+
def epub?: () -> bool
|
|
3547
|
+
def pst?: () -> bool
|
|
3548
|
+
def audio?: () -> bool
|
|
3549
|
+
def code?: () -> bool
|
|
3550
|
+
|
|
3551
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
3552
|
+
def self.new: (value: PptxMetadata) -> FormatMetadataPptx
|
|
3553
|
+
end
|
|
3554
|
+
|
|
3555
|
+
class FormatMetadataArchive
|
|
3556
|
+
include FormatMetadata
|
|
3557
|
+
attr_reader value: ArchiveMetadata
|
|
3558
|
+
|
|
3559
|
+
def pdf?: () -> bool
|
|
3560
|
+
def docx?: () -> bool
|
|
3561
|
+
def excel?: () -> bool
|
|
3562
|
+
def email?: () -> bool
|
|
3563
|
+
def pptx?: () -> bool
|
|
3564
|
+
def archive?: () -> bool
|
|
3565
|
+
def image?: () -> bool
|
|
3566
|
+
def xml?: () -> bool
|
|
3567
|
+
def text?: () -> bool
|
|
3568
|
+
def html?: () -> bool
|
|
3569
|
+
def ocr?: () -> bool
|
|
3570
|
+
def csv?: () -> bool
|
|
3571
|
+
def bibtex?: () -> bool
|
|
3572
|
+
def citation?: () -> bool
|
|
3573
|
+
def fiction_book?: () -> bool
|
|
3574
|
+
def dbf?: () -> bool
|
|
3575
|
+
def jats?: () -> bool
|
|
3576
|
+
def epub?: () -> bool
|
|
3577
|
+
def pst?: () -> bool
|
|
3578
|
+
def audio?: () -> bool
|
|
3579
|
+
def code?: () -> bool
|
|
3580
|
+
|
|
3581
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
3582
|
+
def self.new: (value: ArchiveMetadata) -> FormatMetadataArchive
|
|
3583
|
+
end
|
|
3584
|
+
|
|
3585
|
+
class FormatMetadataImage
|
|
3586
|
+
include FormatMetadata
|
|
3587
|
+
attr_reader value: ImageMetadata
|
|
3588
|
+
|
|
3589
|
+
def pdf?: () -> bool
|
|
3590
|
+
def docx?: () -> bool
|
|
3591
|
+
def excel?: () -> bool
|
|
3592
|
+
def email?: () -> bool
|
|
3593
|
+
def pptx?: () -> bool
|
|
3594
|
+
def archive?: () -> bool
|
|
3595
|
+
def image?: () -> bool
|
|
3596
|
+
def xml?: () -> bool
|
|
3597
|
+
def text?: () -> bool
|
|
3598
|
+
def html?: () -> bool
|
|
3599
|
+
def ocr?: () -> bool
|
|
3600
|
+
def csv?: () -> bool
|
|
3601
|
+
def bibtex?: () -> bool
|
|
3602
|
+
def citation?: () -> bool
|
|
3603
|
+
def fiction_book?: () -> bool
|
|
3604
|
+
def dbf?: () -> bool
|
|
3605
|
+
def jats?: () -> bool
|
|
3606
|
+
def epub?: () -> bool
|
|
3607
|
+
def pst?: () -> bool
|
|
3608
|
+
def audio?: () -> bool
|
|
3609
|
+
def code?: () -> bool
|
|
3610
|
+
|
|
3611
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
3612
|
+
def self.new: (value: ImageMetadata) -> FormatMetadataImage
|
|
3613
|
+
end
|
|
3614
|
+
|
|
3615
|
+
class FormatMetadataXml
|
|
3616
|
+
include FormatMetadata
|
|
3617
|
+
attr_reader value: XmlMetadata
|
|
3618
|
+
|
|
3619
|
+
def pdf?: () -> bool
|
|
3620
|
+
def docx?: () -> bool
|
|
3621
|
+
def excel?: () -> bool
|
|
3622
|
+
def email?: () -> bool
|
|
3623
|
+
def pptx?: () -> bool
|
|
3624
|
+
def archive?: () -> bool
|
|
3625
|
+
def image?: () -> bool
|
|
3626
|
+
def xml?: () -> bool
|
|
3627
|
+
def text?: () -> bool
|
|
3628
|
+
def html?: () -> bool
|
|
3629
|
+
def ocr?: () -> bool
|
|
3630
|
+
def csv?: () -> bool
|
|
3631
|
+
def bibtex?: () -> bool
|
|
3632
|
+
def citation?: () -> bool
|
|
3633
|
+
def fiction_book?: () -> bool
|
|
3634
|
+
def dbf?: () -> bool
|
|
3635
|
+
def jats?: () -> bool
|
|
3636
|
+
def epub?: () -> bool
|
|
3637
|
+
def pst?: () -> bool
|
|
3638
|
+
def audio?: () -> bool
|
|
3639
|
+
def code?: () -> bool
|
|
3640
|
+
|
|
3641
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
3642
|
+
def self.new: (value: XmlMetadata) -> FormatMetadataXml
|
|
3643
|
+
end
|
|
3644
|
+
|
|
3645
|
+
class FormatMetadataText
|
|
3646
|
+
include FormatMetadata
|
|
3647
|
+
attr_reader value: TextMetadata
|
|
3648
|
+
|
|
3649
|
+
def pdf?: () -> bool
|
|
3650
|
+
def docx?: () -> bool
|
|
3651
|
+
def excel?: () -> bool
|
|
3652
|
+
def email?: () -> bool
|
|
3653
|
+
def pptx?: () -> bool
|
|
3654
|
+
def archive?: () -> bool
|
|
3655
|
+
def image?: () -> bool
|
|
3656
|
+
def xml?: () -> bool
|
|
3657
|
+
def text?: () -> bool
|
|
3658
|
+
def html?: () -> bool
|
|
3659
|
+
def ocr?: () -> bool
|
|
3660
|
+
def csv?: () -> bool
|
|
3661
|
+
def bibtex?: () -> bool
|
|
3662
|
+
def citation?: () -> bool
|
|
3663
|
+
def fiction_book?: () -> bool
|
|
3664
|
+
def dbf?: () -> bool
|
|
3665
|
+
def jats?: () -> bool
|
|
3666
|
+
def epub?: () -> bool
|
|
3667
|
+
def pst?: () -> bool
|
|
3668
|
+
def audio?: () -> bool
|
|
3669
|
+
def code?: () -> bool
|
|
3670
|
+
|
|
3671
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
3672
|
+
def self.new: (value: TextMetadata) -> FormatMetadataText
|
|
3673
|
+
end
|
|
3674
|
+
|
|
3675
|
+
class FormatMetadataHtml
|
|
3676
|
+
include FormatMetadata
|
|
3677
|
+
attr_reader value: HtmlMetadata
|
|
3678
|
+
|
|
3679
|
+
def pdf?: () -> bool
|
|
3680
|
+
def docx?: () -> bool
|
|
3681
|
+
def excel?: () -> bool
|
|
3682
|
+
def email?: () -> bool
|
|
3683
|
+
def pptx?: () -> bool
|
|
3684
|
+
def archive?: () -> bool
|
|
3685
|
+
def image?: () -> bool
|
|
3686
|
+
def xml?: () -> bool
|
|
3687
|
+
def text?: () -> bool
|
|
3688
|
+
def html?: () -> bool
|
|
3689
|
+
def ocr?: () -> bool
|
|
3690
|
+
def csv?: () -> bool
|
|
3691
|
+
def bibtex?: () -> bool
|
|
3692
|
+
def citation?: () -> bool
|
|
3693
|
+
def fiction_book?: () -> bool
|
|
3694
|
+
def dbf?: () -> bool
|
|
3695
|
+
def jats?: () -> bool
|
|
3696
|
+
def epub?: () -> bool
|
|
3697
|
+
def pst?: () -> bool
|
|
3698
|
+
def audio?: () -> bool
|
|
3699
|
+
def code?: () -> bool
|
|
3700
|
+
|
|
3701
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
3702
|
+
def self.new: (value: HtmlMetadata) -> FormatMetadataHtml
|
|
3703
|
+
end
|
|
3704
|
+
|
|
3705
|
+
class FormatMetadataOcr
|
|
3706
|
+
include FormatMetadata
|
|
3707
|
+
attr_reader value: OcrMetadata
|
|
3708
|
+
|
|
3709
|
+
def pdf?: () -> bool
|
|
3710
|
+
def docx?: () -> bool
|
|
3711
|
+
def excel?: () -> bool
|
|
3712
|
+
def email?: () -> bool
|
|
3713
|
+
def pptx?: () -> bool
|
|
3714
|
+
def archive?: () -> bool
|
|
3715
|
+
def image?: () -> bool
|
|
3716
|
+
def xml?: () -> bool
|
|
3717
|
+
def text?: () -> bool
|
|
3718
|
+
def html?: () -> bool
|
|
3719
|
+
def ocr?: () -> bool
|
|
3720
|
+
def csv?: () -> bool
|
|
3721
|
+
def bibtex?: () -> bool
|
|
3722
|
+
def citation?: () -> bool
|
|
3723
|
+
def fiction_book?: () -> bool
|
|
3724
|
+
def dbf?: () -> bool
|
|
3725
|
+
def jats?: () -> bool
|
|
3726
|
+
def epub?: () -> bool
|
|
3727
|
+
def pst?: () -> bool
|
|
3728
|
+
def audio?: () -> bool
|
|
3729
|
+
def code?: () -> bool
|
|
3730
|
+
|
|
3731
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
3732
|
+
def self.new: (value: OcrMetadata) -> FormatMetadataOcr
|
|
3733
|
+
end
|
|
3734
|
+
|
|
3735
|
+
class FormatMetadataCsv
|
|
3736
|
+
include FormatMetadata
|
|
3737
|
+
attr_reader value: CsvMetadata
|
|
3738
|
+
|
|
3739
|
+
def pdf?: () -> bool
|
|
3740
|
+
def docx?: () -> bool
|
|
3741
|
+
def excel?: () -> bool
|
|
3742
|
+
def email?: () -> bool
|
|
3743
|
+
def pptx?: () -> bool
|
|
3744
|
+
def archive?: () -> bool
|
|
3745
|
+
def image?: () -> bool
|
|
3746
|
+
def xml?: () -> bool
|
|
3747
|
+
def text?: () -> bool
|
|
3748
|
+
def html?: () -> bool
|
|
3749
|
+
def ocr?: () -> bool
|
|
3750
|
+
def csv?: () -> bool
|
|
3751
|
+
def bibtex?: () -> bool
|
|
3752
|
+
def citation?: () -> bool
|
|
3753
|
+
def fiction_book?: () -> bool
|
|
3754
|
+
def dbf?: () -> bool
|
|
3755
|
+
def jats?: () -> bool
|
|
3756
|
+
def epub?: () -> bool
|
|
3757
|
+
def pst?: () -> bool
|
|
3758
|
+
def audio?: () -> bool
|
|
3759
|
+
def code?: () -> bool
|
|
3760
|
+
|
|
3761
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
3762
|
+
def self.new: (value: CsvMetadata) -> FormatMetadataCsv
|
|
3763
|
+
end
|
|
3764
|
+
|
|
3765
|
+
class FormatMetadataBibtex
|
|
3766
|
+
include FormatMetadata
|
|
3767
|
+
attr_reader value: BibtexMetadata
|
|
3768
|
+
|
|
3769
|
+
def pdf?: () -> bool
|
|
3770
|
+
def docx?: () -> bool
|
|
3771
|
+
def excel?: () -> bool
|
|
3772
|
+
def email?: () -> bool
|
|
3773
|
+
def pptx?: () -> bool
|
|
3774
|
+
def archive?: () -> bool
|
|
3775
|
+
def image?: () -> bool
|
|
3776
|
+
def xml?: () -> bool
|
|
3777
|
+
def text?: () -> bool
|
|
3778
|
+
def html?: () -> bool
|
|
3779
|
+
def ocr?: () -> bool
|
|
3780
|
+
def csv?: () -> bool
|
|
3781
|
+
def bibtex?: () -> bool
|
|
3782
|
+
def citation?: () -> bool
|
|
3783
|
+
def fiction_book?: () -> bool
|
|
3784
|
+
def dbf?: () -> bool
|
|
3785
|
+
def jats?: () -> bool
|
|
3786
|
+
def epub?: () -> bool
|
|
3787
|
+
def pst?: () -> bool
|
|
3788
|
+
def audio?: () -> bool
|
|
3789
|
+
def code?: () -> bool
|
|
3790
|
+
|
|
3791
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
3792
|
+
def self.new: (value: BibtexMetadata) -> FormatMetadataBibtex
|
|
3793
|
+
end
|
|
3794
|
+
|
|
3795
|
+
class FormatMetadataCitation
|
|
3796
|
+
include FormatMetadata
|
|
3797
|
+
attr_reader value: CitationMetadata
|
|
3798
|
+
|
|
3799
|
+
def pdf?: () -> bool
|
|
3800
|
+
def docx?: () -> bool
|
|
3801
|
+
def excel?: () -> bool
|
|
3802
|
+
def email?: () -> bool
|
|
3803
|
+
def pptx?: () -> bool
|
|
3804
|
+
def archive?: () -> bool
|
|
3805
|
+
def image?: () -> bool
|
|
3806
|
+
def xml?: () -> bool
|
|
3807
|
+
def text?: () -> bool
|
|
3808
|
+
def html?: () -> bool
|
|
3809
|
+
def ocr?: () -> bool
|
|
3810
|
+
def csv?: () -> bool
|
|
3811
|
+
def bibtex?: () -> bool
|
|
3812
|
+
def citation?: () -> bool
|
|
3813
|
+
def fiction_book?: () -> bool
|
|
3814
|
+
def dbf?: () -> bool
|
|
3815
|
+
def jats?: () -> bool
|
|
3816
|
+
def epub?: () -> bool
|
|
3817
|
+
def pst?: () -> bool
|
|
3818
|
+
def audio?: () -> bool
|
|
3819
|
+
def code?: () -> bool
|
|
3820
|
+
|
|
3821
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
3822
|
+
def self.new: (value: CitationMetadata) -> FormatMetadataCitation
|
|
3823
|
+
end
|
|
3824
|
+
|
|
3825
|
+
class FormatMetadataFictionBook
|
|
3826
|
+
include FormatMetadata
|
|
3827
|
+
attr_reader value: FictionBookMetadata
|
|
3828
|
+
|
|
3829
|
+
def pdf?: () -> bool
|
|
3830
|
+
def docx?: () -> bool
|
|
3831
|
+
def excel?: () -> bool
|
|
3832
|
+
def email?: () -> bool
|
|
3833
|
+
def pptx?: () -> bool
|
|
3834
|
+
def archive?: () -> bool
|
|
3835
|
+
def image?: () -> bool
|
|
3836
|
+
def xml?: () -> bool
|
|
3837
|
+
def text?: () -> bool
|
|
3838
|
+
def html?: () -> bool
|
|
3839
|
+
def ocr?: () -> bool
|
|
3840
|
+
def csv?: () -> bool
|
|
3841
|
+
def bibtex?: () -> bool
|
|
3842
|
+
def citation?: () -> bool
|
|
3843
|
+
def fiction_book?: () -> bool
|
|
3844
|
+
def dbf?: () -> bool
|
|
3845
|
+
def jats?: () -> bool
|
|
3846
|
+
def epub?: () -> bool
|
|
3847
|
+
def pst?: () -> bool
|
|
3848
|
+
def audio?: () -> bool
|
|
3849
|
+
def code?: () -> bool
|
|
3850
|
+
|
|
3851
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
3852
|
+
def self.new: (value: FictionBookMetadata) -> FormatMetadataFictionBook
|
|
3853
|
+
end
|
|
3854
|
+
|
|
3855
|
+
class FormatMetadataDbf
|
|
3856
|
+
include FormatMetadata
|
|
3857
|
+
attr_reader value: DbfMetadata
|
|
3858
|
+
|
|
3859
|
+
def pdf?: () -> bool
|
|
3860
|
+
def docx?: () -> bool
|
|
3861
|
+
def excel?: () -> bool
|
|
3862
|
+
def email?: () -> bool
|
|
3863
|
+
def pptx?: () -> bool
|
|
3864
|
+
def archive?: () -> bool
|
|
3865
|
+
def image?: () -> bool
|
|
3866
|
+
def xml?: () -> bool
|
|
3867
|
+
def text?: () -> bool
|
|
3868
|
+
def html?: () -> bool
|
|
3869
|
+
def ocr?: () -> bool
|
|
3870
|
+
def csv?: () -> bool
|
|
3871
|
+
def bibtex?: () -> bool
|
|
3872
|
+
def citation?: () -> bool
|
|
3873
|
+
def fiction_book?: () -> bool
|
|
3874
|
+
def dbf?: () -> bool
|
|
3875
|
+
def jats?: () -> bool
|
|
3876
|
+
def epub?: () -> bool
|
|
3877
|
+
def pst?: () -> bool
|
|
3878
|
+
def audio?: () -> bool
|
|
3879
|
+
def code?: () -> bool
|
|
3880
|
+
|
|
3881
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
3882
|
+
def self.new: (value: DbfMetadata) -> FormatMetadataDbf
|
|
3883
|
+
end
|
|
3884
|
+
|
|
3885
|
+
class FormatMetadataJats
|
|
3886
|
+
include FormatMetadata
|
|
3887
|
+
attr_reader value: JatsMetadata
|
|
3888
|
+
|
|
3889
|
+
def pdf?: () -> bool
|
|
3890
|
+
def docx?: () -> bool
|
|
3891
|
+
def excel?: () -> bool
|
|
3892
|
+
def email?: () -> bool
|
|
3893
|
+
def pptx?: () -> bool
|
|
3894
|
+
def archive?: () -> bool
|
|
3895
|
+
def image?: () -> bool
|
|
3896
|
+
def xml?: () -> bool
|
|
3897
|
+
def text?: () -> bool
|
|
3898
|
+
def html?: () -> bool
|
|
3899
|
+
def ocr?: () -> bool
|
|
3900
|
+
def csv?: () -> bool
|
|
3901
|
+
def bibtex?: () -> bool
|
|
3902
|
+
def citation?: () -> bool
|
|
3903
|
+
def fiction_book?: () -> bool
|
|
3904
|
+
def dbf?: () -> bool
|
|
3905
|
+
def jats?: () -> bool
|
|
3906
|
+
def epub?: () -> bool
|
|
3907
|
+
def pst?: () -> bool
|
|
3908
|
+
def audio?: () -> bool
|
|
3909
|
+
def code?: () -> bool
|
|
3910
|
+
|
|
3911
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
3912
|
+
def self.new: (value: JatsMetadata) -> FormatMetadataJats
|
|
3913
|
+
end
|
|
3914
|
+
|
|
3915
|
+
class FormatMetadataEpub
|
|
3916
|
+
include FormatMetadata
|
|
3917
|
+
attr_reader value: EpubMetadata
|
|
3918
|
+
|
|
3919
|
+
def pdf?: () -> bool
|
|
3920
|
+
def docx?: () -> bool
|
|
3921
|
+
def excel?: () -> bool
|
|
3922
|
+
def email?: () -> bool
|
|
3923
|
+
def pptx?: () -> bool
|
|
3924
|
+
def archive?: () -> bool
|
|
3925
|
+
def image?: () -> bool
|
|
3926
|
+
def xml?: () -> bool
|
|
3927
|
+
def text?: () -> bool
|
|
3928
|
+
def html?: () -> bool
|
|
3929
|
+
def ocr?: () -> bool
|
|
3930
|
+
def csv?: () -> bool
|
|
3931
|
+
def bibtex?: () -> bool
|
|
3932
|
+
def citation?: () -> bool
|
|
3933
|
+
def fiction_book?: () -> bool
|
|
3934
|
+
def dbf?: () -> bool
|
|
3935
|
+
def jats?: () -> bool
|
|
3936
|
+
def epub?: () -> bool
|
|
3937
|
+
def pst?: () -> bool
|
|
3938
|
+
def audio?: () -> bool
|
|
3939
|
+
def code?: () -> bool
|
|
3940
|
+
|
|
3941
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
3942
|
+
def self.new: (value: EpubMetadata) -> FormatMetadataEpub
|
|
3943
|
+
end
|
|
3944
|
+
|
|
3945
|
+
class FormatMetadataPst
|
|
3946
|
+
include FormatMetadata
|
|
3947
|
+
attr_reader value: PstMetadata
|
|
3948
|
+
|
|
3949
|
+
def pdf?: () -> bool
|
|
3950
|
+
def docx?: () -> bool
|
|
3951
|
+
def excel?: () -> bool
|
|
3952
|
+
def email?: () -> bool
|
|
3953
|
+
def pptx?: () -> bool
|
|
3954
|
+
def archive?: () -> bool
|
|
3955
|
+
def image?: () -> bool
|
|
3956
|
+
def xml?: () -> bool
|
|
3957
|
+
def text?: () -> bool
|
|
3958
|
+
def html?: () -> bool
|
|
3959
|
+
def ocr?: () -> bool
|
|
3960
|
+
def csv?: () -> bool
|
|
3961
|
+
def bibtex?: () -> bool
|
|
3962
|
+
def citation?: () -> bool
|
|
3963
|
+
def fiction_book?: () -> bool
|
|
3964
|
+
def dbf?: () -> bool
|
|
3965
|
+
def jats?: () -> bool
|
|
3966
|
+
def epub?: () -> bool
|
|
3967
|
+
def pst?: () -> bool
|
|
3968
|
+
def audio?: () -> bool
|
|
3969
|
+
def code?: () -> bool
|
|
3970
|
+
|
|
3971
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
3972
|
+
def self.new: (value: PstMetadata) -> FormatMetadataPst
|
|
3973
|
+
end
|
|
3974
|
+
|
|
3975
|
+
class FormatMetadataAudio
|
|
3976
|
+
include FormatMetadata
|
|
3977
|
+
attr_reader value: AudioMetadata
|
|
3978
|
+
|
|
3979
|
+
def pdf?: () -> bool
|
|
3980
|
+
def docx?: () -> bool
|
|
3981
|
+
def excel?: () -> bool
|
|
3982
|
+
def email?: () -> bool
|
|
3983
|
+
def pptx?: () -> bool
|
|
3984
|
+
def archive?: () -> bool
|
|
3985
|
+
def image?: () -> bool
|
|
3986
|
+
def xml?: () -> bool
|
|
3987
|
+
def text?: () -> bool
|
|
3988
|
+
def html?: () -> bool
|
|
3989
|
+
def ocr?: () -> bool
|
|
3990
|
+
def csv?: () -> bool
|
|
3991
|
+
def bibtex?: () -> bool
|
|
3992
|
+
def citation?: () -> bool
|
|
3993
|
+
def fiction_book?: () -> bool
|
|
3994
|
+
def dbf?: () -> bool
|
|
3995
|
+
def jats?: () -> bool
|
|
3996
|
+
def epub?: () -> bool
|
|
3997
|
+
def pst?: () -> bool
|
|
3998
|
+
def audio?: () -> bool
|
|
3999
|
+
def code?: () -> bool
|
|
4000
|
+
|
|
4001
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
4002
|
+
def self.new: (value: AudioMetadata) -> FormatMetadataAudio
|
|
4003
|
+
end
|
|
4004
|
+
|
|
4005
|
+
class FormatMetadataCode
|
|
4006
|
+
include FormatMetadata
|
|
4007
|
+
attr_reader value: CodeMetadata
|
|
4008
|
+
|
|
4009
|
+
def pdf?: () -> bool
|
|
4010
|
+
def docx?: () -> bool
|
|
4011
|
+
def excel?: () -> bool
|
|
4012
|
+
def email?: () -> bool
|
|
4013
|
+
def pptx?: () -> bool
|
|
4014
|
+
def archive?: () -> bool
|
|
4015
|
+
def image?: () -> bool
|
|
4016
|
+
def xml?: () -> bool
|
|
4017
|
+
def text?: () -> bool
|
|
4018
|
+
def html?: () -> bool
|
|
4019
|
+
def ocr?: () -> bool
|
|
4020
|
+
def csv?: () -> bool
|
|
4021
|
+
def bibtex?: () -> bool
|
|
4022
|
+
def citation?: () -> bool
|
|
4023
|
+
def fiction_book?: () -> bool
|
|
4024
|
+
def dbf?: () -> bool
|
|
4025
|
+
def jats?: () -> bool
|
|
4026
|
+
def epub?: () -> bool
|
|
4027
|
+
def pst?: () -> bool
|
|
4028
|
+
def audio?: () -> bool
|
|
4029
|
+
def code?: () -> bool
|
|
4030
|
+
|
|
4031
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
4032
|
+
def self.new: (value: CodeMetadata) -> FormatMetadataCode
|
|
2866
4033
|
end
|
|
2867
4034
|
|
|
2868
4035
|
type enum_FormulaModel = :latex_ocr
|
|
@@ -2873,9 +4040,48 @@ def initialize: (?min: Integer, ?max: Integer, years: Array[Integer]) -> void
|
|
|
2873
4040
|
|
|
2874
4041
|
type enum_HeadingStyle = :Underlined | :Atx | :AtxClosed
|
|
2875
4042
|
|
|
4043
|
+
type enum_HiddenContent = :Drop | :Reachable | :All
|
|
4044
|
+
|
|
2876
4045
|
type enum_HighlightStyle = :DoubleEqual | :Html | :Bold | :None
|
|
2877
4046
|
|
|
2878
|
-
|
|
4047
|
+
module HostMatcher
|
|
4048
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
4049
|
+
end
|
|
4050
|
+
|
|
4051
|
+
class HostMatcherExact
|
|
4052
|
+
include HostMatcher
|
|
4053
|
+
attr_reader value: String
|
|
4054
|
+
|
|
4055
|
+
def exact?: () -> bool
|
|
4056
|
+
def suffix?: () -> bool
|
|
4057
|
+
def cidr?: () -> bool
|
|
4058
|
+
|
|
4059
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
4060
|
+
def self.new: (value: String) -> HostMatcherExact
|
|
4061
|
+
end
|
|
4062
|
+
|
|
4063
|
+
class HostMatcherSuffix
|
|
4064
|
+
include HostMatcher
|
|
4065
|
+
attr_reader value: String
|
|
4066
|
+
|
|
4067
|
+
def exact?: () -> bool
|
|
4068
|
+
def suffix?: () -> bool
|
|
4069
|
+
def cidr?: () -> bool
|
|
4070
|
+
|
|
4071
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
4072
|
+
def self.new: (value: String) -> HostMatcherSuffix
|
|
4073
|
+
end
|
|
4074
|
+
|
|
4075
|
+
class HostMatcherCidr
|
|
4076
|
+
include HostMatcher
|
|
4077
|
+
attr_reader value: String
|
|
4078
|
+
|
|
4079
|
+
def exact?: () -> bool
|
|
4080
|
+
def suffix?: () -> bool
|
|
4081
|
+
def cidr?: () -> bool
|
|
4082
|
+
|
|
4083
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
4084
|
+
def self.new: (value: String) -> HostMatcherCidr
|
|
2879
4085
|
end
|
|
2880
4086
|
|
|
2881
4087
|
type enum_HtmlTheme = :default | :github | :dark | :light | :unstyled
|
|
@@ -2884,7 +4090,92 @@ def initialize: (?min: Integer, ?max: Integer, years: Array[Integer]) -> void
|
|
|
2884
4090
|
|
|
2885
4091
|
type enum_ImageKind = :photograph | :diagram | :chart | :drawing | :text_block | :decoration | :logo | :icon | :tile_fragment | :mask | :page_raster | :unknown
|
|
2886
4092
|
|
|
2887
|
-
|
|
4093
|
+
module ImageOutputFormat
|
|
4094
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
4095
|
+
end
|
|
4096
|
+
|
|
4097
|
+
class ImageOutputFormatNative
|
|
4098
|
+
include ImageOutputFormat
|
|
4099
|
+
def native?: () -> bool
|
|
4100
|
+
def png?: () -> bool
|
|
4101
|
+
def jpeg?: () -> bool
|
|
4102
|
+
def webp?: () -> bool
|
|
4103
|
+
def heif?: () -> bool
|
|
4104
|
+
def svg?: () -> bool
|
|
4105
|
+
|
|
4106
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
4107
|
+
def self.new: -> ImageOutputFormatNative
|
|
4108
|
+
end
|
|
4109
|
+
|
|
4110
|
+
class ImageOutputFormatPng
|
|
4111
|
+
include ImageOutputFormat
|
|
4112
|
+
def native?: () -> bool
|
|
4113
|
+
def png?: () -> bool
|
|
4114
|
+
def jpeg?: () -> bool
|
|
4115
|
+
def webp?: () -> bool
|
|
4116
|
+
def heif?: () -> bool
|
|
4117
|
+
def svg?: () -> bool
|
|
4118
|
+
|
|
4119
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
4120
|
+
def self.new: -> ImageOutputFormatPng
|
|
4121
|
+
end
|
|
4122
|
+
|
|
4123
|
+
class ImageOutputFormatJpeg
|
|
4124
|
+
include ImageOutputFormat
|
|
4125
|
+
attr_reader quality: Integer
|
|
4126
|
+
|
|
4127
|
+
def native?: () -> bool
|
|
4128
|
+
def png?: () -> bool
|
|
4129
|
+
def jpeg?: () -> bool
|
|
4130
|
+
def webp?: () -> bool
|
|
4131
|
+
def heif?: () -> bool
|
|
4132
|
+
def svg?: () -> bool
|
|
4133
|
+
|
|
4134
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
4135
|
+
def self.new: (quality: Integer) -> ImageOutputFormatJpeg
|
|
4136
|
+
end
|
|
4137
|
+
|
|
4138
|
+
class ImageOutputFormatWebp
|
|
4139
|
+
include ImageOutputFormat
|
|
4140
|
+
attr_reader quality: Integer
|
|
4141
|
+
|
|
4142
|
+
def native?: () -> bool
|
|
4143
|
+
def png?: () -> bool
|
|
4144
|
+
def jpeg?: () -> bool
|
|
4145
|
+
def webp?: () -> bool
|
|
4146
|
+
def heif?: () -> bool
|
|
4147
|
+
def svg?: () -> bool
|
|
4148
|
+
|
|
4149
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
4150
|
+
def self.new: (quality: Integer) -> ImageOutputFormatWebp
|
|
4151
|
+
end
|
|
4152
|
+
|
|
4153
|
+
class ImageOutputFormatHeif
|
|
4154
|
+
include ImageOutputFormat
|
|
4155
|
+
attr_reader quality: Integer
|
|
4156
|
+
|
|
4157
|
+
def native?: () -> bool
|
|
4158
|
+
def png?: () -> bool
|
|
4159
|
+
def jpeg?: () -> bool
|
|
4160
|
+
def webp?: () -> bool
|
|
4161
|
+
def heif?: () -> bool
|
|
4162
|
+
def svg?: () -> bool
|
|
4163
|
+
|
|
4164
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
4165
|
+
def self.new: (quality: Integer) -> ImageOutputFormatHeif
|
|
4166
|
+
end
|
|
4167
|
+
|
|
4168
|
+
class ImageOutputFormatSvg
|
|
4169
|
+
include ImageOutputFormat
|
|
4170
|
+
def native?: () -> bool
|
|
4171
|
+
def png?: () -> bool
|
|
4172
|
+
def jpeg?: () -> bool
|
|
4173
|
+
def webp?: () -> bool
|
|
4174
|
+
def heif?: () -> bool
|
|
4175
|
+
def svg?: () -> bool
|
|
4176
|
+
|
|
4177
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
4178
|
+
def self.new: -> ImageOutputFormatSvg
|
|
2888
4179
|
end
|
|
2889
4180
|
|
|
2890
4181
|
type enum_ImageType = :"data-uri" | :"inline-svg" | :external | :relative
|
|
@@ -2897,11 +4188,53 @@ def initialize: (?min: Integer, ?max: Integer, years: Array[Integer]) -> void
|
|
|
2897
4188
|
|
|
2898
4189
|
type enum_KeywordAlgorithm = :yake | :rake
|
|
2899
4190
|
|
|
2900
|
-
|
|
4191
|
+
module LateInteractionModelType
|
|
4192
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
4193
|
+
end
|
|
4194
|
+
|
|
4195
|
+
class LateInteractionModelTypePreset
|
|
4196
|
+
include LateInteractionModelType
|
|
4197
|
+
attr_reader name: String
|
|
4198
|
+
|
|
4199
|
+
def preset?: () -> bool
|
|
4200
|
+
def custom?: () -> bool
|
|
4201
|
+
def plugin?: () -> bool
|
|
4202
|
+
|
|
4203
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
4204
|
+
def self.new: (name: String) -> LateInteractionModelTypePreset
|
|
4205
|
+
end
|
|
4206
|
+
|
|
4207
|
+
class LateInteractionModelTypeCustom
|
|
4208
|
+
include LateInteractionModelType
|
|
4209
|
+
attr_reader model_id: String
|
|
4210
|
+
attr_reader model_file: String?
|
|
4211
|
+
attr_reader additional_files: Array[String]
|
|
4212
|
+
attr_reader max_length: Integer?
|
|
4213
|
+
|
|
4214
|
+
def preset?: () -> bool
|
|
4215
|
+
def custom?: () -> bool
|
|
4216
|
+
def plugin?: () -> bool
|
|
4217
|
+
|
|
4218
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
4219
|
+
def self.new: (model_id: String, model_file: String?, additional_files: Array[String], max_length: Integer?) -> LateInteractionModelTypeCustom
|
|
4220
|
+
end
|
|
4221
|
+
|
|
4222
|
+
class LateInteractionModelTypePlugin
|
|
4223
|
+
include LateInteractionModelType
|
|
4224
|
+
attr_reader name: String
|
|
4225
|
+
|
|
4226
|
+
def preset?: () -> bool
|
|
4227
|
+
def custom?: () -> bool
|
|
4228
|
+
def plugin?: () -> bool
|
|
4229
|
+
|
|
4230
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
4231
|
+
def self.new: (name: String) -> LateInteractionModelTypePlugin
|
|
2901
4232
|
end
|
|
2902
4233
|
|
|
2903
4234
|
type enum_LayoutClass = :caption | :chart | :footnote | :formula | :list_item | :page_footer | :page_header | :picture | :section_header | :table | :text | :title | :document_index | :code | :checkbox_selected | :checkbox_unselected | :form | :key_value_region
|
|
2904
4235
|
|
|
4236
|
+
type enum_LayoutDetectionModel = :rt_detr | :pp_doc_layout_v3
|
|
4237
|
+
|
|
2905
4238
|
type enum_LayoutStrategy = :always | :auto
|
|
2906
4239
|
|
|
2907
4240
|
type enum_LinkStyle = :Inline | :Reference
|
|
@@ -2920,20 +4253,793 @@ def initialize: (?min: Integer, ?max: Integer, years: Array[Integer]) -> void
|
|
|
2920
4253
|
|
|
2921
4254
|
type enum_NewlineStyle = :Spaces | :Backslash
|
|
2922
4255
|
|
|
2923
|
-
|
|
4256
|
+
module NoChunkingReason
|
|
4257
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
4258
|
+
end
|
|
4259
|
+
|
|
4260
|
+
class NoChunkingReasonSmallFile
|
|
4261
|
+
include NoChunkingReason
|
|
4262
|
+
attr_reader size_bytes: Integer
|
|
4263
|
+
attr_reader threshold_bytes: Integer
|
|
4264
|
+
|
|
4265
|
+
def small_file?: () -> bool
|
|
4266
|
+
def few_pages?: () -> bool
|
|
4267
|
+
def text_layer_detected?: () -> bool
|
|
4268
|
+
def format_not_chunkable?: () -> bool
|
|
4269
|
+
def chunking_disabled?: () -> bool
|
|
4270
|
+
def fast_text_extraction?: () -> bool
|
|
4271
|
+
|
|
4272
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
4273
|
+
def self.new: (size_bytes: Integer, threshold_bytes: Integer) -> NoChunkingReasonSmallFile
|
|
4274
|
+
end
|
|
4275
|
+
|
|
4276
|
+
class NoChunkingReasonFewPages
|
|
4277
|
+
include NoChunkingReason
|
|
4278
|
+
attr_reader page_count: Integer
|
|
4279
|
+
attr_reader threshold: Integer
|
|
4280
|
+
|
|
4281
|
+
def small_file?: () -> bool
|
|
4282
|
+
def few_pages?: () -> bool
|
|
4283
|
+
def text_layer_detected?: () -> bool
|
|
4284
|
+
def format_not_chunkable?: () -> bool
|
|
4285
|
+
def chunking_disabled?: () -> bool
|
|
4286
|
+
def fast_text_extraction?: () -> bool
|
|
4287
|
+
|
|
4288
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
4289
|
+
def self.new: (page_count: Integer, threshold: Integer) -> NoChunkingReasonFewPages
|
|
4290
|
+
end
|
|
4291
|
+
|
|
4292
|
+
class NoChunkingReasonTextLayerDetected
|
|
4293
|
+
include NoChunkingReason
|
|
4294
|
+
attr_reader text_coverage: Float
|
|
4295
|
+
attr_reader avg_chars_per_page: Integer
|
|
4296
|
+
|
|
4297
|
+
def small_file?: () -> bool
|
|
4298
|
+
def few_pages?: () -> bool
|
|
4299
|
+
def text_layer_detected?: () -> bool
|
|
4300
|
+
def format_not_chunkable?: () -> bool
|
|
4301
|
+
def chunking_disabled?: () -> bool
|
|
4302
|
+
def fast_text_extraction?: () -> bool
|
|
4303
|
+
|
|
4304
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
4305
|
+
def self.new: (text_coverage: Float, avg_chars_per_page: Integer) -> NoChunkingReasonTextLayerDetected
|
|
2924
4306
|
end
|
|
2925
4307
|
|
|
2926
|
-
class
|
|
4308
|
+
class NoChunkingReasonFormatNotChunkable
|
|
4309
|
+
include NoChunkingReason
|
|
4310
|
+
attr_reader mime_type: String
|
|
4311
|
+
|
|
4312
|
+
def small_file?: () -> bool
|
|
4313
|
+
def few_pages?: () -> bool
|
|
4314
|
+
def text_layer_detected?: () -> bool
|
|
4315
|
+
def format_not_chunkable?: () -> bool
|
|
4316
|
+
def chunking_disabled?: () -> bool
|
|
4317
|
+
def fast_text_extraction?: () -> bool
|
|
4318
|
+
|
|
4319
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
4320
|
+
def self.new: (mime_type: String) -> NoChunkingReasonFormatNotChunkable
|
|
4321
|
+
end
|
|
4322
|
+
|
|
4323
|
+
class NoChunkingReasonChunkingDisabled
|
|
4324
|
+
include NoChunkingReason
|
|
4325
|
+
def small_file?: () -> bool
|
|
4326
|
+
def few_pages?: () -> bool
|
|
4327
|
+
def text_layer_detected?: () -> bool
|
|
4328
|
+
def format_not_chunkable?: () -> bool
|
|
4329
|
+
def chunking_disabled?: () -> bool
|
|
4330
|
+
def fast_text_extraction?: () -> bool
|
|
4331
|
+
|
|
4332
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
4333
|
+
def self.new: -> NoChunkingReasonChunkingDisabled
|
|
4334
|
+
end
|
|
4335
|
+
|
|
4336
|
+
class NoChunkingReasonFastTextExtraction
|
|
4337
|
+
include NoChunkingReason
|
|
4338
|
+
def small_file?: () -> bool
|
|
4339
|
+
def few_pages?: () -> bool
|
|
4340
|
+
def text_layer_detected?: () -> bool
|
|
4341
|
+
def format_not_chunkable?: () -> bool
|
|
4342
|
+
def chunking_disabled?: () -> bool
|
|
4343
|
+
def fast_text_extraction?: () -> bool
|
|
4344
|
+
|
|
4345
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
4346
|
+
def self.new: -> NoChunkingReasonFastTextExtraction
|
|
4347
|
+
end
|
|
4348
|
+
|
|
4349
|
+
module NodeContent
|
|
4350
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
4351
|
+
end
|
|
4352
|
+
|
|
4353
|
+
class NodeContentTitle
|
|
4354
|
+
include NodeContent
|
|
4355
|
+
attr_reader text: String
|
|
4356
|
+
|
|
4357
|
+
def title?: () -> bool
|
|
4358
|
+
def heading?: () -> bool
|
|
4359
|
+
def paragraph?: () -> bool
|
|
4360
|
+
def list?: () -> bool
|
|
4361
|
+
def list_item?: () -> bool
|
|
4362
|
+
def table?: () -> bool
|
|
4363
|
+
def image?: () -> bool
|
|
4364
|
+
def code?: () -> bool
|
|
4365
|
+
def quote?: () -> bool
|
|
4366
|
+
def formula?: () -> bool
|
|
4367
|
+
def footnote?: () -> bool
|
|
4368
|
+
def comment?: () -> bool
|
|
4369
|
+
def group?: () -> bool
|
|
4370
|
+
def page_break?: () -> bool
|
|
4371
|
+
def slide?: () -> bool
|
|
4372
|
+
def definition_list?: () -> bool
|
|
4373
|
+
def definition_item?: () -> bool
|
|
4374
|
+
def citation?: () -> bool
|
|
4375
|
+
def admonition?: () -> bool
|
|
4376
|
+
def raw_block?: () -> bool
|
|
4377
|
+
def metadata_block?: () -> bool
|
|
4378
|
+
|
|
4379
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
4380
|
+
def self.new: (text: String) -> NodeContentTitle
|
|
4381
|
+
end
|
|
4382
|
+
|
|
4383
|
+
class NodeContentHeading
|
|
4384
|
+
include NodeContent
|
|
4385
|
+
attr_reader level: Integer
|
|
4386
|
+
attr_reader text: String
|
|
4387
|
+
|
|
4388
|
+
def title?: () -> bool
|
|
4389
|
+
def heading?: () -> bool
|
|
4390
|
+
def paragraph?: () -> bool
|
|
4391
|
+
def list?: () -> bool
|
|
4392
|
+
def list_item?: () -> bool
|
|
4393
|
+
def table?: () -> bool
|
|
4394
|
+
def image?: () -> bool
|
|
4395
|
+
def code?: () -> bool
|
|
4396
|
+
def quote?: () -> bool
|
|
4397
|
+
def formula?: () -> bool
|
|
4398
|
+
def footnote?: () -> bool
|
|
4399
|
+
def comment?: () -> bool
|
|
4400
|
+
def group?: () -> bool
|
|
4401
|
+
def page_break?: () -> bool
|
|
4402
|
+
def slide?: () -> bool
|
|
4403
|
+
def definition_list?: () -> bool
|
|
4404
|
+
def definition_item?: () -> bool
|
|
4405
|
+
def citation?: () -> bool
|
|
4406
|
+
def admonition?: () -> bool
|
|
4407
|
+
def raw_block?: () -> bool
|
|
4408
|
+
def metadata_block?: () -> bool
|
|
4409
|
+
|
|
4410
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
4411
|
+
def self.new: (level: Integer, text: String) -> NodeContentHeading
|
|
4412
|
+
end
|
|
4413
|
+
|
|
4414
|
+
class NodeContentParagraph
|
|
4415
|
+
include NodeContent
|
|
4416
|
+
attr_reader text: String
|
|
4417
|
+
|
|
4418
|
+
def title?: () -> bool
|
|
4419
|
+
def heading?: () -> bool
|
|
4420
|
+
def paragraph?: () -> bool
|
|
4421
|
+
def list?: () -> bool
|
|
4422
|
+
def list_item?: () -> bool
|
|
4423
|
+
def table?: () -> bool
|
|
4424
|
+
def image?: () -> bool
|
|
4425
|
+
def code?: () -> bool
|
|
4426
|
+
def quote?: () -> bool
|
|
4427
|
+
def formula?: () -> bool
|
|
4428
|
+
def footnote?: () -> bool
|
|
4429
|
+
def comment?: () -> bool
|
|
4430
|
+
def group?: () -> bool
|
|
4431
|
+
def page_break?: () -> bool
|
|
4432
|
+
def slide?: () -> bool
|
|
4433
|
+
def definition_list?: () -> bool
|
|
4434
|
+
def definition_item?: () -> bool
|
|
4435
|
+
def citation?: () -> bool
|
|
4436
|
+
def admonition?: () -> bool
|
|
4437
|
+
def raw_block?: () -> bool
|
|
4438
|
+
def metadata_block?: () -> bool
|
|
4439
|
+
|
|
4440
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
4441
|
+
def self.new: (text: String) -> NodeContentParagraph
|
|
4442
|
+
end
|
|
4443
|
+
|
|
4444
|
+
class NodeContentList
|
|
4445
|
+
include NodeContent
|
|
4446
|
+
attr_reader ordered: bool
|
|
4447
|
+
|
|
4448
|
+
def title?: () -> bool
|
|
4449
|
+
def heading?: () -> bool
|
|
4450
|
+
def paragraph?: () -> bool
|
|
4451
|
+
def list?: () -> bool
|
|
4452
|
+
def list_item?: () -> bool
|
|
4453
|
+
def table?: () -> bool
|
|
4454
|
+
def image?: () -> bool
|
|
4455
|
+
def code?: () -> bool
|
|
4456
|
+
def quote?: () -> bool
|
|
4457
|
+
def formula?: () -> bool
|
|
4458
|
+
def footnote?: () -> bool
|
|
4459
|
+
def comment?: () -> bool
|
|
4460
|
+
def group?: () -> bool
|
|
4461
|
+
def page_break?: () -> bool
|
|
4462
|
+
def slide?: () -> bool
|
|
4463
|
+
def definition_list?: () -> bool
|
|
4464
|
+
def definition_item?: () -> bool
|
|
4465
|
+
def citation?: () -> bool
|
|
4466
|
+
def admonition?: () -> bool
|
|
4467
|
+
def raw_block?: () -> bool
|
|
4468
|
+
def metadata_block?: () -> bool
|
|
4469
|
+
|
|
4470
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
4471
|
+
def self.new: (ordered: bool) -> NodeContentList
|
|
4472
|
+
end
|
|
4473
|
+
|
|
4474
|
+
class NodeContentListItem
|
|
4475
|
+
include NodeContent
|
|
4476
|
+
attr_reader text: String
|
|
4477
|
+
|
|
4478
|
+
def title?: () -> bool
|
|
4479
|
+
def heading?: () -> bool
|
|
4480
|
+
def paragraph?: () -> bool
|
|
4481
|
+
def list?: () -> bool
|
|
4482
|
+
def list_item?: () -> bool
|
|
4483
|
+
def table?: () -> bool
|
|
4484
|
+
def image?: () -> bool
|
|
4485
|
+
def code?: () -> bool
|
|
4486
|
+
def quote?: () -> bool
|
|
4487
|
+
def formula?: () -> bool
|
|
4488
|
+
def footnote?: () -> bool
|
|
4489
|
+
def comment?: () -> bool
|
|
4490
|
+
def group?: () -> bool
|
|
4491
|
+
def page_break?: () -> bool
|
|
4492
|
+
def slide?: () -> bool
|
|
4493
|
+
def definition_list?: () -> bool
|
|
4494
|
+
def definition_item?: () -> bool
|
|
4495
|
+
def citation?: () -> bool
|
|
4496
|
+
def admonition?: () -> bool
|
|
4497
|
+
def raw_block?: () -> bool
|
|
4498
|
+
def metadata_block?: () -> bool
|
|
4499
|
+
|
|
4500
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
4501
|
+
def self.new: (text: String) -> NodeContentListItem
|
|
4502
|
+
end
|
|
4503
|
+
|
|
4504
|
+
class NodeContentTable
|
|
4505
|
+
include NodeContent
|
|
4506
|
+
attr_reader grid: TableGrid
|
|
4507
|
+
|
|
4508
|
+
def title?: () -> bool
|
|
4509
|
+
def heading?: () -> bool
|
|
4510
|
+
def paragraph?: () -> bool
|
|
4511
|
+
def list?: () -> bool
|
|
4512
|
+
def list_item?: () -> bool
|
|
4513
|
+
def table?: () -> bool
|
|
4514
|
+
def image?: () -> bool
|
|
4515
|
+
def code?: () -> bool
|
|
4516
|
+
def quote?: () -> bool
|
|
4517
|
+
def formula?: () -> bool
|
|
4518
|
+
def footnote?: () -> bool
|
|
4519
|
+
def comment?: () -> bool
|
|
4520
|
+
def group?: () -> bool
|
|
4521
|
+
def page_break?: () -> bool
|
|
4522
|
+
def slide?: () -> bool
|
|
4523
|
+
def definition_list?: () -> bool
|
|
4524
|
+
def definition_item?: () -> bool
|
|
4525
|
+
def citation?: () -> bool
|
|
4526
|
+
def admonition?: () -> bool
|
|
4527
|
+
def raw_block?: () -> bool
|
|
4528
|
+
def metadata_block?: () -> bool
|
|
4529
|
+
|
|
4530
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
4531
|
+
def self.new: (grid: TableGrid) -> NodeContentTable
|
|
4532
|
+
end
|
|
4533
|
+
|
|
4534
|
+
class NodeContentImage
|
|
4535
|
+
include NodeContent
|
|
4536
|
+
attr_reader description: String?
|
|
4537
|
+
attr_reader image_index: Integer?
|
|
4538
|
+
attr_reader src: String?
|
|
4539
|
+
|
|
4540
|
+
def title?: () -> bool
|
|
4541
|
+
def heading?: () -> bool
|
|
4542
|
+
def paragraph?: () -> bool
|
|
4543
|
+
def list?: () -> bool
|
|
4544
|
+
def list_item?: () -> bool
|
|
4545
|
+
def table?: () -> bool
|
|
4546
|
+
def image?: () -> bool
|
|
4547
|
+
def code?: () -> bool
|
|
4548
|
+
def quote?: () -> bool
|
|
4549
|
+
def formula?: () -> bool
|
|
4550
|
+
def footnote?: () -> bool
|
|
4551
|
+
def comment?: () -> bool
|
|
4552
|
+
def group?: () -> bool
|
|
4553
|
+
def page_break?: () -> bool
|
|
4554
|
+
def slide?: () -> bool
|
|
4555
|
+
def definition_list?: () -> bool
|
|
4556
|
+
def definition_item?: () -> bool
|
|
4557
|
+
def citation?: () -> bool
|
|
4558
|
+
def admonition?: () -> bool
|
|
4559
|
+
def raw_block?: () -> bool
|
|
4560
|
+
def metadata_block?: () -> bool
|
|
4561
|
+
|
|
4562
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
4563
|
+
def self.new: (description: String?, image_index: Integer?, src: String?) -> NodeContentImage
|
|
4564
|
+
end
|
|
4565
|
+
|
|
4566
|
+
class NodeContentCode
|
|
4567
|
+
include NodeContent
|
|
4568
|
+
attr_reader text: String
|
|
4569
|
+
attr_reader language: String?
|
|
4570
|
+
|
|
4571
|
+
def title?: () -> bool
|
|
4572
|
+
def heading?: () -> bool
|
|
4573
|
+
def paragraph?: () -> bool
|
|
4574
|
+
def list?: () -> bool
|
|
4575
|
+
def list_item?: () -> bool
|
|
4576
|
+
def table?: () -> bool
|
|
4577
|
+
def image?: () -> bool
|
|
4578
|
+
def code?: () -> bool
|
|
4579
|
+
def quote?: () -> bool
|
|
4580
|
+
def formula?: () -> bool
|
|
4581
|
+
def footnote?: () -> bool
|
|
4582
|
+
def comment?: () -> bool
|
|
4583
|
+
def group?: () -> bool
|
|
4584
|
+
def page_break?: () -> bool
|
|
4585
|
+
def slide?: () -> bool
|
|
4586
|
+
def definition_list?: () -> bool
|
|
4587
|
+
def definition_item?: () -> bool
|
|
4588
|
+
def citation?: () -> bool
|
|
4589
|
+
def admonition?: () -> bool
|
|
4590
|
+
def raw_block?: () -> bool
|
|
4591
|
+
def metadata_block?: () -> bool
|
|
4592
|
+
|
|
4593
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
4594
|
+
def self.new: (text: String, language: String?) -> NodeContentCode
|
|
4595
|
+
end
|
|
4596
|
+
|
|
4597
|
+
class NodeContentQuote
|
|
4598
|
+
include NodeContent
|
|
4599
|
+
def title?: () -> bool
|
|
4600
|
+
def heading?: () -> bool
|
|
4601
|
+
def paragraph?: () -> bool
|
|
4602
|
+
def list?: () -> bool
|
|
4603
|
+
def list_item?: () -> bool
|
|
4604
|
+
def table?: () -> bool
|
|
4605
|
+
def image?: () -> bool
|
|
4606
|
+
def code?: () -> bool
|
|
4607
|
+
def quote?: () -> bool
|
|
4608
|
+
def formula?: () -> bool
|
|
4609
|
+
def footnote?: () -> bool
|
|
4610
|
+
def comment?: () -> bool
|
|
4611
|
+
def group?: () -> bool
|
|
4612
|
+
def page_break?: () -> bool
|
|
4613
|
+
def slide?: () -> bool
|
|
4614
|
+
def definition_list?: () -> bool
|
|
4615
|
+
def definition_item?: () -> bool
|
|
4616
|
+
def citation?: () -> bool
|
|
4617
|
+
def admonition?: () -> bool
|
|
4618
|
+
def raw_block?: () -> bool
|
|
4619
|
+
def metadata_block?: () -> bool
|
|
4620
|
+
|
|
4621
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
4622
|
+
def self.new: -> NodeContentQuote
|
|
4623
|
+
end
|
|
4624
|
+
|
|
4625
|
+
class NodeContentFormula
|
|
4626
|
+
include NodeContent
|
|
4627
|
+
attr_reader text: String
|
|
4628
|
+
|
|
4629
|
+
def title?: () -> bool
|
|
4630
|
+
def heading?: () -> bool
|
|
4631
|
+
def paragraph?: () -> bool
|
|
4632
|
+
def list?: () -> bool
|
|
4633
|
+
def list_item?: () -> bool
|
|
4634
|
+
def table?: () -> bool
|
|
4635
|
+
def image?: () -> bool
|
|
4636
|
+
def code?: () -> bool
|
|
4637
|
+
def quote?: () -> bool
|
|
4638
|
+
def formula?: () -> bool
|
|
4639
|
+
def footnote?: () -> bool
|
|
4640
|
+
def comment?: () -> bool
|
|
4641
|
+
def group?: () -> bool
|
|
4642
|
+
def page_break?: () -> bool
|
|
4643
|
+
def slide?: () -> bool
|
|
4644
|
+
def definition_list?: () -> bool
|
|
4645
|
+
def definition_item?: () -> bool
|
|
4646
|
+
def citation?: () -> bool
|
|
4647
|
+
def admonition?: () -> bool
|
|
4648
|
+
def raw_block?: () -> bool
|
|
4649
|
+
def metadata_block?: () -> bool
|
|
4650
|
+
|
|
4651
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
4652
|
+
def self.new: (text: String) -> NodeContentFormula
|
|
4653
|
+
end
|
|
4654
|
+
|
|
4655
|
+
class NodeContentFootnote
|
|
4656
|
+
include NodeContent
|
|
4657
|
+
attr_reader text: String
|
|
4658
|
+
|
|
4659
|
+
def title?: () -> bool
|
|
4660
|
+
def heading?: () -> bool
|
|
4661
|
+
def paragraph?: () -> bool
|
|
4662
|
+
def list?: () -> bool
|
|
4663
|
+
def list_item?: () -> bool
|
|
4664
|
+
def table?: () -> bool
|
|
4665
|
+
def image?: () -> bool
|
|
4666
|
+
def code?: () -> bool
|
|
4667
|
+
def quote?: () -> bool
|
|
4668
|
+
def formula?: () -> bool
|
|
4669
|
+
def footnote?: () -> bool
|
|
4670
|
+
def comment?: () -> bool
|
|
4671
|
+
def group?: () -> bool
|
|
4672
|
+
def page_break?: () -> bool
|
|
4673
|
+
def slide?: () -> bool
|
|
4674
|
+
def definition_list?: () -> bool
|
|
4675
|
+
def definition_item?: () -> bool
|
|
4676
|
+
def citation?: () -> bool
|
|
4677
|
+
def admonition?: () -> bool
|
|
4678
|
+
def raw_block?: () -> bool
|
|
4679
|
+
def metadata_block?: () -> bool
|
|
4680
|
+
|
|
4681
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
4682
|
+
def self.new: (text: String) -> NodeContentFootnote
|
|
4683
|
+
end
|
|
4684
|
+
|
|
4685
|
+
class NodeContentComment
|
|
4686
|
+
include NodeContent
|
|
4687
|
+
attr_reader text: String
|
|
4688
|
+
|
|
4689
|
+
def title?: () -> bool
|
|
4690
|
+
def heading?: () -> bool
|
|
4691
|
+
def paragraph?: () -> bool
|
|
4692
|
+
def list?: () -> bool
|
|
4693
|
+
def list_item?: () -> bool
|
|
4694
|
+
def table?: () -> bool
|
|
4695
|
+
def image?: () -> bool
|
|
4696
|
+
def code?: () -> bool
|
|
4697
|
+
def quote?: () -> bool
|
|
4698
|
+
def formula?: () -> bool
|
|
4699
|
+
def footnote?: () -> bool
|
|
4700
|
+
def comment?: () -> bool
|
|
4701
|
+
def group?: () -> bool
|
|
4702
|
+
def page_break?: () -> bool
|
|
4703
|
+
def slide?: () -> bool
|
|
4704
|
+
def definition_list?: () -> bool
|
|
4705
|
+
def definition_item?: () -> bool
|
|
4706
|
+
def citation?: () -> bool
|
|
4707
|
+
def admonition?: () -> bool
|
|
4708
|
+
def raw_block?: () -> bool
|
|
4709
|
+
def metadata_block?: () -> bool
|
|
4710
|
+
|
|
4711
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
4712
|
+
def self.new: (text: String) -> NodeContentComment
|
|
4713
|
+
end
|
|
4714
|
+
|
|
4715
|
+
class NodeContentGroup
|
|
4716
|
+
include NodeContent
|
|
4717
|
+
attr_reader label: String?
|
|
4718
|
+
attr_reader heading_level: Integer?
|
|
4719
|
+
attr_reader heading_text: String?
|
|
4720
|
+
|
|
4721
|
+
def title?: () -> bool
|
|
4722
|
+
def heading?: () -> bool
|
|
4723
|
+
def paragraph?: () -> bool
|
|
4724
|
+
def list?: () -> bool
|
|
4725
|
+
def list_item?: () -> bool
|
|
4726
|
+
def table?: () -> bool
|
|
4727
|
+
def image?: () -> bool
|
|
4728
|
+
def code?: () -> bool
|
|
4729
|
+
def quote?: () -> bool
|
|
4730
|
+
def formula?: () -> bool
|
|
4731
|
+
def footnote?: () -> bool
|
|
4732
|
+
def comment?: () -> bool
|
|
4733
|
+
def group?: () -> bool
|
|
4734
|
+
def page_break?: () -> bool
|
|
4735
|
+
def slide?: () -> bool
|
|
4736
|
+
def definition_list?: () -> bool
|
|
4737
|
+
def definition_item?: () -> bool
|
|
4738
|
+
def citation?: () -> bool
|
|
4739
|
+
def admonition?: () -> bool
|
|
4740
|
+
def raw_block?: () -> bool
|
|
4741
|
+
def metadata_block?: () -> bool
|
|
4742
|
+
|
|
4743
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
4744
|
+
def self.new: (label: String?, heading_level: Integer?, heading_text: String?) -> NodeContentGroup
|
|
4745
|
+
end
|
|
4746
|
+
|
|
4747
|
+
class NodeContentPageBreak
|
|
4748
|
+
include NodeContent
|
|
4749
|
+
def title?: () -> bool
|
|
4750
|
+
def heading?: () -> bool
|
|
4751
|
+
def paragraph?: () -> bool
|
|
4752
|
+
def list?: () -> bool
|
|
4753
|
+
def list_item?: () -> bool
|
|
4754
|
+
def table?: () -> bool
|
|
4755
|
+
def image?: () -> bool
|
|
4756
|
+
def code?: () -> bool
|
|
4757
|
+
def quote?: () -> bool
|
|
4758
|
+
def formula?: () -> bool
|
|
4759
|
+
def footnote?: () -> bool
|
|
4760
|
+
def comment?: () -> bool
|
|
4761
|
+
def group?: () -> bool
|
|
4762
|
+
def page_break?: () -> bool
|
|
4763
|
+
def slide?: () -> bool
|
|
4764
|
+
def definition_list?: () -> bool
|
|
4765
|
+
def definition_item?: () -> bool
|
|
4766
|
+
def citation?: () -> bool
|
|
4767
|
+
def admonition?: () -> bool
|
|
4768
|
+
def raw_block?: () -> bool
|
|
4769
|
+
def metadata_block?: () -> bool
|
|
4770
|
+
|
|
4771
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
4772
|
+
def self.new: -> NodeContentPageBreak
|
|
4773
|
+
end
|
|
4774
|
+
|
|
4775
|
+
class NodeContentSlide
|
|
4776
|
+
include NodeContent
|
|
4777
|
+
attr_reader number: Integer
|
|
4778
|
+
attr_reader title: String?
|
|
4779
|
+
|
|
4780
|
+
def title?: () -> bool
|
|
4781
|
+
def heading?: () -> bool
|
|
4782
|
+
def paragraph?: () -> bool
|
|
4783
|
+
def list?: () -> bool
|
|
4784
|
+
def list_item?: () -> bool
|
|
4785
|
+
def table?: () -> bool
|
|
4786
|
+
def image?: () -> bool
|
|
4787
|
+
def code?: () -> bool
|
|
4788
|
+
def quote?: () -> bool
|
|
4789
|
+
def formula?: () -> bool
|
|
4790
|
+
def footnote?: () -> bool
|
|
4791
|
+
def comment?: () -> bool
|
|
4792
|
+
def group?: () -> bool
|
|
4793
|
+
def page_break?: () -> bool
|
|
4794
|
+
def slide?: () -> bool
|
|
4795
|
+
def definition_list?: () -> bool
|
|
4796
|
+
def definition_item?: () -> bool
|
|
4797
|
+
def citation?: () -> bool
|
|
4798
|
+
def admonition?: () -> bool
|
|
4799
|
+
def raw_block?: () -> bool
|
|
4800
|
+
def metadata_block?: () -> bool
|
|
4801
|
+
|
|
4802
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
4803
|
+
def self.new: (number: Integer, title: String?) -> NodeContentSlide
|
|
4804
|
+
end
|
|
4805
|
+
|
|
4806
|
+
class NodeContentDefinitionList
|
|
4807
|
+
include NodeContent
|
|
4808
|
+
def title?: () -> bool
|
|
4809
|
+
def heading?: () -> bool
|
|
4810
|
+
def paragraph?: () -> bool
|
|
4811
|
+
def list?: () -> bool
|
|
4812
|
+
def list_item?: () -> bool
|
|
4813
|
+
def table?: () -> bool
|
|
4814
|
+
def image?: () -> bool
|
|
4815
|
+
def code?: () -> bool
|
|
4816
|
+
def quote?: () -> bool
|
|
4817
|
+
def formula?: () -> bool
|
|
4818
|
+
def footnote?: () -> bool
|
|
4819
|
+
def comment?: () -> bool
|
|
4820
|
+
def group?: () -> bool
|
|
4821
|
+
def page_break?: () -> bool
|
|
4822
|
+
def slide?: () -> bool
|
|
4823
|
+
def definition_list?: () -> bool
|
|
4824
|
+
def definition_item?: () -> bool
|
|
4825
|
+
def citation?: () -> bool
|
|
4826
|
+
def admonition?: () -> bool
|
|
4827
|
+
def raw_block?: () -> bool
|
|
4828
|
+
def metadata_block?: () -> bool
|
|
4829
|
+
|
|
4830
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
4831
|
+
def self.new: -> NodeContentDefinitionList
|
|
4832
|
+
end
|
|
4833
|
+
|
|
4834
|
+
class NodeContentDefinitionItem
|
|
4835
|
+
include NodeContent
|
|
4836
|
+
attr_reader term: String
|
|
4837
|
+
attr_reader definition: String
|
|
4838
|
+
|
|
4839
|
+
def title?: () -> bool
|
|
4840
|
+
def heading?: () -> bool
|
|
4841
|
+
def paragraph?: () -> bool
|
|
4842
|
+
def list?: () -> bool
|
|
4843
|
+
def list_item?: () -> bool
|
|
4844
|
+
def table?: () -> bool
|
|
4845
|
+
def image?: () -> bool
|
|
4846
|
+
def code?: () -> bool
|
|
4847
|
+
def quote?: () -> bool
|
|
4848
|
+
def formula?: () -> bool
|
|
4849
|
+
def footnote?: () -> bool
|
|
4850
|
+
def comment?: () -> bool
|
|
4851
|
+
def group?: () -> bool
|
|
4852
|
+
def page_break?: () -> bool
|
|
4853
|
+
def slide?: () -> bool
|
|
4854
|
+
def definition_list?: () -> bool
|
|
4855
|
+
def definition_item?: () -> bool
|
|
4856
|
+
def citation?: () -> bool
|
|
4857
|
+
def admonition?: () -> bool
|
|
4858
|
+
def raw_block?: () -> bool
|
|
4859
|
+
def metadata_block?: () -> bool
|
|
4860
|
+
|
|
4861
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
4862
|
+
def self.new: (term: String, definition: String) -> NodeContentDefinitionItem
|
|
4863
|
+
end
|
|
4864
|
+
|
|
4865
|
+
class NodeContentCitation
|
|
4866
|
+
include NodeContent
|
|
4867
|
+
attr_reader key: String
|
|
4868
|
+
attr_reader text: String
|
|
4869
|
+
|
|
4870
|
+
def title?: () -> bool
|
|
4871
|
+
def heading?: () -> bool
|
|
4872
|
+
def paragraph?: () -> bool
|
|
4873
|
+
def list?: () -> bool
|
|
4874
|
+
def list_item?: () -> bool
|
|
4875
|
+
def table?: () -> bool
|
|
4876
|
+
def image?: () -> bool
|
|
4877
|
+
def code?: () -> bool
|
|
4878
|
+
def quote?: () -> bool
|
|
4879
|
+
def formula?: () -> bool
|
|
4880
|
+
def footnote?: () -> bool
|
|
4881
|
+
def comment?: () -> bool
|
|
4882
|
+
def group?: () -> bool
|
|
4883
|
+
def page_break?: () -> bool
|
|
4884
|
+
def slide?: () -> bool
|
|
4885
|
+
def definition_list?: () -> bool
|
|
4886
|
+
def definition_item?: () -> bool
|
|
4887
|
+
def citation?: () -> bool
|
|
4888
|
+
def admonition?: () -> bool
|
|
4889
|
+
def raw_block?: () -> bool
|
|
4890
|
+
def metadata_block?: () -> bool
|
|
4891
|
+
|
|
4892
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
4893
|
+
def self.new: (key: String, text: String) -> NodeContentCitation
|
|
4894
|
+
end
|
|
4895
|
+
|
|
4896
|
+
class NodeContentAdmonition
|
|
4897
|
+
include NodeContent
|
|
4898
|
+
attr_reader kind: String
|
|
4899
|
+
attr_reader title: String?
|
|
4900
|
+
|
|
4901
|
+
def title?: () -> bool
|
|
4902
|
+
def heading?: () -> bool
|
|
4903
|
+
def paragraph?: () -> bool
|
|
4904
|
+
def list?: () -> bool
|
|
4905
|
+
def list_item?: () -> bool
|
|
4906
|
+
def table?: () -> bool
|
|
4907
|
+
def image?: () -> bool
|
|
4908
|
+
def code?: () -> bool
|
|
4909
|
+
def quote?: () -> bool
|
|
4910
|
+
def formula?: () -> bool
|
|
4911
|
+
def footnote?: () -> bool
|
|
4912
|
+
def comment?: () -> bool
|
|
4913
|
+
def group?: () -> bool
|
|
4914
|
+
def page_break?: () -> bool
|
|
4915
|
+
def slide?: () -> bool
|
|
4916
|
+
def definition_list?: () -> bool
|
|
4917
|
+
def definition_item?: () -> bool
|
|
4918
|
+
def citation?: () -> bool
|
|
4919
|
+
def admonition?: () -> bool
|
|
4920
|
+
def raw_block?: () -> bool
|
|
4921
|
+
def metadata_block?: () -> bool
|
|
4922
|
+
|
|
4923
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
4924
|
+
def self.new: (kind: String, title: String?) -> NodeContentAdmonition
|
|
4925
|
+
end
|
|
4926
|
+
|
|
4927
|
+
class NodeContentRawBlock
|
|
4928
|
+
include NodeContent
|
|
4929
|
+
attr_reader format: String
|
|
4930
|
+
attr_reader content: String
|
|
4931
|
+
|
|
4932
|
+
def title?: () -> bool
|
|
4933
|
+
def heading?: () -> bool
|
|
4934
|
+
def paragraph?: () -> bool
|
|
4935
|
+
def list?: () -> bool
|
|
4936
|
+
def list_item?: () -> bool
|
|
4937
|
+
def table?: () -> bool
|
|
4938
|
+
def image?: () -> bool
|
|
4939
|
+
def code?: () -> bool
|
|
4940
|
+
def quote?: () -> bool
|
|
4941
|
+
def formula?: () -> bool
|
|
4942
|
+
def footnote?: () -> bool
|
|
4943
|
+
def comment?: () -> bool
|
|
4944
|
+
def group?: () -> bool
|
|
4945
|
+
def page_break?: () -> bool
|
|
4946
|
+
def slide?: () -> bool
|
|
4947
|
+
def definition_list?: () -> bool
|
|
4948
|
+
def definition_item?: () -> bool
|
|
4949
|
+
def citation?: () -> bool
|
|
4950
|
+
def admonition?: () -> bool
|
|
4951
|
+
def raw_block?: () -> bool
|
|
4952
|
+
def metadata_block?: () -> bool
|
|
4953
|
+
|
|
4954
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
4955
|
+
def self.new: (format: String, content: String) -> NodeContentRawBlock
|
|
4956
|
+
end
|
|
4957
|
+
|
|
4958
|
+
class NodeContentMetadataBlock
|
|
4959
|
+
include NodeContent
|
|
4960
|
+
attr_reader entries: Array[KeyValueAttribute]
|
|
4961
|
+
|
|
4962
|
+
def title?: () -> bool
|
|
4963
|
+
def heading?: () -> bool
|
|
4964
|
+
def paragraph?: () -> bool
|
|
4965
|
+
def list?: () -> bool
|
|
4966
|
+
def list_item?: () -> bool
|
|
4967
|
+
def table?: () -> bool
|
|
4968
|
+
def image?: () -> bool
|
|
4969
|
+
def code?: () -> bool
|
|
4970
|
+
def quote?: () -> bool
|
|
4971
|
+
def formula?: () -> bool
|
|
4972
|
+
def footnote?: () -> bool
|
|
4973
|
+
def comment?: () -> bool
|
|
4974
|
+
def group?: () -> bool
|
|
4975
|
+
def page_break?: () -> bool
|
|
4976
|
+
def slide?: () -> bool
|
|
4977
|
+
def definition_list?: () -> bool
|
|
4978
|
+
def definition_item?: () -> bool
|
|
4979
|
+
def citation?: () -> bool
|
|
4980
|
+
def admonition?: () -> bool
|
|
4981
|
+
def raw_block?: () -> bool
|
|
4982
|
+
def metadata_block?: () -> bool
|
|
4983
|
+
|
|
4984
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
4985
|
+
def self.new: (entries: Array[KeyValueAttribute]) -> NodeContentMetadataBlock
|
|
2927
4986
|
end
|
|
2928
4987
|
|
|
2929
4988
|
type enum_OcrBackendType = :Tesseract | :PaddleOCR | :Candle | :Custom
|
|
2930
4989
|
|
|
2931
|
-
|
|
4990
|
+
module OcrBoundingGeometry
|
|
4991
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
4992
|
+
end
|
|
4993
|
+
|
|
4994
|
+
class OcrBoundingGeometryRectangle
|
|
4995
|
+
include OcrBoundingGeometry
|
|
4996
|
+
attr_reader left: Integer
|
|
4997
|
+
attr_reader top: Integer
|
|
4998
|
+
attr_reader width: Integer
|
|
4999
|
+
attr_reader height: Integer
|
|
5000
|
+
|
|
5001
|
+
def rectangle?: () -> bool
|
|
5002
|
+
def quadrilateral?: () -> bool
|
|
5003
|
+
|
|
5004
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
5005
|
+
def self.new: (left: Integer, top: Integer, width: Integer, height: Integer) -> OcrBoundingGeometryRectangle
|
|
5006
|
+
end
|
|
5007
|
+
|
|
5008
|
+
class OcrBoundingGeometryQuadrilateral
|
|
5009
|
+
include OcrBoundingGeometry
|
|
5010
|
+
attr_reader points: Array[OcrPoint]
|
|
5011
|
+
|
|
5012
|
+
def rectangle?: () -> bool
|
|
5013
|
+
def quadrilateral?: () -> bool
|
|
5014
|
+
|
|
5015
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
5016
|
+
def self.new: (points: Array[OcrPoint]) -> OcrBoundingGeometryQuadrilateral
|
|
2932
5017
|
end
|
|
2933
5018
|
|
|
2934
5019
|
type enum_OcrElementLevel = :word | :line | :block | :page
|
|
2935
5020
|
|
|
2936
|
-
|
|
5021
|
+
module OcrStrategy
|
|
5022
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
5023
|
+
end
|
|
5024
|
+
|
|
5025
|
+
class OcrStrategyAuto
|
|
5026
|
+
include OcrStrategy
|
|
5027
|
+
def auto?: () -> bool
|
|
5028
|
+
def scanned_pages?: () -> bool
|
|
5029
|
+
|
|
5030
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
5031
|
+
def self.new: -> OcrStrategyAuto
|
|
5032
|
+
end
|
|
5033
|
+
|
|
5034
|
+
class OcrStrategyScannedPages
|
|
5035
|
+
include OcrStrategy
|
|
5036
|
+
attr_reader min_confidence: Float
|
|
5037
|
+
|
|
5038
|
+
def auto?: () -> bool
|
|
5039
|
+
def scanned_pages?: () -> bool
|
|
5040
|
+
|
|
5041
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
5042
|
+
def self.new: (min_confidence: Float) -> OcrStrategyScannedPages
|
|
2937
5043
|
end
|
|
2938
5044
|
|
|
2939
5045
|
class OutputFormat
|
|
@@ -2978,19 +5084,190 @@ def initialize: (?min: Integer, ?max: Integer, years: Array[Integer]) -> void
|
|
|
2978
5084
|
|
|
2979
5085
|
type enum_RerankerHead = :cross_encoder | :qwen3_generative
|
|
2980
5086
|
|
|
2981
|
-
|
|
5087
|
+
module RerankerModelType
|
|
5088
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
5089
|
+
end
|
|
5090
|
+
|
|
5091
|
+
class RerankerModelTypePreset
|
|
5092
|
+
include RerankerModelType
|
|
5093
|
+
attr_reader name: String
|
|
5094
|
+
|
|
5095
|
+
def preset?: () -> bool
|
|
5096
|
+
def custom?: () -> bool
|
|
5097
|
+
def llm?: () -> bool
|
|
5098
|
+
def plugin?: () -> bool
|
|
5099
|
+
|
|
5100
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
5101
|
+
def self.new: (name: String) -> RerankerModelTypePreset
|
|
5102
|
+
end
|
|
5103
|
+
|
|
5104
|
+
class RerankerModelTypeCustom
|
|
5105
|
+
include RerankerModelType
|
|
5106
|
+
attr_reader model_id: String
|
|
5107
|
+
attr_reader model_file: String?
|
|
5108
|
+
attr_reader additional_files: Array[String]
|
|
5109
|
+
attr_reader max_length: Integer?
|
|
5110
|
+
attr_reader head: enum_RerankerHead
|
|
5111
|
+
|
|
5112
|
+
def preset?: () -> bool
|
|
5113
|
+
def custom?: () -> bool
|
|
5114
|
+
def llm?: () -> bool
|
|
5115
|
+
def plugin?: () -> bool
|
|
5116
|
+
|
|
5117
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
5118
|
+
def self.new: (model_id: String, model_file: String?, additional_files: Array[String], max_length: Integer?, head: enum_RerankerHead) -> RerankerModelTypeCustom
|
|
5119
|
+
end
|
|
5120
|
+
|
|
5121
|
+
class RerankerModelTypeLlm
|
|
5122
|
+
include RerankerModelType
|
|
5123
|
+
attr_reader llm: LlmConfig
|
|
5124
|
+
|
|
5125
|
+
def preset?: () -> bool
|
|
5126
|
+
def custom?: () -> bool
|
|
5127
|
+
def llm?: () -> bool
|
|
5128
|
+
def plugin?: () -> bool
|
|
5129
|
+
|
|
5130
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
5131
|
+
def self.new: (llm: LlmConfig) -> RerankerModelTypeLlm
|
|
5132
|
+
end
|
|
5133
|
+
|
|
5134
|
+
class RerankerModelTypePlugin
|
|
5135
|
+
include RerankerModelType
|
|
5136
|
+
attr_reader name: String
|
|
5137
|
+
|
|
5138
|
+
def preset?: () -> bool
|
|
5139
|
+
def custom?: () -> bool
|
|
5140
|
+
def llm?: () -> bool
|
|
5141
|
+
def plugin?: () -> bool
|
|
5142
|
+
|
|
5143
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
5144
|
+
def self.new: (name: String) -> RerankerModelTypePlugin
|
|
2982
5145
|
end
|
|
2983
5146
|
|
|
2984
5147
|
type enum_ResultFormat = :unified | :element_based
|
|
2985
5148
|
|
|
2986
|
-
|
|
5149
|
+
module RevisionAnchor
|
|
5150
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
5151
|
+
end
|
|
5152
|
+
|
|
5153
|
+
class RevisionAnchorParagraph
|
|
5154
|
+
include RevisionAnchor
|
|
5155
|
+
attr_reader index: Integer
|
|
5156
|
+
|
|
5157
|
+
def paragraph?: () -> bool
|
|
5158
|
+
def table_cell?: () -> bool
|
|
5159
|
+
def page?: () -> bool
|
|
5160
|
+
def slide?: () -> bool
|
|
5161
|
+
def sheet?: () -> bool
|
|
5162
|
+
|
|
5163
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
5164
|
+
def self.new: (index: Integer) -> RevisionAnchorParagraph
|
|
5165
|
+
end
|
|
5166
|
+
|
|
5167
|
+
class RevisionAnchorTableCell
|
|
5168
|
+
include RevisionAnchor
|
|
5169
|
+
attr_reader row: Integer
|
|
5170
|
+
attr_reader col: Integer
|
|
5171
|
+
attr_reader table_index: Integer
|
|
5172
|
+
|
|
5173
|
+
def paragraph?: () -> bool
|
|
5174
|
+
def table_cell?: () -> bool
|
|
5175
|
+
def page?: () -> bool
|
|
5176
|
+
def slide?: () -> bool
|
|
5177
|
+
def sheet?: () -> bool
|
|
5178
|
+
|
|
5179
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
5180
|
+
def self.new: (row: Integer, col: Integer, table_index: Integer) -> RevisionAnchorTableCell
|
|
5181
|
+
end
|
|
5182
|
+
|
|
5183
|
+
class RevisionAnchorPage
|
|
5184
|
+
include RevisionAnchor
|
|
5185
|
+
attr_reader index: Integer
|
|
5186
|
+
|
|
5187
|
+
def paragraph?: () -> bool
|
|
5188
|
+
def table_cell?: () -> bool
|
|
5189
|
+
def page?: () -> bool
|
|
5190
|
+
def slide?: () -> bool
|
|
5191
|
+
def sheet?: () -> bool
|
|
5192
|
+
|
|
5193
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
5194
|
+
def self.new: (index: Integer) -> RevisionAnchorPage
|
|
5195
|
+
end
|
|
5196
|
+
|
|
5197
|
+
class RevisionAnchorSlide
|
|
5198
|
+
include RevisionAnchor
|
|
5199
|
+
attr_reader index: Integer
|
|
5200
|
+
|
|
5201
|
+
def paragraph?: () -> bool
|
|
5202
|
+
def table_cell?: () -> bool
|
|
5203
|
+
def page?: () -> bool
|
|
5204
|
+
def slide?: () -> bool
|
|
5205
|
+
def sheet?: () -> bool
|
|
5206
|
+
|
|
5207
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
5208
|
+
def self.new: (index: Integer) -> RevisionAnchorSlide
|
|
5209
|
+
end
|
|
5210
|
+
|
|
5211
|
+
class RevisionAnchorSheet
|
|
5212
|
+
include RevisionAnchor
|
|
5213
|
+
attr_reader index: Integer
|
|
5214
|
+
attr_reader name: String?
|
|
5215
|
+
|
|
5216
|
+
def paragraph?: () -> bool
|
|
5217
|
+
def table_cell?: () -> bool
|
|
5218
|
+
def page?: () -> bool
|
|
5219
|
+
def slide?: () -> bool
|
|
5220
|
+
def sheet?: () -> bool
|
|
5221
|
+
|
|
5222
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
5223
|
+
def self.new: (index: Integer, name: String?) -> RevisionAnchorSheet
|
|
2987
5224
|
end
|
|
2988
5225
|
|
|
2989
5226
|
type enum_RevisionKind = :insertion | :deletion | :format_change | :comment
|
|
2990
5227
|
|
|
2991
5228
|
type enum_SchemaCompliance = :all_valid | :partial_valid | :all_invalid
|
|
2992
5229
|
|
|
2993
|
-
|
|
5230
|
+
module SparseEmbeddingModelType
|
|
5231
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
5232
|
+
end
|
|
5233
|
+
|
|
5234
|
+
class SparseEmbeddingModelTypePreset
|
|
5235
|
+
include SparseEmbeddingModelType
|
|
5236
|
+
attr_reader name: String
|
|
5237
|
+
|
|
5238
|
+
def preset?: () -> bool
|
|
5239
|
+
def custom?: () -> bool
|
|
5240
|
+
def plugin?: () -> bool
|
|
5241
|
+
|
|
5242
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
5243
|
+
def self.new: (name: String) -> SparseEmbeddingModelTypePreset
|
|
5244
|
+
end
|
|
5245
|
+
|
|
5246
|
+
class SparseEmbeddingModelTypeCustom
|
|
5247
|
+
include SparseEmbeddingModelType
|
|
5248
|
+
attr_reader model_id: String
|
|
5249
|
+
attr_reader model_file: String?
|
|
5250
|
+
attr_reader additional_files: Array[String]
|
|
5251
|
+
attr_reader max_length: Integer?
|
|
5252
|
+
|
|
5253
|
+
def preset?: () -> bool
|
|
5254
|
+
def custom?: () -> bool
|
|
5255
|
+
def plugin?: () -> bool
|
|
5256
|
+
|
|
5257
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
5258
|
+
def self.new: (model_id: String, model_file: String?, additional_files: Array[String], max_length: Integer?) -> SparseEmbeddingModelTypeCustom
|
|
5259
|
+
end
|
|
5260
|
+
|
|
5261
|
+
class SparseEmbeddingModelTypePlugin
|
|
5262
|
+
include SparseEmbeddingModelType
|
|
5263
|
+
attr_reader name: String
|
|
5264
|
+
|
|
5265
|
+
def preset?: () -> bool
|
|
5266
|
+
def custom?: () -> bool
|
|
5267
|
+
def plugin?: () -> bool
|
|
5268
|
+
|
|
5269
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
5270
|
+
def self.new: (name: String) -> SparseEmbeddingModelTypePlugin
|
|
2994
5271
|
end
|
|
2995
5272
|
|
|
2996
5273
|
type enum_StructuredDataType = :"json-ld" | :microdata | :rdfa
|
|
@@ -3013,7 +5290,40 @@ def initialize: (?min: Integer, ?max: Integer, years: Array[Integer]) -> void
|
|
|
3013
5290
|
|
|
3014
5291
|
type enum_UrlExtractionMode = :auto | :document | :crawl
|
|
3015
5292
|
|
|
3016
|
-
|
|
5293
|
+
module VlmFallbackPolicy
|
|
5294
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
5295
|
+
end
|
|
5296
|
+
|
|
5297
|
+
class VlmFallbackPolicyDisabled
|
|
5298
|
+
include VlmFallbackPolicy
|
|
5299
|
+
def disabled?: () -> bool
|
|
5300
|
+
def on_low_quality?: () -> bool
|
|
5301
|
+
def always?: () -> bool
|
|
5302
|
+
|
|
5303
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
5304
|
+
def self.new: -> VlmFallbackPolicyDisabled
|
|
5305
|
+
end
|
|
5306
|
+
|
|
5307
|
+
class VlmFallbackPolicyOnLowQuality
|
|
5308
|
+
include VlmFallbackPolicy
|
|
5309
|
+
attr_reader quality_threshold: Float
|
|
5310
|
+
|
|
5311
|
+
def disabled?: () -> bool
|
|
5312
|
+
def on_low_quality?: () -> bool
|
|
5313
|
+
def always?: () -> bool
|
|
5314
|
+
|
|
5315
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
5316
|
+
def self.new: (quality_threshold: Float) -> VlmFallbackPolicyOnLowQuality
|
|
5317
|
+
end
|
|
5318
|
+
|
|
5319
|
+
class VlmFallbackPolicyAlways
|
|
5320
|
+
include VlmFallbackPolicy
|
|
5321
|
+
def disabled?: () -> bool
|
|
5322
|
+
def on_low_quality?: () -> bool
|
|
5323
|
+
def always?: () -> bool
|
|
5324
|
+
|
|
5325
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
5326
|
+
def self.new: -> VlmFallbackPolicyAlways
|
|
3017
5327
|
end
|
|
3018
5328
|
|
|
3019
5329
|
type enum_WhisperModel = :tiny | :base | :small | :medium | :large_v3
|
|
@@ -3044,8 +5354,14 @@ def self.extract: (ExtractInput input, ExtractionConfig config) -> ExtractionRes
|
|
|
3044
5354
|
|
|
3045
5355
|
def self.extract_batch: (Array[ExtractInput] inputs, ExtractionConfig config) -> ExtractionResult
|
|
3046
5356
|
|
|
5357
|
+
def self.extract_batch_with_input_options: (Array[ExtractInputWithOptions] inputs, ExtractionConfig config) -> ExtractionResult
|
|
5358
|
+
|
|
5359
|
+
def self.extract_batch_with_input_options_json: (String inputs_json, ExtractionConfig config) -> ExtractionResult
|
|
5360
|
+
|
|
3047
5361
|
def self.extract_with_external_redaction: (ExtractInput input, ExtractionConfig config, String findings_json, ?String offset_encoding, ?Integer max_findings) -> ExtractionResult
|
|
3048
5362
|
|
|
5363
|
+
def self.extract_with_layout_pages: (ExtractInput input, ExtractionConfig config, Array[Integer] pages) -> ExtractionResult
|
|
5364
|
+
|
|
3049
5365
|
def self.find_unmarked_claims: (String markdown) -> Array[String]
|
|
3050
5366
|
|
|
3051
5367
|
def self.list_document_extractors: () -> Array[String]
|