xberg 1.2.5 → 1.2.7
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/ext/xberg_rb/native/Cargo.lock +67 -162
- data/ext/xberg_rb/native/Cargo.toml +5 -5
- data/ext/xberg_rb/src/lib.rs +1602 -325
- data/lib/xberg/native.rb +139 -277
- data/lib/xberg/version.rb +2 -2
- data/sig/types.rbs +238 -385
- metadata +2 -2
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:4cc11f4292def27becadc457989d24ea976f6ddcaaa87e60c01e9796d7722c80
|
|
3
3
|
# To regenerate: alef generate
|
|
4
4
|
# To verify freshness: alef verify
|
|
5
5
|
|
|
@@ -10,10 +10,10 @@ module Xberg
|
|
|
10
10
|
type json_value = Hash[String, untyped] | Array[untyped] | String | Integer | Float | bool | nil
|
|
11
11
|
|
|
12
12
|
class AccelerationConfig
|
|
13
|
-
attr_reader provider:
|
|
13
|
+
attr_reader provider: enum_ExecutionProviderType
|
|
14
14
|
attr_reader device_id: Integer
|
|
15
15
|
|
|
16
|
-
def initialize: (?provider:
|
|
16
|
+
def initialize: (?provider: enum_ExecutionProviderType, ?device_id: Integer) -> void
|
|
17
17
|
end
|
|
18
18
|
|
|
19
19
|
class ArchiveEntry
|
|
@@ -92,11 +92,11 @@ def initialize: (?entry_count: Integer, ?citation_keys: Array[String], ?authors:
|
|
|
92
92
|
end
|
|
93
93
|
|
|
94
94
|
class BrowserConfig
|
|
95
|
-
attr_reader mode:
|
|
96
|
-
attr_reader backend:
|
|
95
|
+
attr_reader mode: enum_BrowserMode
|
|
96
|
+
attr_reader backend: enum_BrowserBackend
|
|
97
97
|
attr_reader endpoint: String?
|
|
98
98
|
attr_reader timeout: Integer
|
|
99
|
-
attr_reader wait:
|
|
99
|
+
attr_reader wait: enum_BrowserWait
|
|
100
100
|
attr_reader wait_selector: String?
|
|
101
101
|
attr_reader extra_wait: Integer?
|
|
102
102
|
attr_reader proxy: ProxyConfig?
|
|
@@ -106,7 +106,7 @@ def initialize: (?entry_count: Integer, ?citation_keys: Array[String], ?authors:
|
|
|
106
106
|
attr_reader capture_network_events: bool
|
|
107
107
|
attr_reader session_affinity: bool
|
|
108
108
|
|
|
109
|
-
def initialize: (?mode:
|
|
109
|
+
def initialize: (?mode: enum_BrowserMode, ?backend: enum_BrowserBackend, ?endpoint: String, ?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) -> void
|
|
110
110
|
end
|
|
111
111
|
|
|
112
112
|
class CacheStats
|
|
@@ -138,13 +138,13 @@ def initialize: (?mode: BrowserMode, ?backend: BrowserBackend, ?endpoint: String
|
|
|
138
138
|
|
|
139
139
|
class Chunk
|
|
140
140
|
attr_reader content: String
|
|
141
|
-
attr_reader chunk_type:
|
|
141
|
+
attr_reader chunk_type: enum_ChunkType
|
|
142
142
|
attr_reader embedding: Array[Float]?
|
|
143
143
|
attr_reader sparse_embedding: SparseEmbedding?
|
|
144
144
|
attr_reader late_interaction: MultiVectorEmbedding?
|
|
145
145
|
attr_reader metadata: ChunkMetadata
|
|
146
146
|
|
|
147
|
-
def initialize: (content: String, chunk_type:
|
|
147
|
+
def initialize: (content: String, chunk_type: enum_ChunkType, ?embedding: Array[Float], ?sparse_embedding: SparseEmbedding, ?late_interaction: MultiVectorEmbedding, metadata: ChunkMetadata) -> void
|
|
148
148
|
end
|
|
149
149
|
|
|
150
150
|
class ChunkClassificationConfig
|
|
@@ -200,16 +200,16 @@ def initialize: (byte_start: Integer, byte_end: Integer, ?token_count: Integer,
|
|
|
200
200
|
attr_reader max_characters: Integer
|
|
201
201
|
attr_reader overlap: Integer
|
|
202
202
|
attr_reader trim: bool
|
|
203
|
-
attr_reader chunker_type:
|
|
203
|
+
attr_reader chunker_type: enum_ChunkerType
|
|
204
204
|
attr_reader embedding: EmbeddingConfig?
|
|
205
205
|
attr_reader sparse_embedding: SparseEmbeddingConfig?
|
|
206
206
|
attr_reader late_interaction: LateInteractionConfig?
|
|
207
207
|
attr_reader preset: String?
|
|
208
208
|
attr_reader sizing: ChunkSizing
|
|
209
209
|
attr_reader topic_threshold: Float?
|
|
210
|
-
attr_reader table_chunking:
|
|
210
|
+
attr_reader table_chunking: enum_TableChunkingMode
|
|
211
211
|
|
|
212
|
-
def initialize: (?max_characters: Integer, ?overlap: Integer, ?trim: bool, ?chunker_type:
|
|
212
|
+
def initialize: (?max_characters: Integer, ?overlap: Integer, ?trim: bool, ?chunker_type: enum_ChunkerType, ?embedding: EmbeddingConfig, ?sparse_embedding: SparseEmbeddingConfig, ?late_interaction: LateInteractionConfig, ?preset: String, ?sizing: ChunkSizing, ?topic_threshold: Float, ?table_chunking: enum_TableChunkingMode) -> void
|
|
213
213
|
end
|
|
214
214
|
|
|
215
215
|
class Citation
|
|
@@ -259,7 +259,7 @@ def initialize: (text: String, context_path: Array[String], node_types: Array[St
|
|
|
259
259
|
end
|
|
260
260
|
|
|
261
261
|
class CodeDataNode
|
|
262
|
-
attr_reader kind:
|
|
262
|
+
attr_reader kind: enum_CodeDataNodeKind
|
|
263
263
|
attr_reader key: String?
|
|
264
264
|
attr_reader value: String?
|
|
265
265
|
attr_reader attributes: Array[CodeDataAttribute]
|
|
@@ -267,7 +267,7 @@ def initialize: (text: String, context_path: Array[String], node_types: Array[St
|
|
|
267
267
|
attr_reader byte_start: Integer
|
|
268
268
|
attr_reader byte_end: Integer
|
|
269
269
|
|
|
270
|
-
def initialize: (kind:
|
|
270
|
+
def initialize: (kind: enum_CodeDataNodeKind, ?key: String, ?value: String, attributes: Array[CodeDataAttribute], children: Array[CodeDataNode], byte_start: Integer, byte_end: Integer) -> void
|
|
271
271
|
end
|
|
272
272
|
|
|
273
273
|
class CodeMetadata
|
|
@@ -279,8 +279,9 @@ def initialize: (?chunks: Array[CodeChunkInfo], ?data: CodeDataNode) -> void
|
|
|
279
279
|
|
|
280
280
|
class ConcurrencyConfig
|
|
281
281
|
attr_reader max_threads: Integer?
|
|
282
|
+
attr_reader max_concurrent_ocr: Integer?
|
|
282
283
|
|
|
283
|
-
def initialize: (?max_threads: Integer) -> void
|
|
284
|
+
def initialize: (?max_threads: Integer, ?max_concurrent_ocr: Integer) -> void
|
|
284
285
|
end
|
|
285
286
|
|
|
286
287
|
class ContentConfig
|
|
@@ -318,8 +319,8 @@ def initialize: (?output_format: String, ?preprocessing_preset: String, ?remove_
|
|
|
318
319
|
end
|
|
319
320
|
|
|
320
321
|
class ConversionOptions
|
|
321
|
-
attr_reader heading_style:
|
|
322
|
-
attr_reader list_indent_type:
|
|
322
|
+
attr_reader heading_style: enum_HeadingStyle
|
|
323
|
+
attr_reader list_indent_type: enum_ListIndentType
|
|
323
324
|
attr_reader list_indent_width: Integer
|
|
324
325
|
attr_reader bullets: String
|
|
325
326
|
attr_reader strong_em_symbol: String
|
|
@@ -332,17 +333,17 @@ def initialize: (?output_format: String, ?preprocessing_preset: String, ?remove_
|
|
|
332
333
|
attr_reader default_title: bool
|
|
333
334
|
attr_reader br_in_tables: bool
|
|
334
335
|
attr_reader compact_tables: bool
|
|
335
|
-
attr_reader highlight_style:
|
|
336
|
+
attr_reader highlight_style: enum_HighlightStyle
|
|
336
337
|
attr_reader extract_metadata: bool
|
|
337
|
-
attr_reader whitespace_mode:
|
|
338
|
+
attr_reader whitespace_mode: enum_WhitespaceMode
|
|
338
339
|
attr_reader strip_newlines: bool
|
|
339
340
|
attr_reader wrap: bool
|
|
340
341
|
attr_reader wrap_width: Integer
|
|
341
342
|
attr_reader convert_as_inline: bool
|
|
342
343
|
attr_reader sub_symbol: String
|
|
343
344
|
attr_reader sup_symbol: String
|
|
344
|
-
attr_reader newline_style:
|
|
345
|
-
attr_reader code_block_style:
|
|
345
|
+
attr_reader newline_style: enum_NewlineStyle
|
|
346
|
+
attr_reader code_block_style: enum_CodeBlockStyle
|
|
346
347
|
attr_reader keep_inline_images_in: Array[String]
|
|
347
348
|
attr_reader preprocessing: PreprocessingOptions
|
|
348
349
|
attr_reader encoding: String
|
|
@@ -350,9 +351,9 @@ def initialize: (?output_format: String, ?preprocessing_preset: String, ?remove_
|
|
|
350
351
|
attr_reader strip_tags: Array[String]
|
|
351
352
|
attr_reader preserve_tags: Array[String]
|
|
352
353
|
attr_reader skip_images: bool
|
|
353
|
-
attr_reader url_escape_style:
|
|
354
|
-
attr_reader link_style:
|
|
355
|
-
attr_reader output_format:
|
|
354
|
+
attr_reader url_escape_style: enum_UrlEscapeStyle
|
|
355
|
+
attr_reader link_style: enum_LinkStyle
|
|
356
|
+
attr_reader output_format: enum_HtmlToMarkdownRsOutputFormat
|
|
356
357
|
attr_reader include_document_structure: bool
|
|
357
358
|
attr_reader extract_images: bool
|
|
358
359
|
attr_reader max_image_size: Integer
|
|
@@ -360,9 +361,9 @@ def initialize: (?output_format: String, ?preprocessing_preset: String, ?remove_
|
|
|
360
361
|
attr_reader infer_dimensions: bool
|
|
361
362
|
attr_reader max_depth: Integer?
|
|
362
363
|
attr_reader exclude_selectors: Array[String]
|
|
363
|
-
attr_reader tier_strategy:
|
|
364
|
+
attr_reader tier_strategy: enum_TierStrategy
|
|
364
365
|
|
|
365
|
-
def initialize: (?heading_style:
|
|
366
|
+
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, ?url_escape_style: enum_UrlEscapeStyle, ?link_style: enum_LinkStyle, ?output_format: enum_HtmlToMarkdownRsOutputFormat, ?include_document_structure: bool, ?extract_images: bool, ?max_image_size: Integer, ?capture_svg: bool, ?infer_dimensions: bool, ?max_depth: Integer, ?exclude_selectors: Array[String], ?tier_strategy: enum_TierStrategy) -> void
|
|
366
367
|
end
|
|
367
368
|
|
|
368
369
|
class CoreProperties
|
|
@@ -390,8 +391,8 @@ def initialize: (?heading_style: HeadingStyle, ?list_indent_type: ListIndentType
|
|
|
390
391
|
attr_reader max_pages: Integer?
|
|
391
392
|
attr_reader max_links_per_page: Integer?
|
|
392
393
|
attr_reader max_concurrent: Integer?
|
|
393
|
-
attr_reader crawl_strategy:
|
|
394
|
-
attr_reader content_filter:
|
|
394
|
+
attr_reader crawl_strategy: enum_CrawlStrategyKind
|
|
395
|
+
attr_reader content_filter: enum_ContentFilterKind?
|
|
395
396
|
attr_reader bm25_query: String?
|
|
396
397
|
attr_reader bm25_threshold: Float?
|
|
397
398
|
attr_reader respect_robots_txt: bool
|
|
@@ -415,7 +416,7 @@ def initialize: (?heading_style: HeadingStyle, ?list_indent_type: ListIndentType
|
|
|
415
416
|
attr_reader map_limit: Integer?
|
|
416
417
|
attr_reader map_search: String?
|
|
417
418
|
attr_reader download_assets: bool
|
|
418
|
-
attr_reader asset_types: Array[
|
|
419
|
+
attr_reader asset_types: Array[enum_AssetCategory]
|
|
419
420
|
attr_reader max_asset_size: Integer?
|
|
420
421
|
attr_reader browser: BrowserConfig
|
|
421
422
|
attr_reader proxy: ProxyConfig?
|
|
@@ -427,14 +428,14 @@ def initialize: (?heading_style: HeadingStyle, ?list_indent_type: ListIndentType
|
|
|
427
428
|
attr_reader document_max_size: Integer?
|
|
428
429
|
attr_reader document_mime_types: Array[String]
|
|
429
430
|
attr_reader document_output_dir: String?
|
|
430
|
-
attr_reader document_content_encoding:
|
|
431
|
+
attr_reader document_content_encoding: enum_DocumentContentEncoding?
|
|
431
432
|
attr_reader warc_output: String?
|
|
432
433
|
attr_reader browser_profile: String?
|
|
433
434
|
attr_reader save_browser_profile: bool
|
|
434
435
|
attr_reader ssrf: SsrfPolicy
|
|
435
436
|
attr_reader ssrf_deny_private_explicit: bool?
|
|
436
437
|
|
|
437
|
-
def initialize: (?max_depth: Integer, ?max_pages: Integer, ?max_links_per_page: Integer, ?max_concurrent: Integer, ?crawl_strategy:
|
|
438
|
+
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], ?custom_headers: Hash[String, String], ?request_timeout: Integer, ?rate_limit_ms: Integer, ?max_redirects: Integer, ?retry_count: Integer, ?retry_codes: Array[Integer], ?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
|
|
438
439
|
end
|
|
439
440
|
|
|
440
441
|
class CsvConfig
|
|
@@ -471,10 +472,14 @@ def initialize: (?record_count: Integer, ?field_count: Integer, ?fields: Array[D
|
|
|
471
472
|
|
|
472
473
|
class DeepseekOcrBackendOptions
|
|
473
474
|
attr_reader model_path: String?
|
|
474
|
-
attr_reader
|
|
475
|
+
attr_reader model_id: String?
|
|
476
|
+
attr_reader hf_revision: String?
|
|
477
|
+
attr_reader cache_dir: String?
|
|
478
|
+
attr_reader device: enum_CandleDevicePreference?
|
|
475
479
|
attr_reader version: Integer?
|
|
480
|
+
attr_reader dtype: enum_CandleDeepseekOcrDtype?
|
|
476
481
|
|
|
477
|
-
def initialize: (?model_path: String, ?device:
|
|
482
|
+
def initialize: (?model_path: String, ?model_id: String, ?hf_revision: String, ?cache_dir: String, ?device: enum_CandleDevicePreference, ?version: Integer, ?dtype: enum_CandleDeepseekOcrDtype) -> void
|
|
478
483
|
end
|
|
479
484
|
|
|
480
485
|
class DetectResponse
|
|
@@ -550,10 +555,10 @@ def initialize: (plain_text: String, blocks: Array[FormattedBlock], metadata: Me
|
|
|
550
555
|
|
|
551
556
|
class DoctorCheck
|
|
552
557
|
attr_reader name: String
|
|
553
|
-
attr_reader status:
|
|
558
|
+
attr_reader status: enum_ProbeStatus
|
|
554
559
|
attr_reader message: String
|
|
555
560
|
|
|
556
|
-
def initialize: (name: String, status:
|
|
561
|
+
def initialize: (name: String, status: enum_ProbeStatus, message: String) -> void
|
|
557
562
|
end
|
|
558
563
|
|
|
559
564
|
class DoctorReport
|
|
@@ -567,9 +572,9 @@ def initialize: (?checks: Array[DoctorCheck]) -> void
|
|
|
567
572
|
attr_reader start_page: Integer
|
|
568
573
|
attr_reader end_page: Integer
|
|
569
574
|
attr_reader confidence: Float
|
|
570
|
-
attr_reader reason:
|
|
575
|
+
attr_reader reason: enum_BoundaryReason
|
|
571
576
|
|
|
572
|
-
def initialize: (start_page: Integer, end_page: Integer, confidence: Float, reason:
|
|
577
|
+
def initialize: (start_page: Integer, end_page: Integer, confidence: Float, reason: enum_BoundaryReason) -> void
|
|
573
578
|
end
|
|
574
579
|
|
|
575
580
|
class DocumentCounts
|
|
@@ -596,33 +601,33 @@ def initialize: (?checks: Array[DoctorCheck]) -> void
|
|
|
596
601
|
attr_reader content: NodeContent
|
|
597
602
|
attr_reader parent: Integer?
|
|
598
603
|
attr_reader children: Array[Integer]
|
|
599
|
-
attr_reader content_layer:
|
|
604
|
+
attr_reader content_layer: enum_ContentLayer
|
|
600
605
|
attr_reader page: Integer?
|
|
601
606
|
attr_reader page_end: Integer?
|
|
602
607
|
attr_reader bbox: BoundingBox?
|
|
603
608
|
attr_reader annotations: Array[TextAnnotation]
|
|
604
609
|
attr_reader attributes: Hash[String, String]?
|
|
605
610
|
|
|
606
|
-
def initialize: (id: String, content: NodeContent, ?parent: Integer, children: Array[Integer], content_layer:
|
|
611
|
+
def initialize: (id: String, content: NodeContent, ?parent: Integer, children: Array[Integer], content_layer: enum_ContentLayer, ?page: Integer, ?page_end: Integer, ?bbox: BoundingBox, annotations: Array[TextAnnotation], ?attributes: Hash[String, String]) -> void
|
|
607
612
|
end
|
|
608
613
|
|
|
609
614
|
class DocumentRelationship
|
|
610
615
|
attr_reader source: Integer
|
|
611
616
|
attr_reader target: Integer
|
|
612
|
-
attr_reader kind:
|
|
617
|
+
attr_reader kind: enum_RelationshipKind
|
|
613
618
|
|
|
614
|
-
def initialize: (source: Integer, target: Integer, kind:
|
|
619
|
+
def initialize: (source: Integer, target: Integer, kind: enum_RelationshipKind) -> void
|
|
615
620
|
end
|
|
616
621
|
|
|
617
622
|
class DocumentRevision
|
|
618
623
|
attr_reader revision_id: String
|
|
619
624
|
attr_reader author: String?
|
|
620
625
|
attr_reader timestamp: String?
|
|
621
|
-
attr_reader kind:
|
|
626
|
+
attr_reader kind: enum_RevisionKind
|
|
622
627
|
attr_reader anchor: RevisionAnchor?
|
|
623
628
|
attr_reader delta: RevisionDelta
|
|
624
629
|
|
|
625
|
-
def initialize: (revision_id: String, ?author: String, ?timestamp: String, kind:
|
|
630
|
+
def initialize: (revision_id: String, ?author: String, ?timestamp: String, kind: enum_RevisionKind, ?anchor: RevisionAnchor, delta: RevisionDelta) -> void
|
|
626
631
|
end
|
|
627
632
|
|
|
628
633
|
class DocumentStructure
|
|
@@ -638,10 +643,10 @@ def initialize: (?nodes: Array[DocumentNode], ?source_format: String, ?relations
|
|
|
638
643
|
|
|
639
644
|
class DocumentSummary
|
|
640
645
|
attr_reader text: String
|
|
641
|
-
attr_reader strategy:
|
|
646
|
+
attr_reader strategy: enum_SummaryStrategy
|
|
642
647
|
attr_reader token_count: Integer?
|
|
643
648
|
|
|
644
|
-
def initialize: (text: String, strategy:
|
|
649
|
+
def initialize: (text: String, strategy: enum_SummaryStrategy, ?token_count: Integer) -> void
|
|
645
650
|
end
|
|
646
651
|
|
|
647
652
|
class DocxAppProperties
|
|
@@ -675,11 +680,11 @@ def initialize: (?core_properties: CoreProperties, ?app_properties: DocxAppPrope
|
|
|
675
680
|
|
|
676
681
|
class Element
|
|
677
682
|
attr_reader element_id: String
|
|
678
|
-
attr_reader element_type:
|
|
683
|
+
attr_reader element_type: enum_ElementType
|
|
679
684
|
attr_reader text: String
|
|
680
685
|
attr_reader metadata: ElementMetadata
|
|
681
686
|
|
|
682
|
-
def initialize: (element_id: String, element_type:
|
|
687
|
+
def initialize: (element_id: String, element_type: enum_ElementType, text: String, metadata: ElementMetadata) -> void
|
|
683
688
|
end
|
|
684
689
|
|
|
685
690
|
class ElementMetadata
|
|
@@ -830,21 +835,21 @@ def initialize: (sheets: Array[ExcelSheet], metadata: Hash[String, String], ?rev
|
|
|
830
835
|
end
|
|
831
836
|
|
|
832
837
|
class ExtractInput
|
|
833
|
-
attr_reader kind:
|
|
838
|
+
attr_reader kind: enum_ExtractInputKind
|
|
834
839
|
attr_reader bytes: String?
|
|
835
840
|
attr_reader uri: String?
|
|
836
841
|
attr_reader mime_type: String?
|
|
837
842
|
attr_reader filename: String?
|
|
838
843
|
attr_reader config: FileExtractionConfig?
|
|
839
844
|
|
|
840
|
-
def initialize: (?kind:
|
|
845
|
+
def initialize: (?kind: enum_ExtractInputKind, ?bytes: String, ?uri: String, ?mime_type: String, ?filename: String, ?config: FileExtractionConfig) -> void
|
|
841
846
|
end
|
|
842
847
|
|
|
843
848
|
class ExtractedDocument
|
|
844
849
|
attr_reader content: String
|
|
845
850
|
attr_reader mime_type: String
|
|
846
851
|
attr_reader metadata: Metadata
|
|
847
|
-
attr_reader extraction_method:
|
|
852
|
+
attr_reader extraction_method: enum_ExtractionMethod?
|
|
848
853
|
attr_reader tables: Array[Table]
|
|
849
854
|
attr_reader counts: DocumentCounts
|
|
850
855
|
attr_reader detected_languages: Array[String]?
|
|
@@ -875,7 +880,7 @@ def initialize: (sheets: Array[ExcelSheet], metadata: Hash[String, String], ?rev
|
|
|
875
880
|
attr_reader formulas: Array[Formula]
|
|
876
881
|
attr_reader form_fields: Array[PdfFormField]
|
|
877
882
|
|
|
878
|
-
def initialize: (?content: String, ?mime_type: String, ?metadata: Metadata, ?extraction_method:
|
|
883
|
+
def initialize: (?content: String, ?mime_type: String, ?metadata: Metadata, ?extraction_method: enum_ExtractionMethod, ?tables: Array[Table], ?counts: DocumentCounts, ?detected_languages: Array[String], ?detected_language_confidences: Array[LanguageConfidence], ?chunks: Array[Chunk], ?images: Array[ExtractedImage], ?pages: Array[PageContent], ?elements: Array[Element], ?djot_content: DjotContent, ?ocr_elements: Array[OcrElement], ?document: DocumentStructure, ?extracted_keywords: Array[Keyword], ?quality_score: Float, ?processing_warnings: Array[ProcessingWarning], ?annotations: Array[PdfAnnotation], ?children: Array[ArchiveEntry], ?uris: Array[ExtractedUri], ?revisions: Array[DocumentRevision], ?structured_output: String, ?code_intelligence: String, ?llm_usage: Array[LlmUsage], ?entities: Array[Entity], ?summary: DocumentSummary, ?extraction_confidence: ExtractionConfidence, ?translation: Translation, ?page_classifications: Array[PageClassification], ?redaction_report: RedactionReport, ?formulas: Array[Formula], ?form_fields: Array[PdfFormField]) -> void
|
|
879
884
|
end
|
|
880
885
|
|
|
881
886
|
class ExtractedImage
|
|
@@ -892,36 +897,36 @@ def initialize: (?content: String, ?mime_type: String, ?metadata: Metadata, ?ext
|
|
|
892
897
|
attr_reader ocr_result: ExtractedDocument?
|
|
893
898
|
attr_reader bounding_box: BoundingBox?
|
|
894
899
|
attr_reader source_path: String?
|
|
895
|
-
attr_reader image_kind:
|
|
900
|
+
attr_reader image_kind: enum_ImageKind?
|
|
896
901
|
attr_reader kind_confidence: Float?
|
|
897
902
|
attr_reader cluster_id: Integer?
|
|
898
903
|
attr_reader caption: String?
|
|
899
904
|
attr_reader qr_codes: Array[QrCode]?
|
|
900
905
|
attr_reader data_base64: String?
|
|
901
906
|
|
|
902
|
-
def initialize: (?data: String, ?format: String, ?image_index: Integer, ?page_number: Integer, ?width: Integer, ?height: Integer, ?colorspace: String, ?bits_per_component: Integer, ?is_mask: bool, ?description: String, ?ocr_result: ExtractedDocument, ?bounding_box: BoundingBox, ?source_path: String, ?image_kind:
|
|
907
|
+
def initialize: (?data: String, ?format: String, ?image_index: Integer, ?page_number: Integer, ?width: Integer, ?height: Integer, ?colorspace: String, ?bits_per_component: Integer, ?is_mask: bool, ?description: String, ?ocr_result: ExtractedDocument, ?bounding_box: BoundingBox, ?source_path: String, ?image_kind: enum_ImageKind, ?kind_confidence: Float, ?cluster_id: Integer, ?caption: String, ?qr_codes: Array[QrCode], ?data_base64: String) -> void
|
|
903
908
|
end
|
|
904
909
|
|
|
905
910
|
class ExtractedUri
|
|
906
911
|
attr_reader url: String
|
|
907
912
|
attr_reader label: String?
|
|
908
913
|
attr_reader page: Integer?
|
|
909
|
-
attr_reader kind:
|
|
914
|
+
attr_reader kind: enum_UriKind
|
|
910
915
|
|
|
911
|
-
def initialize: (url: String, ?label: String, ?page: Integer, kind:
|
|
916
|
+
def initialize: (url: String, ?label: String, ?page: Integer, kind: enum_UriKind) -> void
|
|
912
917
|
end
|
|
913
918
|
|
|
914
919
|
class ExtractionConfidence
|
|
915
920
|
attr_reader text_coverage: Float
|
|
916
921
|
attr_reader ocr_aggregate: Float?
|
|
917
|
-
attr_reader schema_compliance:
|
|
922
|
+
attr_reader schema_compliance: enum_SchemaCompliance
|
|
918
923
|
attr_reader combined: Float
|
|
919
924
|
|
|
920
|
-
def initialize: (text_coverage: Float, ?ocr_aggregate: Float, schema_compliance:
|
|
925
|
+
def initialize: (text_coverage: Float, ?ocr_aggregate: Float, schema_compliance: enum_SchemaCompliance, combined: Float) -> void
|
|
921
926
|
end
|
|
922
927
|
|
|
923
928
|
class ExtractionConfig
|
|
924
|
-
attr_reader mime_detection_policy:
|
|
929
|
+
attr_reader mime_detection_policy: enum_MimeDetectionPolicy
|
|
925
930
|
attr_reader use_cache: bool
|
|
926
931
|
attr_reader enable_quality_processing: bool
|
|
927
932
|
attr_reader ocr: OcrConfig?
|
|
@@ -942,13 +947,13 @@ def initialize: (?data: String, ?format: String, ?image_index: Integer, ?page_nu
|
|
|
942
947
|
attr_reader html_output: HtmlOutputConfig?
|
|
943
948
|
attr_reader extraction_timeout_secs: Integer?
|
|
944
949
|
attr_reader max_concurrent_extractions: Integer?
|
|
945
|
-
attr_reader result_format:
|
|
950
|
+
attr_reader result_format: enum_ResultFormat
|
|
946
951
|
attr_reader security_limits: SecurityLimits?
|
|
947
952
|
attr_reader max_embedded_file_bytes: Integer?
|
|
948
953
|
attr_reader output_format: OutputFormat
|
|
949
954
|
attr_reader escape_markdown: bool
|
|
950
955
|
attr_reader table_anchors: bool
|
|
951
|
-
attr_reader jupyter_cell_rendering:
|
|
956
|
+
attr_reader jupyter_cell_rendering: enum_JupyterCellRendering
|
|
952
957
|
attr_reader apply_notebook_cell_tags: bool
|
|
953
958
|
attr_reader layout: LayoutDetectionConfig?
|
|
954
959
|
attr_reader transcription: TranscriptionConfig?
|
|
@@ -974,9 +979,11 @@ def initialize: (?data: String, ?format: String, ?image_index: Integer, ?page_nu
|
|
|
974
979
|
attr_reader captioning: CaptioningConfig?
|
|
975
980
|
attr_reader qr_codes: bool?
|
|
976
981
|
|
|
977
|
-
def initialize: (?mime_detection_policy:
|
|
982
|
+
def initialize: (?mime_detection_policy: enum_MimeDetectionPolicy, ?use_cache: bool, ?enable_quality_processing: bool, ?ocr: OcrConfig, ?force_ocr: bool, ?ocr_strategy: OcrStrategy, ?force_ocr_pages: Array[Integer], ?disable_ocr: bool, ?chunking: ChunkingConfig, ?content_filter: ContentFilterConfig, ?images: ImageExtractionConfig, ?pdf_options: PdfConfig, ?token_reduction: TokenReductionOptions, ?language_detection: LanguageDetectionConfig, ?pages: PageConfig, ?keywords: KeywordConfig, ?postprocessor: PostProcessorConfig, ?html_options: ConversionOptions, ?html_output: HtmlOutputConfig, ?extraction_timeout_secs: Integer, ?max_concurrent_extractions: Integer, ?result_format: enum_ResultFormat, ?security_limits: SecurityLimits, ?max_embedded_file_bytes: Integer, ?output_format: OutputFormat, ?escape_markdown: bool, ?table_anchors: bool, ?jupyter_cell_rendering: enum_JupyterCellRendering, ?apply_notebook_cell_tags: bool, ?layout: LayoutDetectionConfig, ?transcription: TranscriptionConfig, ?use_layout_for_markdown: bool, ?include_document_structure: bool, ?acceleration: AccelerationConfig, ?cache_namespace: String, ?cache_ttl_secs: Integer, ?email: EmailConfig, ?csv: CsvConfig, ?geojson: GeoJsonExtractionConfig, ?concurrency: ConcurrencyConfig, ?url: UrlExtractionConfig, ?max_archive_depth: Integer, ?tree_sitter: TreeSitterConfig, ?structured_extraction: StructuredExtractionConfig, ?ner: NerConfig, ?redaction: RedactionConfig, ?summarization: SummarizationConfig, ?translation: TranslationConfig, ?page_classification: PageClassificationConfig, ?chunk_classification: ChunkClassificationConfig, ?captioning: CaptioningConfig, ?qr_codes: bool) -> void
|
|
978
983
|
def validate: () -> void
|
|
979
984
|
def needs_image_data: () -> bool
|
|
985
|
+
def runs_ocr_on_embedded_images: () -> bool
|
|
986
|
+
def wants_own_bytes_in_result: () -> bool
|
|
980
987
|
def needs_image_processing: () -> bool
|
|
981
988
|
end
|
|
982
989
|
|
|
@@ -1032,7 +1039,7 @@ def initialize: (?genres: Array[String], ?sequences: Array[String], ?annotation:
|
|
|
1032
1039
|
end
|
|
1033
1040
|
|
|
1034
1041
|
class FileExtractionConfig
|
|
1035
|
-
attr_reader mime_detection_policy:
|
|
1042
|
+
attr_reader mime_detection_policy: enum_MimeDetectionPolicy?
|
|
1036
1043
|
attr_reader enable_quality_processing: bool?
|
|
1037
1044
|
attr_reader ocr: OcrConfig?
|
|
1038
1045
|
attr_reader force_ocr: bool?
|
|
@@ -1050,7 +1057,7 @@ def initialize: (?genres: Array[String], ?sequences: Array[String], ?annotation:
|
|
|
1050
1057
|
attr_reader postprocessor: PostProcessorConfig?
|
|
1051
1058
|
attr_reader html_options: ConversionOptions?
|
|
1052
1059
|
attr_reader html_output: HtmlOutputConfig?
|
|
1053
|
-
attr_reader result_format:
|
|
1060
|
+
attr_reader result_format: enum_ResultFormat?
|
|
1054
1061
|
attr_reader output_format: OutputFormat?
|
|
1055
1062
|
attr_reader include_document_structure: bool?
|
|
1056
1063
|
attr_reader layout: LayoutDetectionConfig?
|
|
@@ -1068,7 +1075,7 @@ def initialize: (?genres: Array[String], ?sequences: Array[String], ?annotation:
|
|
|
1068
1075
|
attr_reader captioning: CaptioningConfig?
|
|
1069
1076
|
attr_reader qr_codes: bool?
|
|
1070
1077
|
|
|
1071
|
-
def initialize: (?mime_detection_policy:
|
|
1078
|
+
def initialize: (?mime_detection_policy: enum_MimeDetectionPolicy, ?enable_quality_processing: bool, ?ocr: OcrConfig, ?force_ocr: bool, ?ocr_strategy: OcrStrategy, ?force_ocr_pages: Array[Integer], ?disable_ocr: bool, ?chunking: ChunkingConfig, ?content_filter: ContentFilterConfig, ?images: ImageExtractionConfig, ?pdf_options: PdfConfig, ?token_reduction: TokenReductionOptions, ?language_detection: LanguageDetectionConfig, ?pages: PageConfig, ?keywords: KeywordConfig, ?postprocessor: PostProcessorConfig, ?html_options: ConversionOptions, ?html_output: HtmlOutputConfig, ?result_format: enum_ResultFormat, ?output_format: OutputFormat, ?include_document_structure: bool, ?layout: LayoutDetectionConfig, ?transcription: TranscriptionConfig, ?timeout_secs: Integer, ?tree_sitter: TreeSitterConfig, ?structured_extraction: StructuredExtractionConfig, ?url: UrlExtractionConfig, ?ner: NerConfig, ?redaction: RedactionConfig, ?summarization: SummarizationConfig, ?translation: TranslationConfig, ?page_classification: PageClassificationConfig, ?chunk_classification: ChunkClassificationConfig, ?captioning: CaptioningConfig, ?qr_codes: bool) -> void
|
|
1072
1079
|
end
|
|
1073
1080
|
|
|
1074
1081
|
class Footnote
|
|
@@ -1101,7 +1108,7 @@ def initialize: (label: String, content: Array[FormattedBlock]) -> void
|
|
|
1101
1108
|
end
|
|
1102
1109
|
|
|
1103
1110
|
class FormattedBlock
|
|
1104
|
-
attr_reader block_type:
|
|
1111
|
+
attr_reader block_type: enum_BlockType
|
|
1105
1112
|
attr_reader level: Integer?
|
|
1106
1113
|
attr_reader inline_content: Array[InlineElement]
|
|
1107
1114
|
attr_reader attributes: Attributes?
|
|
@@ -1109,7 +1116,7 @@ def initialize: (label: String, content: Array[FormattedBlock]) -> void
|
|
|
1109
1116
|
attr_reader code: String?
|
|
1110
1117
|
attr_reader children: Array[FormattedBlock]
|
|
1111
1118
|
|
|
1112
|
-
def initialize: (block_type:
|
|
1119
|
+
def initialize: (block_type: enum_BlockType, ?level: Integer, inline_content: Array[InlineElement], ?attributes: Attributes, ?language: String, ?code: String, children: Array[FormattedBlock]) -> void
|
|
1113
1120
|
end
|
|
1114
1121
|
|
|
1115
1122
|
class Formula
|
|
@@ -1127,13 +1134,13 @@ def initialize: (block_type: BlockType, ?level: Integer, inline_content: Array[I
|
|
|
1127
1134
|
end
|
|
1128
1135
|
|
|
1129
1136
|
class GlmOcrBackendOptions
|
|
1130
|
-
attr_reader task:
|
|
1131
|
-
attr_reader device:
|
|
1132
|
-
attr_reader layout_mode:
|
|
1137
|
+
attr_reader task: enum_GlmOcrTaskKind?
|
|
1138
|
+
attr_reader device: enum_CandleDevicePreference?
|
|
1139
|
+
attr_reader layout_mode: enum_GlmOcrLayoutMode?
|
|
1133
1140
|
attr_reader enable_chart_understanding: bool?
|
|
1134
1141
|
attr_reader cache_dir: String?
|
|
1135
1142
|
|
|
1136
|
-
def initialize: (?task:
|
|
1143
|
+
def initialize: (?task: enum_GlmOcrTaskKind, ?device: enum_CandleDevicePreference, ?layout_mode: enum_GlmOcrLayoutMode, ?enable_chart_understanding: bool, ?cache_dir: String) -> void
|
|
1137
1144
|
end
|
|
1138
1145
|
|
|
1139
1146
|
class GridCell
|
|
@@ -1224,7 +1231,7 @@ def initialize: (headings: Array[HeadingLevel]) -> void
|
|
|
1224
1231
|
attr_reader canonical_url: String?
|
|
1225
1232
|
attr_reader base_href: String?
|
|
1226
1233
|
attr_reader language: String?
|
|
1227
|
-
attr_reader text_direction:
|
|
1234
|
+
attr_reader text_direction: enum_TextDirection?
|
|
1228
1235
|
attr_reader open_graph: Hash[String, String]
|
|
1229
1236
|
attr_reader twitter_card: Hash[String, String]
|
|
1230
1237
|
attr_reader meta_tags: Hash[String, String]
|
|
@@ -1233,17 +1240,17 @@ def initialize: (headings: Array[HeadingLevel]) -> void
|
|
|
1233
1240
|
attr_reader images: Array[ImageMetadataType]
|
|
1234
1241
|
attr_reader structured_data: Array[StructuredData]
|
|
1235
1242
|
|
|
1236
|
-
def initialize: (?title: String, ?description: String, ?keywords: Array[String], ?author: String, ?canonical_url: String, ?base_href: String, ?language: String, ?text_direction:
|
|
1243
|
+
def initialize: (?title: String, ?description: String, ?keywords: Array[String], ?author: String, ?canonical_url: String, ?base_href: String, ?language: String, ?text_direction: enum_TextDirection, ?open_graph: Hash[String, String], ?twitter_card: Hash[String, String], ?meta_tags: Hash[String, String], ?headers: Array[HeaderMetadata], ?links: Array[LinkMetadata], ?images: Array[ImageMetadataType], ?structured_data: Array[StructuredData]) -> void
|
|
1237
1244
|
end
|
|
1238
1245
|
|
|
1239
1246
|
class HtmlOutputConfig
|
|
1240
1247
|
attr_reader css: String?
|
|
1241
1248
|
attr_reader css_file: String?
|
|
1242
|
-
attr_reader theme:
|
|
1249
|
+
attr_reader theme: enum_HtmlTheme
|
|
1243
1250
|
attr_reader class_prefix: String
|
|
1244
1251
|
attr_reader embed_css: bool
|
|
1245
1252
|
|
|
1246
|
-
def initialize: (?css: String, ?css_file: String, ?theme:
|
|
1253
|
+
def initialize: (?css: String, ?css_file: String, ?theme: enum_HtmlTheme, ?class_prefix: String, ?embed_css: bool) -> void
|
|
1247
1254
|
end
|
|
1248
1255
|
|
|
1249
1256
|
class ImageDimensions
|
|
@@ -1295,10 +1302,10 @@ def initialize: (?width: Integer, ?height: Integer, ?format: String, ?exif: Hash
|
|
|
1295
1302
|
attr_reader alt: String?
|
|
1296
1303
|
attr_reader title: String?
|
|
1297
1304
|
attr_reader dimensions: ImageDimensions?
|
|
1298
|
-
attr_reader image_type:
|
|
1305
|
+
attr_reader image_type: enum_ImageType
|
|
1299
1306
|
attr_reader attributes: Array[KeyValueAttribute]
|
|
1300
1307
|
|
|
1301
|
-
def initialize: (src: String, ?alt: String, ?title: String, ?dimensions: ImageDimensions, image_type:
|
|
1308
|
+
def initialize: (src: String, ?alt: String, ?title: String, ?dimensions: ImageDimensions, image_type: enum_ImageType, attributes: Array[KeyValueAttribute]) -> void
|
|
1302
1309
|
end
|
|
1303
1310
|
|
|
1304
1311
|
class ImagePreprocessingConfig
|
|
@@ -1331,12 +1338,12 @@ def initialize: (src: String, ?alt: String, ?title: String, ?dimensions: ImageDi
|
|
|
1331
1338
|
end
|
|
1332
1339
|
|
|
1333
1340
|
class InlineElement
|
|
1334
|
-
attr_reader element_type:
|
|
1341
|
+
attr_reader element_type: enum_InlineType
|
|
1335
1342
|
attr_reader content: String
|
|
1336
1343
|
attr_reader attributes: Attributes?
|
|
1337
1344
|
attr_reader metadata: Hash[String, String]?
|
|
1338
1345
|
|
|
1339
|
-
def initialize: (element_type:
|
|
1346
|
+
def initialize: (element_type: enum_InlineType, content: String, ?attributes: Attributes, ?metadata: Hash[String, String]) -> void
|
|
1340
1347
|
end
|
|
1341
1348
|
|
|
1342
1349
|
class JatsMetadata
|
|
@@ -1358,14 +1365,14 @@ def initialize: (?copyright: String, ?license: String, ?history_dates: Hash[Stri
|
|
|
1358
1365
|
class Keyword
|
|
1359
1366
|
attr_reader text: String
|
|
1360
1367
|
attr_reader score: Float
|
|
1361
|
-
attr_reader algorithm:
|
|
1368
|
+
attr_reader algorithm: enum_KeywordAlgorithm
|
|
1362
1369
|
attr_reader positions: Array[Integer]?
|
|
1363
1370
|
|
|
1364
|
-
def initialize: (text: String, score: Float, algorithm:
|
|
1371
|
+
def initialize: (text: String, score: Float, algorithm: enum_KeywordAlgorithm, ?positions: Array[Integer]) -> void
|
|
1365
1372
|
end
|
|
1366
1373
|
|
|
1367
1374
|
class KeywordConfig
|
|
1368
|
-
attr_reader algorithm:
|
|
1375
|
+
attr_reader algorithm: enum_KeywordAlgorithm
|
|
1369
1376
|
attr_reader max_keywords: Integer
|
|
1370
1377
|
attr_reader min_score: Float
|
|
1371
1378
|
attr_reader ngram_range: NgramRange
|
|
@@ -1373,7 +1380,7 @@ def initialize: (text: String, score: Float, algorithm: KeywordAlgorithm, ?posit
|
|
|
1373
1380
|
attr_reader yake_params: YakeParams?
|
|
1374
1381
|
attr_reader rake_params: RakeParams?
|
|
1375
1382
|
|
|
1376
|
-
def initialize: (?algorithm:
|
|
1383
|
+
def initialize: (?algorithm: enum_KeywordAlgorithm, ?max_keywords: Integer, ?min_score: Float, ?ngram_range: NgramRange, ?language: String, ?yake_params: YakeParams, ?rake_params: RakeParams) -> void
|
|
1377
1384
|
end
|
|
1378
1385
|
|
|
1379
1386
|
class LanguageConfidence
|
|
@@ -1428,24 +1435,24 @@ def initialize: (name: String, model_repo: String, model_file: String, additiona
|
|
|
1428
1435
|
end
|
|
1429
1436
|
|
|
1430
1437
|
class LayoutDetection
|
|
1431
|
-
attr_reader class_name:
|
|
1438
|
+
attr_reader class_name: enum_LayoutClass
|
|
1432
1439
|
attr_reader confidence: Float
|
|
1433
1440
|
attr_reader bbox: BBox
|
|
1434
1441
|
|
|
1435
|
-
def initialize: (class_name:
|
|
1442
|
+
def initialize: (class_name: enum_LayoutClass, confidence: Float, bbox: BBox) -> void
|
|
1436
1443
|
end
|
|
1437
1444
|
|
|
1438
1445
|
class LayoutDetectionConfig
|
|
1439
|
-
attr_reader strategy:
|
|
1446
|
+
attr_reader strategy: enum_LayoutStrategy
|
|
1440
1447
|
attr_reader confidence_threshold: Float?
|
|
1441
1448
|
attr_reader apply_heuristics: bool
|
|
1442
|
-
attr_reader table_model:
|
|
1443
|
-
attr_reader formula_model:
|
|
1444
|
-
attr_reader table_overlap_preference:
|
|
1449
|
+
attr_reader table_model: enum_TableModel
|
|
1450
|
+
attr_reader formula_model: enum_FormulaModel?
|
|
1451
|
+
attr_reader table_overlap_preference: enum_TableOverlapPreference
|
|
1445
1452
|
attr_reader acceleration: AccelerationConfig?
|
|
1446
1453
|
attr_reader enable_chart_understanding: bool
|
|
1447
1454
|
|
|
1448
|
-
def initialize: (?strategy:
|
|
1455
|
+
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
|
|
1449
1456
|
end
|
|
1450
1457
|
|
|
1451
1458
|
class LayoutRegion
|
|
@@ -1461,11 +1468,11 @@ def initialize: (name: String, model_repo: String, model_file: String, additiona
|
|
|
1461
1468
|
attr_reader href: String
|
|
1462
1469
|
attr_reader text: String
|
|
1463
1470
|
attr_reader title: String?
|
|
1464
|
-
attr_reader link_type:
|
|
1471
|
+
attr_reader link_type: enum_LinkType
|
|
1465
1472
|
attr_reader rel: Array[String]
|
|
1466
1473
|
attr_reader attributes: Array[KeyValueAttribute]
|
|
1467
1474
|
|
|
1468
|
-
def initialize: (href: String, text: String, ?title: String, link_type:
|
|
1475
|
+
def initialize: (href: String, text: String, ?title: String, link_type: enum_LinkType, rel: Array[String], attributes: Array[KeyValueAttribute]) -> void
|
|
1469
1476
|
end
|
|
1470
1477
|
|
|
1471
1478
|
class LlmBudgetConfig
|
|
@@ -1633,13 +1640,13 @@ def initialize: (page_count: Integer, pages: Array[PageSignals]) -> void
|
|
|
1633
1640
|
end
|
|
1634
1641
|
|
|
1635
1642
|
class NerConfig
|
|
1636
|
-
attr_reader backend:
|
|
1643
|
+
attr_reader backend: enum_NerBackendKind
|
|
1637
1644
|
attr_reader categories: Array[EntityCategory]
|
|
1638
1645
|
attr_reader model: String?
|
|
1639
1646
|
attr_reader llm: LlmConfig?
|
|
1640
1647
|
attr_reader custom_labels: Array[String]
|
|
1641
1648
|
|
|
1642
|
-
def initialize: (?backend:
|
|
1649
|
+
def initialize: (?backend: enum_NerBackendKind, ?categories: Array[EntityCategory], ?model: String, ?llm: LlmConfig, ?custom_labels: Array[String]) -> void
|
|
1643
1650
|
end
|
|
1644
1651
|
|
|
1645
1652
|
class NgramRange
|
|
@@ -1690,22 +1697,22 @@ def initialize: (?enabled: bool, ?backend: String, ?language: Array[String], ?te
|
|
|
1690
1697
|
attr_reader text: String
|
|
1691
1698
|
attr_reader geometry: OcrBoundingGeometry
|
|
1692
1699
|
attr_reader confidence: OcrConfidence
|
|
1693
|
-
attr_reader level:
|
|
1700
|
+
attr_reader level: enum_OcrElementLevel
|
|
1694
1701
|
attr_reader rotation: OcrRotation?
|
|
1695
1702
|
attr_reader page_number: Integer
|
|
1696
1703
|
attr_reader parent_id: String?
|
|
1697
1704
|
attr_reader backend_metadata: Hash[String, String]
|
|
1698
1705
|
|
|
1699
|
-
def initialize: (?text: String, ?geometry: OcrBoundingGeometry, ?confidence: OcrConfidence, ?level:
|
|
1706
|
+
def initialize: (?text: String, ?geometry: OcrBoundingGeometry, ?confidence: OcrConfidence, ?level: enum_OcrElementLevel, ?rotation: OcrRotation, ?page_number: Integer, ?parent_id: String, ?backend_metadata: Hash[String, String]) -> void
|
|
1700
1707
|
end
|
|
1701
1708
|
|
|
1702
1709
|
class OcrElementConfig
|
|
1703
1710
|
attr_reader include_elements: bool
|
|
1704
|
-
attr_reader min_level:
|
|
1711
|
+
attr_reader min_level: enum_OcrElementLevel
|
|
1705
1712
|
attr_reader min_confidence: Float
|
|
1706
1713
|
attr_reader build_hierarchy: bool
|
|
1707
1714
|
|
|
1708
|
-
def initialize: (?include_elements: bool, ?min_level:
|
|
1715
|
+
def initialize: (?include_elements: bool, ?min_level: enum_OcrElementLevel, ?min_confidence: Float, ?build_hierarchy: bool) -> void
|
|
1709
1716
|
end
|
|
1710
1717
|
|
|
1711
1718
|
class OcrExtractionResult
|
|
@@ -1780,8 +1787,10 @@ def initialize: (backend: String, priority: Integer, ?language: Array[String], ?
|
|
|
1780
1787
|
attr_reader min_undecodable_ratio: Float
|
|
1781
1788
|
attr_reader enable_provenance_ocr_routing: bool
|
|
1782
1789
|
attr_reader min_provenance_fallback_ratio: Float
|
|
1790
|
+
attr_reader enable_plausibility_ocr_routing: bool
|
|
1791
|
+
attr_reader min_reliable_language_chunk_ratio: Float
|
|
1783
1792
|
|
|
1784
|
-
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) -> void
|
|
1793
|
+
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
|
|
1785
1794
|
end
|
|
1786
1795
|
|
|
1787
1796
|
class OcrRotation
|
|
@@ -1830,9 +1839,9 @@ def initialize: (cells: Array[Array[String]], markdown: String, page_number: Int
|
|
|
1830
1839
|
attr_reader drop_score: Float
|
|
1831
1840
|
attr_reader model_tier: String
|
|
1832
1841
|
attr_reader model_version: String
|
|
1833
|
-
attr_reader inference_backend:
|
|
1842
|
+
attr_reader inference_backend: enum_PaddleInferenceBackend?
|
|
1834
1843
|
|
|
1835
|
-
def initialize: (?language: String, ?cache_dir: String, ?use_angle_cls: bool, ?enable_table_detection: bool, ?det_db_thresh: Float, ?det_db_box_thresh: Float, ?det_db_unclip_ratio: Float, ?det_limit_side_len: Integer, ?rec_batch_num: Integer, ?padding: Integer, ?drop_score: Float, ?model_tier: String, ?model_version: String, ?inference_backend:
|
|
1844
|
+
def initialize: (?language: String, ?cache_dir: String, ?use_angle_cls: bool, ?enable_table_detection: bool, ?det_db_thresh: Float, ?det_db_box_thresh: Float, ?det_db_unclip_ratio: Float, ?det_limit_side_len: Integer, ?rec_batch_num: Integer, ?padding: Integer, ?drop_score: Float, ?model_tier: String, ?model_version: String, ?inference_backend: enum_PaddleInferenceBackend) -> void
|
|
1836
1845
|
def with_cache_dir: (String path) -> PaddleOcrConfig
|
|
1837
1846
|
def with_table_detection: (bool enable) -> PaddleOcrConfig
|
|
1838
1847
|
def with_angle_cls: (bool enable) -> PaddleOcrConfig
|
|
@@ -1848,14 +1857,14 @@ def initialize: (cells: Array[Array[String]], markdown: String, page_number: Int
|
|
|
1848
1857
|
end
|
|
1849
1858
|
|
|
1850
1859
|
class PaddleOcrVlBackendOptions
|
|
1851
|
-
attr_reader task:
|
|
1860
|
+
attr_reader task: enum_PaddleOcrVlTaskKind?
|
|
1852
1861
|
attr_reader model_path: String?
|
|
1853
1862
|
attr_reader model_id: String?
|
|
1854
1863
|
attr_reader hf_revision: String?
|
|
1855
1864
|
attr_reader cache_dir: String?
|
|
1856
|
-
attr_reader device:
|
|
1865
|
+
attr_reader device: enum_CandleDevicePreference?
|
|
1857
1866
|
|
|
1858
|
-
def initialize: (?task:
|
|
1867
|
+
def initialize: (?task: enum_PaddleOcrVlTaskKind, ?model_path: String, ?model_id: String, ?hf_revision: String, ?cache_dir: String, ?device: enum_CandleDevicePreference) -> void
|
|
1859
1868
|
end
|
|
1860
1869
|
|
|
1861
1870
|
class PageBoundary
|
|
@@ -1970,11 +1979,11 @@ def initialize: (block_count: Integer, blocks: Array[HierarchicalBlock]) -> void
|
|
|
1970
1979
|
|
|
1971
1980
|
class PageStructure
|
|
1972
1981
|
attr_reader total_count: Integer
|
|
1973
|
-
attr_reader unit_type:
|
|
1982
|
+
attr_reader unit_type: enum_PageUnitType
|
|
1974
1983
|
attr_reader boundaries: Array[PageBoundary]?
|
|
1975
1984
|
attr_reader pages: Array[PageInfo]?
|
|
1976
1985
|
|
|
1977
|
-
def initialize: (total_count: Integer, unit_type:
|
|
1986
|
+
def initialize: (total_count: Integer, unit_type: enum_PageUnitType, ?boundaries: Array[PageBoundary], ?pages: Array[PageInfo]) -> void
|
|
1978
1987
|
end
|
|
1979
1988
|
|
|
1980
1989
|
class PatternMatch
|
|
@@ -1987,7 +1996,7 @@ def initialize: (total_count: Integer, unit_type: PageUnitType, ?boundaries: Arr
|
|
|
1987
1996
|
end
|
|
1988
1997
|
|
|
1989
1998
|
class PdfAnnotation
|
|
1990
|
-
attr_reader annotation_type:
|
|
1999
|
+
attr_reader annotation_type: enum_PdfAnnotationType
|
|
1991
2000
|
attr_reader content: String?
|
|
1992
2001
|
attr_reader page_number: Integer
|
|
1993
2002
|
attr_reader bounding_box: BoundingBox?
|
|
@@ -1998,7 +2007,7 @@ def initialize: (total_count: Integer, unit_type: PageUnitType, ?boundaries: Arr
|
|
|
1998
2007
|
attr_reader quad_points: Array[BoundingBox]?
|
|
1999
2008
|
attr_reader marked_text: String?
|
|
2000
2009
|
|
|
2001
|
-
def initialize: (annotation_type:
|
|
2010
|
+
def initialize: (annotation_type: enum_PdfAnnotationType, ?content: String, page_number: Integer, ?bounding_box: BoundingBox, ?author: String, ?modified: String, ?color: String, ?subject: String, ?quad_points: Array[BoundingBox], ?marked_text: String) -> void
|
|
2002
2011
|
end
|
|
2003
2012
|
|
|
2004
2013
|
class PdfConfig
|
|
@@ -2014,16 +2023,16 @@ def initialize: (annotation_type: PdfAnnotationType, ?content: String, page_numb
|
|
|
2014
2023
|
attr_reader ocr_inline_images: bool
|
|
2015
2024
|
attr_reader extract_form_fields: bool
|
|
2016
2025
|
attr_reader reading_order: bool
|
|
2017
|
-
attr_reader backend:
|
|
2026
|
+
attr_reader backend: enum_PdfBackend
|
|
2018
2027
|
|
|
2019
|
-
def initialize: (?extract_images: bool, ?extract_tables: bool, ?passwords: Array[String], ?extract_metadata: bool, ?hierarchy: HierarchyConfig, ?extract_annotations: bool, ?top_margin_fraction: Float, ?bottom_margin_fraction: Float, ?allow_single_column_tables: bool, ?ocr_inline_images: bool, ?extract_form_fields: bool, ?reading_order: bool, ?backend:
|
|
2028
|
+
def initialize: (?extract_images: bool, ?extract_tables: bool, ?passwords: Array[String], ?extract_metadata: bool, ?hierarchy: HierarchyConfig, ?extract_annotations: bool, ?top_margin_fraction: Float, ?bottom_margin_fraction: Float, ?allow_single_column_tables: bool, ?ocr_inline_images: bool, ?extract_form_fields: bool, ?reading_order: bool, ?backend: enum_PdfBackend) -> void
|
|
2020
2029
|
def validate: () -> void
|
|
2021
2030
|
end
|
|
2022
2031
|
|
|
2023
2032
|
class PdfFormField
|
|
2024
2033
|
attr_reader name: String
|
|
2025
2034
|
attr_reader full_name: String
|
|
2026
|
-
attr_reader field_type:
|
|
2035
|
+
attr_reader field_type: enum_FormFieldType
|
|
2027
2036
|
attr_reader value: String?
|
|
2028
2037
|
attr_reader default_value: String?
|
|
2029
2038
|
attr_reader flags: Integer
|
|
@@ -2032,7 +2041,7 @@ def initialize: (?extract_images: bool, ?extract_tables: bool, ?passwords: Array
|
|
|
2032
2041
|
attr_reader max_length: Integer?
|
|
2033
2042
|
attr_reader tooltip: String?
|
|
2034
2043
|
|
|
2035
|
-
def initialize: (name: String, full_name: String, field_type:
|
|
2044
|
+
def initialize: (name: String, full_name: String, field_type: enum_FormFieldType, ?value: String, ?default_value: String, flags: Integer, ?page: Integer, ?bbox: BoundingBox, ?max_length: Integer, ?tooltip: String) -> void
|
|
2036
2045
|
end
|
|
2037
2046
|
|
|
2038
2047
|
class PdfMetadata
|
|
@@ -2044,10 +2053,12 @@ def initialize: (?extract_images: bool, ?extract_tables: bool, ?passwords: Array
|
|
|
2044
2053
|
attr_reader page_count: Integer?
|
|
2045
2054
|
attr_reader scanned_confidence: Float?
|
|
2046
2055
|
attr_reader scanned_pages: Array[Integer]?
|
|
2056
|
+
attr_reader fabricated_text_pages: Array[Integer]?
|
|
2057
|
+
attr_reader implausible_text_pages: Array[Integer]?
|
|
2047
2058
|
attr_reader layout_gated_pages: Array[Integer]?
|
|
2048
2059
|
attr_reader layout_gate_reasons: Array[String]?
|
|
2049
2060
|
|
|
2050
|
-
def initialize: (?pdf_version: String, ?producer: String, ?is_encrypted: bool, ?width: Integer, ?height: Integer, ?page_count: Integer, ?scanned_confidence: Float, ?scanned_pages: Array[Integer], ?layout_gated_pages: Array[Integer], ?layout_gate_reasons: Array[String]) -> void
|
|
2061
|
+
def initialize: (?pdf_version: String, ?producer: String, ?is_encrypted: bool, ?width: Integer, ?height: Integer, ?page_count: Integer, ?scanned_confidence: Float, ?scanned_pages: Array[Integer], ?fabricated_text_pages: Array[Integer], ?implausible_text_pages: Array[Integer], ?layout_gated_pages: Array[Integer], ?layout_gate_reasons: Array[String]) -> void
|
|
2051
2062
|
end
|
|
2052
2063
|
|
|
2053
2064
|
class PixelDimensions
|
|
@@ -2115,11 +2126,11 @@ def initialize: (?slide_count: Integer, ?slide_names: Array[String], ?image_coun
|
|
|
2115
2126
|
|
|
2116
2127
|
class PreprocessingOptions
|
|
2117
2128
|
attr_reader enabled: bool
|
|
2118
|
-
attr_reader preset:
|
|
2129
|
+
attr_reader preset: enum_PreprocessingPreset
|
|
2119
2130
|
attr_reader remove_navigation: bool
|
|
2120
2131
|
attr_reader remove_forms: bool
|
|
2121
2132
|
|
|
2122
|
-
def initialize: (?enabled: bool, ?preset:
|
|
2133
|
+
def initialize: (?enabled: bool, ?preset: enum_PreprocessingPreset, ?remove_navigation: bool, ?remove_forms: bool) -> void
|
|
2123
2134
|
end
|
|
2124
2135
|
|
|
2125
2136
|
class PresentationHyperlink
|
|
@@ -2134,18 +2145,18 @@ def initialize: (?slide_count: Integer, ?slide_names: Array[String], ?image_coun
|
|
|
2134
2145
|
attr_reader version: String
|
|
2135
2146
|
attr_reader schema_name: String
|
|
2136
2147
|
attr_reader description: String
|
|
2137
|
-
attr_reader category:
|
|
2148
|
+
attr_reader category: enum_PresetCategory
|
|
2138
2149
|
attr_reader tags: Array[String]
|
|
2139
2150
|
attr_reader schema: String
|
|
2140
2151
|
attr_reader system_prompt: String
|
|
2141
2152
|
attr_reader context_template: String?
|
|
2142
|
-
attr_reader merge_mode:
|
|
2143
|
-
attr_reader preferred_call_mode:
|
|
2153
|
+
attr_reader merge_mode: enum_MergeMode
|
|
2154
|
+
attr_reader preferred_call_mode: enum_CallMode
|
|
2144
2155
|
attr_reader emit_citations: bool
|
|
2145
2156
|
attr_reader sample: PresetSample?
|
|
2146
2157
|
attr_reader fingerprint: String
|
|
2147
2158
|
|
|
2148
|
-
def initialize: (id: String, version: String, schema_name: String, description: String, category:
|
|
2159
|
+
def initialize: (id: String, version: String, schema_name: String, description: String, category: enum_PresetCategory, tags: Array[String], schema: String, system_prompt: String, ?context_template: String, merge_mode: enum_MergeMode, preferred_call_mode: enum_CallMode, emit_citations: bool, ?sample: PresetSample, fingerprint: String) -> void
|
|
2149
2160
|
end
|
|
2150
2161
|
|
|
2151
2162
|
class PresetSample
|
|
@@ -2160,13 +2171,13 @@ def initialize: (id: String, version: String, schema_name: String, description:
|
|
|
2160
2171
|
attr_reader version: String
|
|
2161
2172
|
attr_reader schema_name: String
|
|
2162
2173
|
attr_reader description: String
|
|
2163
|
-
attr_reader category:
|
|
2174
|
+
attr_reader category: enum_PresetCategory
|
|
2164
2175
|
attr_reader tags: Array[String]
|
|
2165
|
-
attr_reader preferred_call_mode:
|
|
2176
|
+
attr_reader preferred_call_mode: enum_CallMode
|
|
2166
2177
|
attr_reader emit_citations: bool
|
|
2167
2178
|
attr_reader fingerprint: String
|
|
2168
2179
|
|
|
2169
|
-
def initialize: (id: String, version: String, schema_name: String, description: String, category:
|
|
2180
|
+
def initialize: (id: String, version: String, schema_name: String, description: String, category: enum_PresetCategory, tags: Array[String], preferred_call_mode: enum_CallMode, emit_citations: bool, fingerprint: String) -> void
|
|
2170
2181
|
end
|
|
2171
2182
|
|
|
2172
2183
|
class ProcessingWarning
|
|
@@ -2232,13 +2243,13 @@ def initialize: (detection_bbox: BBox, cells: Array[Array[String]], markdown: St
|
|
|
2232
2243
|
|
|
2233
2244
|
class RedactionConfig
|
|
2234
2245
|
attr_reader categories: Array[PiiCategory]
|
|
2235
|
-
attr_reader strategy:
|
|
2246
|
+
attr_reader strategy: enum_RedactionStrategy
|
|
2236
2247
|
attr_reader ner: NerConfig?
|
|
2237
2248
|
attr_reader preserve_offsets: bool
|
|
2238
2249
|
attr_reader custom_terms: Array[RedactionTerm]
|
|
2239
2250
|
attr_reader custom_patterns: Array[RedactionPattern]
|
|
2240
2251
|
|
|
2241
|
-
def initialize: (?categories: Array[PiiCategory], ?strategy:
|
|
2252
|
+
def initialize: (?categories: Array[PiiCategory], ?strategy: enum_RedactionStrategy, ?ner: NerConfig, ?preserve_offsets: bool, ?custom_terms: Array[RedactionTerm], ?custom_patterns: Array[RedactionPattern]) -> void
|
|
2242
2253
|
def validate: () -> void
|
|
2243
2254
|
end
|
|
2244
2255
|
|
|
@@ -2246,10 +2257,10 @@ def initialize: (?categories: Array[PiiCategory], ?strategy: RedactionStrategy,
|
|
|
2246
2257
|
attr_reader start: Integer
|
|
2247
2258
|
attr_reader end: Integer
|
|
2248
2259
|
attr_reader category: PiiCategory
|
|
2249
|
-
attr_reader strategy:
|
|
2260
|
+
attr_reader strategy: enum_RedactionStrategy
|
|
2250
2261
|
attr_reader replacement_token: String
|
|
2251
2262
|
|
|
2252
|
-
def initialize: (start: Integer, end: Integer, category: PiiCategory, strategy:
|
|
2263
|
+
def initialize: (start: Integer, end: Integer, category: PiiCategory, strategy: enum_RedactionStrategy, replacement_token: String) -> void
|
|
2253
2264
|
end
|
|
2254
2265
|
|
|
2255
2266
|
class RedactionPattern
|
|
@@ -2311,11 +2322,11 @@ def summaries: () -> Array[PresetSummary]
|
|
|
2311
2322
|
attr_reader schema_name: String
|
|
2312
2323
|
attr_reader schema: String
|
|
2313
2324
|
attr_reader system_prompt: String
|
|
2314
|
-
attr_reader merge_mode:
|
|
2315
|
-
attr_reader preferred_call_mode:
|
|
2325
|
+
attr_reader merge_mode: enum_MergeMode
|
|
2326
|
+
attr_reader preferred_call_mode: enum_CallMode
|
|
2316
2327
|
attr_reader emit_citations: bool
|
|
2317
2328
|
|
|
2318
|
-
def initialize: (id: String, version: String, fingerprint: String, schema_name: String, schema: String, system_prompt: String, merge_mode:
|
|
2329
|
+
def initialize: (id: String, version: String, fingerprint: String, schema_name: String, schema: String, system_prompt: String, merge_mode: enum_MergeMode, preferred_call_mode: enum_CallMode, emit_citations: bool) -> void
|
|
2319
2330
|
end
|
|
2320
2331
|
|
|
2321
2332
|
class RevisionDelta
|
|
@@ -2406,11 +2417,11 @@ def initialize: (?deny_private: bool, ?allowlist: Array[HostMatcher], ?max_redir
|
|
|
2406
2417
|
end
|
|
2407
2418
|
|
|
2408
2419
|
class StructuredData
|
|
2409
|
-
attr_reader data_type:
|
|
2420
|
+
attr_reader data_type: enum_StructuredDataType
|
|
2410
2421
|
attr_reader raw_json: String
|
|
2411
2422
|
attr_reader schema_type: String?
|
|
2412
2423
|
|
|
2413
|
-
def initialize: (data_type:
|
|
2424
|
+
def initialize: (data_type: enum_StructuredDataType, raw_json: String, ?schema_type: String) -> void
|
|
2414
2425
|
end
|
|
2415
2426
|
|
|
2416
2427
|
class StructuredDataResult
|
|
@@ -2436,11 +2447,11 @@ def initialize: (content: String, format: String, metadata: Hash[String, String]
|
|
|
2436
2447
|
end
|
|
2437
2448
|
|
|
2438
2449
|
class SummarizationConfig
|
|
2439
|
-
attr_reader strategy:
|
|
2450
|
+
attr_reader strategy: enum_SummaryStrategy
|
|
2440
2451
|
attr_reader max_tokens: Integer?
|
|
2441
2452
|
attr_reader llm: LlmConfig?
|
|
2442
2453
|
|
|
2443
|
-
def initialize: (?strategy:
|
|
2454
|
+
def initialize: (?strategy: enum_SummaryStrategy, ?max_tokens: Integer, ?llm: LlmConfig) -> void
|
|
2444
2455
|
end
|
|
2445
2456
|
|
|
2446
2457
|
class SupportedFormat
|
|
@@ -2564,7 +2575,7 @@ def initialize: (?line_count: Integer, ?word_count: Integer, ?character_count: I
|
|
|
2564
2575
|
end
|
|
2565
2576
|
|
|
2566
2577
|
class TokenReductionConfig
|
|
2567
|
-
attr_reader level:
|
|
2578
|
+
attr_reader level: enum_ReductionLevel
|
|
2568
2579
|
attr_reader language_hint: String?
|
|
2569
2580
|
attr_reader preserve_markdown: bool
|
|
2570
2581
|
attr_reader preserve_code: bool
|
|
@@ -2577,7 +2588,7 @@ attr_reader custom_stopwords: Hash[String, Array[String]]?
|
|
|
2577
2588
|
attr_reader enable_semantic_clustering: bool
|
|
2578
2589
|
attr_reader preserve_important_words: bool
|
|
2579
2590
|
|
|
2580
|
-
def initialize: (?level:
|
|
2591
|
+
def initialize: (?level: enum_ReductionLevel, ?language_hint: String, ?preserve_markdown: bool, ?preserve_code: bool, ?semantic_threshold: Float, ?enable_parallel: bool, ?use_simd: bool, ?custom_stopwords: Hash[String, Array[String]], ?preserve_patterns: Array[String], ?target_reduction: Float, ?enable_semantic_clustering: bool, ?preserve_important_words: bool) -> void
|
|
2581
2592
|
end
|
|
2582
2593
|
|
|
2583
2594
|
class TokenReductionOptions
|
|
@@ -2589,7 +2600,7 @@ def initialize: (?level: ReductionLevel, ?language_hint: String, ?preserve_markd
|
|
|
2589
2600
|
|
|
2590
2601
|
class TranscriptionConfig
|
|
2591
2602
|
attr_reader enabled: bool
|
|
2592
|
-
attr_reader model:
|
|
2603
|
+
attr_reader model: enum_WhisperModel
|
|
2593
2604
|
attr_reader language: String?
|
|
2594
2605
|
attr_reader timestamps: bool
|
|
2595
2606
|
attr_reader max_duration_ms: Integer?
|
|
@@ -2599,7 +2610,7 @@ def initialize: (?level: ReductionLevel, ?language_hint: String, ?preserve_markd
|
|
|
2599
2610
|
attr_reader allow_network: bool
|
|
2600
2611
|
attr_reader verify_hash: bool
|
|
2601
2612
|
|
|
2602
|
-
def initialize: (?enabled: bool, ?model:
|
|
2613
|
+
def initialize: (?enabled: bool, ?model: enum_WhisperModel, ?language: String, ?timestamps: bool, ?max_duration_ms: Integer, ?max_bytes: Integer, ?timeout_ms: Integer, ?model_cache_dir: String, ?allow_network: bool, ?verify_hash: bool) -> void
|
|
2603
2614
|
end
|
|
2604
2615
|
|
|
2605
2616
|
class Translation
|
|
@@ -2640,22 +2651,22 @@ def initialize: (?enabled: bool, ?cache_dir: String, ?languages: Array[String],
|
|
|
2640
2651
|
attr_reader diagnostics: bool
|
|
2641
2652
|
attr_reader data_extraction: bool
|
|
2642
2653
|
attr_reader chunk_max_size: Integer?
|
|
2643
|
-
attr_reader content_mode:
|
|
2654
|
+
attr_reader content_mode: enum_CodeContentMode
|
|
2644
2655
|
|
|
2645
|
-
def initialize: (?structure: bool, ?imports: bool, ?exports: bool, ?comments: bool, ?docstrings: bool, ?symbols: bool, ?diagnostics: bool, ?data_extraction: bool, ?chunk_max_size: Integer, ?content_mode:
|
|
2656
|
+
def initialize: (?structure: bool, ?imports: bool, ?exports: bool, ?comments: bool, ?docstrings: bool, ?symbols: bool, ?diagnostics: bool, ?data_extraction: bool, ?chunk_max_size: Integer, ?content_mode: enum_CodeContentMode) -> void
|
|
2646
2657
|
end
|
|
2647
2658
|
|
|
2648
2659
|
class TrocrBackendOptions
|
|
2649
|
-
attr_reader variant:
|
|
2650
|
-
attr_reader device:
|
|
2660
|
+
attr_reader variant: enum_CandleTrocrVariant?
|
|
2661
|
+
attr_reader device: enum_CandleDevicePreference?
|
|
2651
2662
|
attr_reader cache_dir: String?
|
|
2652
2663
|
attr_reader hf_revision: String?
|
|
2653
2664
|
|
|
2654
|
-
def initialize: (?variant:
|
|
2665
|
+
def initialize: (?variant: enum_CandleTrocrVariant, ?device: enum_CandleDevicePreference, ?cache_dir: String, ?hf_revision: String) -> void
|
|
2655
2666
|
end
|
|
2656
2667
|
|
|
2657
2668
|
class UrlExtractionConfig
|
|
2658
|
-
attr_reader mode:
|
|
2669
|
+
attr_reader mode: enum_UrlExtractionMode
|
|
2659
2670
|
attr_reader crawl: CrawlConfig
|
|
2660
2671
|
attr_reader document_url_pattern: String?
|
|
2661
2672
|
attr_reader max_document_urls_per_result: Integer?
|
|
@@ -2663,7 +2674,7 @@ def initialize: (?enabled: bool, ?cache_dir: String, ?languages: Array[String],
|
|
|
2663
2674
|
attr_reader allow_local_file_inputs: bool
|
|
2664
2675
|
attr_reader allow_file_uris: bool
|
|
2665
2676
|
|
|
2666
|
-
def initialize: (?mode:
|
|
2677
|
+
def initialize: (?mode: enum_UrlExtractionMode, ?crawl: CrawlConfig, ?document_url_pattern: String, ?max_document_urls_per_result: Integer, ?max_total_urls: Integer, ?allow_local_file_inputs: bool, ?allow_file_uris: bool) -> void
|
|
2667
2678
|
end
|
|
2668
2679
|
|
|
2669
2680
|
class UserChunkConfig
|
|
@@ -2721,87 +2732,55 @@ def initialize: (?min: Integer, ?max: Integer, years: Array[Integer]) -> void
|
|
|
2721
2732
|
class AnnotationKind
|
|
2722
2733
|
end
|
|
2723
2734
|
|
|
2724
|
-
|
|
2725
|
-
type value = :document | :image | :audio | :video | :font | :stylesheet | :script | :archive | :data | :other
|
|
2726
|
-
end
|
|
2735
|
+
type enum_AssetCategory = :document | :image | :audio | :video | :font | :stylesheet | :script | :archive | :data | :other
|
|
2727
2736
|
|
|
2728
2737
|
class AuthConfig
|
|
2729
2738
|
end
|
|
2730
2739
|
|
|
2731
|
-
|
|
2732
|
-
type value = :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
|
|
2733
|
-
end
|
|
2740
|
+
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
|
|
2734
2741
|
|
|
2735
|
-
|
|
2736
|
-
type value = :start | :page_one_marker | :letterhead_reset | :density_shift | :end
|
|
2737
|
-
end
|
|
2742
|
+
type enum_BoundaryReason = :start | :page_one_marker | :letterhead_reset | :density_shift | :end
|
|
2738
2743
|
|
|
2739
|
-
|
|
2740
|
-
type value = :chromiumoxide | :native
|
|
2741
|
-
end
|
|
2744
|
+
type enum_BrowserBackend = :chromiumoxide | :native
|
|
2742
2745
|
|
|
2743
|
-
|
|
2744
|
-
type value = :auto | :always | :never | :stealth
|
|
2745
|
-
end
|
|
2746
|
+
type enum_BrowserMode = :auto | :always | :never | :stealth
|
|
2746
2747
|
|
|
2747
|
-
|
|
2748
|
-
type value = :network_idle | :selector | :fixed
|
|
2749
|
-
end
|
|
2748
|
+
type enum_BrowserWait = :network_idle | :selector | :fixed
|
|
2750
2749
|
|
|
2751
|
-
|
|
2752
|
-
type value = :text_only | :vision_only | :text_plus_vision
|
|
2753
|
-
end
|
|
2750
|
+
type enum_CallMode = :text_only | :vision_only | :text_plus_vision
|
|
2754
2751
|
|
|
2755
|
-
|
|
2756
|
-
type value = :auto | :cpu | :cuda | :metal
|
|
2757
|
-
end
|
|
2752
|
+
type enum_CandleDeepseekOcrDtype = :auto | :f32 | :f16 | :bf16
|
|
2758
2753
|
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2754
|
+
type enum_CandleDevicePreference = :auto | :cpu | :cuda | :metal
|
|
2755
|
+
|
|
2756
|
+
type enum_CandleTrocrVariant = :"base-printed" | :"large-printed" | :"base-handwritten" | :"large-handwritten"
|
|
2762
2757
|
|
|
2763
2758
|
class ChunkSizing
|
|
2764
2759
|
end
|
|
2765
2760
|
|
|
2766
|
-
class
|
|
2767
|
-
type value = :heading | :party_list | :definitions | :operative_clause | :signature_block | :schedule | :table_like | :formula | :code_block | :function | :class | :module | :image | :org_chart | :diagram | :unknown
|
|
2768
|
-
end
|
|
2761
|
+
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
|
|
2769
2762
|
|
|
2770
|
-
|
|
2771
|
-
type value = :text | :markdown | :yaml | :semantic
|
|
2772
|
-
end
|
|
2763
|
+
type enum_ChunkerType = :text | :markdown | :yaml | :semantic
|
|
2773
2764
|
|
|
2774
2765
|
class ChunkingReason
|
|
2775
2766
|
end
|
|
2776
2767
|
|
|
2777
|
-
|
|
2778
|
-
type value = :Indented | :Backticks | :Tildes
|
|
2779
|
-
end
|
|
2768
|
+
type enum_CodeBlockStyle = :Indented | :Backticks | :Tildes
|
|
2780
2769
|
|
|
2781
|
-
|
|
2782
|
-
type value = :chunks | :raw | :structure
|
|
2783
|
-
end
|
|
2770
|
+
type enum_CodeContentMode = :chunks | :raw | :structure
|
|
2784
2771
|
|
|
2785
|
-
|
|
2786
|
-
type value = :key_value | :element | :sequence
|
|
2787
|
-
end
|
|
2772
|
+
type enum_CodeDataNodeKind = :key_value | :element | :sequence
|
|
2788
2773
|
|
|
2789
2774
|
class ConfidenceSemantics
|
|
2790
2775
|
def self.legibility: (Float scale_max) -> ConfidenceSemantics
|
|
2791
2776
|
|
|
2792
2777
|
end
|
|
2793
2778
|
|
|
2794
|
-
|
|
2795
|
-
type value = :bm25
|
|
2796
|
-
end
|
|
2779
|
+
type enum_ContentFilterKind = :bm25
|
|
2797
2780
|
|
|
2798
|
-
|
|
2799
|
-
type value = :body | :header | :footer | :footnote
|
|
2800
|
-
end
|
|
2781
|
+
type enum_ContentLayer = :body | :header | :footer | :footnote
|
|
2801
2782
|
|
|
2802
|
-
|
|
2803
|
-
type value = :bfs | :dfs | :best_first | :adaptive
|
|
2804
|
-
end
|
|
2783
|
+
type enum_CrawlStrategyKind = :bfs | :dfs | :best_first | :adaptive
|
|
2805
2784
|
|
|
2806
2785
|
class CredentialProviderConfig
|
|
2807
2786
|
end
|
|
@@ -2809,139 +2788,81 @@ def initialize: (?min: Integer, ?max: Integer, years: Array[Integer]) -> void
|
|
|
2809
2788
|
class DiffLine
|
|
2810
2789
|
end
|
|
2811
2790
|
|
|
2812
|
-
|
|
2813
|
-
type value = :base64
|
|
2814
|
-
end
|
|
2791
|
+
type enum_DocumentContentEncoding = :base64
|
|
2815
2792
|
|
|
2816
|
-
|
|
2817
|
-
type value = :title | :narrative_text | :heading | :list_item | :table | :image | :page_break | :code_block | :formula | :block_quote | :footer | :header
|
|
2818
|
-
end
|
|
2793
|
+
type enum_ElementType = :title | :narrative_text | :heading | :list_item | :table | :image | :page_break | :code_block | :formula | :block_quote | :footer | :header
|
|
2819
2794
|
|
|
2820
2795
|
class EmbeddingModelType
|
|
2821
2796
|
end
|
|
2822
2797
|
|
|
2823
|
-
|
|
2824
|
-
type value = :onnx | :static
|
|
2825
|
-
end
|
|
2798
|
+
type enum_EmbeddingsEmbeddingBackend = :onnx | :static
|
|
2826
2799
|
|
|
2827
2800
|
class EntityCategory
|
|
2828
2801
|
end
|
|
2829
2802
|
|
|
2830
|
-
|
|
2831
|
-
type value = :auto | :cpu | :coreml | :cuda | :tensorrt
|
|
2832
|
-
end
|
|
2803
|
+
type enum_ExecutionProviderType = :auto | :cpu | :coreml | :cuda | :tensorrt
|
|
2833
2804
|
|
|
2834
|
-
|
|
2835
|
-
type value = :bytes | :uri
|
|
2836
|
-
end
|
|
2805
|
+
type enum_ExtractInputKind = :bytes | :uri
|
|
2837
2806
|
|
|
2838
|
-
|
|
2839
|
-
type value = :native | :ocr | :mixed
|
|
2840
|
-
end
|
|
2807
|
+
type enum_ExtractionMethod = :native | :ocr | :mixed
|
|
2841
2808
|
|
|
2842
|
-
|
|
2843
|
-
type value = :text | :checkbox | :radio | :choice | :signature | :button | :unknown
|
|
2844
|
-
end
|
|
2809
|
+
type enum_FormFieldType = :text | :checkbox | :radio | :choice | :signature | :button | :unknown
|
|
2845
2810
|
|
|
2846
2811
|
class FormatMetadata
|
|
2847
2812
|
end
|
|
2848
2813
|
|
|
2849
|
-
|
|
2850
|
-
type value = :latex_ocr
|
|
2851
|
-
end
|
|
2814
|
+
type enum_FormulaModel = :latex_ocr
|
|
2852
2815
|
|
|
2853
|
-
|
|
2854
|
-
type value = :whole_page | :paired
|
|
2855
|
-
end
|
|
2816
|
+
type enum_GlmOcrLayoutMode = :whole_page | :paired
|
|
2856
2817
|
|
|
2857
|
-
|
|
2858
|
-
type value = :ocr | :table | :formula | :chart | :caption
|
|
2859
|
-
end
|
|
2818
|
+
type enum_GlmOcrTaskKind = :ocr | :table | :formula | :chart | :caption
|
|
2860
2819
|
|
|
2861
|
-
|
|
2862
|
-
type value = :Underlined | :Atx | :AtxClosed
|
|
2863
|
-
end
|
|
2820
|
+
type enum_HeadingStyle = :Underlined | :Atx | :AtxClosed
|
|
2864
2821
|
|
|
2865
|
-
|
|
2866
|
-
type value = :DoubleEqual | :Html | :Bold | :None
|
|
2867
|
-
end
|
|
2822
|
+
type enum_HighlightStyle = :DoubleEqual | :Html | :Bold | :None
|
|
2868
2823
|
|
|
2869
2824
|
class HostMatcher
|
|
2870
2825
|
end
|
|
2871
2826
|
|
|
2872
|
-
|
|
2873
|
-
type value = :default | :github | :dark | :light | :unstyled
|
|
2874
|
-
end
|
|
2827
|
+
type enum_HtmlTheme = :default | :github | :dark | :light | :unstyled
|
|
2875
2828
|
|
|
2876
|
-
|
|
2877
|
-
type value = :Markdown | :Djot | :Plain
|
|
2878
|
-
end
|
|
2829
|
+
type enum_HtmlToMarkdownRsOutputFormat = :Markdown | :Djot | :Plain
|
|
2879
2830
|
|
|
2880
|
-
|
|
2881
|
-
type value = :photograph | :diagram | :chart | :drawing | :text_block | :decoration | :logo | :icon | :tile_fragment | :mask | :page_raster | :unknown
|
|
2882
|
-
end
|
|
2831
|
+
type enum_ImageKind = :photograph | :diagram | :chart | :drawing | :text_block | :decoration | :logo | :icon | :tile_fragment | :mask | :page_raster | :unknown
|
|
2883
2832
|
|
|
2884
2833
|
class ImageOutputFormat
|
|
2885
2834
|
end
|
|
2886
2835
|
|
|
2887
|
-
|
|
2888
|
-
type value = :"data-uri" | :"inline-svg" | :external | :relative
|
|
2889
|
-
end
|
|
2836
|
+
type enum_ImageType = :"data-uri" | :"inline-svg" | :external | :relative
|
|
2890
2837
|
|
|
2891
|
-
|
|
2892
|
-
type value = :text | :strong | :emphasis | :highlight | :subscript | :superscript | :insert | :delete | :code | :link | :image | :span | :math | :raw_inline | :footnote_ref | :symbol
|
|
2893
|
-
end
|
|
2838
|
+
type enum_InlineType = :text | :strong | :emphasis | :highlight | :subscript | :superscript | :insert | :delete | :code | :link | :image | :span | :math | :raw_inline | :footnote_ref | :symbol
|
|
2894
2839
|
|
|
2895
|
-
|
|
2896
|
-
type value = :source | :outputs | :both
|
|
2897
|
-
end
|
|
2840
|
+
type enum_JupyterCellRendering = :source | :outputs | :both
|
|
2898
2841
|
|
|
2899
|
-
|
|
2900
|
-
type value = :yake | :rake
|
|
2901
|
-
end
|
|
2842
|
+
type enum_KeywordAlgorithm = :yake | :rake
|
|
2902
2843
|
|
|
2903
2844
|
class LateInteractionModelType
|
|
2904
2845
|
end
|
|
2905
2846
|
|
|
2906
|
-
|
|
2907
|
-
type value = :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
|
|
2908
|
-
end
|
|
2847
|
+
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
|
|
2909
2848
|
|
|
2910
|
-
|
|
2911
|
-
type value = :always | :auto
|
|
2912
|
-
end
|
|
2849
|
+
type enum_LayoutStrategy = :always | :auto
|
|
2913
2850
|
|
|
2914
|
-
|
|
2915
|
-
type value = :Inline | :Reference
|
|
2916
|
-
end
|
|
2851
|
+
type enum_LinkStyle = :Inline | :Reference
|
|
2917
2852
|
|
|
2918
|
-
|
|
2919
|
-
type value = :anchor | :internal | :external | :email | :phone | :other
|
|
2920
|
-
end
|
|
2853
|
+
type enum_LinkType = :anchor | :internal | :external | :email | :phone | :other
|
|
2921
2854
|
|
|
2922
|
-
|
|
2923
|
-
type value = :Spaces | :Tabs
|
|
2924
|
-
end
|
|
2855
|
+
type enum_ListIndentType = :Spaces | :Tabs
|
|
2925
2856
|
|
|
2926
|
-
|
|
2927
|
-
type value = :Bullet | :Numbered | :Lettered | :Indented
|
|
2928
|
-
end
|
|
2857
|
+
type enum_ListType = :Bullet | :Numbered | :Lettered | :Indented
|
|
2929
2858
|
|
|
2930
|
-
|
|
2931
|
-
type value = :object_merge | :array_concat | :object_first
|
|
2932
|
-
end
|
|
2859
|
+
type enum_MergeMode = :object_merge | :array_concat | :object_first
|
|
2933
2860
|
|
|
2934
|
-
|
|
2935
|
-
type value = :prefer_content | :trust_extension | :content_only
|
|
2936
|
-
end
|
|
2861
|
+
type enum_MimeDetectionPolicy = :prefer_content | :trust_extension | :content_only
|
|
2937
2862
|
|
|
2938
|
-
|
|
2939
|
-
type value = :onnx | :llm
|
|
2940
|
-
end
|
|
2863
|
+
type enum_NerBackendKind = :onnx | :llm
|
|
2941
2864
|
|
|
2942
|
-
|
|
2943
|
-
type value = :Spaces | :Backslash
|
|
2944
|
-
end
|
|
2865
|
+
type enum_NewlineStyle = :Spaces | :Backslash
|
|
2945
2866
|
|
|
2946
2867
|
class NoChunkingReason
|
|
2947
2868
|
end
|
|
@@ -2949,16 +2870,12 @@ def initialize: (?min: Integer, ?max: Integer, years: Array[Integer]) -> void
|
|
|
2949
2870
|
class NodeContent
|
|
2950
2871
|
end
|
|
2951
2872
|
|
|
2952
|
-
|
|
2953
|
-
type value = :Tesseract | :PaddleOCR | :Candle | :Custom
|
|
2954
|
-
end
|
|
2873
|
+
type enum_OcrBackendType = :Tesseract | :PaddleOCR | :Candle | :Custom
|
|
2955
2874
|
|
|
2956
2875
|
class OcrBoundingGeometry
|
|
2957
2876
|
end
|
|
2958
2877
|
|
|
2959
|
-
|
|
2960
|
-
type value = :word | :line | :block | :page
|
|
2961
|
-
end
|
|
2878
|
+
type enum_OcrElementLevel = :word | :line | :block | :page
|
|
2962
2879
|
|
|
2963
2880
|
class OcrStrategy
|
|
2964
2881
|
end
|
|
@@ -2966,148 +2883,84 @@ def initialize: (?min: Integer, ?max: Integer, years: Array[Integer]) -> void
|
|
|
2966
2883
|
class OutputFormat
|
|
2967
2884
|
end
|
|
2968
2885
|
|
|
2969
|
-
|
|
2970
|
-
type value = :OsdOnly | :AutoOsd | :AutoOnly | :Auto | :SingleColumn | :SingleBlockVertical | :SingleBlock | :SingleLine | :SingleWord | :CircleWord | :SingleChar
|
|
2971
|
-
end
|
|
2886
|
+
type enum_PSMMode = :OsdOnly | :AutoOsd | :AutoOnly | :Auto | :SingleColumn | :SingleBlockVertical | :SingleBlock | :SingleLine | :SingleWord | :CircleWord | :SingleChar
|
|
2972
2887
|
|
|
2973
|
-
|
|
2974
|
-
type value = :ort | :tract
|
|
2975
|
-
end
|
|
2888
|
+
type enum_PaddleInferenceBackend = :ort | :tract
|
|
2976
2889
|
|
|
2977
|
-
|
|
2978
|
-
type value = :English | :Chinese | :Japanese | :Korean | :German | :French | :Latin | :Cyrillic | :TraditionalChinese | :Thai | :Greek | :EastSlavic | :Arabic | :Devanagari | :Tamil | :Telugu
|
|
2979
|
-
end
|
|
2890
|
+
type enum_PaddleLanguage = :English | :Chinese | :Japanese | :Korean | :German | :French | :Latin | :Cyrillic | :TraditionalChinese | :Thai | :Greek | :EastSlavic | :Arabic | :Devanagari | :Tamil | :Telugu
|
|
2980
2891
|
|
|
2981
|
-
|
|
2982
|
-
type value = :ocr | :table | :formula | :chart
|
|
2983
|
-
end
|
|
2892
|
+
type enum_PaddleOcrVlTaskKind = :ocr | :table | :formula | :chart
|
|
2984
2893
|
|
|
2985
|
-
|
|
2986
|
-
type value = :SelfCorrecting | :RecognisesRotatedText | :RequiresUpright
|
|
2987
|
-
end
|
|
2894
|
+
type enum_PageOrientationHandling = :SelfCorrecting | :RecognisesRotatedText | :RequiresUpright
|
|
2988
2895
|
|
|
2989
|
-
|
|
2990
|
-
type value = :page | :slide | :sheet
|
|
2991
|
-
end
|
|
2896
|
+
type enum_PageUnitType = :page | :slide | :sheet
|
|
2992
2897
|
|
|
2993
|
-
|
|
2994
|
-
type value = :text | :highlight | :link | :stamp | :underline | :strike_out | :squiggly | :ink | :square | :circle | :polygon | :poly_line | :line | :caret | :file_attachment | :sound | :movie | :other
|
|
2995
|
-
end
|
|
2898
|
+
type enum_PdfAnnotationType = :text | :highlight | :link | :stamp | :underline | :strike_out | :squiggly | :ink | :square | :circle | :polygon | :poly_line | :line | :caret | :file_attachment | :sound | :movie | :other
|
|
2996
2899
|
|
|
2997
|
-
|
|
2998
|
-
type value = :native | :pdfium
|
|
2999
|
-
end
|
|
2900
|
+
type enum_PdfBackend = :native | :pdfium
|
|
3000
2901
|
|
|
3001
2902
|
class PiiCategory
|
|
3002
2903
|
end
|
|
3003
2904
|
|
|
3004
|
-
|
|
3005
|
-
type value = :Minimal | :Standard | :Aggressive
|
|
3006
|
-
end
|
|
2905
|
+
type enum_PreprocessingPreset = :Minimal | :Standard | :Aggressive
|
|
3007
2906
|
|
|
3008
|
-
|
|
3009
|
-
type value = :finance | :identity | :legal | :logistics | :medical | :hr | :other
|
|
3010
|
-
end
|
|
2907
|
+
type enum_PresetCategory = :finance | :identity | :legal | :logistics | :medical | :hr | :other
|
|
3011
2908
|
|
|
3012
|
-
|
|
3013
|
-
type value = :pass | :warn | :fail | :skip
|
|
3014
|
-
end
|
|
2909
|
+
type enum_ProbeStatus = :pass | :warn | :fail | :skip
|
|
3015
2910
|
|
|
3016
|
-
|
|
3017
|
-
type value = :Early | :Middle | :Late
|
|
3018
|
-
end
|
|
2911
|
+
type enum_ProcessingStage = :Early | :Middle | :Late
|
|
3019
2912
|
|
|
3020
|
-
|
|
3021
|
-
type value = :mask | :hash | :token_replace | :drop
|
|
3022
|
-
end
|
|
2913
|
+
type enum_RedactionStrategy = :mask | :hash | :token_replace | :drop
|
|
3023
2914
|
|
|
3024
|
-
|
|
3025
|
-
type value = :Off | :Light | :Moderate | :Aggressive | :Maximum
|
|
3026
|
-
end
|
|
2915
|
+
type enum_ReductionLevel = :Off | :Light | :Moderate | :Aggressive | :Maximum
|
|
3027
2916
|
|
|
3028
|
-
|
|
3029
|
-
type value = :Figure | :DenseTable | :ComplexLayout | :Caption
|
|
3030
|
-
end
|
|
2917
|
+
type enum_RegionKind = :Figure | :DenseTable | :ComplexLayout | :Caption
|
|
3031
2918
|
|
|
3032
|
-
|
|
3033
|
-
type value = :footnote_reference | :citation_reference | :internal_link | :caption | :label | :toc_entry | :cross_reference
|
|
3034
|
-
end
|
|
2919
|
+
type enum_RelationshipKind = :footnote_reference | :citation_reference | :internal_link | :caption | :label | :toc_entry | :cross_reference
|
|
3035
2920
|
|
|
3036
|
-
|
|
3037
|
-
type value = :cross_encoder | :qwen3_generative
|
|
3038
|
-
end
|
|
2921
|
+
type enum_RerankerHead = :cross_encoder | :qwen3_generative
|
|
3039
2922
|
|
|
3040
2923
|
class RerankerModelType
|
|
3041
2924
|
end
|
|
3042
2925
|
|
|
3043
|
-
|
|
3044
|
-
type value = :unified | :element_based
|
|
3045
|
-
end
|
|
2926
|
+
type enum_ResultFormat = :unified | :element_based
|
|
3046
2927
|
|
|
3047
2928
|
class RevisionAnchor
|
|
3048
2929
|
end
|
|
3049
2930
|
|
|
3050
|
-
|
|
3051
|
-
type value = :insertion | :deletion | :format_change | :comment
|
|
3052
|
-
end
|
|
2931
|
+
type enum_RevisionKind = :insertion | :deletion | :format_change | :comment
|
|
3053
2932
|
|
|
3054
|
-
|
|
3055
|
-
type value = :all_valid | :partial_valid | :all_invalid
|
|
3056
|
-
end
|
|
2933
|
+
type enum_SchemaCompliance = :all_valid | :partial_valid | :all_invalid
|
|
3057
2934
|
|
|
3058
2935
|
class SparseEmbeddingModelType
|
|
3059
2936
|
end
|
|
3060
2937
|
|
|
3061
|
-
|
|
3062
|
-
type value = :"json-ld" | :microdata | :rdfa
|
|
3063
|
-
end
|
|
2938
|
+
type enum_StructuredDataType = :"json-ld" | :microdata | :rdfa
|
|
3064
2939
|
|
|
3065
|
-
|
|
3066
|
-
type value = :extractive | :abstractive
|
|
3067
|
-
end
|
|
2940
|
+
type enum_SummaryStrategy = :extractive | :abstractive
|
|
3068
2941
|
|
|
3069
|
-
|
|
3070
|
-
type value = :split | :repeat_header
|
|
3071
|
-
end
|
|
2942
|
+
type enum_TableChunkingMode = :split | :repeat_header
|
|
3072
2943
|
|
|
3073
|
-
|
|
3074
|
-
type value = :tatr | :slanet_wired | :slanet_wireless | :slanet_plus | :slanet_auto | :disabled
|
|
3075
|
-
end
|
|
2944
|
+
type enum_TableModel = :tatr | :slanet_wired | :slanet_wireless | :slanet_plus | :slanet_auto | :disabled
|
|
3076
2945
|
|
|
3077
|
-
|
|
3078
|
-
type value = :content | :native | :layout
|
|
3079
|
-
end
|
|
2946
|
+
type enum_TableOverlapPreference = :content | :native | :layout
|
|
3080
2947
|
|
|
3081
|
-
|
|
3082
|
-
type value = :ltr | :rtl | :auto
|
|
3083
|
-
end
|
|
2948
|
+
type enum_TextDirection = :ltr | :rtl | :auto
|
|
3084
2949
|
|
|
3085
|
-
|
|
3086
|
-
type value = :auto | :tier2 | :tier1
|
|
3087
|
-
end
|
|
2950
|
+
type enum_TierStrategy = :auto | :tier2 | :tier1
|
|
3088
2951
|
|
|
3089
|
-
|
|
3090
|
-
type value = :hyperlink | :image | :anchor | :citation | :reference | :email
|
|
3091
|
-
end
|
|
2952
|
+
type enum_UriKind = :hyperlink | :image | :anchor | :citation | :reference | :email
|
|
3092
2953
|
|
|
3093
|
-
|
|
3094
|
-
type value = :Angle | :Percent
|
|
3095
|
-
end
|
|
2954
|
+
type enum_UrlEscapeStyle = :Angle | :Percent
|
|
3096
2955
|
|
|
3097
|
-
|
|
3098
|
-
type value = :auto | :document | :crawl
|
|
3099
|
-
end
|
|
2956
|
+
type enum_UrlExtractionMode = :auto | :document | :crawl
|
|
3100
2957
|
|
|
3101
2958
|
class VlmFallbackPolicy
|
|
3102
2959
|
end
|
|
3103
2960
|
|
|
3104
|
-
|
|
3105
|
-
type value = :tiny | :base | :small | :medium | :large_v3
|
|
3106
|
-
end
|
|
2961
|
+
type enum_WhisperModel = :tiny | :base | :small | :medium | :large_v3
|
|
3107
2962
|
|
|
3108
|
-
|
|
3109
|
-
type value = :Normalized | :Strict
|
|
3110
|
-
end
|
|
2963
|
+
type enum_WhitespaceMode = :Normalized | :Strict
|
|
3111
2964
|
|
|
3112
2965
|
def self.classify_chunks_owned: (ExtractedDocument result, ChunkClassificationConfig config) -> ExtractedDocument
|
|
3113
2966
|
|
|
@@ -3180,7 +3033,7 @@ def self.verify_excerpt: (String excerpt, String source_text) -> bool
|
|
|
3180
3033
|
# Ruby constructors are private and never count as the lifecycle hook).
|
|
3181
3034
|
def process_image: (String image_bytes, OcrConfig config) -> ExtractedDocument
|
|
3182
3035
|
def supports_language: (String lang) -> bool
|
|
3183
|
-
def backend_type: () ->
|
|
3036
|
+
def backend_type: () -> enum_OcrBackendType
|
|
3184
3037
|
end
|
|
3185
3038
|
|
|
3186
3039
|
interface _PostProcessor
|
|
@@ -3189,7 +3042,7 @@ def self.verify_excerpt: (String excerpt, String source_text) -> bool
|
|
|
3189
3042
|
# The lifecycle hooks `initialize`/`shutdown` are likewise optional (note:
|
|
3190
3043
|
# Ruby constructors are private and never count as the lifecycle hook).
|
|
3191
3044
|
def process: (ExtractedDocument result, ExtractionConfig config) -> void
|
|
3192
|
-
def processing_stage: () ->
|
|
3045
|
+
def processing_stage: () -> enum_ProcessingStage
|
|
3193
3046
|
end
|
|
3194
3047
|
|
|
3195
3048
|
interface _Validator
|