Skip to content
System One

jev-bfs (Wikipedia link races)

Wikiracing solver that uses Jev to rank outgoing links by fewest expected remaining hops, scoring up to 128 candidate links per request with up to five concurrent requests, shown live in the terminal.

Jev finds a Wikipedia path from Coffee to Black hole
Image from github.com

komikat/jev-bfs on GitHub

Stars
0
Forks
0
Language
Python
License
MIT
Last push
17 Sep 2026

Read from GitHub on . Counts change daily.

How it uses Jev

for attempt in range(3):
    stats["jev_requests"] += 1
    r = await http.post("https://api.typesafe.ai/v1/systemone", json={
        "model": "jev-latest", "state": {"query": query, "links": links}, "questions": questions})
    if r.status_code not in {429, 500, 502, 503, 504, 529} or attempt == 2:
        r.raise_for_status()
        break
    await asyncio.sleep(2 ** attempt)
data = r.json()
stats["model"] = data["model"]
for key in ("input_tokens", "output_tokens"):
    stats[key] += data.get("usage", {}).get(key, 0)
scores = []
for i in range(len(links)):
    answer = data["answers"][str(i)]

View in jev_bfs/core.py

Open on GitHub

More like this

Use cases this is tagged with