Documentation
¶
Overview ¶
Command extract turns text into entities, the relations between them, and the triples those relations assert. Two extractors fill the same stage: Rules needs nothing but the text, and LLM asks a model and does the work around the call.
Two checks gate either extractor's output, and they are orthogonal: a Schema asks whether the extraction is in the vocabulary, a Floor asks whether it is sure enough and structurally sound. A caller that wants both runs both.
The model at the end is a stub that returns exactly what providers actually return — a JSON document wrapped in a markdown fence, and one cut off at a token limit — so the recovery this package does around a real call is what the example exercises. No network, no key.
go run ./examples/extract