File size: 2,868 Bytes
bc78225
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
{
  "$defs": {
    "RetrievalContext": {
      "properties": {
        "problem_id": {
          "title": "Problem Id",
          "type": "string"
        },
        "subgoal_id": {
          "default": "",
          "title": "Subgoal Id",
          "type": "string"
        },
        "attempt": {
          "default": 0,
          "title": "Attempt",
          "type": "integer"
        },
        "agent": {
          "default": "",
          "title": "Agent",
          "type": "string"
        },
        "run_id": {
          "default": "",
          "title": "Run Id",
          "type": "string"
        }
      },
      "required": [
        "problem_id"
      ],
      "title": "RetrievalContext",
      "type": "object"
    },
    "RetrievalFilters": {
      "properties": {
        "math_area": {
          "items": {
            "type": "string"
          },
          "title": "Math Area",
          "type": "array"
        },
        "doc_ids": {
          "items": {
            "type": "string"
          },
          "title": "Doc Ids",
          "type": "array"
        },
        "unit_types": {
          "items": {
            "type": "string"
          },
          "title": "Unit Types",
          "type": "array"
        },
        "kinds": {
          "items": {
            "type": "string"
          },
          "title": "Kinds",
          "type": "array"
        }
      },
      "title": "RetrievalFilters",
      "type": "object"
    }
  },
  "properties": {
    "queries": {
      "items": {
        "type": "string"
      },
      "maxItems": 4,
      "minItems": 1,
      "title": "Queries",
      "type": "array"
    },
    "rerank_against": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Rerank Against"
    },
    "mode": {
      "default": "nl",
      "enum": [
        "nl",
        "formal",
        "error",
        "exemplar"
      ],
      "title": "Mode",
      "type": "string"
    },
    "corpora": {
      "items": {
        "enum": [
          "mathlib",
          "informal"
        ],
        "type": "string"
      },
      "title": "Corpora",
      "type": "array"
    },
    "k": {
      "default": 8,
      "title": "K",
      "type": "integer"
    },
    "n_candidates": {
      "default": 50,
      "title": "N Candidates",
      "type": "integer"
    },
    "filters": {
      "$ref": "#/$defs/RetrievalFilters"
    },
    "rerank": {
      "default": true,
      "title": "Rerank",
      "type": "boolean"
    },
    "include_figures": {
      "default": true,
      "title": "Include Figures",
      "type": "boolean"
    },
    "context": {
      "$ref": "#/$defs/RetrievalContext"
    }
  },
  "required": [
    "queries",
    "context"
  ],
  "title": "RetrievalRequest",
  "type": "object"
}