Created
July 27, 2023 04:37
-
-
Save dglazkov/6f122553b4c08f0674187f79b19c01f4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"edges": [ | |
{ | |
"from": "input-1", | |
"to": "prompt-template-6", | |
"out": "text", | |
"in": "topic" | |
}, | |
{ | |
"from": "secrets-8", | |
"to": "text-completion-7", | |
"constant": true, | |
"out": "API_KEY", | |
"in": "API_KEY" | |
}, | |
{ | |
"from": "text-completion-7", | |
"to": "output-9", | |
"out": "completion", | |
"in": "text" | |
}, | |
{ | |
"from": "prompt-template-6", | |
"to": "text-completion-7", | |
"out": "prompt", | |
"in": "text" | |
}, | |
{ | |
"from": "jsonata-5", | |
"to": "prompt-template-6", | |
"out": "result", | |
"in": "headlines" | |
}, | |
{ | |
"from": "xml_to_json-4", | |
"to": "jsonata-5", | |
"out": "json", | |
"in": "json" | |
}, | |
{ | |
"from": "fetch-3", | |
"to": "xml_to_json-4", | |
"out": "response", | |
"in": "xml" | |
}, | |
{ | |
"from": "url_template-2", | |
"to": "fetch-3", | |
"out": "url", | |
"in": "url" | |
}, | |
{ | |
"from": "input-1", | |
"to": "url_template-2", | |
"out": "text", | |
"in": "query" | |
} | |
], | |
"nodes": [ | |
{ | |
"id": "input-1", | |
"type": "input", | |
"configuration": { | |
"message": "What would you like to search for?" | |
} | |
}, | |
{ | |
"id": "url_template-2", | |
"type": "url_template", | |
"configuration": { | |
"template": "https://news.google.com/rss/search?q={{query}}&hl=en-US&gl=US&ceid=US:en" | |
} | |
}, | |
{ | |
"id": "fetch-3", | |
"type": "fetch", | |
"configuration": { | |
"raw": true | |
} | |
}, | |
{ | |
"id": "xml_to_json-4", | |
"type": "xml_to_json" | |
}, | |
{ | |
"id": "jsonata-5", | |
"type": "jsonata", | |
"configuration": { | |
"expression": "$join((rss.channel.item.title.`$t`)[[1..20]], `\n`)" | |
} | |
}, | |
{ | |
"id": "prompt-template-6", | |
"type": "prompt-template", | |
"configuration": { | |
"template": "Use the news headlines below to write a few sentences tosummarize the latest news on this topic:\n\n##Topic:\n{{topic}}\n\n## Headlines {{headlines}}\n\\n## Summary:\n" | |
} | |
}, | |
{ | |
"id": "text-completion-7", | |
"type": "text-completion" | |
}, | |
{ | |
"id": "secrets-8", | |
"type": "secrets", | |
"configuration": { | |
"keys": [ | |
"API_KEY" | |
] | |
} | |
}, | |
{ | |
"id": "output-9", | |
"type": "output" | |
} | |
], | |
"kits": [ | |
{ | |
"url": "npm:@google-labs/llm-starter" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment