Update README.md
Browse files89 unmodified lines9091929394959697989910010110289 unmodified lines## Usage```pythonfrom datasets import load_datasetdataset = load_dataset("tencent/GroupAssistBench", split="test")print(len(dataset)) # 2395```For the complete dataset construction pipeline, evaluation protocol, and implementation details, please refer to our [GitHub repository](https://github.com/Tencent/GroupAssistBench).## License89 unmodified lines9091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413589 unmodified lines## Usage`load_dataset` loads the 2,395 evaluation instances (`dataset/items.jsonl`).The conversations the instances are asked against are in `dataset/contexts.json`.That file is a dictionary keyed by group rather than a table, so download it with`huggingface_hub`:```pythonimport jsonfrom datasets import load_datasetfrom huggingface_hub import hf_hub_downloaditems = load_dataset("tencent/GroupAssistBench", split="test")print(len(items)) # 2395path = hf_hub_download("tencent/GroupAssistBench", "dataset/contexts.json", repo_type="dataset")with open(path, encoding="utf-8") as f:contexts = json.load(f) # {group: [[turn, speaker, text], ...]}item = items[0]history = [m for m in contexts[item["group"]] if m[0] < item["cut_idx"]]# history: the conversation a system may read before the request# item["query"]: the request# item["gt"] / item["gt_atoms"] (L1) or item["criteria"] (L2): the reference for scoring```To download all files, including `contexts_en.json` (English reference translation),`profiles.json` and `items_full.jsonl`:```pythonfrom huggingface_hub import snapshot_downloadlocal_dir = snapshot_download("tencent/GroupAssistBench", repo_type="dataset")```or from the command line:```bashhf download tencent/GroupAssistBench --repo-type dataset --local-dir GroupAssistBench```For the complete dataset construction pipeline, evaluation protocol, and implementation details, please refer to our [GitHub repository](https://github.com/Tencent/GroupAssistBench).## License
README.md+35-2