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
105
2.8k
sparse_text
large_stringlengths
69
7.02k
dense_vector
listlengths
3.58k
3.58k
sparse_indices
listlengths
2
258
sparse_values
listlengths
2
258
export_source
large_stringclasses
1 value
3377229_c0
3377229
shell
0
Title: Dialog --input box Problem title: Dialog --input box Tags: shell Problem: Dialog --input box Code signals: Dialog
Dialog --input box Dialog --input box shell Dialog Dialog --input box
[ 0.01239013671875, 0.0218505859375, -0.006622314453125, 0.01507568359375, 0.01324462890625, 0.00665283203125, 0.01092529296875, 0.000850677490234375, -0.0011138916015625, -0.00628662109375, -0.0037078857421875, -0.00640869140625, -0.009765625, 0.041748046875, -0.01129150390625, -0.01226...
[ 84536, 4210, 73, 7077, 16530, 128019 ]
[ 0.2420654296875, 0.06951904296875, 0.130615234375, 0.153564453125, 0.2159423828125, 0.2113037109375 ]
embed
18158727_c0
18158727
shell
0
Title: Sha256 with pipe Problem title: Sha256 with pipe Tags: shell, sha256, bitcoin Problem: Sha256 with pipe Code signals: Sha256, sha256sum
Sha256 with pipe Sha256 with pipe shell sha256 bitcoin Sha256 sha256sum Sha256 with pipe Step 5-6 of manual: https://en.bitcoin.it/wiki/Technical_background_of_Bitcoin_addresses Calculating sha256sum secondly: I try to repeat step 6, but sha256sum is wrong: even this wrong too: I have read this: Generating a sha256 fro...
[ -0.0017547607421875, -0.00927734375, -0.0220947265625, 0.017822265625, -0.00787353515625, 0.0120849609375, -0.017333984375, 0.0169677734375, 0.004241943359375, -0.005828857421875, -0.01141357421875, 0.01123046875, 0.0264892578125, 0.0203857421875, -0.00885009765625, 0.010986328125, 0...
[ 7224, 127892, 678, 137158, 128019, 9638, 76092, 11832, 50478, 43096, 23009, 3137, 587, 217, 13691, 43721, 64330, 73, 712, 107421, 212467, 17932, 119140, 29954, 305, 44691, 155370, 10, 1295, 29908, 75101, 13315, 2046, 12, 391, 910, 174409, 157...
[ 0.1629638671875, 0.305908203125, 0.06732177734375, 0.2037353515625, 0.1805419921875, 0.154052734375, 0.1866455078125, 0.2430419921875, 0.0252838134765625, 0.131591796875, 0.146240234375, 0.0229034423828125, 0.11083984375, 0.0404052734375, 0.088623046875, 0.01947021484375, 0.077758789...
embed
13119709_c0
13119709
shell
0
Title: dealing filenames with shell regex Problem title: dealing filenames with shell regex Tags: shell Problem: dealing filenames with shell regex
dealing filenames with shell regex dealing filenames with shell regex shell dealing filenames with shell regex I have many folders inside which there are many files, the file names are like the above I want to remove those files with file names having substring "138.096.000" and sometimes I want to get the list of file...
[ 0.007293701171875, -0.0031585693359375, 0.00045013427734375, 0.0225830078125, -0.01434326171875, -0.016845703125, 0.0018157958984375, 0.0233154296875, 0.000263214111328125, 0.0201416015625, -0.006683349609375, 0.0262451171875, -0.0125732421875, 0.007476806640625, 0.003997802734375, 0.0...
[ 184017, 11435, 11627, 678, 128019, 6835, 3355, 5941, 78303, 46132, 102158, 123055, 1884, 36917, 3444, 87388, 1614, 91693, 141535, 6463, 89546, 68018, 5303, 9508, 4836 ]
[ 0.156982421875, 0.125732421875, 0.1751708984375, 0.0841064453125, 0.208251953125, 0.1292724609375, 0.19384765625, 0.051513671875, 0.1109619140625, 0.079345703125, 0.126708984375, 0.1021728515625, 0.006744384765625, 0.004638671875, 0.0282440185546875, 0.1151123046875, 0.1114501953125,...
embed
47057926_c0
47057926
shell
0
"Title: Shell merge two file\nProblem title: Shell merge two file\nTags: awk, join, linux, shell\nPr(...TRUNCATED)
"Shell merge two file Shell merge two file awk join linux shell Shell dNsUkWOMk9lNJ Shell merge two (...TRUNCATED)
[0.01116943359375,0.0033721923828125,-0.00634765625,0.0181884765625,0.003936767578125,0.01611328125,(...TRUNCATED)
[108362,42564,6626,11435,434,92,33284,11508,6077,128019,839,1062,101977,31626,1126,91551,102158,3444(...TRUNCATED)
[0.2017822265625,0.2626953125,0.192626953125,0.199462890625,0.0594482421875,0.1197509765625,0.192260(...TRUNCATED)
embed
29631618_c0
29631618
shell
0
"Title: Bash column altering\nProblem title: Bash column altering\nTags: tr, netflow, shell, linux, (...TRUNCATED)
"Bash column altering Bash column altering tr netflow shell linux bash Bash UDP TCP ICMP Bash column(...TRUNCATED)
[0.004425048828125,0.007568359375,-0.00732421875,0.05126953125,0.0185546875,-0.0022125244140625,-0.0(...TRUNCATED)
[144334,3365,316,144,33558,4307,2043,118664,128019,11508,6077,87109,28399,17854,9088,765,3060,2053,2(...TRUNCATED)
[0.1956787109375,0.17919921875,0.1484375,0.1541748046875,0.0997314453125,0.2587890625,0.056060791015(...TRUNCATED)
embed
73369235_c0
73369235
shell
0
"Title: reformatting data to nice format\nProblem title: reformatting data to nice format\nTags: she(...TRUNCATED)
"reformatting data to nice format reformatting data to nice format shell awk in.dat reformatting dat(...TRUNCATED)
[-0.0159912109375,-0.00823974609375,0.0029754638671875,0.0174560546875,0.01202392578125,0.0033264160(...TRUNCATED)
[23491,19514,2053,47,26267,9384,128019,10,434,92,23,5,5164,87,765,17262,3365,316,1779,70541,28960,34(...TRUNCATED)
[0.2197265625,0.1275634765625,0.179931640625,0.131103515625,0.2066650390625,0.216796875,0.1831054687(...TRUNCATED)
embed
73271264_c0
73271264
shell
0
"Title: assign 2 variables in 1 command\nProblem title: assign 2 variables in 1 command\nTags: bash,(...TRUNCATED)
"assign 2 variables in 1 command assign 2 variables in 1 command bash shell script.sh assign 2 varia(...TRUNCATED)
[0.01153564453125,0.01007080078125,-0.022705078125,0.0283203125,0.00081634521484375,0.00497436523437(...TRUNCATED)
[95486,116,77336,7,23,106,75101,87109,128019,26499,1495,28412,163,23180,1733,590,2676,34292,304,7046(...TRUNCATED)
[0.25341796875,0.20068359375,0.264404296875,0.088134765625,0.078125,0.10186767578125,0.2281494140625(...TRUNCATED)
embed
31132479_c0
31132479
shell
0
"Title: Checking number prefix\nProblem title: Checking number prefix\nTags: awk, grep, shell, unix\(...TRUNCATED)
"Checking number prefix Checking number prefix awk grep shell unix Checking file1 file2 FNR Checking(...TRUNCATED)
[-0.01025390625,-0.013671875,-0.003875732421875,0.0147705078125,0.00506591796875,-0.00421142578125,0(...TRUNCATED)
[38679,214,14012,183114,434,92,3514,254,128019,51,4084,11435,418,304,563,83752,63134,26499,82424,173(...TRUNCATED)
[0.1990966796875,0.0170440673828125,0.186279296875,0.26318359375,0.0885009765625,0.125244140625,0.18(...TRUNCATED)
embed
48531129_c0
48531129
shell
0
"Title: Getting script exec time\nProblem title: Getting script exec time\nTags: shell, awk, bash, s(...TRUNCATED)
"Getting script exec time Getting script exec time shell awk bash sed sh Getting total_time Getting (...TRUNCATED)
[-0.0115966796875,0.0018157958984375,-0.006500244140625,0.0191650390625,-0.00098419189453125,-0.0055(...TRUNCATED)
[210732,26499,1119,3240,1733,128019,434,92,87109,1736,7547,3622,6032,31577,7413,1810,71924,25632,184(...TRUNCATED)
[0.09259033203125,0.2275390625,0.04571533203125,0.17041015625,0.1759033203125,0.12744140625,0.067382(...TRUNCATED)
embed
9925182_c0
9925182
shell
0
"Title: bash-if block not working\nProblem title: bash-if block not working\nTags: bash, shell\nProb(...TRUNCATED)
"bash-if block not working bash-if block not working bash shell HostList.txt table.html bash-if bloc(...TRUNCATED)
[0.003753662109375,0.01007080078125,-0.003662109375,0.020751953125,0.00311279296875,0.01019287109375(...TRUNCATED)
[87109,9,3190,46389,959,20697,128019,100932,154663,124326,23180,7693,35064,18151,62775,2174,1724,389(...TRUNCATED)
[0.158935546875,0.0221099853515625,0.1910400390625,0.2452392578125,0.1334228515625,0.1705322265625,0(...TRUNCATED)
embed
End of preview. Expand in Data Studio

Shell StackOverflow Vector Dataset Datasheet

1. What This Dataset Is

This dataset is the Shell-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 Shell 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 Shell 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_shell_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
14