extract

command
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2026 License: MIT Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL