| Nice. I have a simple system for typescript [1] where you can string tasks together like: import { Workflow } from "@workglow/task-graph";
const workflow = new Workflow();
workflow
.DownloadModel({
model: ["onnx:Xenova/LaMini-Flan-T5-783M:q8", "Universal Sentence Encoder"],
})
.TextEmbedding({
text: "The quick brown fox jumps over the lazy dog.",
});
await workflow.run(); It automatically caches results of steps if you say `new Workflow({outputCache});` PS: the example above uses a local onnx model (it switches on model name) which is a good candidate for caching, but can be anything. You can play around writing this way if you open the console at the web example [2] which has fun console formatters not enough people know about or use in DevTools. You can write code in the console and the example rewrites it as a json format in the web page (and visa-versa). Or just use the free web app with local user account and local models to play around with. [3] [1] https://github.com/workglow-dev/workglow [2] https://workglow-web.netlify.app/ [3] https://workglow.dev |