For the past couple of months I've been building out a low code/no code AI/ML
The first step, would be to take this UI and translate it into format that would speak to the backend. This could look something like:
{
"input": [
"Input_Block": {
"run_config": "All user based config",
"connections": [ "process.Financial_BERT" ],
"payload": "<Insert Positive news for financial BERT>",
"implementation": Input_Implementation_Class()
}
],
"process": [
"Financial_BERT": {
"run_config": "All user based config",
"connections": [ "output.Output_Block" ],
"payload": "<Insert Positive news for financial BERT>",
"implementation": HF_MODEL_Class()
}
],
"output": [
"Output_Block": {
"run_config": "All user based config",
"connections": []
}
]
}
The next step would be taking the payload of one block, passing it into the implementation of another, and you'd know the next block via the connections list. Now, naively you could implement an iterative loop that starts at the input block, traverses its connection by passing the payload around. It would look something like this:
start_node = workflow['input']['Input_Block']
for connection in start_node['connection']:
# pass payload to process.Financial_BERT.implementation
This approach would work only if we had a linear workflow, where 1 block connects to only one block. But in the real world, one could have N blocks connecting to 1 block, wherein the following block expects inputs from all N blocks before running itself.
Source:
Source:
We can start at some dummy node, look at all it's immediate neighbors (A,B, and C) and process them, and only when all 3 are processed is when we move on the next layer where the orange block is and pass the 3 block's output as the orange block's input. The way we implement this is through a queue that processes nodes in the order they arrived in. We'll also keep track of all the nodes we already visited and processed so we don't end up reprocessing them. Below is a step by step flow of how its implemented.
Source:
Source: , accompanied by the documentation here at https://otto-m8.com
SOCIAL SHARE CARD GENERATOR