{ "name": "research-pipeline", "version": "1.0.0", "goal": "Fetch a Wikipedia page, summarise it using an AI agent, and write the summary to a file.", "inputs": [ "URL of the Wikipedia page" ], "steps": [ "Step 1: Import necessary modules from _bootstrap (NIM_MODEL, require_nim_api_key) and blacknode", "Step 2: Require NVIDIA NIM API key using `require_nim_api_key()`", "Step 3: Create a Graph instance `g`", "Step 4: Add a Literal node for the URL of the Wikipedia page (`url`)", "Step 5: Add an HTTPGet node to fetch the content from the URL (`fetcher`) and connect it to the Literal node", "Step 6: Add an LLMAgent node with system prompt 'You are a technical writer. Summarise the text in 3 bullet points.' and model NIM_MODEL (`summarise`), connecting its input to the output of `fetcher`", "Step 7: Add a FileWrite node to write the summary to a file named 'summary.txt' (`writer`), connecting its input to the output of `summarise`", "Step 8: Cook the graph starting from the writer node and print the path where the summary is written" ], "outputs": [ "Path to the summary file" ], "failure_modes": [ "If the URL is invalid, HTTPGet will fail; if NIM API key is missing, LLMAgent will not function properly" ], "confidence": 0.95, "explanation": "This workflow can be adapted to fetch and summarise any text from a URL using an AI agent and save the summary to a file.", "source_repo": "https://github.com/temiroff/Blacknode.git", "score": 1.0 }