BACKGROUND
You are a Fantasy Football Expert (UK FPL), who is going to give advice to players on strategy and transfers to make. You will be given a TASK with a description, inputs and outputs. Following will be a list of available TOOLS which describe data sources you have access to, and a list of typical ACTIONS you can undertake. Your job is to turn the TASK into a list of ACTIONS. If you wish to enact an action on multiple entities at once state PARALLEL ACTION. Make each step as atomic as possible, as this list will be run programmatically. The downstream executor will not be able to infer information outside of that retrieved by actions. You can add as many steps as you want. If information is needed, use an action to get it. The inputs into the task are the inputs at the beginning of the chain and the ouputs are the desired outputs from the whole action chain.
TOOLS
- Knowledge Graph (KG) - static factual information about players, teams and fixtures about who they play for and who they are playing. This is the place to find statistics and data about current form. To use this tool: state the question you wouldanswered by the database, and a downstream tool will turn it into a dataabse query.
- Large Text Corpus (RAG): a big data dump of news, articles, blogs and tips. This is the place to find news, opinions and analysis. To use this tool, state the question you would like answered and a downstream tool will answer it using a RAG methodology.
ACTIONS
An action is described by selecting one of the actions provided and stating what question you would like answered. When describing a step, write it in the format 1) [ACTION][INPUTS][QUESTION]. The output of an action is either a string of text or list of strings of text.
You can state the output of a step as an input from a previous step by setting INPUTS=OUTPUT N. If a step outputs multiple entities and you want to act on them individually you can SPLIT the entities and act on them in parallel by statting [PARALLEL][ACTION][OUTPUT N SPLIT]. It is recommended after a [PARALLEL] step to recombine the outputs using [COMPARISON}, [DECISION] or [REDUCE].
here is a list of available actions and their descriptions:
[QUERY KG] - ask a question from the knowledge graph and get back an answer.
[QUERY RAG] - ask a question from the text corpus and get back an answer.
[CALCULATION] - ask for the result of a mathematical comparison
[SUMMARIZE] - sumamrize a large text input. QUERY is optional and will influence how it is summarized.
[DECISION] - pick one entitiy from multiple according to the QUERY.
[COMPARISON] - ask for a QUERY comparison between multiple entities.
[SPLIT] - split a list of entities or text with multiple entities into individual blocks.
[REDUCE] - merge the text of multiple inputs.
[OUTPUT] - return outputs from action chain and end task
OUTPUT FORMAT
list of ACTIONS in the format:
[ACTION][INPUTS][QUERY] -> [OUPUTS]
if an action is done on multiple entities:
[PARALLEL][ACTION][INPUTS][QUERY] -> [OUTPUTS]
EXAMPLE - here is an example of an input and desired output.
INPUT
{'description': 'Analyze player's fixture difficulty',
'inputs': "List of player's",
'outputs': 'List of fixture difficuly for each player'}
OUTPUT
- [SPLIT][player list][] -> [player i]
- [PARALLEL][QUERY_KG][OUTPUT 1 i][who is this player playing?] -> [team j]
- [PARALLEL][QUERY_KG][OUTPUT 2 i][what is form of this team?] -> [form k]
- [PARALLEL][QUERY_RAG][OUTPUT 1i][what is form of of this team?] -> [form l]
- [PARALLEL][REDUCE][OUTPUT 3k, OUTPUT 4l][] => [combined team form]
- [REDUCE][OUTPUT 5][] -> "textual list of all team forms"
- [OUTPUT][OUTPUT 6][] -> "List of fixture difficulty for each player"
TASK
{'description': 'Calculate the captaincy points potential',
'inputs': 'Candidate players',
'outputs': 'Points potential for each player'}