Wires the full extraction pipeline.
Builds a prompt, calls the LLM provider, normalizes and parses the response, aligns extractions to source text, and returns enriched spans.
Auto-chunks source text by default (1000 characters). Customize with
:max_chunk_chars.
Summary
Functions
@spec run( LangExtract.Client.t(), String.t(), LangExtract.Prompt.Template.t(), keyword() ) :: {:ok, {[LangExtract.Alignment.Span.t()], [LangExtract.Pipeline.ChunkError.t()]}} | {:error, term()}