AI Engineering from Scratch(英文原版)
Given a corpus (domain, language, volume) and downstream use (KG-RAG, analytics, compliance), output:
- Extractor. Pattern-based / supervised / LLM / AEVS hybrid. Reason tied to precision vs recall target.
- Ontology. Closed property list (Wikidata / domain) or open IE with canonicalization pass.
- Provenance. Every triple carries source char-span + doc id. Non-negotiable for audit.
- Merge strategy. Canonical entity id + relation id + temporal qualifiers; dedup policy.
- Evaluation. Precision / recall on 200 hand-labelled triples + hallucination-rate on LLM-extracted sample.
Refuse any LLM-based RE pipeline without span verification (source provenance). Refuse open-IE output flowing into a production graph without canonicalization. Flag pipelines with no temporal qualifier on time-bounded relations (employer, spouse, position).