Skip to content

Commit

Permalink
Merge pull request #31 from valory-xyz/feat/improve-prompt
Browse files Browse the repository at this point in the history
Update prompt and timeouts
  • Loading branch information
jmoreira-valory authored Jul 26, 2023
2 parents 4f655e9 + e240fae commit b3d646d
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 39 deletions.
34 changes: 9 additions & 25 deletions market_identification_prompt.txt
Original file line number Diff line number Diff line change
@@ -1,34 +1,18 @@
You are an LLM inside a multi-agent system. Your task is to propose a collection of prediction market
questions based on your input. Your input is under the label "INPUT". You must follow the instructions
under "INSTRUCTIONS". You must provide your response in the format specified under "OUTPUT_FORMAT".

INSTRUCTIONS
* Read the input under the label "INPUT" delimited by three backticks.
* The "INPUT" specifies a list of recent news headlines, their date, and short descriptions.
* Based on the "INPUT" and your training data, you must provide a list of binary questions, valid
answers and resolution dates to create prediction markets.
* Each market must satisfy the following conditions:
- The outcome of the market is unknown at the present date.
- The outcome of the market must be known by its resolution date.
- The outcome of the market must be related to a deterministic, measurable or verifiable fact.
- Questions whose answer is known at the present date are invalid.
- Questions whose answer is subjective or opinionated are invalid.
- Questions with relative dates are invalid.
- Questions about moral values, subjective opinions, and not facts are invalid.
- Questions in which none of the answers are valid will resolve as invalid.
- Questions with multiple valid answers are invalid.
- Questions must not incentivize committing an immoral violent action.
- The dates in the question need to be in YYYY-MM-DD format.
* The created markets must be different and not overlap semantically.
* You must provide your response in the format specified under "OUTPUT_FORMAT".
* Do not include any other contents in your response.
Based on the following news snippets under "INPUT", formulate 5 prediction market questions with clear, objective
outcomes that can be verified on specific dates and leave no room for interpretation or subjectivity.
Avoid incorporating questions that could potentially encourage unethical behavior or violence. Feel
free to use the same event with different dates as necessary. Every question should be resolvable in a
random day between 1st and the 31st of August 2023, with a requirement that all questions
be resolvable in a different day of the month.
Your questions should follow a structure similar to this:
"Will VERIFIABLE_BINARY_OUTCOME_OR_PREDICTION occur on SPECIFIC_DAY_OF_AUGUST_2023".
Your output must follow the output format detailed under "OUTPUT FORMAT".

INPUT
{input_news}

