Dataset Viewer
Auto-converted to Parquet Duplicate
chunk_id
large_stringlengths
8
12
question_id
large_stringlengths
5
8
language
large_stringclasses
1 value
chunk_index
int64
0
38
chunk_text
large_stringlengths
86
3.04k
sparse_text
large_stringlengths
66
2.81k
dense_vector
listlengths
3.58k
3.58k
sparse_indices
listlengths
2
276
sparse_values
listlengths
2
276
export_source
large_stringclasses
1 value
29898658_c0
29898658
r
0
Title: R rounding numbers Problem title: R rounding numbers Tags: r Problem: R rounding numbers
R rounding numbers R rounding numbers r R rounding numbers quick question, why is R rounding my "a" value? "b" looks OK, but a is being rounded, which is causing me problems because I'm multiplying a by b and getting where I'm expecting to get -1134089.843 thanks
[ -0.01019287109375, -0.01116943359375, -0.0026092529296875, -0.0074462890625, 0.006683349609375, -0.0107421875, -0.0045166015625, 0.01080322265625, 0.006591796875, 0.02294921875, -0.020263671875, -0.0054931640625, -0.01055908203125, 0.017333984375, 0.0052490234375, 0.0133056640625, 0....
[ 627, 68807, 214, 101935, 1690, 63773, 9655, 15400, 83, 759, 11, 34292, 275, 33342, 14315, 4, 1284, 10, 8035, 297, 216806, 163, 44402, 6024, 62479, 390, 876, 20949, 7440, 39, 41206, 2046, 16675, 109356, 18949, 5, 13903, 363, 45458 ]
[ 0.2200927734375, 0.233642578125, 0.13134765625, 0.1673583984375, 0.1651611328125, 0.11083984375, 0.056610107421875, 0.1541748046875, 0.0634765625, 0.08148193359375, 0.1221923828125, 0.1817626953125, 0.1103515625, 0.147216796875, 0.118408203125, 0.02532958984375, 0.0296478271484375, ...
embed
34419473_c0
34419473
r
0
Title: R image function Problem title: R image function Tags: r, image, plot Problem: R image function
R image function R image function r image plot R image function I have trouble understanding the image function in R. I have the following matrix and I would like to display it as an heatmap. To so so I use the image function as following but the result is definitly not what is in my matrix!! ] 1 Any idea ? thanks
[ 0.0225830078125, -0.002716064453125, 0.01190185546875, 0.007354736328125, 0.0035247802734375, 0.0072021484375, 0.0010833740234375, -0.002471923828125, -0.0015411376953125, 0.01336669921875, 0.0242919921875, 0.01177978515625, 0.0003662109375, -0.007568359375, 0.018798828125, 0.012207031...
[ 627, 29569, 32354, 1690, 23577, 765, 63134, 100094, 23, 25632, 50944, 425, 2806, 1884, 44116, 237, 142, 80097, 62346, 4527, 1284, 16750, 83, 71496, 959, 2367, 759, 1146, 6528, 45458 ]
[ 0.19140625, 0.23876953125, 0.2099609375, 0.1494140625, 0.1953125, 0.0178680419921875, 0.1195068359375, 0.143798828125, 0.05853271484375, 0.1090087890625, 0.1451416015625, 0.058441162109375, 0.0169830322265625, 0.058135986328125, 0.148193359375, 0.073974609375, 0.007415771484375, 0....
embed
28956843_c0
28956843
r
0
Title: adding mising rows in R Problem title: adding mising rows in R Tags: r Problem: adding mising rows in R
adding mising rows in R adding mising rows in R r adding mising rows in R I have a table in R as follows I have to add the missing values of days such as 1,2,4 with zero such that the result should be like
[ 0.01556396484375, 0.0084228515625, -0.01177978515625, 0.02392578125, -0.0216064453125, -0.030517578125, 0.0301513671875, 0.0228271484375, -0.002899169921875, 0.0025787353515625, 0.02001953125, -0.019775390625, 0.0079345703125, -0.00518798828125, 0.0086669921875, 0.005340576171875, -0...
[ 154107, 1239, 214, 15555, 7, 23, 627, 1690, 23180, 28960, 765, 15190, 132283, 142424, 111, 13312, 25568, 617, 678, 45234, 6044, 16750, 5608, 1884 ]
[ 0.134033203125, 0.17919921875, 0.1778564453125, 0.2374267578125, 0.06451416015625, 0.06036376953125, 0.1932373046875, 0.157470703125, 0.1734619140625, 0.033172607421875, 0.01837158203125, 0.119140625, 0.2052001953125, 0.117431640625, 0.005828857421875, 0.1656494140625, 0.080078125, ...
embed
72460985_c0
72460985
r
0
"Title: qdap, rJava load failed\nProblem title: qdap, rJava load failed\nTags: r\nProblem: qdap, rJa(...TRUNCATED)
qdap, rJava load failed qdap, rJava load failed r qdap, rJava load failed
[0.006744384765625,0.0311279296875,-0.01336669921875,0.002197265625,-0.0167236328125,-0.007019042968(...TRUNCATED)
[ 52633, 254, 4, 1690, 156202, 72367, 165523 ]
[0.120849609375,0.1768798828125,0.00479888916015625,0.07720947265625,0.248779296875,0.1619873046875,(...TRUNCATED)
embed
50002268_c0
50002268
r
0
"Title: R time interval\nProblem title: R time interval\nTags: r\nProblem: R time interval\nCode sig(...TRUNCATED)
"R time interval R time interval r time_array R time interval I have time array; I need to do some c(...TRUNCATED)
[0.00014591217041015625,-0.015625,0.01544189453125,0.006011962890625,-0.0111083984375,-0.02087402343(...TRUNCATED)
[627,1733,51514,1690,19305,53,87,765,10298,3871,47,54,3060,6226,98,6097,142424,1326,27781,11249,831,(...TRUNCATED)
[0.1832275390625,0.192138671875,0.262451171875,0.13232421875,0.17138671875,0.14892578125,0.009506225(...TRUNCATED)
embed
64668772_c0
64668772
r
0
"Title: Unnest json in R\nProblem title: Unnest json in R\nTags: r, json\nProblem: Unnest json in R\(...TRUNCATED)
"Unnest json in R Unnest json in R r json Unnest Team Unnest json in R I know this is a popular topi(...TRUNCATED)
[0.0012969970703125,0.0157470703125,-0.01177978515625,0.005645751953125,-0.0146484375,-0.00242614746(...TRUNCATED)
[992,19,525,1647,1681,23,627,1690,11399,3714,5700,28451,29806,7103,821,58627,2053,27188,140992,16336(...TRUNCATED)
[0.1214599609375,0.144775390625,0.2230224609375,0.1292724609375,0.218505859375,0.0780029296875,0.219(...TRUNCATED)
embed
52810813_c0
52810813
r
0
"Title: Filling a matrix in R\nProblem title: Filling a matrix in R\nTags: r\nProblem: Filling a mat(...TRUNCATED)
"Filling a matrix in R Filling a matrix in R r Filling Filling a matrix in R I am trying to fill som(...TRUNCATED)
[0.01409912109375,0.00360107421875,-0.01318359375,-0.0036773681640625,-0.0052490234375,-0.0143432617(...TRUNCATED)
[140423,214,50944,425,23,627,1690,31577,26292,15555,4283,10461,173,18770,206808,903,18151,4568,13315(...TRUNCATED)
[0.1798095703125,0.036895751953125,0.1832275390625,0.08447265625,0.07177734375,0.204345703125,0.1623(...TRUNCATED)
embed
75796538_c0
75796538
r
0
"Title: Command ntile in R\nProblem title: Command ntile in R\nTags: quantile, r\nProblem: Command n(...TRUNCATED)
"Command ntile in R Command ntile in R quantile r Command Command ntile in R I have the following da(...TRUNCATED)
[0.016357421875,-0.007171630859375,0.033935546875,-0.0002841949462890625,0.0067138671875,-0.00430297(...TRUNCATED)
[123573,653,44555,23,627,102134,133,1690,87,765,25632,2053,3444,54,83,28282,3525,3365,316,19,136,313(...TRUNCATED)
[0.2430419921875,0.060089111328125,0.28955078125,0.10260009765625,0.224365234375,0.149658203125,0.14(...TRUNCATED)
embed
18264686_c0
18264686
r
0
"Title: Sum by two variables\nProblem title: Sum by two variables\nTags: r, sum\nProblem: Sum by two(...TRUNCATED)
"Sum by two variables Sum by two variables r sum Sum Date Sum by two variables I have one dataframe:(...TRUNCATED)
[0.0174560546875,-0.006988525390625,-0.0145263671875,0.04931640625,-0.01434326171875,0.0177001953125(...TRUNCATED)
[36335,390,6626,77336,7,1690,10554,25512,1632,2053,160328,4865,3444,47,140992,83,23180,237,28960,280(...TRUNCATED)
[0.2059326171875,0.1387939453125,0.1534423828125,0.210205078125,0.00238037109375,0.1346435546875,0.1(...TRUNCATED)
embed
40423352_c0
40423352
r
0
"Title: MLSeq package error\nProblem title: MLSeq package error\nTags: bioconductor, r\nProblem: MLS(...TRUNCATED)
"MLSeq package error MLSeq package error bioconductor r MLSeq MLSeq package error I would like to us(...TRUNCATED)
[0.01708984375,0.00848388671875,-0.005645751953125,0.01495361328125,0.0164794921875,0.00174713134765(...TRUNCATED)
[276,19759,13,864,98169,18499,3530,2271,693,18770,1690,2806,1884,4527,1284,20949,903,645,45738,13538(...TRUNCATED)
[0.1212158203125,0.1480712890625,0.1810302734375,0.2379150390625,0.245361328125,0.2025146484375,0.13(...TRUNCATED)
embed
End of preview. Expand in Data Studio

R StackOverflow Vector Dataset Datasheet

1. What This Dataset Is

This dataset is the R-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 R 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 R 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_r_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
18