chunk_id large_stringlengths 6 12 | question_id large_stringlengths 3 8 | language large_stringclasses 1
value | chunk_index int64 0 12 | chunk_text large_stringlengths 92 2.9k | sparse_text large_stringlengths 64 2.89k | dense_vector listlengths 3.58k 3.58k | sparse_indices listlengths 0 284 | sparse_values listlengths 0 284 | export_source large_stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|---|
71633451_c0 | 71633451 | c++ | 0 | Title: C++ long double
Problem title: C++ long double
Tags: c%2B%2B
Problem: C++ long double | C++ long double C++ long double c%2B%2B C++ long double when I watch the value of v, it is 185646264136289737248, why does this happen? the correct value should be 185646264136289737242. | [
0.017333984375,
0.0009307861328125,
0.0081787109375,
-0.00048065185546875,
-0.0030364990234375,
-0.00177764892578125,
-0.00970458984375,
0.020263671875,
0.01129150390625,
0.0002689361572265625,
-0.0084228515625,
-0.01220703125,
-0.00116729736328125,
0.00323486328125,
0.0101318359375,
0... | [
313,
37223,
4989,
41929,
501,
167218,
571,
3229,
87,
39544,
70,
34292,
111,
81,
442,
83,
48179,
178509,
71041,
131281,
127126,
115252,
110763,
15400,
14602,
903,
53383,
26785,
5608,
186,
2357,
5442
] | [
0.0791015625,
0.272216796875,
0.149658203125,
0.21923828125,
0.08013916015625,
0.07977294921875,
0.08544921875,
0.036590576171875,
0.061065673828125,
0.23876953125,
0.052154541015625,
0.228515625,
0.06500244140625,
0.27734375,
0.0623779296875,
0.07012939453125,
0.1717529296875,
0.1... | embed |
65092969_c0 | 65092969 | c++ | 0 | Title: {-truncated-} in C++
Problem title: {-truncated-} in C++
Tags: c%2B%2B, algorithm
Problem: {-truncated-} in C++ | {-truncated-} in C++ {-truncated-} in C++ c%2B%2B algorithm {-truncated-} in C++ I'm solving a problem ( https://www.hackerrank.com/challenges/climbing-the-leaderboard/problem ). I actually solved it, but it worked only on 4 tests. When I unlocked the testcase my program couldn't pass, I have seen this in input: And it... | [
0.0162353515625,
0.0238037109375,
0.01202392578125,
-0.02001953125,
-0.005584716796875,
-0.01019287109375,
-0.000789642333984375,
0.01104736328125,
0.00823974609375,
-0.0169677734375,
-0.010498046875,
0.00098419189453125,
-0.0277099609375,
-0.00299072265625,
0.01611328125,
0.0222167968... | [
10666,
9,
9774,
16336,
3674,
23,
313,
37223,
8152,
501,
167218,
571,
234873,
3115,
2967,
528,
11050,
36467,
8405,
4188,
3141,
23709,
133,
38970,
24351,
38953,
20653,
86869,
79786,
4734,
98,
201,
109921,
21135,
3034,
58437,
1528,
69427,
18,
... | [
0.0159759521484375,
0.050445556640625,
0.182373046875,
0.2171630859375,
0.181640625,
0.09423828125,
0.083984375,
0.308349609375,
0.007659912109375,
0.0513916015625,
0.0174713134765625,
0.0310821533203125,
0.2198486328125,
0.090087890625,
0.076416015625,
0.017059326171875,
0.019470214... | embed |
740740_c0 | 740740 | c++ | 0 | Title: help requires in winavr
Problem title: help requires in winavr
Tags: winavr, avrdude, avr, c%2B%2B, embedded
Problem: help requires in winavr | help requires in winavr help requires in winavr winavr avrdude avr c%2B%2B embedded help requires in winavr i am trying to send ---.hex file to my siemens C55 throught serial port but while doing do i am getting an error avrdude: failed to open parallel port "com2" make.exe: *** [program] Error 1 please guide me what s... | [
0.0009918212890625,
-0.00335693359375,
-0.001007080078125,
0.017822265625,
-0.01483154296875,
-0.0174560546875,
0.00494384765625,
0.0045166015625,
0.00183868408203125,
-0.01300048828125,
0.024169921875,
-0.0220947265625,
-0.006500244140625,
-0.00982666015625,
0.0198974609375,
-0.012329... | [
4358,
144570,
23,
148,
885,
5704,
185,
9233,
42,
167218,
55720,
69819,
31577,
25379,
28229,
1106,
425,
11435,
1329,
18241,
313,
11663,
8305,
35686,
11469,
18499,
165523,
9803,
95103,
277,
304,
3249,
46480,
24428,
18749,
212059,
106,
17997,
... | [
0.15478515625,
0.26513671875,
0.07366943359375,
0.1319580078125,
0.1358642578125,
0.2415771484375,
0.0797119140625,
0.204833984375,
0.0848388671875,
0.0015869140625,
0.14306640625,
0.0217437744140625,
0.060821533203125,
0.10107421875,
0.05029296875,
0.1402587890625,
0.1282958984375,
... | embed |
11313450_c0 | 11313450 | c++ | 0 | "Title: Code outside functions\nProblem title: Code outside functions\nTags: c%2B%2B\nProblem: Code (...TRUNCATED) | "Code outside functions Code outside functions c%2B%2B fords.cpp fords.cpp:63 Code outside functions(...TRUNCATED) | [0.035400390625,-0.00116729736328125,-0.0240478515625,0.0037384033203125,-0.004913330078125,-0.00463(...TRUNCATED) | [28864,50782,32354,7,100,6468,238,6366,15748,765,59121,903,18151,756,83,68772,163,25632,18499,98,983(...TRUNCATED) | [0.20361328125,0.2705078125,0.2178955078125,0.033416748046875,0.172607421875,0.1624755859375,0.02862(...TRUNCATED) | embed |
242695_c0 | 242695 | c++ | 0 | "Title: Long strings with newlines\nProblem title: Long strings with newlines\nTags: c%2B%2B, string(...TRUNCATED) | "Long strings with newlines Long strings with newlines c%2B%2B string Long Long strings with newline(...TRUNCATED) | [0.002777099609375,0.007720947265625,-0.0069580078125,0.01007080078125,-0.00347900390625,0.010131835(...TRUNCATED) | [
14407,
79315,
678,
3525,
59801,
501,
167218,
571
] | [0.1495361328125,0.258056640625,0.11663818359375,0.160888671875,0.211181640625,0.12255859375,0.12707(...TRUNCATED) | embed |
34098835_c0 | 34098835 | c++ | 0 | "Title: Rounding Program\nProblem title: Rounding Program\nTags: c%2B%2B, rounding\nProblem: Roundin(...TRUNCATED) | "Rounding Program Rounding Program c%2B%2B rounding namespace Rounding Program math.h Rounding Progr(...TRUNCATED) | [-0.01214599609375,-0.00042724609375,0.000041484832763671875,0.003692626953125,-0.001312255859375,0.(...TRUNCATED) | [162856,214,7663,501,167218,68807,210716,48909,127,87,3871,47,3060,107730,101935,17368,313,37223,173(...TRUNCATED) | [0.2091064453125,0.133056640625,0.198486328125,0.03466796875,0.0218353271484375,0.2607421875,0.19042(...TRUNCATED) | embed |
2483598_c0 | 2483598 | c++ | 0 | "Title: Cannot cout data\nProblem title: Cannot cout data\nTags: metaprogramming, c%2B%2B\nProblem: (...TRUNCATED) | "Cannot cout data Cannot cout data metaprogramming c%2B%2B Cannot std::cout TRYING HERE Cannot cout (...TRUNCATED) | [0.01434326171875,0.00811767578125,-0.0177001953125,0.000743865966796875,-0.00885009765625,-0.005126(...TRUNCATED) | [4171,10869,552,1003,2053,23550,28966,501,167218,6138,71,12,12600,18,193413,23186,65791,71263,18234,(...TRUNCATED) | [0.069580078125,0.1832275390625,0.15283203125,0.25244140625,0.19873046875,0.1680908203125,0.13476562(...TRUNCATED) | embed |
31989816_c0 | 31989816 | c++ | 0 | "Title: pointers, pointer tot pointer, exc\nProblem title: pointers, pointer tot pointer, exc\nTags:(...TRUNCATED) | "pointers, pointer tot pointer, exc pointers, pointer tot pointer, exc c%2B%2B pointers pointers, po(...TRUNCATED) | [0.03271484375,0.01318359375,-0.00714111328125,0.0267333984375,-0.000873565673828125,0.0035858154296(...TRUNCATED) | [6275,1314,56,1186,1119,238,4,501,167218,3871,28219,70,11737,18151,100,40466,171581,60899,5885,570,9(...TRUNCATED) | [0.2008056640625,0.175537109375,0.148681640625,0.193603515625,0.102294921875,0.08349609375,0.0093688(...TRUNCATED) | embed |
57059816_c0 | 57059816 | c++ | 0 | "Title: Maximum Contiguous Sum\nProblem title: Maximum Contiguous Sum\nTags: arrays, c%2B%2B\nProble(...TRUNCATED) | "Maximum Contiguous Sum Maximum Contiguous Sum arrays c%2B%2B Maximum Contiguous Sum Maximum Contigu(...TRUNCATED) | [0.0057373046875,0.008544921875,0.01226806640625,0.0135498046875,-0.021484375,0.016357421875,-0.0054(...TRUNCATED) | [46540,316,137425,1234,36335,10821,10298,4778,501,167218,571,22008,73342,15400,35064,18151,22027,18,(...TRUNCATED) | [0.121337890625,0.072509765625,0.150390625,0.143798828125,0.1976318359375,0.02349853515625,0.1064453(...TRUNCATED) | embed |
59579670_c6 | 59579670 | c++ | 6 | "2736795825968, ALLOC:2736795825990, ALLOC:2736795826013, ALLOC:2736795826033, ALLOC:2736795826066, (...TRUNCATED) | "2736795825968, ALLOC:2736795825990, ALLOC:2736795826013, ALLOC:2736795826033, ALLOC:2736795826066, (...TRUNCATED) | [-0.0024871826171875,-0.00506591796875,0.00152587890625,0.0130615234375,-0.00592041015625,0.00921630(...TRUNCATED) | [1438,144180,8821,12012,12975,16028,4,9804,124448,27592,363,163544,10057,2588,61158,97544,2681,9185,(...TRUNCATED) | [0.2208251953125,0.2203369140625,0.2098388671875,0.1502685546875,0.1866455078125,0.241943359375,0.11(...TRUNCATED) | embed |
C++ StackOverflow Vector Dataset Datasheet
1. What This Dataset Is
This dataset is the C++-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 C++ 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 C++ shard
- the archive may contain both metadata-only and retrieval-ready vector rows depending on the export mode
4. Recommended Preprocessing
- Read
dataset_manifest.jsonfirst and use it as the source of truth for included Parquet files. - Load all Parquet shards for this repository into your vector indexing pipeline.
- Rebuild or restore the Qdrant collection
stackoverflow_c++_vector. - 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:
- Clone and configure Stack2Graph (
.envwith HF token and service paths). - Clone and configure Stack2Graph (
.envwith HF token and service paths). - Start required local services:
docker compose up -d
- 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
- 31