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 |
|---|---|---|---|---|---|---|---|---|---|
30609604_c0 | 30609604 | ruby | 0 | Title: How to merge hash of arrays?
Problem title: How to merge hash of arrays?
Tags: ruby
Problem: How to merge hash of arrays?
Code signals: How | How to merge hash of arrays? How to merge hash of arrays? ruby How How to merge hash of arrays? I have an array: I want to change it to this: Rules/Requirements: Hashes of same value of a go to one hash b should be an array of {c => , d =>} d should be an array d with same value of c go to same array | [
-0.01446533203125,
0.0030517578125,
-0.003326416015625,
0.000030994415283203125,
-0.017578125,
-0.0047607421875,
-0.01458740234375,
-0.00089263916015625,
0.008544921875,
-0.0145263671875,
-0.0106201171875,
0.006622314453125,
0.0218505859375,
0.0250244140625,
-0.01043701171875,
-0.02075... | [
11249,
47,
42564,
1556,
127,
111,
10298,
4778,
21922,
53,
765,
3444,
15549,
903,
139118,
3181,
107,
162087,
90,
5701,
34292,
738,
1632,
876,
5608,
186,
238,
104,
501
] | [
0.1312255859375,
0.1116943359375,
0.2734375,
0.22998046875,
0.2257080078125,
0.1669921875,
0.1978759765625,
0.2069091796875,
0.047210693359375,
0.101318359375,
0.021575927734375,
0.040771484375,
0.1292724609375,
0.044097900390625,
0.1090087890625,
0.06671142578125,
0.02978515625,
0... | embed |
11775912_c0 | 11775912 | ruby | 0 | Title: Regexp, how to mach exactly
Problem title: Regexp, how to mach exactly
Tags: regex, ruby
Problem: Regexp, how to mach exactly
Code signals: Regexp | Regexp, how to mach exactly Regexp, how to mach exactly regex ruby Regexp Regexp, how to mach exactly Ho to match exactly 6 or 8 or 10 figures numbers? Ho to create one regexp for these cases. Shorter form of: | [
0.00970458984375,
0.0011749267578125,
-0.004241943359375,
0.0189208984375,
0.00604248046875,
0.005615234375,
0.00080108642578125,
0.0341796875,
0.01544189453125,
0.0089111328125,
0.003509521484375,
0.01446533203125,
-0.005584716796875,
0.0084228515625,
-0.00138092041015625,
-0.00970458... | [
11678,
83613,
3642,
47,
38388,
66161,
6835,
3355,
21922,
53,
2291,
14858,
305,
707,
382,
209,
26366,
101935,
28282,
1632,
100,
6097,
50218,
82990,
56,
3173
] | [
0.1719970703125,
0.291015625,
0.1021728515625,
0.08221435546875,
0.239013671875,
0.21826171875,
0.161865234375,
0.2049560546875,
0.1568603515625,
0.143798828125,
0.2030029296875,
0.1776123046875,
0.1488037109375,
0.036712646484375,
0.1500244140625,
0.141845703125,
0.1951904296875,
... | embed |
6052169_c0 | 6052169 | ruby | 0 | Title: Finding the average of a table
Problem title: Finding the average of a table
Tags: ruby
Problem: Finding the average of a table
Code signals: Finding | Finding the average of a table Finding the average of a table ruby Finding Finding the average of a table I need to find the averages for all columns in the same row of a particular value of the first column. So for a table like the following: I want the resulting table of averages: So for example for the value 0.. I t... | [
0.00469970703125,
-0.0081787109375,
-0.0146484375,
0.0012359619140625,
-0.007293701171875,
-0.00604248046875,
0.0235595703125,
0.00194549560546875,
0.0130615234375,
-0.0054931640625,
0.01123046875,
-0.0191650390625,
-0.0115966796875,
0.023193359375,
-0.00421142578125,
0.0208740234375,
... | [
26040,
83080,
111,
23180,
214,
70,
21922,
53,
3871,
7413,
7,
100,
756,
3365,
316,
1779,
5701,
15555,
17311,
34292,
5117,
1884,
25632,
3444,
16750,
27781,
757,
27252,
997,
427,
534,
18113,
17932,
21204,
702,
9271,
2678,
1112,
50960
] | [
0.081787109375,
0.243896484375,
0.049652099609375,
0.248046875,
0.0377197265625,
0.00726318359375,
0.12939453125,
0.118408203125,
0.058563232421875,
0.0826416015625,
0.06317138671875,
0.025146484375,
0.0693359375,
0.076416015625,
0.1025390625,
0.04791259765625,
0.0238800048828125,
... | embed |
6832202_c0 | 6832202 | ruby | 0 | "Title: How to cut string with ruby\nProblem title: How to cut string with ruby\nTags: regex, ruby, (...TRUNCATED) | "How to cut string with ruby How to cut string with ruby regex ruby string How How to cut string wit(...TRUNCATED) | [-0.00616455078125,-0.00848388671875,0.004669189453125,0.0213623046875,-0.0032196044921875,0.0012969(...TRUNCATED) | [
11249,
47,
59226,
79315,
678,
21922,
53,
6835,
3355,
765,
3444,
1884
] | [0.0369873046875,0.0582275390625,0.19873046875,0.246337890625,0.08868408203125,0.1741943359375,0.173(...TRUNCATED) | embed |
690794_c0 | 690794 | ruby | 0 | "Title: Ruby arrays: %w vs %W\nProblem title: Ruby arrays: %w vs %W\nTags: arrays, ruby\nProblem: Ru(...TRUNCATED) | "Ruby arrays: %w vs %W Ruby arrays: %w vs %W arrays ruby Ruby Ruby arrays: %w vs %W What is the diff(...TRUNCATED) | [0.0123291015625,0.0022125244140625,-0.0113525390625,0.004486083984375,-0.01031494140625,0.007659912(...TRUNCATED) | [
158189,
10298,
4778,
12,
1745,
434,
20209,
1456,
21922,
53,
4865,
83,
70,
60212
] | [0.291259765625,0.216552734375,0.201416015625,0.03448486328125,0.1337890625,0.1627197265625,0.191162(...TRUNCATED) | embed |
11237460_c0 | 11237460 | ruby | 0 | "Title: Add to Array Loop\nProblem title: Add to Array Loop\nTags: arrays, hash, ruby\nProblem: Add (...TRUNCATED) | "Add to Array Loop Add to Array Loop arrays hash ruby Add Array Loop times.each i.to_s Add to Array (...TRUNCATED) | [0.0021820068359375,-0.005584716796875,-0.00994873046875,0.00830078125,-0.01263427734375,0.001342773(...TRUNCATED) | [29117,47,69253,53,199694,10298,4778,1556,127,21922,20028,41581,17,188,158189,18151,83,16750,1284,15(...TRUNCATED) | [0.1629638671875,0.1680908203125,0.1839599609375,0.126708984375,0.238037109375,0.1392822265625,0.100(...TRUNCATED) | embed |
1255324_c0 | 1255324 | ruby | 0 | "Title: p vs puts in Ruby\nProblem title: p vs puts in Ruby\nTags: ruby\nProblem: p vs puts in Ruby (...TRUNCATED) | "p vs puts in Ruby p vs puts in Ruby ruby Ruby p vs puts in Ruby Is there any difference between p a(...TRUNCATED) | [0.006591796875,0.0157470703125,0.001953125,0.01611328125,0.00433349609375,0.0186767578125,-0.000686(...TRUNCATED) | [
915,
20209,
3884,
7,
23,
158189,
21922,
53,
2685,
2499,
60212,
17721,
136
] | [0.1524658203125,0.15185546875,0.1907958984375,0.123779296875,0.0780029296875,0.23779296875,0.138549(...TRUNCATED) | embed |
4055618_c0 | 4055618 | ruby | 0 | "Title: ruby floating point errors\nProblem title: ruby floating point errors\nTags: floating-point,(...TRUNCATED) | "ruby floating point errors ruby floating point errors floating-point ruby Loading Rails ruby floati(...TRUNCATED) | [0.01239013671875,-0.0038909912109375,-0.013916015625,-0.022705078125,0.00787353515625,0.01623535156(...TRUNCATED) | [21922,53,21917,26518,6275,18499,38496,228006,85736,4171,176256,73342,15400,6024,62479,214,390,805,3(...TRUNCATED) | [0.154296875,0.1556396484375,0.143310546875,0.059844970703125,0.09912109375,0.1668701171875,0.052825(...TRUNCATED) | embed |
26020566_c0 | 26020566 | ruby | 0 | "Title: Guard installation error\nProblem title: Guard installation error\nTags: ruby, ruby-on-rails(...TRUNCATED) | "Guard installation error Guard installation error ruby ruby-on-rails guard cucumber Guard Guard ins(...TRUNCATED) | [0.00007390975952148438,0.0218505859375,0.0128173828125,-0.04248046875,-0.00162506103515625,-0.00466(...TRUNCATED) | [
135440,
59720,
18499,
21922,
53,
191,
68823,
7,
56050,
314,
10591,
1297
] | [0.297119140625,0.2095947265625,0.1778564453125,0.150146484375,0.13916015625,0.179931640625,0.230834(...TRUNCATED) | embed |
31609347_c0 | 31609347 | ruby | 0 | "Title: Merge array of hashes with addition\nProblem title: Merge array of hashes with addition\nTag(...TRUNCATED) | "Merge array of hashes with addition Merge array of hashes with addition ruby Merge Merge array of h(...TRUNCATED) | [-0.00408935546875,0.00162506103515625,-0.0169677734375,0.00153350830078125,-0.01483154296875,-0.016(...TRUNCATED) | [6035,429,10298,53,111,256,114942,678,66044,21922,765,31577,3917,42564,3934,3525,12638,38937,135179,(...TRUNCATED) | [0.199951171875,0.12548828125,0.205810546875,0.15771484375,0.06805419921875,0.2049560546875,0.222045(...TRUNCATED) | embed |
Ruby StackOverflow Vector Dataset Datasheet
1. What This Dataset Is
This dataset is the Ruby-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 Ruby 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 Ruby 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_ruby_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
- 16