Skip to content

Commit 10f5005

Browse files
committed
add prime challenge
1 parent 701c4f1 commit 10f5005

File tree

1 file changed

+44
-163
lines changed

1 file changed

+44
-163
lines changed

lib/algora_web/live/challenges/primeintellect_live.ex

Lines changed: 44 additions & 163 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,39 @@ defmodule AlgoraWeb.Challenges.PrimeintellectLive do
22
@moduledoc false
33
use AlgoraWeb, :live_view
44

5+
alias Algora.Bounties
6+
alias Algora.Bounties.Bounty
7+
alias Algora.Organizations
58
alias AlgoraWeb.Components.Header
69

710
@impl true
811
def mount(_params, _session, socket) do
12+
primeintellect_org = Organizations.get_org_by_handle!("primeintellect-ai")
13+
14+
bounties =
15+
Bounties.list_bounties(
16+
owner_id: primeintellect_org.id,
17+
status: :open,
18+
limit: 100
19+
)
20+
21+
total_bounty_amount =
22+
bounties
23+
|> Enum.map(& &1.amount)
24+
|> Enum.reduce(Money.zero(:USD), &Money.add!/2)
25+
926
{:ok,
1027
socket
1128
|> assign(:page_title, "PrimeIntellect RL Environment Challenge")
1229
|> assign(
1330
:page_description,
1431
"Build RL environments for training AGI models and earn up to $1,000 per environment!"
1532
)
16-
|> assign(:page_image, "#{AlgoraWeb.Endpoint.url()}/images/challenges/primeintellect/og.png")}
33+
|> assign(:page_image, "#{AlgoraWeb.Endpoint.url()}/images/challenges/primeintellect/og.png")
34+
|> assign(:bounties, bounties)
35+
|> assign(:bounties_count, length(bounties))
36+
|> assign(:total_bounty_amount, total_bounty_amount)
37+
|> assign(:primeintellect_org, primeintellect_org)}
1738
end
1839

