File size: 4,116 Bytes
dde7631
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
---
tags:
  - vector-database
  - embeddings
  - parquet
  - qdrant
  - stackoverflow
  - question-answering
pretty_name: StackOverflow Vector Dataset - Ruby
license: cc-by-sa-4.0
size_categories:
  - 1M<n<10M
---

# 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](https://github.com/tha-atlas/Stack2Graph)

## 2. Repository Layout

```text
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

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_ruby_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).
1. Clone and configure Stack2Graph (`.env` with HF token and service paths).
1. Start required local services:

```bash
docker compose up -d
```

1. Run the loader script:

```bash
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