masa-finance / masa-oracle

Masa Oracle: Decentralized Data Protocol 🌐
https://developers.masa.ai/docs/masa-protocol/welcome
MIT License
22 stars 18 forks source link

spike: Distributed work framework #260

Closed teslashibe closed 5 months ago

teslashibe commented 5 months ago

Problem

Currently all nodes will service a request, but the first person to respond wins in the current LLM limitation.

Questions

Solution

Luka-Loncar commented 5 months ago

@restevens402 to modify this issue so it covers the rest of the requirements.

mudler commented 5 months ago

Let's first have a spike on this so we can collect our thoughts on a possible solution before jumping into implementation.

the outcome of the spike should be new cards to track that, and have implementation details

mudler commented 5 months ago

It would make sense to need first in place a ledger/consensus state where information about the work and the worker can be annotated, implementation for this is kinda blocked IMHO.

To select a worker we might just check the resources that the request wants and if the worker can satisfy that with its capabilities (e.g. a worker might want to share an LLM service, but maybe not a scraper) - and keep apply a first-come-first-serve approach, especially in the first iteration, but in a synchronized manner.

A simple, first pass implementation that comes to my mind is (without validators):

Implications:

A v1 then could potentially include:

Open points that needs to be solved:

jdutchak commented 5 months ago

completed in ticket #314