Dataset Viewer
Auto-converted to Parquet Duplicate
chunk_id
large_stringlengths
7
12
question_id
large_stringlengths
4
8
language
large_stringclasses
1 value
chunk_index
int64
0
12
chunk_text
large_stringlengths
116
2.73k
sparse_text
large_stringlengths
89
10k
dense_vector
listlengths
3.58k
3.58k
sparse_indices
listlengths
2
253
sparse_values
listlengths
2
253
export_source
large_stringclasses
1 value
6497726_c0
6497726
perl
0
Title: Combining regex matches Problem title: Combining regex matches Tags: perl, regex Problem: Combining regex matches Code signals: Combining, ABCabc
Combining regex matches Combining regex matches perl regex Combining ABCabc Combining regex matches Is it possible to combine those 5 regex to one (or at least some of them)? Tips, corrections and improvments will be great as well.
[ 0.004852294921875, -0.0037384033203125, 0.01220703125, 0.0306396484375, -0.0067138671875, 0.005126953125, -0.00023746490478515625, 0.0205078125, 0.0283203125, 0.02880859375, -0.01531982421875, 0.007171630859375, 0.02294921875, 0.0027618408203125, 0.00147247314453125, -0.003311157226562...
[ 106935, 592, 6835, 3355, 14858, 90, 117, 141, 47457, 2055, 2071, 442, 7722, 47, 70163, 8382, 190, 1632, 19713, 3060, 111, 13785, 26785, 128659, 186 ]
[ 0.2100830078125, 0.061859130859375, 0.167724609375, 0.2196044921875, 0.207763671875, 0.01146697998046875, 0.10260009765625, 0.1065673828125, 0.09063720703125, 0.06854248046875, 0.0021343231201171875, 0.043975830078125, 0.167236328125, 0.1136474609375, 0.234375, 0.057281494140625, 0.1...
embed
34029568_c1
34029568
perl
1
02.2015.09.16.18.05.05.900577.177003720.IMA, SC1177.10.0032.2015.09.16.18.05.05.900577.177107276.IMA, SC1177.110.0032.2015.09.16.18.05.05.900577.177107276.IMA
02.2015.09.16.18.05.05.900577.177003720.IMA, SC1177.10.0032.2015.09.16.18.05.05.900577.177107276.IMA, SC1177.110.0032.2015.09.16.18.05.05.900577.177107276.IMA
[ -0.021240234375, 0.00445556640625, -0.005828857421875, 0.047119140625, -0.0035400390625, 0.00848388671875, -0.00860595703125, 0.00140380859375, 0.01470947265625, 0.03271484375, 0.0235595703125, 0.0025482177734375, -0.0032196044921875, -0.0050048828125, 0.0067138671875, 0.00194549560546...
[ 67447, 5357, 5, 26917, 2485, 1819, 8194, 20806, 20543, 165467, 144283, 123276, 114988, 27770, 4, 17715, 115250, 165830, 37509, 6460, 44141, 304, 11835, 1662, 14546 ]
[ 0.224609375, 0.2509765625, 0.10076904296875, 0.19677734375, 0.149169921875, 0.1326904296875, 0.1422119140625, 0.162109375, 0.1419677734375, 0.223388671875, 0.17724609375, 0.156005859375, 0.2020263671875, 0.2548828125, 0.071533203125, 0.1497802734375, 0.1536865234375, 0.065063476562...
embed
45211610_c1
45211610
perl
1
37288.1337, INTEGER, iso.3.6.1.4.1.4491.2.1.20.1.4.1.3.737288.1338, iso.3.6.1.4.1.4491.2.1.20.1.4.1.3.737288.1339, iso.3.6.1.4.1.4491.2.1.20.1.4.1.3.737288.1340
37288.1337, INTEGER, iso.3.6.1.4.1.4491.2.1.20.1.4.1.3.737288.1338, iso.3.6.1.4.1.4491.2.1.20.1.4.1.3.737288.1339, iso.3.6.1.4.1.4491.2.1.20.1.4.1.3.737288.1340
[ 0.0021820068359375, -0.01275634765625, -0.0205078125, 0.0203857421875, 0.00177764892578125, -0.00677490234375, 0.006134033203125, -0.00543212890625, 0.025634765625, 0.04345703125, -0.0181884765625, -0.00104522705078125, -0.0089111328125, -0.0157470703125, -0.00848388671875, 0.006683349...
[ 4669, 3882, 206730, 129176, 4, 102686, 56599, 13882, 5, 102738, 91977, 22892, 155103, 48400, 102014, 29485, 81046, 115252, 128222, 131518, 103064, 2681, 2839 ]
[ 0.215087890625, 0.2392578125, 0.1373291015625, 0.250244140625, 0.1158447265625, 0.2413330078125, 0.270751953125, 0.23388671875, 0.125, 0.2313232421875, 0.169921875, 0.060638427734375, 0.2386474609375, 0.12060546875, 0.1463623046875, 0.1363525390625, 0.1627197265625, 0.2178955078125...
embed
24597176_c4
24597176
perl
4
".1972-6G, NM_001034956:exon18:c.1459-6G, NM_006434:exon13:c.1024-6G, NM_015385:exon17:c.1420-6G, NM(...TRUNCATED)
".1972-6G, NM_001034956:exon18:c.1459-6G, NM_006434:exon13:c.1024-6G, NM_015385:exon17:c.1420-6G, NM(...TRUNCATED)
[0.0289306640625,-0.00154876708984375,0.00049591064453125,0.00008153915405273438,0.0220947265625,0.0(...TRUNCATED)
[6,5,123599,13545,724,4,70480,454,7049,963,117760,13683,12,13,27012,1819,238,2592,12975,159343,15269(...TRUNCATED)
[0.10040283203125,0.1412353515625,0.2724609375,0.215087890625,0.2186279296875,0.0955810546875,0.2320(...TRUNCATED)
embed
47486620_c3
47486620
perl
3
"6, NYSC, WEST, END, S587259513187673, S587259468801533, ELEVEN, P00000000840668487, DUNKIN, S307258(...TRUNCATED)
"6, NYSC, WEST, END, S587259513187673, S587259468801533, ELEVEN, P00000000840668487, DUNKIN, S307258(...TRUNCATED)
[0.00994873046875,0.0186767578125,0.0023956298828125,0.02734375,-0.01129150390625,0.0048828125,-0.00(...TRUNCATED)
[305,4,22056,14495,601,21828,6,39015,159,202118,2588,8821,2681,140566,195192,1126,157041,4836,1837,9(...TRUNCATED)
[0.2529296875,0.1153564453125,0.19921875,0.2275390625,0.132568359375,0.15576171875,0.08740234375,0.2(...TRUNCATED)
embed
10694319_c0
10694319
perl
0
"Title: Dereferencing a hash value\nProblem title: Dereferencing a hash value\nTags: perl, hash, r(...TRUNCATED)
"Dereferencing a hash value Dereferencing a hash value perl hash reference Dereferencing Dereferen(...TRUNCATED)
[0.022216796875,0.01043701171875,0.007080078125,0.0135498046875,0.008056640625,-0.01055908203125,-0.(...TRUNCATED)
[1310,13,69988,214,1556,127,34292,10,117,141,91067,3293,22027,18,4488,1284,903,14602,4263,2301,12319(...TRUNCATED)
[0.15185546875,0.1414794921875,0.236083984375,0.06292724609375,0.201904296875,0.176025390625,0.23217(...TRUNCATED)
embed
13211397_c0
13211397
perl
0
"Title: Transform data to array with Perl\nProblem title: Transform data to array with Perl\nTags: p(...TRUNCATED)
"Transform data to array with Perl Transform data to array with Perl perl Transform Perl Transform d(...TRUNCATED)
[0.030029296875,0.005767822265625,0.00579833984375,0.021484375,-0.000904083251953125,-0.007476806640(...TRUNCATED)
[11062,5037,2053,47,10298,53,678,908,141,117,54,27198,759,142,11853,3444,442,186,1884,903,3630,3714,(...TRUNCATED)
[0.1202392578125,0.2008056640625,0.18994140625,0.1083984375,0.240234375,0.20556640625,0.106628417968(...TRUNCATED)
embed
3186420_c0
3186420
perl
0
"Title: using sed in perl\nProblem title: using sed in perl\nTags: sed, perl\nProblem: using sed in (...TRUNCATED)
"using sed in perl using sed in perl sed perl sed INFO Command Name Age Project Alwa ERROR Failed us(...TRUNCATED)
[0.00494384765625,0.0264892578125,0.0021514892578125,0.02783203125,0.007293701171875,-0.013793945312(...TRUNCATED)
[17368,1736,23,117,141,123552,123573,15757,72944,27331,884,634,151206,24638,190355,297,765,11435,256(...TRUNCATED)
[0.1318359375,0.2464599609375,0.1241455078125,0.1612548828125,0.199462890625,0.167724609375,0.179687(...TRUNCATED)
embed
1024647_c0
1024647
perl
0
"Title: Extract values after match a keyword\nProblem title: Extract values after match a keyword\nT(...TRUNCATED)
"Extract values after match a keyword Extract values after match a keyword regex perl Extract object(...TRUNCATED)
[0.0250244140625,-0.013427734375,0.006622314453125,0.01171875,-0.00762939453125,-0.00014781951904296(...TRUNCATED)
[31501,15390,142424,7103,14858,166117,6835,3355,117,141,36746,418,1884,125663,587,748,48716,20028,79(...TRUNCATED)
[0.1976318359375,0.10235595703125,0.2169189453125,0.146240234375,0.21728515625,0.2392578125,0.121826(...TRUNCATED)
embed
33929325_c4
33929325
perl
4
"6:C2R0WACXX:2:1101:10000:70401, chr5, chr18, chr4, chr8, DB775P1:276:C2R0WACXX:2:1101:10002:88487, (...TRUNCATED)
"6:C2R0WACXX:2:1101:10000:70401, chr5, chr18, chr4, chr8, DB775P1:276:C2R0WACXX:2:1101:10002:88487, (...TRUNCATED)
[0.0233154296875,-0.0034027099609375,0.0107421875,0.033935546875,-0.004913330078125,0.0152587890625,(...TRUNCATED)
[305,12,441,304,1052,2389,11217,42918,19993,6746,191281,5757,2839,418,4,17656,758,1819,617,1019,5797(...TRUNCATED)
[0.25146484375,0.14697265625,0.052154541015625,0.130126953125,0.06268310546875,0.07177734375,0.11657(...TRUNCATED)
embed
End of preview. Expand in Data Studio

Perl StackOverflow Vector Dataset Datasheet

1. What This Dataset Is

This dataset is the Perl-specific vector shard of the Stack2Graph StackOverflow retrieval corpus. Each Hugging Face dataset repository contains exactly one language dataset.

It is optimized for dense+sparse retrieval, Qdrant restoration, and embedding-based RAG experiments.

It is used in the Stack2Graph project as the vector counterpart to the language-scoped RDF knowledge graph shards.

See the Stack2Graph repository for more details: https://github.com/tha-atlas/Stack2Graph

2. Repository Layout

dataset_manifest.json
question_metadata_*.parquet
chunk_records_*.parquet
question_records_*.parquet
  • dataset_manifest.json: language-scoped manifest for this dataset shard.
  • question_metadata_*.parquet: per-question metadata and retrieval bookkeeping.
  • chunk_records_*.parquet: chunk-level vector rows when parent-child indexing is enabled.
  • question_records_*.parquet: question-level vector rows when chunking is disabled or exported alongside chunk data.

3. Data Model And Coverage

The dataset is derived from Stack Overflow questions selected for the Perl programming language. It contains the structured records needed to rebuild the Stack2Graph Qdrant collection for that language.

Coverage scope:

  • records are retained when they match the Stack2Graph supported language-tag set
  • this repository contains only the Perl shard
  • the archive may contain both metadata-only and retrieval-ready vector rows depending on the export mode

4. Recommended Preprocessing

  1. Read dataset_manifest.json first and use it as the source of truth for included Parquet files.
  2. Load all Parquet shards for this repository into your vector indexing pipeline.
  3. Rebuild or restore the Qdrant collection stackoverflow_perl_vector.
  4. Preserve attribution and license metadata during downstream export.

5. Automatic Download And Vector DB Setup

You do not need to regenerate embeddings from GraphDB to use this dataset.

In the Stack2Graph repository, you can use the automation script python -m experiment.load_hf_datasets_into_services --skip-kg to download dataset artifacts and prepare the vector database service state automatically.

Typical workflow:

  1. Clone and configure Stack2Graph (.env with HF token and service paths).
  2. Clone and configure Stack2Graph (.env with HF token and service paths).
  3. Start required local services:
docker compose up -d
  1. Run the loader script:
python -m experiment.load_hf_datasets_into_services --skip-kg

For manual usage without automation, directly ingest the listed Parquet files into your vector database.

6. Quality Notes And Caveats

  • A Stack Overflow question may belong to multiple language shards when tagged with multiple languages.
  • Embeddings and sparse representations depend on the configured export pipeline and model versions.
  • As with community-generated data, content may include noise, bias, and temporal drift.

7. Intended Use

  • semantic retrieval and reranking
  • RAG and hybrid retriever experiments
  • vector database benchmarking and diagnostics
  • language-scoped developer tooling research

8. Limitations

  • Not a complete mirror of all Stack Overflow content.
  • Not all export modes include the same row types or chunk layouts.
  • Best used together with the Stack2Graph retrieval pipeline and Qdrant-compatible tooling.

9. Licensing And Attribution

This dataset inherits Stack Overflow source licensing and attribution requirements. Ensure compliant attribution and redistribution practices in all derived artifacts.

10. Suggested Citation

If you use this dataset, cite the Stack2Graph work:

  • Stack2Graph: A Structured Knowledge Representation of Stack Overflow Data for Retrieval-based Question Answering
Downloads last month
13