Icon

GenAI for Summarization - Workflow Summarizer

<p><strong>GenAI for Summarization: Workflow Summarizer</strong></p><ul><li><p>This workflow accesses a workflow shipped automatically with the installation of KNIME Analytics Platform: <em>Example Workflows&gt; Basic Examples&gt; Building a Single Classifier, </em>extracts a JSON representation of the workflow and maps nodes to their input/output connections.</p><p></p></li><li><p>It prompts an LLM twice: first to explain the nodes used, and then to explain the workflow as a whole, taking into account the node explanation and the connection among nodes.</p><p></p></li><li><p>It manipulates the workflow-metadata.xml file of the read-in workflow to include the AI-generated workflow description, and writes it.</p></li></ul>

URL: KNIME for Generative AI https://hub.knime.com/c/D4ckx2q_J5FPBQXu

GenAI for Summarization: Workflow Summarizer

  • This workflow accesses a workflow shipped automatically with the installation of KNIME Analytics Platform: Example Workflows> Basic Examples> Building a Single Classifier, extracts a JSON representation of the workflow and maps nodes to their input/output connections.

  • It prompts an LLM twice: first to explain the nodes used, and then to explain the workflow as a whole, taking into account the node explanation and the connection among nodes.

  • It manipulates the workflow-metadata.xml file of the read-in workflow to include the AI-generated workflow description, and writes it.

1. Access Data
2. Prompt LLM
3. Deploy Results
Explain nodes
Explain workflow
Get JSONrepresentation
Workflow Summary Extractor
OpenAI APIkey
Credentials Configuration
LLM Prompter
Prompt engineering forWorkflow description
Expression
Use node descriptions & map ofinput/output connection to generatea textual workflow representation
Represent workflow as text
LLM Prompter
Edit workflow <description> tagin metadata file of read-in workflow
Postprocess responses
Select workflow to explain& summarize:...Example Workflows>Basic Examples>Building a Single Classifier
Workflow Reader
Get node names & map ofinput/output connections
Extract node metadata
Prompt engineering forNode description
Expression
OpenAI Authenticator
E.g., gpt-3.5-turbo
OpenAI Chat Model Connector
VIew workflow summary
Table View
Write workflow-metadata.xmlwith AI-generated description
XML Writer

Nodes

Extensions

Links