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
26
chunk_text
large_stringlengths
119
3.88k
sparse_text
large_stringlengths
79
13.9k
dense_vector
listlengths
3.58k
3.58k
sparse_indices
listlengths
2
259
sparse_values
listlengths
2
259
export_source
large_stringclasses
1 value
44296859_c0
44296859
bash
0
Title: Remove characters with sed Problem title: Remove characters with sed Tags: bash, sed Problem: Remove characters with sed Code signals: Remove
Remove characters with sed Remove characters with sed bash sed Remove Remove characters with sed I have a file containing these lines : in general : I would like to tranform them in thhis format : I have already tried this command line but couldn't success: Thanks for your help.
[ -0.014404296875, 0.01263427734375, -0.0257568359375, 0.020263671875, -0.01324462890625, -0.033935546875, 0.000804901123046875, 0.0166015625, 0.005584716796875, 0.0027008056640625, -0.017578125, 0.0220947265625, -0.00160980224609375, 0.020263671875, -0.022705078125, -0.007720947265625, ...
[ 181139, 124850, 678, 1736, 87109, 765, 11435, 70541, 6097, 124519, 4537, 2806, 1884, 47, 30334, 5037, 2856, 23, 5675, 31047, 9384, 21771, 37842, 903, 75101, 13315, 69427, 18, 36272, 4358 ]
[ 0.1553955078125, 0.2032470703125, 0.094482421875, 0.1982421875, 0.1417236328125, 0.0025634765625, 0.1199951171875, 0.05401611328125, 0.0292816162109375, 0.123046875, 0.08465576171875, 0.03680419921875, 0.0662841796875, 0.0390625, 0.051055908203125, 0.1419677734375, 0.0233612060546875...
embed
32395270_c0
32395270
bash
0
Title: sort last login time Problem title: sort last login time Tags: sorting, bash, linux Problem: sort last login time Code signals: b150-123456789123
sort last login time sort last login time sorting bash linux b150-123456789123 sort last login time i have such kind of output What I need is to see when the found users (with personal codes 12345678912 and 98765432187 ) were last logged in. In output I want to see the last line (without commas too). Like this: And one...
[ -0.0004119873046875, 0.030517578125, 0.01220703125, -0.00970458984375, -0.024169921875, -0.02392578125, -0.020751953125, 0.0142822265625, 0.0037384033203125, 0.00311279296875, -0.00274658203125, 0.010498046875, 0.00567626953125, -0.00299072265625, -0.0264892578125, -0.01300048828125, ...
[ 12096, 4568, 73655, 1733, 214, 87109, 11508, 6077, 876, 19236, 190875, 13683, 153781, 48636, 17, 6044, 8562, 140992, 3871, 47, 1957, 3229, 70, 14037, 72095, 76228, 3357, 18151, 37638, 121317, 1530, 136, 16193, 159874, 11548, 140566, 3542, 730...
[ 0.2342529296875, 0.1961669921875, 0.2274169921875, 0.1591796875, 0.05889892578125, 0.1761474609375, 0.09246826171875, 0.0665283203125, 0.0142669677734375, 0.1934814453125, 0.052154541015625, 0.045501708984375, 0.1090087890625, 0.124755859375, 0.0126953125, 0.050628662109375, 0.051086...
embed
14699381_c0
14699381
bash
0
Title: shell get substring using awk Problem title: shell get substring using awk Tags: bash, shell Problem: shell get substring using awk Code signals: awk
shell get substring using awk shell get substring using awk bash shell awk shell get substring using awk
[ -0.00885009765625, -0.01904296875, 0.006103515625, 0.016357421875, -0.012939453125, 0.0054931640625, 0.01806640625, 0.025634765625, -0.000743865966796875, 0.0185546875, -0.00170135498046875, 0.047119140625, -0.0169677734375, 0.01458740234375, 0.00537109375, -0.014404296875, 0.0068664...
[ 128019, 2046, 1614, 91693, 17368, 10, 434, 92, 87109 ]
[ 0.2193603515625, 0.124755859375, 0.2139892578125, 0.275390625, 0.09295654296875, 0.038360595703125, 0.145263671875, 0.2193603515625, 0.158203125 ]
embed
16367243_c1
16367243
bash
1
"0 0.0 0.0 - 1075 3 4.0 0.0 0.0 0.0 0.0 - 1076 0 4.0 0.0 0.0 0.0 0.0 - 1077 0 0.0 0.0 4.0 0.0 0.0 - (...TRUNCATED)
"0 0.0 0.0 - 1075 3 4.0 0.0 0.0 0.0 0.0 - 1076 0 4.0 0.0 0.0 0.0 0.0 - 1077 0 0.0 0.0 4.0 0.0 0.0 - (...TRUNCATED)
[0.01220703125,0.0031280517578125,-0.007232666015625,0.007568359375,-0.01226806640625,0.015258789062(...TRUNCATED)
[ 757, 89678, 20, 209, 6873, 138, 40401, 11835, 14546, 19051, 28864, 26073, 7, 12, 113053, 4, 563, 52099, 21672 ]
[0.11358642578125,0.2071533203125,0.03662109375,0.1298828125,0.28857421875,0.146484375,0.2158203125,(...TRUNCATED)
embed
35386232_c0
35386232
bash
0
"Title: Validate IP range with bash\nProblem title: Validate IP range with bash\nTags: bash, grep, s(...TRUNCATED)
"Validate IP range with bash Validate IP range with bash bash grep sed Validate Validate IP range wi(...TRUNCATED)
[-0.01385498046875,0.0118408203125,-0.00775146484375,0.04736328125,-0.0216064453125,-0.0003757476806(...TRUNCATED)
[25447,17489,8021,37457,678,6,87109,3514,254,1736,3871,44622,67,7,23,11435,136,26785,42724,1556,6097(...TRUNCATED)
[0.2265625,0.18994140625,0.20263671875,0.2330322265625,0.1187744140625,0.001800537109375,0.230712890(...TRUNCATED)
embed
57218617_c3
57218617
bash
3
"2012.04.11.12.10.52.780.00.sac, PALK.BHZ.2012.04.11.12.10.52.780.10.sac, PALK.BHZ.2012.04.11.12.21.(...TRUNCATED)
"2012.04.11.12.10.52.780.00.sac, PALK.BHZ.2012.04.11.12.10.52.780.10.sac, PALK.BHZ.2012.04.11.12.21.(...TRUNCATED)
[0.01153564453125,0.009033203125,-0.016357421875,0.026611328125,0.00341796875,0.0247802734375,-0.005(...TRUNCATED)
[12453,7709,14556,1530,10179,12744,5,19051,37509,7,2263,4,92060,605,571,194718,10693,99263,39876,166(...TRUNCATED)
[0.1978759765625,0.1368408203125,0.1318359375,0.09722900390625,0.134521484375,0.1558837890625,0.0625(...TRUNCATED)
embed
74052174_c0
74052174
bash
0
"Title: cron tab alert disk\nProblem title: cron tab alert disk\nTags: cron, bash\nProblem: cron tab(...TRUNCATED)
"cron tab alert disk cron tab alert disk cron bash Filesystem Disk warning-disk.sh tes3 cron tab ale(...TRUNCATED)
[0.0296630859375,-0.0035247802734375,-0.02197265625,-0.0004787445068359375,-0.01043701171875,-0.0028(...TRUNCATED)
[71138,20928,110342,28338,87109,42724,16751,49254,1631,592,37623,1495,31785,363,765,6,26499,3444,324(...TRUNCATED)
[0.25439453125,0.2396240234375,0.269287109375,0.1322021484375,0.145263671875,0.014404296875,0.113769(...TRUNCATED)
embed
21170084_c0
21170084
bash
0
"Title: Join command not working\nProblem title: Join command not working\nTags: bash, join\nProblem(...TRUNCATED)
"Join command not working Join command not working bash join Join FILE1 FILE2 OUTPUT Join command no(...TRUNCATED)
[0.0072021484375,0.004852294921875,-0.0089111328125,0.0164794921875,-0.0115966796875,0.041015625,-0.(...TRUNCATED)
[113053,75101,959,20697,87109,33284,563,52099,418,304,52001,124599,44402,1884,140992,272,927,4527,12(...TRUNCATED)
[0.26708984375,0.2012939453125,0.1287841796875,0.15625,0.1444091796875,0.226318359375,0.053314208984(...TRUNCATED)
embed
28480261_c0
28480261
bash
0
"Title: Extract IPs before string\nProblem title: Extract IPs before string\nTags: bash, cut, awk, l(...TRUNCATED)
"Extract IPs before string Extract IPs before string bash cut awk linux Extract IPs Extract IPs befo(...TRUNCATED)
[0.021240234375,-0.0010833740234375,0.00537109375,0.0556640625,-0.0140380859375,-0.00372314453125,0.(...TRUNCATED)
[31501,15390,8021,7,8108,79315,87109,59226,10,434,92,11508,6077,765,7986,4734,3444,47,3714,10035,19,(...TRUNCATED)
[0.221435546875,0.0947265625,0.242431640625,0.1295166015625,0.1785888671875,0.2259521484375,0.162597(...TRUNCATED)
embed
34876693_c0
34876693
bash
0
"Title: A confusion about ls, dir and tee\nProblem title: A confusion about ls, dir and tee\nTags: l(...TRUNCATED)
"A confusion about ls, dir and tee A confusion about ls, dir and tee linux dir tee ls bash A confusi(...TRUNCATED)
[0.01214599609375,0.0048828125,0.000713348388671875,0.001739501953125,-0.00830078125,-0.002487182617(...TRUNCATED)
[169463,1672,96,7,4,5402,136,32686,11508,6077,87109,3714,1221,12301,1295,16992,60614,28282,3525,1143(...TRUNCATED)
[0.1346435546875,0.03302001953125,0.13818359375,0.1947021484375,0.0250396728515625,0.257568359375,0.(...TRUNCATED)
embed
End of preview. Expand in Data Studio

Bash StackOverflow Vector Dataset Datasheet

1. What This Dataset Is

This dataset is the Bash-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 Bash 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 Bash 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_bash_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
23