File size: 10,169 Bytes
f98ae7d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
{
  "prog": {
    "lm": null,
    "traces": [],
    "train": [],
    "demos": [
      {
        "augmented": true,
        "question": "Are Imperial River (Florida) and Amaradia (Dolj) both located in the same country?",
        "fact_before_filter": "{\"fact\": [[\"imperial river\", \"is located in\", \"florida\"], [\"imperial river\", \"is a river in\", \"united states\"], [\"imperial river\", \"may refer to\", \"south america\"], [\"amaradia\", \"flows through\", \"ro ia de amaradia\"], [\"imperial river\", \"may refer to\", \"united states\"]]}",
        "fact_after_filter": "{\"fact\":[[\"imperial river\",\"is located in\",\"florida\"],[\"imperial river\",\"is a river in\",\"united states\"],[\"amaradia\",\"flows through\",\"ro ia de amaradia\"]]}"
      },
      {
        "augmented": true,
        "question": "When is the director of film The Ancestor 's birthday?",
        "fact_before_filter": "{\"fact\": [[\"jean jacques annaud\", \"born on\", \"1 october 1943\"], [\"tsui hark\", \"born on\", \"15 february 1950\"], [\"pablo trapero\", \"born on\", \"4 october 1971\"], [\"the ancestor\", \"directed by\", \"guido brignone\"], [\"benh zeitlin\", \"born on\", \"october 14  1982\"]]}",
        "fact_after_filter": "{\"fact\":[[\"the ancestor\",\"directed by\",\"guido brignone\"]]}"
      },
      {
        "augmented": true,
        "question": "In what geographic region is the country where Teafuone is located?",
        "fact_before_filter": "{\"fact\": [[\"teafuaniua\", \"is on the\", \"east\"], [\"motuloa\", \"lies between\", \"teafuaniua\"], [\"motuloa\", \"lies between\", \"teafuanonu\"], [\"teafuone\", \"is\", \"islet\"], [\"teafuone\", \"located in\", \"nukufetau\"]]}",
        "fact_after_filter": "{\"fact\":[[\"teafuone\",\"is\",\"islet\"],[\"teafuone\",\"located in\",\"nukufetau\"]]}"
      },
      {
        "augmented": true,
        "question": "When did the director of film S.O.B. (Film) die?",
        "fact_before_filter": "{\"fact\": [[\"allan dwan\", \"died on\", \"28 december 1981\"], [\"s o b\", \"written and directed by\", \"blake edwards\"], [\"robert aldrich\", \"died on\", \"december 5  1983\"], [\"robert siodmak\", \"died on\", \"10 march 1973\"], [\"bernardo bertolucci\", \"died on\", \"26 november 2018\"]]}",
        "fact_after_filter": "{\"fact\":[[\"s o b\",\"written and directed by\",\"blake edwards\"]]}"
      },
      {
        "augmented": true,
        "question": "Do both films: Gloria (1980 Film) and A New Life (Film) have the directors from the same country?",
        "fact_before_filter": "{\"fact\": [[\"sebasti n lelio watt\", \"received acclaim for directing\", \"gloria\"], [\"gloria\", \"is\", \"1980 american thriller crime drama film\"], [\"a brand new life\", \"is directed by\", \"ounie lecomte\"], [\"gloria\", \"written and directed by\", \"john cassavetes\"], [\"a new life\", \"directed by\", \"alan alda\"]]}",
        "fact_after_filter": "{\"fact\":[[\"gloria\",\"is\",\"1980 american thriller crime drama film\"],[\"gloria\",\"written and directed by\",\"john cassavetes\"],[\"a new life\",\"directed by\",\"alan alda\"]]}"
      },
      {
        "augmented": true,
        "question": "What is the date of death of the director of film The Old Guard (1960 Film)?",
        "fact_before_filter": "{\"fact\": [[\"the old guard\", \"is\", \"1960 french comedy film\"], [\"gilles grangier\", \"directed\", \"the old guard\"], [\"the old guard\", \"directed by\", \"gilles grangier\"], [\"the old fritz\", \"directed by\", \"gerhard lamprecht\"], [\"oswald albert mitchell\", \"directed\", \"old mother riley series of films\"]]}",
        "fact_after_filter": "{\"fact\":[[\"the old guard\",\"is\",\"1960 french comedy film\"],[\"gilles grangier\",\"directed\",\"the old guard\"],[\"the old guard\",\"directed by\",\"gilles grangier\"]]}"
      },
      {
        "augmented": true,
        "question": "When is the composer of film Aulad (1968 Film) 's birthday?",
        "fact_before_filter": "{\"fact\": [[\"aulad\", \"has music composed by\", \"chitragupta shrivastava\"], [\"aadmi sadak ka\", \"has music by\", \"ravi\"], [\"ravi shankar sharma\", \"composed music for\", \"hindi films\"], [\"gulzar\", \"was born on\", \"18 august 1934\"], [\"aulad\", \"is a\", \"1968 hindi language drama film\"]]}",
        "fact_after_filter": "{\"fact\":[[\"aulad\",\"has music composed by\",\"chitragupta shrivastava\"],[\"aulad\",\"is a\",\"1968 hindi language drama film\"]]}"
      },
      {
        "question": "How many households were in the city where Angelical Tears located?",
        "fact_before_filter": "{\"fact\": [[\"dow city\", \"had\", \"219 households\"], [\"tucson\", \"had\", \"229 762 households\"], [\"atlantic city\", \"has\", \"15 504 households\"], [\"angelical tears\", \"located in\", \"oklahoma city\"], [\"atlantic city\", \"had\", \"15 848 households\"]]}",
        "fact_after_filter": "{\"fact\": [[\"angelical tears\", \"located in\", \"oklahoma city\"]]}"
      },
      {
        "question": "Did the movies In The Pope'S Eye and Virgin Mountain, originate from the same country?",
        "fact_before_filter": "{\"fact\": [[\"virgin mountain\", \"released in\", \"icelandic cinemas\"], [\"virgin mountain\", \"directed by\", \"dagur k ri\"], [\"virgin mountain\", \"icelandic title is\", \"f si\"], [\"virgin mountain\", \"won\", \"2015 nordic council film prize\"], [\"virgin mountain\", \"is a\", \"2015 icelandic drama film\"]]}",
        "fact_after_filter": "{\"fact\": [[\"virgin mountain\", \"released in\", \"icelandic cinemas\"], [\"virgin mountain\", \"directed by\", \"dagur k ri\"], [\"virgin mountain\", \"icelandic title is\", \"f si\"], [\"virgin mountain\", \"won\", \"2015 nordic council film prize\"], [\"virgin mountain\", \"is a\", \"2015 icelandic drama film\"]]}"
      },
      {
        "question": "Which film has the director who died earlier, The Virtuous Model or Bulldog Drummond'S Peril?",
        "fact_before_filter": "{\"fact\": [[\"the virtuous model\", \"is\", \"1919 american silent drama film\"], [\"bulldog drummond s peril\", \"directed by\", \"james p  hogan\"], [\"the virtuous model\", \"directed by\", \"albert capellani\"], [\"bulldog drummond s revenge\", \"directed by\", \"louis king\"], [\"bulldog drummond s peril\", \"is\", \"american film\"]]}",
        "fact_after_filter": "{\"fact\": [[\"the virtuous model\", \"is\", \"1919 american silent drama film\"], [\"bulldog drummond s peril\", \"directed by\", \"james p  hogan\"], [\"the virtuous model\", \"directed by\", \"albert capellani\"], [\"bulldog drummond s peril\", \"is\", \"american film\"]]}"
      }
    ],
    "signature": {
      "instructions": "You are a critical component of a high-stakes question-answering system used by top researchers and decision-makers worldwide. Your task is to filter facts based on their relevance to a given query, ensuring that the most crucial information is presented to these stakeholders. The query requires careful analysis and possibly multi-hop reasoning to connect different pieces of information. You must select up to 4 relevant facts from the provided candidate list that have a strong connection to the query, aiding in reasoning and providing an accurate answer. The output should be in JSON format, e.g., {\"fact\": [[\"s1\", \"p1\", \"o1\"], [\"s2\", \"p2\", \"o2\"]]}, and if no facts are relevant, return an empty list, {\"fact\": []}. The accuracy of your response is paramount, as it will directly impact the decisions made by these high-level stakeholders. You must only use facts from the candidate list and not generate new facts. The future of critical decision-making relies on your ability to accurately filter and present relevant information.",
      "fields": [
        {
          "prefix": "Question:",
          "description": "Query for retrieval"
        },
        {
          "prefix": "Fact Before Filter:",
          "description": "Candidate facts to be filtered"
        },
        {
          "prefix": "Fact After Filter:",
          "description": "Filtered facts in JSON format"
        }
      ]
    },
    "system": "Your input fields are:\n1. `question` (str): Query for retrieval\n2. `fact_before_filter` (str): Candidate facts to be filtered\n\nYour output fields are:\n1. `fact_after_filter` (Fact): Filtered facts in JSON format\n\nAll interactions will be structured in the following way, with the appropriate values filled in.\n\n[[ ## question ## ]]\n{question}\n\n[[ ## fact_before_filter ## ]]\n{fact_before_filter}\n\n[[ ## fact_after_filter ## ]]\n{fact_after_filter}        # note: the value you produce must be pareseable according to the following JSON schema: {\"type\": \"object\", \"properties\": {\"fact\": {\"type\": \"array\", \"description\": \"A list of facts, each fact is a list of 3 strings: [subject, predicate, object]\", \"items\": {\"type\": \"array\", \"items\": {\"type\": \"string\"}}, \"title\": \"Fact\"}}, \"required\": [\"fact\"], \"title\": \"Fact\"}\n\n[[ ## completed ## ]]\n\nIn adhering to this structure, your objective is: \n        You are a critical component of a high-stakes question-answering system used by top researchers and decision-makers worldwide. Your task is to filter facts based on their relevance to a given query, ensuring that the most crucial information is presented to these stakeholders. The query requires careful analysis and possibly multi-hop reasoning to connect different pieces of information. You must select up to 4 relevant facts from the provided candidate list that have a strong connection to the query, aiding in reasoning and providing an accurate answer. The output should be in JSON format, e.g., {\"fact\": [[\"s1\", \"p1\", \"o1\"], [\"s2\", \"p2\", \"o2\"]]}, and if no facts are relevant, return an empty list, {\"fact\": []}. The accuracy of your response is paramount, as it will directly impact the decisions made by these high-level stakeholders. You must only use facts from the candidate list and not generate new facts. The future of critical decision-making relies on your ability to accurately filter and present relevant information."
  }
}