This commit is contained in:
10
docs/snippets/ruby/utils/token_reduction.md
Normal file
10
docs/snippets/ruby/utils/token_reduction.md
Normal file
@@ -0,0 +1,10 @@
|
||||
```ruby title="Ruby"
|
||||
require 'kreuzberg'
|
||||
|
||||
config = Kreuzberg::ExtractionConfig.new(
|
||||
token_reduction: Kreuzberg::TokenReductionConfig.new(
|
||||
mode: 'moderate',
|
||||
preserve_important_words: true
|
||||
)
|
||||
)
|
||||
```
|
||||
Reference in New Issue
Block a user