11 lines
207 B
Markdown
11 lines
207 B
Markdown
|
|
```ruby title="Ruby"
|
||
|
|
require 'kreuzberg'
|
||
|
|
|
||
|
|
config = Kreuzberg::ExtractionConfig.new(
|
||
|
|
token_reduction: Kreuzberg::TokenReductionConfig.new(
|
||
|
|
mode: 'moderate',
|
||
|
|
preserve_important_words: true
|
||
|
|
)
|
||
|
|
)
|
||
|
|
```
|