Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 867 Bytes

File metadata and controls

24 lines (15 loc) · 867 Bytes

:material-snowflake: FrozenDocumentLoader

FrozenDocumentLoader serves only URLs in an allowlist and refuses all other document loads. It is intended for air-gapped runs, reproducible builds, and deployments that must avoid remote context fetching.

With no arguments, the loader serves the curated BUNDLED_CONTEXTS mapping:

{{ example('document_loaders/frozen_default.py', output_syntax='json') }}

Bundled Contexts

{{ bundled_contexts_table() }}

Extend the bundled mapping with additional vetted contexts:

{{ example('document_loaders/frozen_extend.py', output_syntax='json') }}

The documents mapping may contain parsed JSON-LD dictionaries or pathlib.Path instances pointing to JSON files. Path entries are read lazily and cached after the first request.

Any URL outside the allowlist raises JsonLdError with code loading document failed.