Expand description
EXT-1 — External Extraction Providers.
Implements an ExtractionProvider trait with five concrete backends:
| Provider | Transport | Auth |
|---|---|---|
none | — | — |
gliner | In-process ONNX | — |
openai | HTTPS | Bearer key |
openrouter | HTTPS (base_url override) | Bearer key |
ollama | HTTP (local) | — |
anthropic | HTTPS | x-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):
- Per-request
extractor_overridein request body - Per-namespace default (stored in
_dakera_namespace_configs) - Server default (
[extractor]in config.toml) - GLiNER local (if namespace has
extract_entities = true) none(default — backward-compatible)
Structs§
- Anthropic
Extractor - Extraction
Opts - Options passed into
ExtractionProvider::extract. - Extraction
Result - Result returned by any extraction provider.
- Extractor
Config - Serialisable configuration stored per-namespace or sent per-request.
- Gliner
Extractor - None
Extractor - OpenAI
Extractor
Traits§
Functions§
- build_
provider - Build a
Box<dyn ExtractionProvider>from a config + optional NER engine.