{
  "title": "Improve Media #1",
  "video_id": "7wh8iFJiShQ",
  "published": "2024-02-19T13:44:28+0000",
  "complexity": "Normal",
  "old_url": "https://workflows-of-ai.com/workflow/improve-media-1",
  "description": "Extract the text of a PDF with ConvertAPI, then let OpenAI write summaries, search words and a preview image for Drupal document media.",
  "subtitle": "Fill the Document media type with full text, two summaries, search words and a generated preview image, without typing any of it.",
  "summary": "ConvertAPI turns an uploaded PDF into plain text on the Document media type, so its content becomes searchable. OpenAI then writes a long summary, a two-sentence summary, search words and an image prompt, and DALL-E makes a preview image from it. Some prompts fail on the first try and the video shows how to fix them, including switching from GPT-3.5 to GPT-4.",
  "categories": [
    "Drupal AI"
  ],
  "intro_html": "<p>The Media module in Drupal comes with a lot of power to keep a great media library for your website. It's also fieldable, which means it's easy to add metadata for previewing and searching the data. But filling out that data takes time, and with the AI Interpolator you can automate it.</p><p>In this example we will fill out a search text field with the actual content of a PDF or Word file, to make it searchable without needing Apache Tika or something similar. It's done with the AI Interpolator ConvertAPI. Then with AI Interpolator OpenAI we:<br />1. Add a long summary of the text.<br />2. Add a short summary of the text.<br />3. Add some context-aware search words, that you can use as a weighted field in Search API.<br />4. Add a preview image of the PDF.</p>",
  "intro_added": false,
  "chapters": [
    "0:00 The plan for document media",
    "2:18 Installing the ConvertAPI and OpenAI modules",
    "4:27 Adding the API keys",
    "6:22 Extracting text with ConvertAPI",
    "8:23 Long and short summaries",
    "11:10 Generating search words",
    "12:31 Preview image with DALL-E",
    "15:18 Showing the preview in the media view",
    "19:04 Fixing the failing prompts",
    "25:37 Results for search and previews"
  ],
  "corrections": [
    [
      "solar",
      "Solr"
    ],
    [
      "Soler",
      "Solr"
    ],
    [
      "leic search",
      "Elasticsearch"
    ],
    [
      "AI inator",
      "AI Interpolator"
    ],
    [
      "a anator",
      "AI Interpolator"
    ],
    [
      "the anator",
      "the AI Interpolator"
    ],
    [
      "AA interpolator",
      "AI Interpolator"
    ],
    [
      "Ai interpolator",
      "AI Interpolator"
    ],
    [
      "a interpolator",
      "AI Interpolator"
    ],
    [
      "open a AI",
      "OpenAI"
    ],
    [
      "open a dolly",
      "OpenAI DALL-E"
    ],
    [
      "open AI",
      "OpenAI"
    ],
    [
      "convert API",
      "ConvertAPI"
    ],
    [
      "gp2 T4 turbo",
      "GPT-4 Turbo"
    ],
    [
      "gp4",
      "GPT-4"
    ],
    [
      "3.5 turo",
      "3.5 Turbo"
    ],
    [
      "toxol",
      "Docksal"
    ],
    [
      "serf",
      "SERP"
    ],
    [
      "stuple",
      "Drupal"
    ],
    [
      "druple",
      "Drupal"
    ]
  ],
  "ai_note": "The video and the introduction are Marcus's own, first published on workflows-of-ai.com. AI wrote the subtitle, the summary and the video chapters from the transcript, and corrected misheard names in YouTube's automatic captions."
}