--- license: cc-by-nd-4.0 language: - en pretty_name: NetConfigQA 2.1 size_categories: - 1K/`) | | `lab` | `LabA` – `LabD` | | `id` | Question ID, unique within a lab | | `metric` | Metric (question template) name | | `category` | Metric category (e.g. `System_Inventory`, `OSPF_Consistency`, `Reachability_Analysis`) | | `level` | Difficulty level `L1`–`L5` | | `scope` | JSON string describing the question target (`DEVICE`, `GLOBAL`, `NODE_PAIR`, ...) | | `question` | Question text, including the expected answer format | | `answer_type` | `text`, `number`, `set_str`, `set`, `map_str_str`, `map_str_int` | | `answer` | Raw ground-truth answer (JSON-encoded string) | | `eval_answer` | Normalized answer used for scoring | | `oracle_source` | How the answer was derived: `parser` (Batfish config parsing), `hybrid` (parsed facts + cross-device logic), `batfish_replay` (Batfish simulation, L4/L5) | | `files` | Configuration files (under `labs//configs/`) needed to answer. An **empty list means the whole lab** (all L4/L5 questions require the full topology) | ## Evaluation: Type-Aware Accuracy (TA-Acc) Embedding-based similarity (e.g. BERTScore) does not separate correct from incorrect answers on network data, so each answer type uses its own comparison function: | Answer type | Comparison | Example | | -------------------------------------- | ----------------------------------------- | ------------------------------------- | | Set (`set`, `set_str`) | Set F1 (order-agnostic) | BGP neighbor list, interface set | | Map (`map_str_str`, `map_str_int`) | Key-value F1 | Per-device attributes / statistics | | Number (`number`) | Numeric normalization + exact match | Hop count, AS number | | Text (`text`) | Normalized exact match (order-preserving) | Hostname, IP address, traceroute path | ### `NOT_CONFIGURED` answers 2,076 instances (21.9%) ask about a feature that is **not configured** on the target device(s), e.g. a timezone on a router without `clock timezone`. For these, `eval_answer` is `NOT_CONFIGURED`. A model is expected to recognize the absence of the feature rather than hallucinate a value. ### Answer conventions Some question templates do not state how to answer when the queried item is absent or when traffic does not reach its destination. The ground truth follows these conventions: | Situation | Ground-truth answer | Scoring | | --- | --- | --- | | Queried feature not configured on the target device(s) | `eval_answer` = `NOT_CONFIGURED` (raw `answer` is `[]`, `{}`, `0`, `"None"`, `"Disabled"`, `"Not Configured"` or `null`, depending on the template) | Answers stating that the feature is absent (e.g. `none`, `not configured`) are accepted | | List question with no matching item (e.g. *Which devices are missing SSH configuration?* when none are) | `[]` | Set F1; only an empty list (`[]`) scores 1 | | Traceroute that does not reach the destination | Hops traversed, up to the device where the flow stops (e.g. `"leaf6 -> pe3"`) | Normalized exact match | | Reachability status | `PATH: ; REACHABLE: TRUE` or `PATH: ; REACHABLE: FALSE; REASON: ` | Normalized exact match | ## Notes - **Sanitization.** Local-user `secret` values in the configurations were replaced with a dummy hash. No question depends on them. - **Known limitation.** 8 L5 config-change questions (*"... after the configuration modification?"*) do not state which device was modified in the question text. ``` @misc{hyeonjeong_lee_2026, author = { Hyeonjeong Lee and Yujin Park and Ki-Hyeon Kim and Chanjin Park and Jinyeong Bak and Eunkyung Kim and Taehoon Kim and Haneol Jang and Cheoneum Park }, title = { NetConfigQA2.1 (Revision 49edc00) }, year = 2026, url = { https://huggingface.co/datasets/hbnunlp/NetConfigQA2.1 }, doi = { 10.57967/hf/11571 }, publisher = { Hugging Face } } ```