qid string | question string | retrieved list |
|---|---|---|
0 | who got the first nobel prize in physics? | [
{
"docid": "628725",
"rank": 1,
"score": 18.330151081154185,
"title": "\"Nobel Prize in Physics\""
},
{
"docid": "628713",
"rank": 2,
"score": 18.161395612405947,
"title": "\"Nobel Prize in Physics\""
},
{
"docid": "49120",
"rank": 3,
"score": 15.222245083758228,
... |
1 | when is the next deadpool movie being released? | [
{
"docid": "168998",
"rank": 1,
"score": 10.91465892689034,
"title": "Garfield"
},
{
"docid": "899066",
"rank": 2,
"score": 10.256622570954885,
"title": "\"Snoop Dogg\""
},
{
"docid": "812288",
"rank": 3,
"score": 9.565891663437956,
"title": "\"Goof Troop\""
... |
2 | which mode is used for short wave broadcast service? | [
{
"docid": "483706",
"rank": 1,
"score": 23.264317197477585,
"title": "\"BBC World Service\""
},
{
"docid": "483733",
"rank": 2,
"score": 21.434178611875616,
"title": "\"BBC World Service\""
},
{
"docid": "377817",
"rank": 3,
"score": 20.340492256903186,
"titl... |
3 | the south west wind blows across nigeria between? | [
{
"docid": "85791",
"rank": 1,
"score": 16.607891502635766,
"title": "\"Cape Town\""
},
{
"docid": "864855",
"rank": 2,
"score": 15.187828417324727,
"title": "Aude"
},
{
"docid": "283814",
"rank": 3,
"score": 14.646548812011432,
"title": "\"Geography of Nigeri... |
4 | what does hp mean in war and order? | [
{
"docid": "319365",
"rank": 1,
"score": 13.303483007925465,
"title": "\"Philosophical Investigations\""
},
{
"docid": "118949",
"rank": 2,
"score": 12.54640886692388,
"title": "\"Ethical non-naturalism\""
},
{
"docid": "513012",
"rank": 3,
"score": 12.10470969875... |
5 | who wrote the first declaration of human rights? | [
{
"docid": "434773",
"rank": 1,
"score": 8.224058667948626,
"title": "\"Universal Declaration of Human Rights\""
},
{
"docid": "182329",
"rank": 2,
"score": 8.077071102298767,
"title": "\"Human rights\""
},
{
"docid": "679778",
"rank": 3,
"score": 7.79591870513227... |
6 | who is the owner of reading football club? | [
{
"docid": "332357",
"rank": 1,
"score": 15.727244493290545,
"title": "\"Port Adelaide Football Club\""
},
{
"docid": "931277",
"rank": 2,
"score": 12.51487047994336,
"title": "Orpington"
},
{
"docid": "793069",
"rank": 3,
"score": 12.183475274289123,
"title":... |
7 | when is the next scandal episode coming out? | [
{
"docid": "989431",
"rank": 1,
"score": 9.863513230878716,
"title": "\"Father Ted Crilly\""
},
{
"docid": "796383",
"rank": 2,
"score": 9.812699872944991,
"title": "\"Coming out\""
},
{
"docid": "54273",
"rank": 3,
"score": 9.312101317140876,
"title": "\"Bipo... |
8 | when is the last time the philadelphia won the superbowl? | [
{
"docid": "964319",
"rank": 1,
"score": 11.74004756316112,
"title": "\"National Lacrosse League\""
},
{
"docid": "378370",
"rank": 2,
"score": 8.108500932153824,
"title": "\"Susan B. Anthony\""
},
{
"docid": "921040",
"rank": 3,
"score": 8.001259833781015,
"t... |
9 | who was the first lady nominated member of the rajya sabha? | [
{
"docid": "561916",
"rank": 1,
"score": 10.303149240091429,
"title": "\"Emperor Go-Daigo\""
},
{
"docid": "679370",
"rank": 2,
"score": 8.134781866960092,
"title": "\"Sachin Tendulkar\""
},
{
"docid": "544357",
"rank": 3,
"score": 7.511024277792678,
"title": ... |
10 | what is the most current adobe flash player version? | [
{
"docid": "281154",
"rank": 1,
"score": 29.547519404908368,
"title": "\"Adobe Flash\""
},
{
"docid": "281138",
"rank": 2,
"score": 27.17974988521243,
"title": "\"Adobe Flash\""
},
{
"docid": "281151",
"rank": 3,
"score": 26.756291587358184,
"title": "\"Adobe ... |
11 | swan lake the sleeping beauty and the nutcracker are three famous ballets by? | [
{
"docid": "324080",
"rank": 1,
"score": 20.031876089916942,
"title": "\"Pyotr Ilyich Tchaikovsky\""
},
{
"docid": "728185",
"rank": 2,
"score": 18.98932066468204,
"title": "\"Vaslav Nijinsky\""
},
{
"docid": "534349",
"rank": 3,
"score": 11.928448784800114,
"... |
12 | how many episodes are there in dragon ball z? | [
{
"docid": "830169",
"rank": 1,
"score": 24.92433002922656,
"title": "\"Dragon Ball (manga)\""
},
{
"docid": "830167",
"rank": 2,
"score": 24.91886131836862,
"title": "\"Dragon Ball (manga)\""
},
{
"docid": "830134",
"rank": 3,
"score": 24.785115608436605,
"ti... |
13 | cast of law & order special victim unit? | [
{
"docid": "193138",
"rank": 1,
"score": 18.27361294390549,
"title": "Ice-T"
},
{
"docid": "676514",
"rank": 2,
"score": 14.112704687519315,
"title": "\"Portuguese Armed Forces\""
},
{
"docid": "835635",
"rank": 3,
"score": 13.49702034213561,
"title": "\"Israe... |
14 | who designed the garden city of new earswick? | [
{
"docid": "818914",
"rank": 1,
"score": 10.631032876904412,
"title": "\"Madison Square Garden\""
},
{
"docid": "757434",
"rank": 2,
"score": 7.570256772108591,
"title": "\"Robin Givens\""
},
{
"docid": "529839",
"rank": 3,
"score": 6.1584436505884526,
"title"... |
15 | what is the first step in the evolution of the eye? | [
{
"docid": "700583",
"rank": 1,
"score": 4.358685798064839,
"title": "\"Columbine High School massacre\""
},
{
"docid": "888818",
"rank": 2,
"score": 4.33484633691834,
"title": "\"Tony Hawk\""
},
{
"docid": "859263",
"rank": 3,
"score": 3.1879388798626525,
"ti... |
16 | where is the tv show the curse of oak island filmed? | [
{
"docid": "329115",
"rank": 1,
"score": 7.134057843104207,
"title": "Profanity"
},
{
"docid": "918071",
"rank": 2,
"score": 7.111144648912301,
"title": "\"Eric Cartman\""
},
{
"docid": "373084",
"rank": 3,
"score": 6.745961547001812,
"title": "Seychelles"
}... |
17 | where is gall bladder situated in human body? | [
{
"docid": "621268",
"rank": 1,
"score": 22.64061835860403,
"title": "Iridology"
},
{
"docid": "441493",
"rank": 2,
"score": 21.52383099408988,
"title": "\"Urinary bladder\""
},
{
"docid": "441503",
"rank": 3,
"score": 17.520712780754973,
"title": "\"Urinary b... |
18 | who is the current director of the us mint? | [
{
"docid": "897560",
"rank": 1,
"score": 9.50594195104215,
"title": "\"Jean-Claude Van Damme\""
},
{
"docid": "250999",
"rank": 2,
"score": 9.122267856293718,
"title": "Mentha"
},
{
"docid": "164420",
"rank": 3,
"score": 7.381683892875927,
"title": "\"Gopher (... |
19 | who was named african footballer of the year 2014? | [
{
"docid": "538556",
"rank": 1,
"score": 11.52909447207026,
"title": "\"Paul Kelly (footballer)\""
},
{
"docid": "534510",
"rank": 2,
"score": 9.205980110341418,
"title": "\"Alex Ferguson\""
},
{
"docid": "248511",
"rank": 3,
"score": 6.538027778353213,
"title... |
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
in_context_nq_bm25
BM25 기반 검색 결과 데이터셋입니다. Natural Questions (NQ) 쿼리에 대한 BM25 기반 문서 검색 결과를 포함합니다.
데이터셋 정보
- 크기: 20개 쿼리 × 10개 상위 검색 결과
- 검색 알고리즘: BM25
- 코퍼스: Wikipedia (1M 문서 샘플)
- 형식: HuggingFace Dataset
데이터 구조
각 예제는 다음 필드를 포함합니다:
{
"qid": "0",
"question": "who got the first nobel prize in physics?",
"retrieved": [
{
"rank": 1,
"docid": "628725",
"score": 18.330151081154185,
"title": "Nobel Prize in Physics"
},
...
]
}
필드 설명
- qid (str): 쿼리 ID
- question (str): 자연어 질문
- retrieved (list): 검색된 문서 목록 (상위 10개)
- rank (int): 순위 (1-10)
- docid (str): 문서 ID
- score (float): BM25 스코어
- title (str): 문서 제목
사용법
from datasets import load_dataset
# 데이터셋 로드
dataset = load_dataset("SKIML-ICL/in_context_nq_bm25")
# 첫 번째 예제 접근
example = dataset["train"][0]
print(example["question"])
print(f"검색 결과: {len(example['retrieved'])}개")
# 모든 쿼리 반복
for item in dataset["train"]:
query = item["question"]
top_result = item["retrieved"][0]
print(f"Q: {query}")
print(f"Top: {top_result['title']} (score: {top_result['score']:.2f})")
BM25 파라미터
- k1: 1.2 (용어 빈도 포화도)
- k2: 0.0 (쿼리 빈도 파라미터)
- b: 0.75 (문서 길이 정규화)
생성 방법
이 데이터셋은 다음 과정으로 생성되었습니다:
- SKIML-ICL/incontext_nq_v2 데이터셋에서 20개 쿼리 샘플
- Streaming BM25 인덱서로 Wikipedia 1M 문서 샘플 인덱싱
- 각 쿼리에 대해 상위 10개 문서 검색
- JSONL 형식으로 결과 저장 후 HuggingFace Dataset으로 변환
저장소 정보
- 저장소: https://huggingface.co/datasets/SKIML-ICL/in_context_nq_bm25
- 원본 쿼리 데이터셋: https://huggingface.co/datasets/SKIML-ICL/incontext_nq_v2
- 생성자: jongbinwon
- 라이선스: MIT
실행 환경
- Python 3.8+
- datasets>=4.0.0
- huggingface_hub
설치
pip install datasets huggingface_hub
관련 프로젝트
추가 정보
이 데이터셋은 정보 검색(IR) 연구 및 평가에 사용될 수 있습니다.
- Downloads last month
- 11