OUTPUT_FORMAT
* Your output response must be only a single JSON array to be parsed by Python's "json.loads()".
* The JSON array must be of length 5.
* All of the date strings should be represented in YYYY-MM-DD format.
* Each entry of the JSON array must be a JSON object containing the fields:
- question: The binary question to open a prediction market.
Expand Down
10 changes: 5 additions & 5 deletions packages/packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
"contract/valory/conditional_tokens/0.1.0": "bafybeig5vtn7bzpegfrzehdgeezqcnox3xlb5i54ehnqndazhcfh3bkdcq",
"contract/valory/fpmm_deterministic_factory/0.1.0": "bafybeig4ztnqgyaespzlcmcom56nvmi4c4paddsxsjsh5q7olnylu3z7ou",
"contract/valory/realtio/0.1.0": "bafybeihoj7w5dqdyo6ds2rdmi326cvl5wuc7xp6yms7lwks35m4nqypk4q",
"skill/valory/market_creation_manager_abci/0.1.0": "bafybeidofd7njiqkxjw6yxi4ctqj5jndy47lb656l6lffjo6opna5yt3ny",
"skill/valory/market_maker_abci/0.1.0": "bafybeiac3k5zk3qyuemhi3abugfrc4tkz4cqibf43alkdbzhwsajtuvlyu",
"agent/valory/market_maker/0.1.0": "bafybeial73r75v5d7rfgdprbfprjmjpu6nkxuamj5rpsfivk5obbpa7caq",
"service/valory/market_maker/0.1.0": "bafybeicg22bvim4tcmrf3jnlbkm2lpvhaabm5bkubjtuhzjp7v555fqyoe",
"skill/valory/market_creation_manager_abci/0.1.0": "bafybeigges2or6zhaqx22wkiaj4uvnej3v4kimruxmxnzcv4ud5zr5mqiy",
"skill/valory/market_maker_abci/0.1.0": "bafybeih2frm4wosi6grfs7p5zgj2cg26gkfym7ypaqpwqjx2u6pjz5uk7m",
"agent/valory/market_maker/0.1.0": "bafybeidpgae4ta5xeevvekr5xypffxzohm2ateifrqrixrmbijzsthanuu",
"service/valory/market_maker/0.1.0": "bafybeidyefovw5lee5rri4evclsueremdknta423licl5i3ux247xonfjq",
"contract/valory/wxdai/0.1.0": "bafybeie3c5enerf54jt75xc62mbzck4kjqxpjx2mzo6v4rrz4dmcy4xdgy",
"skill/valory/market_validation_abci/0.1.0": "bafybeiehhmrrardesbb6jei643yvaf4jrger2o4ri2a6l7cycois4rzymi"
"skill/valory/market_validation_abci/0.1.0": "bafybeifyfwynotmzg6wypbzbwsfnrplhjhumfx32dm2j3ddasp7ygrfoqa"
},
"third_party": {
"protocol/valory/contract_api/1.0.0": "bafybeiasywsvax45qmugus5kxogejj66c5taen27h4voriodz7rgushtqa",
Expand Down
6 changes: 3 additions & 3 deletions packages/valory/agents/market_maker/aea-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ protocols:
skills:
- valory/abstract_abci:0.1.0:bafybeiamr3cwetayz6lr72buhq6iviabtboj4hhpq47tlumimxolvvqjcy
- valory/abstract_round_abci:0.1.0:bafybeiaseziuvbzh3trjggl5hx2tv3fduqrpiwiyksudaf6nvuxmwrg74i
- valory/market_maker_abci:0.1.0:bafybeiac3k5zk3qyuemhi3abugfrc4tkz4cqibf43alkdbzhwsajtuvlyu
- valory/market_maker_abci:0.1.0:bafybeih2frm4wosi6grfs7p5zgj2cg26gkfym7ypaqpwqjx2u6pjz5uk7m
- valory/registration_abci:0.1.0:bafybeibafy7qmcvvzaykimy3mbqdwtcuajmbghqilaa7zwkh6wla33cfce
- valory/market_creation_manager_abci:0.1.0:bafybeidofd7njiqkxjw6yxi4ctqj5jndy47lb656l6lffjo6opna5yt3ny
- valory/market_validation_abci:0.1.0:bafybeiehhmrrardesbb6jei643yvaf4jrger2o4ri2a6l7cycois4rzymi
- valory/market_creation_manager_abci:0.1.0:bafybeigges2or6zhaqx22wkiaj4uvnej3v4kimruxmxnzcv4ud5zr5mqiy
- valory/market_validation_abci:0.1.0:bafybeifyfwynotmzg6wypbzbwsfnrplhjhumfx32dm2j3ddasp7ygrfoqa
- valory/reset_pause_abci:0.1.0:bafybeialcwck7fahrr23jckv5qjwg3cdq4ai2ihyjsofnbj44jzyl4cjmm
- valory/termination_abci:0.1.0:bafybeifqsogqiar4yook5bu3j6z66dbdcizey7dr3e5oxeocdjijvfbaja
- valory/transaction_settlement_abci:0.1.0:bafybeiacwr7p4nhhufoey7uz2jqkegrlykdrmc7mm3rzkvh2mslu66gyle
Expand Down
2 changes: 1 addition & 1 deletion packages/valory/services/market_maker/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ license: Apache-2.0
fingerprint:
README.md: bafybeibwz3af6326msp4h3kqehijvmyhaytvyfbo3o2npc2w4b6zrg6pfq
fingerprint_ignore_patterns: []
agent: valory/market_maker:0.1.0:bafybeial73r75v5d7rfgdprbfprjmjpu6nkxuamj5rpsfivk5obbpa7caq
agent: valory/market_maker:0.1.0:bafybeidpgae4ta5xeevvekr5xypffxzohm2ateifrqrixrmbijzsthanuu
number_of_agents: 1
deployment:
agent:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ models:
reset_tendermint_after: 2
retry_attempts: 400
retry_timeout: 3
round_timeout_seconds: 30.0
round_timeout_seconds: 60.0
service_id: market_creation_manager
service_registry_address: null
setup:
Expand Down
6 changes: 3 additions & 3 deletions packages/valory/skills/market_maker_abci/skill.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ skills:
- valory/abstract_round_abci:0.1.0:bafybeiaseziuvbzh3trjggl5hx2tv3fduqrpiwiyksudaf6nvuxmwrg74i
- valory/registration_abci:0.1.0:bafybeibafy7qmcvvzaykimy3mbqdwtcuajmbghqilaa7zwkh6wla33cfce
- valory/reset_pause_abci:0.1.0:bafybeialcwck7fahrr23jckv5qjwg3cdq4ai2ihyjsofnbj44jzyl4cjmm
- valory/market_creation_manager_abci:0.1.0:bafybeidofd7njiqkxjw6yxi4ctqj5jndy47lb656l6lffjo6opna5yt3ny
- valory/market_validation_abci:0.1.0:bafybeiehhmrrardesbb6jei643yvaf4jrger2o4ri2a6l7cycois4rzymi
- valory/market_creation_manager_abci:0.1.0:bafybeigges2or6zhaqx22wkiaj4uvnej3v4kimruxmxnzcv4ud5zr5mqiy
- valory/market_validation_abci:0.1.0:bafybeifyfwynotmzg6wypbzbwsfnrplhjhumfx32dm2j3ddasp7ygrfoqa
- valory/termination_abci:0.1.0:bafybeifqsogqiar4yook5bu3j6z66dbdcizey7dr3e5oxeocdjijvfbaja
- valory/transaction_settlement_abci:0.1.0:bafybeiacwr7p4nhhufoey7uz2jqkegrlykdrmc7mm3rzkvh2mslu66gyle
behaviours:
Expand Down Expand Up @@ -138,7 +138,7 @@ models:
reset_tendermint_after: 2
retry_attempts: 400
retry_timeout: 3
round_timeout_seconds: 30.0
round_timeout_seconds: 60.0
service_id: market_creator
service_registry_address: null
setup:
Expand Down
2 changes: 1 addition & 1 deletion packages/valory/skills/market_validation_abci/skill.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ models:
reset_tendermint_after: 2
retry_attempts: 400
retry_timeout: 3
round_timeout_seconds: 30.0
round_timeout_seconds: 60.0
service_id: market_creation_manager
service_registry_address: null
setup:
Expand Down

0 comments on commit b3d646d

Please sign in to comment.