Files
fil/docs/snippets/python/advanced/token_reduction_config.md

13 lines
330 B
Markdown
Raw Permalink Normal View History

2026-06-01 23:40:55 +02:00
```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",
)
)
```