Dataset Viewer
Auto-converted to Parquet Duplicate
chunk_id
large_string
question_id
large_string
language
large_string
chunk_index
int64
chunk_text
large_string
sparse_text
large_string
dense_vector
list
sparse_indices
list
sparse_values
list
export_source
large_string
3598977_c0
3598977
c
0
Title: meaning of this code Problem title: meaning of this code Tags: c Problem: meaning of this code
meaning of this code meaning of this code c meaning of this code
[ 0.018310546875, 0.01416015625, -0.01708984375, 0.01422119140625, 0.000701904296875, 0.00665283203125, 0.0037384033203125, 0.0150146484375, 0.00274658203125, -0.030517578125, -0.00140380859375, -0.00787353515625, -0.01519775390625, -0.004425048828125, -0.0098876953125, 0.0205078125, -...
[ 91084, 111, 903, 18151, 501 ]
[ 0.2237548828125, 0.1112060546875, 0.185302734375, 0.2435302734375, 0.181640625 ]
embed
8681642_c0
8681642
c
0
Title: Project euler 8 in C Problem title: Project euler 8 in C Tags: c Problem: Project euler 8 in C Code signals: Project
Project euler 8 in C Project euler 8 in C c Project Project euler 8 in C Find the greatest product of five consecutive digits in the 1000-digit number . I have 2 question regarding this problem. How do I store this number? How do I access individual digits?
[ 0.0025482177734375, 0.0216064453125, 0.00921630859375, 0.01708984375, -0.018798828125, 0.015869140625, -0.00982666015625, 0.00970458984375, 0.0081787109375, -0.0205078125, -0.00872802734375, -0.0216064453125, -0.0203857421875, 0.0235595703125, -0.0140380859375, 0.0079345703125, -0.00...
[ 27331, 1175, 603, 382, 23, 313, 501, 26040, 70, 158036, 12996, 111, 43606, 148390, 153939, 7, 4382, 4803, 217, 14012, 765, 116, 9655, 118861, 2967, 11249, 54, 4343, 903, 17203, 11651 ]
[ 0.118896484375, 0.09014892578125, 0.1387939453125, 0.1802978515625, 0.071044921875, 0.1453857421875, 0.05731201171875, 0.1204833984375, 0.028228759765625, 0.173828125, 0.253662109375, 0.010772705078125, 0.20361328125, 0.196044921875, 0.200439453125, 0.0270538330078125, 0.2333984375, ...
embed
25974478_c0
25974478
c
0
Title: Pointers program Problem title: Pointers program Tags: arrays, c, pointers Problem: Pointers program Code signals: Pointers
Pointers program Pointers program arrays c pointers Pointers Pointers program When I run this code the output is: Can someone please explain how this code works?
[ 0.028076171875, 0.01385498046875, -0.00732421875, 0.006500244140625, -0.0189208984375, -0.000553131103515625, -0.0130615234375, 0.01116943359375, 0.001678466796875, 0.00970458984375, -0.01611328125, -0.0169677734375, -0.023193359375, 0.01080322265625, -0.006805419921875, -0.00104522705...
[ 41097, 1314, 1528, 10298, 4778, 501, 6275, 14847, 87, 11675, 903, 18151, 70, 140992, 83, 12, 4171, 22008, 22936, 73342, 3642, 43240 ]
[ 0.232421875, 0.187744140625, 0.21435546875, 0.1334228515625, 0.12158203125, 0.124267578125, 0.1959228515625, 0.00494384765625, 0.02227783203125, 0.154052734375, 0.1253662109375, 0.2215576171875, 0.054443359375, 0.2271728515625, 0.08355712890625, 0.055938720703125, 0.06732177734375, ...
embed
11272186_c0
11272186
c
0
"Title: how to sort very large numbers\nProblem title: how to sort very large numbers\nTags: c\nProb(...TRUNCATED)
"how to sort very large numbers how to sort very large numbers c how to sort very large numbers how (...TRUNCATED)
[0.00787353515625,0.0007171630859375,-0.004638671875,-0.0194091796875,-0.0030517578125,-0.0103759765(...TRUNCATED)
[ 3642, 47, 12096, 4552, 21334, 101935, 501, 1884, 23, 313 ]
[0.10675048828125,0.054443359375,0.236572265625,0.1749267578125,0.1566162109375,0.1669921875,0.17443(...TRUNCATED)
embed
5183503_c0
5183503
c
0
"Title: scope of variables\nProblem title: scope of variables\nTags: c\nProblem: scope of variables (...TRUNCATED)
"scope of variables scope of variables c scope of variables Why do local variables use Stack in C/C+(...TRUNCATED)
[0.033203125,0.00677490234375,-0.01409912109375,0.03173828125,-0.00933837890625,0.00099945068359375,(...TRUNCATED)
[ 70820, 111, 77336, 7, 501, 44084, 54, 4000, 4527, 6512, 2594, 23, 313, 64, 441, 37223, 32 ]
[0.2490234375,0.158203125,0.257568359375,0.05072021484375,0.133056640625,0.10467529296875,0.01230621(...TRUNCATED)
embed
19261171_c0
19261171
c
0
"Title: warning: expression result unused\nProblem title: warning: expression result unused\nTags: c(...TRUNCATED)
"warning: expression result unused warning: expression result unused c warning: expression result un(...TRUNCATED)
[0.0174560546875,-0.004364013671875,0.00482177734375,-0.00157928466796875,-0.00482177734375,-0.00390(...TRUNCATED)
[1631,592,125195,16750,51,33740,12,501,44084,87,2046,4205,136,188800,6226,58359,90,3564,111,351,965,(...TRUNCATED)
[0.1502685546875,0.118408203125,0.25537109375,0.2310791015625,0.1048583984375,0.20068359375,0.022155(...TRUNCATED)
embed
37356886_c0
37356886
c
0
"Title: What does i=1<<i mean in C?\nProblem title: What does i=1<<i mean in C?\nTags: c(...TRUNCATED)
"What does i=1&lt;&lt;i mean in C? What does i=1&lt;&lt;i mean in C? c What What does i=1< I have th(...TRUNCATED)
[0.01507568359375,-0.003753662109375,0.003692626953125,0.000736236572265625,-0.00136566162109375,0.0(...TRUNCATED)
[4865,14602,17,33000,1230,1277,74,14,29459,23,313,32,501,16093,31344,18151,3525,56037,28219,2367,442(...TRUNCATED)
[0.0841064453125,0.1036376953125,0.20263671875,0.198974609375,0.1068115234375,0.1494140625,0.0694580(...TRUNCATED)
embed
64031008_c0
64031008
c
0
"Title: DSMR P1 Frame example\nProblem title: DSMR P1 Frame example\nTags: c\nProblem: DSMR P1 Frame(...TRUNCATED)
"DSMR P1 Frame example DSMR P1 Frame example c DSMR Frame ISk5 EF2F DSMR P1 Frame example I am readi(...TRUNCATED)
[0.02490234375,0.0181884765625,0.000499725341796875,0.0147705078125,-0.0140380859375,0.018310546875,(...TRUNCATED)
[41869,52005,436,418,42557,27781,501,15744,92,758,51779,304,919,16454,209806,92814,43101,1179,138695(...TRUNCATED)
[0.09423828125,0.2366943359375,0.133544921875,0.1710205078125,0.1842041015625,0.1871337890625,0.0443(...TRUNCATED)
embed
14432556_c0
14432556
c
0
"Title: how to deal with bool return type?\nProblem title: how to deal with bool return type?\nTags:(...TRUNCATED)
"how to deal with bool return type? how to deal with bool return type? c how to deal with bool retur(...TRUNCATED)
[0.0106201171875,0.00823974609375,0.00115966796875,0.00811767578125,0.01153564453125,0.0043029785156(...TRUNCATED)
[3642,47,35142,678,142484,30646,10644,501,18151,903,171581,7730,5885,106,18499,74918,188800,6226,154(...TRUNCATED)
[0.0743408203125,0.051116943359375,0.161376953125,0.149658203125,0.213623046875,0.2435302734375,0.21(...TRUNCATED)
embed
39876038_c0
39876038
c
0
"Title: Print only once in C\nProblem title: Print only once in C\nTags: c\nProblem: Print only once(...TRUNCATED)
"Print only once in C Print only once in C c Print Type Error Invalid Print only once in C How to pr(...TRUNCATED)
[-0.0028228759765625,0.0169677734375,0.0023345947265625,0.00482177734375,-0.0026092529296875,0.00616(...TRUNCATED)
[39754,4734,24145,23,313,501,60457,212059,7013,47,28412,1632,1733,70,63805,2174,10846,44691,107730,8(...TRUNCATED)
[0.2293701171875,0.1722412109375,0.2454833984375,0.1326904296875,0.1944580078125,0.1312255859375,0.1(...TRUNCATED)
embed
End of preview. Expand in Data Studio

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

  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_c_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
34