Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.praison.ai/llms.txt

Use this file to discover all available pages before exploring further.

AI Context Enricher

Enrich news articles with background context, prior art references, stakeholder analysis, and hype detection.

CLI Quickstart

praisonai recipe run ai-context-enricher \
  --input '{"articles": [...]}' \
  --json

Use in Your App (SDK)

import sys
sys.path.insert(0, 'agent_recipes/templates/ai-context-enricher')
from tools import enrich_article, add_background, detect_hype

# Enrich single article
enriched = enrich_article(article)

# Add background context
with_background = add_background(article)

# Detect hype level
hype_analysis = detect_hype(article["content"])

Input Schema

{
  "type": "object",
  "properties": {
    "articles": {"type": "array"},
    "include_background": {"type": "boolean", "default": true},
    "include_prior_art": {"type": "boolean", "default": true},
    "include_stakeholders": {"type": "boolean", "default": true},
    "detect_hype": {"type": "boolean", "default": true}
  }
}

Output Schema

{
  "enriched_articles": [
    {
      "title": "...",
      "background": "Historical context...",
      "prior_art": ["Related work 1", "Related work 2"],
      "stakeholders": ["Company A", "Researcher B"],
      "hype_score": 0.7,
      "hype_indicators": ["buzzwords", "unverified claims"]
    }
  ]
}

Environment Variables

VariableRequiredDescription
OPENAI_API_KEYYesFor LLM analysis