-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcapdb-prototype.json
More file actions
275 lines (275 loc) · 9.99 KB
/
capdb-prototype.json
File metadata and controls
275 lines (275 loc) · 9.99 KB
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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
{
"meta": {
"name": "CapDB Prototype",
"version": "0.1",
"created": "2026-04-14",
"capabilities": 6,
"build_time_s": 0.61
},
"capabilities": [
{
"id": "cap-000",
"description": "The marine capability involves collecting and recording meteorological data, including temperature, humidity, wind speed, and other weather conditions, at specific times and geographic locations.",
"code": "```python\nimport datetime\nimport logging\n\ndef log_weather_observation(location, temperature, humidity, wind_speed):\n \"\"\"\n Logs weather observations with timestamp and location.\n\n Args:\n location (str): The location where the observation was made.\n temperature (float): The temperature in degrees Celsius.\n humidity (float): The relative humidity as a percentage.\n wind_speed (float): The",
"embedding": [
0.7450980392156863,
0.5450980392156862,
0.6274509803921569,
0.27450980392156865,
0.3215686274509804,
0.8941176470588236,
0.00392156862745098,
0.30196078431372547,
0.1803921568627451,
0.5254901960784314,
0.9686274509803922,
0.3215686274509804,
0.027450980392156862,
0.2980392156862745,
0.9764705882352941,
0.8941176470588236,
0.596078431372549,
0.043137254901960784,
0.984313725490196,
0.0784313725490196,
0.6862745098039216,
0.9450980392156862,
0.12156862745098039,
0.3215686274509804,
0.0,
0.26666666666666666,
0.9450980392156862,
0.8392156862745098,
0.7333333333333333,
0.2901960784313726,
0.4470588235294118,
0.7215686274509804
],
"hardware": {
"min_ram": "1MB",
"gpu": false
},
"compiled_from": "groq-llama-3.3-70b + llama-3.1-8b-instant"
},
{
"id": "cap-001",
"description": "This marine capability provides real-time monitoring of battery voltage, issuing timely warnings to prevent unexpected power loss by alerting users of a critical drop in voltage levels.",
"code": "```python\nimport RPi.GPIO as GPIO\nimport time\nimport smbus\n\ndef monitor_battery_voltage(voltage_threshold, warning_threshold, i2c_address=0x48):\n bus = smbus.SMBus(1)\n while True:\n voltage = bus.read_byte_data(i2c_address, 0)\n voltage = voltage / 10.0\n if voltage",
"embedding": [
0.9215686274509803,
0.7607843137254902,
0.2980392156862745,
0.5607843137254902,
0.00392156862745098,
0.21568627450980393,
0.03137254901960784,
0.9450980392156862,
0.2,
0.7294117647058823,
0.9803921568627451,
0.6313725490196078,
0.043137254901960784,
1.0,
0.8627450980392157,
0.12941176470588237,
0.796078431372549,
0.1568627450980392,
0.2823529411764706,
0.07058823529411765,
0.9176470588235294,
0.047058823529411764,
0.5098039215686274,
0.5411764705882353,
0.5372549019607843,
0.7764705882352941,
0.2784313725490196,
0.9764705882352941,
0.7764705882352941,
0.27450980392156865,
0.11764705882352941,
0.2196078431372549
],
"hardware": {
"min_ram": "1MB",
"gpu": false
},
"compiled_from": "groq-llama-3.3-70b + llama-3.1-8b-instant"
},
{
"id": "cap-002",
"description": "Monitoring vessel speed in narrow channels to prevent excessive speeds that could lead to accidents or environmental damage.",
"code": "```python\ndef check_vessel_speed(vessel_speed, safe_limit, channel_width, vessel_width):\n \"\"\"\n Check if vessel speed exceeds safe limit in narrow channel.\n\n Args:\n vessel_speed (float): Vessel speed in knots.\n safe_limit (float): Safe speed limit in knots.\n channel_width (float): Channel width in meters.\n vessel_width (float): V",
"embedding": [
0.8,
0.9529411764705882,
0.22745098039215686,
0.5372549019607843,
0.5686274509803921,
0.6980392156862745,
0.6549019607843137,
0.9568627450980393,
0.00784313725490196,
0.9882352941176471,
0.8980392156862745,
0.396078431372549,
0.6039215686274509,
0.3686274509803922,
0.8196078431372549,
0.26666666666666666,
0.49411764705882355,
0.8980392156862745,
0.13333333333333333,
0.47843137254901963,
0.7058823529411765,
0.36470588235294116,
0.7568627450980392,
0.5294117647058824,
0.3137254901960784,
0.796078431372549,
0.2549019607843137,
0.7843137254901961,
0.8901960784313725,
0.0,
0.9725490196078431,
0.9098039215686274
],
"hardware": {
"min_ram": "1MB",
"gpu": false
},
"compiled_from": "groq-llama-3.3-70b + llama-3.1-8b-instant"
},
{
"id": "cap-003",
"description": "Automated fish counting and sorting capability utilizing camera snapshots to accurately tally and categorize fish species in each bin.",
"code": "```python\nimport cv2\nimport numpy as np\n\ndef count_fish(image_path, bin_thresholds):\n \"\"\"\n Count fish sorted into each bin from camera snapshots.\n\n Args:\n image_path (str): Path to the image file.\n bin_thresholds (list): List of bin thresholds.\n\n Returns:\n dict: Dictionary with bin numbers as keys and fish counts as values",
"embedding": [
0.9098039215686274,
0.7803921568627451,
0.40784313725490196,
0.5843137254901961,
0.6666666666666666,
0.16470588235294117,
0.5607843137254902,
0.49019607843137253,
0.8117647058823529,
0.803921568627451,
0.611764705882353,
0.054901960784313725,
0.7372549019607844,
0.2,
0.9333333333333333,
0.2,
0.5372549019607843,
0.1411764705882353,
0.3764705882352941,
0.3137254901960784,
0.26666666666666666,
0.7803921568627451,
0.13725490196078433,
0.5019607843137255,
0.3803921568627451,
0.8352941176470589,
0.6352941176470588,
0.7058823529411765,
0.9568627450980393,
0.1568627450980392,
0.2980392156862745,
0.08627450980392157
],
"hardware": {
"min_ram": "1MB",
"gpu": false
},
"compiled_from": "groq-llama-3.3-70b + llama-3.1-8b-instant"
},
{
"id": "cap-004",
"description": "The Anchor Watch capability utilizes GPS positioning to monitor and detect anchor drag by comparing the vessel's actual position with its expected position, alerting crew to potential anchoring issues.",
"code": "```python\nimport math\n\ndef is_anchor_dragging(prev_gps, curr_gps, threshold=10, speed_threshold=0.1):\n \"\"\"\n Detects if an anchor is dragging by comparing GPS drift.\n\n Args:\n prev_gps (tuple): Previous GPS coordinates (latitude, longitude)\n curr_gps (tuple): Current GPS coordinates (latitude, longitude)\n threshold (float): Maximum",
"embedding": [
0.16470588235294117,
0.06666666666666667,
0.8980392156862745,
0.7490196078431373,
0.7450980392156863,
0.06274509803921569,
0.4549019607843137,
0.9450980392156862,
0.7137254901960784,
0.5764705882352941,
0.8431372549019608,
0.34509803921568627,
0.30980392156862746,
0.38823529411764707,
0.7411764705882353,
0.7098039215686275,
0.14901960784313725,
0.027450980392156862,
0.058823529411764705,
0.4,
0.3176470588235294,
0.4235294117647059,
0.8823529411764706,
0.7686274509803922,
0.7725490196078432,
0.44313725490196076,
0.23921568627450981,
0.8431372549019608,
0.3843137254901961,
0.23529411764705882,
0.06274509803921569,
0.7686274509803922
],
"hardware": {
"min_ram": "1MB",
"gpu": false
},
"compiled_from": "groq-llama-3.3-70b + llama-3.1-8b-instant"
},
{
"id": "cap-005",
"description": "This marine capability provides an estimated time of arrival at a destination port based on a vessel's current speed and heading.",
"code": "```python\nimport math\n\ndef estimate_time_to_port(current_speed, current_heading, port_heading, distance_to_port):\n \"\"\"\n Estimate time to port based on current speed and heading.\n\n Args:\n current_speed (float): Current speed in knots.\n current_heading (float): Current heading in degrees.\n port_heading (float): Heading of the port in degrees.\n distance_to_port",
"embedding": [
0.788235294117647,
0.6470588235294118,
0.10196078431372549,
0.3137254901960784,
0.5058823529411764,
0.6039215686274509,
0.5647058823529412,
0.7803921568627451,
0.8235294117647058,
0.7686274509803922,
0.6784313725490196,
0.058823529411764705,
0.1803921568627451,
0.403921568627451,
0.8745098039215686,
0.9686274509803922,
0.6078431372549019,
0.48627450980392156,
0.5294117647058824,
0.2627450980392157,
0.3058823529411765,
0.1411764705882353,
0.6392156862745098,
0.47843137254901963,
0.5529411764705883,
0.5843137254901961,
0.6039215686274509,
0.08627450980392157,
0.8862745098039215,
0.4823529411764706,
0.19215686274509805,
0.35294117647058826
],
"hardware": {
"min_ram": "1MB",
"gpu": false
},
"compiled_from": "groq-llama-3.3-70b + llama-3.1-8b-instant"
}
]
}