File size: 1,555 Bytes
3358fd3
 
 
 
 
 
 
 
 
 
 
bd468ee
 
dfb7db1
 
374834e
3358fd3
bd468ee
dfb7db1
 
374834e
3358fd3
bd468ee
dfb7db1
 
 
 
 
 
 
 
374834e
3358fd3
 
 
 
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
spec_version: "1.0"
name: "rag_optimizer"
environment:
  name: "RAG Optimizer"
  description: "RAG pipeline optimization benchmark. Agents resolve pricing conflicts, route metadata tags, and splinter monolithic content blobs."
  version: "1.0.0"
  dockerfile: "Dockerfile"
  endpoints:
    reset: "/reset"
    step: "/step/{session_id}"
    state: "/state/{session_id}"
tasks:
  - id: easy
    name: "Contamination Purging"
    description: "Purge contradictory or low-value documents so retrieval surfaces clean, high-signal references."
    reward_range: [0.01, 0.99]
    grader: "rag_optimizer.server.grader:grade_easy"
  - id: medium
    name: "Syntactic Splintering"
    description: "Break down the monolithic onboarding blob into multiple granular chunks."
    reward_range: [0.01, 0.99]
    grader: "rag_optimizer.server.grader:grade_medium"
  - id: hard
    name: "Duplicate Purge"
    description: >
      Multi-doc deduplication for framework drift. KB contains 3 overlapping
      FastAPI routing docs: two legacy variants with incorrect @app.route()
      guidance and one correct current doc using @app.get()/@app.post() and
      Pydantic v2, plus distractors. Agent must delete noisy legacy docs so
      retrieval surfaces the correct current doc at rank 1. Reward improves
      continuously as noise is removed; no binary metadata gate.
    reward_range: [0.01, 0.99]
    grader: "rag_optimizer.server.grader:grade_hard"
agent:
  inference_entrypoint: "inference.py"
  requirements: "requirements.txt"