Files
fil/docs/snippets/python/advanced/token_reduction_config.md
Henrik Jess Nielsen b4c07d3693
All checks were successful
Deploy fil (kreuzberg) / deploy (push) Successful in 49s
Nomad changes
2026-06-01 23:40:55 +02:00

13 lines
330 B
Markdown

```python title="Python"
from kreuzberg import ExtractionConfig, TokenReductionConfig, ReductionLevel
config: ExtractionConfig = ExtractionConfig(
token_reduction=TokenReductionConfig(
level=ReductionLevel.MODERATE,
preserve_markdown=True,
preserve_code=True,
language_hint="eng",
)
)
```