Expand description
Shared NLP host resource budgets.
Transport cap ≠ processing guarantee. MAX_SOURCE_BYTES is an ingress
bound, equal to crate::nlp::coref::DEFAULT_MAX_SOURCE_BYTES — not a
second 256 KiB and not a latency, quality, or expansion claim. Accepting a
document at this cap does not mean tokenize, gazetteer, or frame work stays
within an SLA, nor that intermediates stay under the Sentinel after
construction.
The 42 MiB SENTINEL_BYTES ceiling still applies. These host adapters are
cold (they may allocate). They must still refuse oversize input so
borrowed source plus adapter workspace cannot walk past that envelope.
Re-exports§
pub use crate::nlp::coref::SENTINEL_BYTES;
Enums§
- NlpBudget
Error - Resource-budget failure. Host adapters map every variant to
E400.
Constants§
- MAX_
FST_ ENTRIES - FST dictionary entry-list cap, checked before host construction.
- MAX_
FST_ WORD_ BYTES - FST lookup-word cap, checked before dictionary construction.
- MAX_
GRAPHRAG_ QUERY_ BYTES - GraphRAG query-string cap (transport-sized, not a retrieval-quality claim).
- MAX_
SOURCE_ BYTES - Shared source cap. Equal to
DEFAULT_MAX_SOURCE_BYTES. - MAX_
TRIPLES - GraphRAG triple-list cap, checked before index construction.
Functions§
- reject_
fst_ entries - Reject an oversize FST entries list before cloning or dictionary build.
- reject_
fst_ word - Reject an oversize FST lookup word before dictionary construction.
- reject_
query - Reject an oversize GraphRAG query string before index construction.
- reject_
source - Reject an oversize source before any clone or kernel work.
- reject_
triples - Reject an oversize triple list before cloning or indexing.