Skip to main content

Module extraction

Module extraction 

Source
Expand description

EXT-1 — External Extraction Providers.

Implements an ExtractionProvider trait with five concrete backends:

ProviderTransportAuth
none
glinerIn-process ONNX
openaiHTTPSBearer key
openrouterHTTPS (base_url override)Bearer key
ollamaHTTP (local)
anthropicHTTPSx-api-key header

Security contract: api_key fields redact themselves in Debug output and are never serialized (only used at call time via per-request override or server env). They are NOT written to any storage layer.

Provider hierarchy (highest priority wins):

  1. Per-request extractor_override in request body
  2. Per-namespace default (stored in _dakera_namespace_configs)
  3. Server default ([extractor] in config.toml)
  4. GLiNER local (if namespace has extract_entities = true)
  5. none (default — backward-compatible)

Structs§

AnthropicExtractor
ExtractionOpts
Options passed into ExtractionProvider::extract.
ExtractionResult
Result returned by any extraction provider.
ExtractorConfig
Serialisable configuration stored per-namespace or sent per-request.
GlinerExtractor
NoneExtractor
OpenAIExtractor

Traits§

ExtractionProvider

Functions§

build_provider
Build a Box<dyn ExtractionProvider> from a config + optional NER engine.