fastrag.ingestion.steps.chunking.refinement#
Opt-in, bounded chat boundary selection; source text is never rewritten.
Classes
|
Reuse an injected ChatModel with explicit permission and nonsecret identity. |
|
Validated proposal and runtime-only observations for a single request. |
- class fastrag.ingestion.steps.chunking.refinement.RefinementResult(boundaries=(), calls=0, cache_hit=False, fallback=None)[source]#
Bases:
objectValidated proposal and runtime-only observations for a single request.
- class fastrag.ingestion.steps.chunking.refinement.ChatBoundaryRefiner(*, llm, identity, allow_external_transmission=False, timeout=30.0, retries=0, backoff=0.1, concurrency=2, max_input_chars=12000, max_response_chars=16000, cache_size=0)[source]#
Bases:
objectReuse an injected ChatModel with explicit permission and nonsecret identity.
identitymust distinguish endpoint/model/generation settings without containing secrets. The strategy never examines provider credentials. Successful proposals optionally cache in an instance-local bounded LRU. Configure the provider’s own output-token limit to bound response generation.- Parameters: