LangExtract.Pipeline (LangExtract v0.8.0)

Copy Markdown View Source

Extraction pipeline: normalize LLM output, parse extractions, align to source text.

Summary

Functions

extract(source, raw_llm_output, opts)

@spec extract(String.t(), String.t(), keyword()) ::
  {:ok, [LangExtract.Alignment.Span.t()]}
  | {:error, {:invalid_format, String.t()} | :missing_extractions}