1940
@impl true
@@ -150,171 +171,31 @@ defmodule AlgoraWeb.Challenges.PrimeintellectLive do
150171
Available Environment Bounties
151172
</h2>
152173
<p class="text-center mt-4 text-base font-medium text-gray-200 mb-8">
153-
60 active bounties available totaling $18,900 in rewards. Select a bounty to start building. Each environment should integrate with our RL training infrastructure.
174+
{@bounties_count} active bounties available totaling {Money.to_string!(
175+
@total_bounty_amount
176+
)} in rewards. Select a bounty to start building. Each environment should integrate with our RL training infrastructure.
154177
</p>
155178
<div class="mx-auto grid gap-6 px-6 sm:grid-cols-2 lg:grid-cols-3 lg:px-8">
156-
<a
157-
href="https://github.com/PrimeIntellect-ai/genesys/issues/814"
158-
target="_blank"
159-
rel="noopener"
160-
class="group relative overflow-hidden rounded-lg border border-border bg-card p-6 transition-all hover:border-emerald-500/50 hover:no-underline block"
161-
>
162-
<div class="flex items-center gap-4 mb-4">
163-
<div class="w-12 h-12 rounded-lg bg-gradient-to-br from-emerald-400 to-emerald-600 flex items-center justify-center">
164-
<.icon name="tabler-world-www" class="w-6 h-6 text-white" />
165-
</div>
166-
<div>
167-
<h3 class="text-lg font-semibold text-foreground">webarena</h3>
168-
<p class="text-sm text-muted-foreground">Web interaction</p>
169-
</div>
170-
</div>
171-
<p class="text-sm text-muted-foreground">
172-
Create a WebArena RL environment for training models to navigate and interact with web interfaces. DOM manipulation, form filling, and multi-step task completion evaluation.
173-
</p>
174-
<div class="mt-4 flex items-center gap-2">
175-
<span class="font-display rounded-full bg-emerald-500/10 px-2 py-1 text-xs font-bold text-emerald-500 ring-emerald-500/50 ring-1">
176-
$400
177-
</span>
178-
<span class="font-display rounded-full bg-emerald-500/10 px-2 py-1 text-xs font-bold text-emerald-500 ring-emerald-500/50 ring-1">
179-
Active
180-
</span>
181-
</div>
182-
</a>
183-
<a
184-
href="https://github.com/PrimeIntellect-ai/genesys/issues/797"
185-
target="_blank"
186-
rel="noopener"
187-
class="group relative overflow-hidden rounded-lg border border-border bg-card p-6 transition-all hover:border-emerald-500/50 hover:no-underline block"
188-
>
189-
<div class="flex items-center gap-4 mb-4">
190-
<div class="w-12 h-12 rounded-lg bg-gradient-to-br from-green-400 to-green-600 flex items-center justify-center">
191-
<.icon name="tabler-code" class="w-6 h-6 text-white" />
192-
</div>
193-
<div>
194-
<h3 class="text-lg font-semibold text-foreground">humaneval-plus</h3>
195-
<p class="text-sm text-muted-foreground">Code generation</p>
196-
</div>
197-
</div>
198-
<p class="text-sm text-muted-foreground">
199-
Build enhanced HumanEval environment with additional test cases, multi-language support, and comprehensive code quality scoring for RL training.
200-
</p>
201-
<div class="mt-4 flex items-center gap-2">
202-
<span class="font-display rounded-full bg-emerald-500/10 px-2 py-1 text-xs font-bold text-emerald-500 ring-emerald-500/50 ring-1">
203-
$350
204-
</span>
205-
<span class="font-display rounded-full bg-emerald-500/10 px-2 py-1 text-xs font-bold text-emerald-500 ring-emerald-500/50 ring-1">
206-
Active
207-
</span>
208-
</div>
209-
</a>
210-
<a
211-
href="https://github.com/PrimeIntellect-ai/genesys/issues/80"
212-
target="_blank"
213-
rel="noopener"
214-
class="group relative overflow-hidden rounded-lg border border-border bg-card p-6 transition-all hover:border-emerald-500/50 hover:no-underline block"
215-
>
216-
<div class="flex items-center gap-4 mb-4">
217-
<div class="w-12 h-12 rounded-lg bg-gradient-to-br from-purple-400 to-purple-600 flex items-center justify-center">
218-
<.icon name="tabler-math" class="w-6 h-6 text-white" />
219-
</div>
220-
<div>
221-
<h3 class="text-lg font-semibold text-foreground">mathbench</h3>
222-
<p class="text-sm text-muted-foreground">Mathematical reasoning</p>
223-
</div>
224-
</div>
225-
<p class="text-sm text-muted-foreground">
226-
Mathematical reasoning environment based on MATH dataset for competition-level problems with step-by-step verification and symbolic reasoning support.
227-
</p>
228-
<div class="mt-4 flex items-center gap-2">
229-
<span class="font-display rounded-full bg-emerald-500/10 px-2 py-1 text-xs font-bold text-emerald-500 ring-emerald-500/50 ring-1">
230-
$380
231-
</span>
232-
<span class="font-display rounded-full bg-emerald-500/10 px-2 py-1 text-xs font-bold text-emerald-500 ring-emerald-500/50 ring-1">
233-
Active
234-
</span>
235-
</div>
236-
</a>
237-
<a
238-
href="https://github.com/PrimeIntellect-ai/genesys/issues/737"
239-
target="_blank"
240-
rel="noopener"
241-
class="group relative overflow-hidden rounded-lg border border-border bg-card p-6 transition-all hover:border-emerald-500/50 hover:no-underline block"
242-
>
243-
<div class="flex items-center gap-4 mb-4">
244-
<div class="w-12 h-12 rounded-lg bg-gradient-to-br from-orange-400 to-orange-600 flex items-center justify-center">
245-
<.icon name="tabler-school" class="w-6 h-6 text-white" />
246-
</div>
247-
<div>
248-
<h3 class="text-lg font-semibold text-foreground">gsm8k</h3>
249-
<p class="text-sm text-muted-foreground">Grade school math</p>
250-
</div>
251-
</div>
252-
<p class="text-sm text-muted-foreground">
253-
GSM8K environment for multi-step word problems with natural language to mathematical expression parsing and reasoning verification.
254-
</p>
255-
<div class="mt-4 flex items-center gap-2">
256-
<span class="font-display rounded-full bg-emerald-500/10 px-2 py-1 text-xs font-bold text-emerald-500 ring-emerald-500/50 ring-1">
257-
$280
258-
</span>
259-
<span class="font-display rounded-full bg-emerald-500/10 px-2 py-1 text-xs font-bold text-emerald-500 ring-emerald-500/50 ring-1">
260-
Active
261-
</span>
262-
</div>
263-
</a>
264-
<a
265-
href="https://github.com/PrimeIntellect-ai/genesys/issues/741"
266-
target="_blank"
267-
rel="noopener"
268-
class="group relative overflow-hidden rounded-lg border border-border bg-card p-6 transition-all hover:border-emerald-500/50 hover:no-underline block"
269-
>
270-
<div class="flex items-center gap-4 mb-4">
271-
<div class="w-12 h-12 rounded-lg bg-gradient-to-br from-indigo-400 to-indigo-600 flex items-center justify-center">
272-
<.icon name="tabler-brain" class="w-6 h-6 text-white" />
273-
</div>
274-
<div>
275-
<h3 class="text-lg font-semibold text-foreground">hellaswag</h3>
276-
<p class="text-sm text-muted-foreground">Commonsense reasoning</p>
277-
</div>
278-
</div>
279-
<p class="text-sm text-muted-foreground">
280-
Commonsense reasoning environment for evaluating situational understanding with multi-choice scenario completion and real-world context.
281-
</p>
282-
<div class="mt-4 flex items-center gap-2">
283-
<span class="font-display rounded-full bg-emerald-500/10 px-2 py-1 text-xs font-bold text-emerald-500 ring-emerald-500/50 ring-1">
284-
$250
285-
</span>
286-
<span class="font-display rounded-full bg-emerald-500/10 px-2 py-1 text-xs font-bold text-emerald-500 ring-emerald-500/50 ring-1">
287-
Active
288-
</span>
289-
</div>
290-
</a>
291-
<a
292-
href="https://github.com/PrimeIntellect-ai/genesys/issues/796"
293-
target="_blank"
294-
rel="noopener"
295-
class="group relative overflow-hidden rounded-lg border border-border bg-card p-6 transition-all hover:border-emerald-500/50 hover:no-underline block"
296-
>
297-
<div class="flex items-center gap-4 mb-4">
298-
<div class="w-12 h-12 rounded-lg bg-gradient-to-br from-red-400 to-red-600 flex items-center justify-center">
299-
<.icon name="tabler-shield-check" class="w-6 h-6 text-white" />
300-
</div>
301-
<div>
302-
<h3 class="text-lg font-semibold text-foreground">truthfulqa</h3>
303-
<p class="text-sm text-muted-foreground">Truthfulness detection</p>
179+
<%= for {bounty, index} <- Enum.with_index(@bounties) do %>
180+
<a
181+
href={Bounty.url(bounty)}
182+
target="_blank"
183+
rel="noopener"
184+
class="group relative overflow-hidden rounded-lg border border-border bg-card p-6 transition-all hover:border-emerald-500/50 hover:no-underline block"
185+
>
186+
<p class="text-sm text-muted-foreground line-clamp-3">
187+
{bounty.ticket.title}
188+
</p>
189+
<div class="mt-4 flex items-center gap-2">
190+
<span class="font-display rounded-full bg-emerald-500/10 px-2 py-1 text-xs font-bold text-emerald-500 ring-emerald-500/50 ring-1">
191+
{Money.to_string!(bounty.amount)}
192+
</span>
193+
<span class="font-display rounded-full bg-emerald-500/10 px-2 py-1 text-xs font-bold text-emerald-500 ring-emerald-500/50 ring-1">
194+
Active
195+
</span>
304196
</div>
305-
</div>
306-
<p class="text-sm text-muted-foreground">
307-
Environment for detecting and avoiding misinformation with truth/falsehood detection tasks and factual accuracy verification mechanisms.
308-
</p>
309-
<div class="mt-4 flex items-center gap-2">
310-
<span class="font-display rounded-full bg-emerald-500/10 px-2 py-1 text-xs font-bold text-emerald-500 ring-emerald-500/50 ring-1">
311-
$320
312-
</span>
313-
<span class="font-display rounded-full bg-emerald-500/10 px-2 py-1 text-xs font-bold text-emerald-500 ring-emerald-500/50 ring-1">
314-
Active
315-
</span>
316-
</div>
317-
</a>
197+
</a>
198+
<% end %>
318199
</div>
319200
<div class="text-center mt-8">
320201
<p class="text-base font-medium text-gray-200">

0 commit comments

Comments
 (0)