Spaces:
Sleeping
Sleeping
|
Download daigram.md from KRISHDEV99/OpenenvScaler: direct link, hf CLI and curl.
- Browser
- Download file 1.47 kB
-
https://huggingface.co/spaces/KRISHDEV99/OpenenvScaler/resolve/main/daigram.md
- Command line
-
hf download hf://spaces/KRISHDEV99/OpenenvScaler/daigram.md
-
curl -L -o daigram.md https://huggingface.co/spaces/KRISHDEV99/OpenenvScaler/resolve/main/daigram.md
1.47 kB
| # Customer Support OpenEnv Benchmark Diagram | |
| ```mermaid | |
| flowchart TD | |
| A[dataset.csv] --> B[data_loader.py\nload + normalize + split] | |
| B --> C[kb.py\nbuild knowledge base] | |
| B --> D[server/customer_support_environment.py\nOpenEnv Environment] | |
| C --> D | |
| E[tasks.py\n3 tasks + deterministic graders] --> D | |
| F[models.py\nTyped Action / Observation / State] --> D | |
| D --> G[OpenEnv FastAPI App\nserver/app.py] | |
| G --> H[POST /reset] | |
| G --> I[POST /step] | |
| G --> J[GET /state] | |
| G --> K[GET /schema] | |
| L[inference.py\nbaseline agent run] --> G | |
| L --> M[[Structured Logs\n[START] [STEP] [END]]] | |
| D --> N[[Reward Shaping\npartial progress + penalties]] | |
| D --> O[[Episode Final Score\n0.0 to 1.0]] | |
| P[openenv.yaml] --> G | |
| Q[Dockerfile] --> R[HF Space Deployment] | |
| G --> R | |
| ``` | |
| ## Episode Logic (high-level) | |
| ```mermaid | |
| sequenceDiagram | |
| participant Agent | |
| participant Env as CustomerSupportEnvironment | |
| participant Grader as Task Grader | |
| Agent->>Env: reset(difficulty, index) | |
| Env-->>Agent: Observation(ticket, query, kb_id, task_id) | |
| loop up to max steps | |
| Agent->>Env: step(Action) | |
| Env->>Env: reward shaping (progress + penalties) | |
| Env-->>Agent: Observation + reward + done | |
| end | |
| Env->>Grader: grade_task(task_id, expected, history) | |
| Grader-->>Env: final score in [0.0, 1.0] | |
| Env-->>Agent: final metadata with score | |
| ``` | |