@atomic-content-protocol/enrichment
v0.1.1
Published
LLM enrichment pipelines for the Atomic Content Protocol
Downloads
306
Readme
@atomic-content-protocol/enrichment
LLM enrichment pipelines for the Atomic Content Protocol.
Runs tagging, summarisation, entity extraction, classification, and embedding over ACOs using Anthropic, OpenAI, or Ollama providers.
Install
npm install @atomic-content-protocol/enrichment @atomic-content-protocol/coreQuick start
import {
ProviderRouter,
UnifiedPipeline,
BatchEnricher,
} from "@atomic-content-protocol/enrichment";
const router = ProviderRouter.fromConfig({
anthropic: { apiKey: process.env.ANTHROPIC_API_KEY! },
openai: { apiKey: process.env.OPENAI_API_KEY! },
});
const enricher = new BatchEnricher(router, [new UnifiedPipeline()]);
const enriched = await enricher.enrichOne(myACO);What's in the package
providers/—AnthropicProvider,OpenAIProvider,OllamaProviderrouter/—ProviderRouter,CircuitBreakerpipelines/—TagPipeline,SummaryPipeline,EntityPipeline,ClassificationPipeline,UnifiedPipeline,EmbedPipelinebatch/—BatchEnricherfor bulk enrichment
UnifiedPipeline runs tags + summary + entities + classification + language in a single LLM call — the cheapest path to a fully enriched ACO.
Links
- Protocol spec: atomiccontentprotocol.org
- Repository: github.com/atomic-content-protocol/sdk
Stewardship
The Atomic Content Protocol is an open standard stewarded by Stacks, Inc — the company behind Stacklist.
License
Apache-2.0
