Expand description
LLM-based extraction backend (v1.0.75 — G21 + G23 solution)
Default extraction backend. Extracts entities and relationships by invoking an LLM CLI (claude code or codex CLI) in headless mode.
Structs§
- Auto
Factory - Auto-detect factory — picks CodexFactory when
codexis on PATH, ClaudeFactory whenclaudeis on PATH, NullFactory when neither is reachable. This is the v1.0.81 behaviour (implicit preference for codex) made explicit. - Claude
Factory - Claude CLI factory.
- Codex
Factory - Codex CLI factory — builds a
LlmBackendconfigured forcodex exec. - LlmBackend
- LLM-based extraction backend.
- LlmExtractor
Config - Configuration for the LLM extractor.
- Null
Factory - No-op factory — every extraction call returns empty output;
every embed call returns an empty vector. Used by
--llm-backend=none(zero-dependency mode). - Opencode
Factory - OpenCode CLI factory — builds a
LlmBackendconfigured foropencode run.
Enums§
- LlmBackend
Kind Factory - LLM backend kind (mirrors
cli::LlmBackendChoice).
Traits§
- LlmBackend
Factory - Factory trait for LLM-based backends. Each implementation knows
how to build the right CLI invocation (codex vs claude vs none)
from the user-supplied
LlmExtractorConfig.
Functions§
- detect_
available_ backend - Resolves the available LLM CLI by probing PATH for
codexfirst, thenclaude. ReturnsNoneif neither is found. - factory_
for_ choice - Factory dispatcher — converts a CLI enum value into a boxed
factory. This is the integration point used by
composite_backend.rsand by the 6 commands that consume--llm-backend.