Spaces:
Sleeping
Sleeping
File size: 1,750 Bytes
4f29892 d68d941 4f29892 53516a5 a0969f0 4f29892 d68d941 4f29892 53516a5 a0969f0 4f29892 d68d941 4f29892 53516a5 a0969f0 4f29892 | 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 | name: rl-documentation-parser
version: "1.0.0"
description: >
A Gymnasium environment where an agent navigates a mock filesystem
to answer user queries using technical documentation files.
Simulates a real-world developer task: searching docs to answer questions.
author: MalG4850
repository: https://github.com/MalG4850/RL-Documentation-Parser
observation_space:
type: Dict
keys:
current_path:
type: Text
max_length: 512
dir_contents:
type: Text
max_length: 2048
user_query:
type: Text
max_length: 512
action_space:
type: Discrete
n: 4
actions:
0: ls
1: cd
2: read
3: submit_answer
reward_range: [-20, 100]
max_steps: 20
tasks:
- id: 1
name: easy
description: >
Locate SSL/TLS configuration details from network documentation.
grader: root.graders:grade_find_ssl_config
score_range: [0.01, 0.99]
- id: 2
name: medium
description: >
Find PostgreSQL setup and optimization instructions from db documentation.
grader: root.graders:grade_find_postgres_setup
score_range: [0.01, 0.99]
- id: 3
name: hard
description: >
Retrieve OAuth 2.0 authentication steps from the API documentation.
grader: root.graders:grade_find_oauth_guide
score_range: [0.01, 0.99]
episode_boundaries:
done_on_correct_answer: true
done_on_wrong_answer: true
done_on_max_steps: true
partial_rewards:
- condition: "navigates to correct directory"
reward: 0
- condition: "reads correct file"
reward: 0
- condition: "correct answer submitted"
reward: 100
- condition: "wrong answer submitted"
reward: -20
- condition: "invalid action"
reward: -5
- condition: "per step"
reward: -1
|