Skip to main content

Module budget

Module budget 

Source
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§

NlpBudgetError
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.