EnrichmentPipeline.run()

Run enrichment on document nodes in the knowledge graph.

Usage

Source

EnrichmentPipeline.run(
    kg,
    *,
    limit=100,
    force=False,
)

Parameters

kg: Any

A ~talk_box.knowledge_graph.KnowledgeGraph instance.

limit: int = 100

Maximum number of documents to enrich per run.

force: bool = False
If True, re-enrich all documents regardless of whether they’ve been enriched before.

Returns

PipelineResult
Summary of enrichment activity.