This commit is contained in:
14
docs/snippets/ruby/api/extract_file_async.md
Normal file
14
docs/snippets/ruby/api/extract_file_async.md
Normal file
@@ -0,0 +1,14 @@
|
||||
```ruby title="Ruby"
|
||||
require 'kreuzberg'
|
||||
|
||||
config = Kreuzberg::ExtractionConfig.new(
|
||||
use_cache: false,
|
||||
enable_quality_processing: true
|
||||
)
|
||||
|
||||
result = Kreuzberg.extract_file_async('document.pdf', config: config)
|
||||
|
||||
puts "Async extraction complete"
|
||||
puts "Extracted #{result.content.length} characters"
|
||||
puts "Quality: #{result.quality_score}"
|
||||
```
|
||||
Reference in New Issue
Block a user