Clean StackOverflow vector language dataset before upload: lua
Browse files- README.md +0 -115
- chunk_records/r0_00000.parquet +0 -3
- chunk_records/r1_00000.parquet +0 -3
- chunk_records/r2_00000.parquet +0 -3
- chunk_records/r3_00000.parquet +0 -3
- chunk_records/r4_00000.parquet +0 -3
- chunk_records/r5_00000.parquet +0 -3
- chunk_records/r6_00000.parquet +0 -3
- chunk_records/r7_00000.parquet +0 -3
- dataset_manifest.json +0 -86
- question_metadata/r0_00000.parquet +0 -3
- question_metadata/r0_00001.parquet +0 -3
- question_metadata/r0_00002.parquet +0 -3
- question_metadata/r0_00003.parquet +0 -3
- question_metadata/r0_00004.parquet +0 -3
README.md
DELETED
|
@@ -1,115 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
tags:
|
| 3 |
-
- vector-database
|
| 4 |
-
- embeddings
|
| 5 |
-
- parquet
|
| 6 |
-
- qdrant
|
| 7 |
-
- stackoverflow
|
| 8 |
-
- question-answering
|
| 9 |
-
pretty_name: StackOverflow Vector Dataset - LUA
|
| 10 |
-
license: cc-by-sa-4.0
|
| 11 |
-
size_categories:
|
| 12 |
-
- 1M<n<10M
|
| 13 |
-
---
|
| 14 |
-
|
| 15 |
-
# LUA StackOverflow Vector Dataset Datasheet
|
| 16 |
-
|
| 17 |
-
## 1. What This Dataset Is
|
| 18 |
-
|
| 19 |
-
This dataset is the LUA-specific vector shard of the Stack2Graph StackOverflow retrieval corpus.
|
| 20 |
-
Each Hugging Face dataset repository contains exactly one language dataset.
|
| 21 |
-
|
| 22 |
-
It is optimized for dense+sparse retrieval, Qdrant restoration, and embedding-based RAG experiments.
|
| 23 |
-
|
| 24 |
-
It is used in the Stack2Graph project as the vector counterpart to the language-scoped RDF knowledge graph shards.
|
| 25 |
-
|
| 26 |
-
See the Stack2Graph repository for more details:
|
| 27 |
-
[https://github.com/tha-atlas/Stack2Graph](https://github.com/tha-atlas/Stack2Graph)
|
| 28 |
-
|
| 29 |
-
## 2. Repository Layout
|
| 30 |
-
|
| 31 |
-
```text
|
| 32 |
-
dataset_manifest.json
|
| 33 |
-
question_metadata_*.parquet
|
| 34 |
-
chunk_records_*.parquet
|
| 35 |
-
question_records_*.parquet
|
| 36 |
-
```
|
| 37 |
-
|
| 38 |
-
- `dataset_manifest.json`: language-scoped manifest for this dataset shard.
|
| 39 |
-
- `question_metadata_*.parquet`: per-question metadata and retrieval bookkeeping.
|
| 40 |
-
- `chunk_records_*.parquet`: chunk-level vector rows when parent-child indexing is enabled.
|
| 41 |
-
- `question_records_*.parquet`: question-level vector rows when chunking is disabled or exported alongside chunk data.
|
| 42 |
-
|
| 43 |
-
## 3. Data Model And Coverage
|
| 44 |
-
|
| 45 |
-
The dataset is derived from Stack Overflow questions selected for the LUA programming language.
|
| 46 |
-
It contains the structured records needed to rebuild the Stack2Graph Qdrant collection for that language.
|
| 47 |
-
|
| 48 |
-
Coverage scope:
|
| 49 |
-
|
| 50 |
-
- records are retained when they match the Stack2Graph supported language-tag set
|
| 51 |
-
- this repository contains only the LUA shard
|
| 52 |
-
- the archive may contain both metadata-only and retrieval-ready vector rows depending on the export mode
|
| 53 |
-
|
| 54 |
-
## 4. Recommended Preprocessing
|
| 55 |
-
|
| 56 |
-
1. Read `dataset_manifest.json` first and use it as the source of truth for included Parquet files.
|
| 57 |
-
2. Load all Parquet shards for this repository into your vector indexing pipeline.
|
| 58 |
-
3. Rebuild or restore the Qdrant collection `stackoverflow_lua_vector`.
|
| 59 |
-
4. Preserve attribution and license metadata during downstream export.
|
| 60 |
-
|
| 61 |
-
## 5. Automatic Download And Vector DB Setup
|
| 62 |
-
|
| 63 |
-
You do not need to regenerate embeddings from GraphDB to use this dataset.
|
| 64 |
-
|
| 65 |
-
In the Stack2Graph repository, you can use the automation script
|
| 66 |
-
`python -m experiment.load_hf_datasets_into_services --skip-kg` to download dataset artifacts
|
| 67 |
-
and prepare the vector database service state automatically.
|
| 68 |
-
|
| 69 |
-
Typical workflow:
|
| 70 |
-
|
| 71 |
-
1. Clone and configure Stack2Graph (`.env` with HF token and service paths).
|
| 72 |
-
1. Clone and configure Stack2Graph (`.env` with HF token and service paths).
|
| 73 |
-
1. Start required local services:
|
| 74 |
-
|
| 75 |
-
```bash
|
| 76 |
-
docker compose up -d
|
| 77 |
-
```
|
| 78 |
-
|
| 79 |
-
1. Run the loader script:
|
| 80 |
-
|
| 81 |
-
```bash
|
| 82 |
-
python -m experiment.load_hf_datasets_into_services --skip-kg
|
| 83 |
-
```
|
| 84 |
-
|
| 85 |
-
For manual usage without automation, directly ingest the listed Parquet files into your vector database.
|
| 86 |
-
|
| 87 |
-
## 6. Quality Notes And Caveats
|
| 88 |
-
|
| 89 |
-
- A Stack Overflow question may belong to multiple language shards when tagged with multiple languages.
|
| 90 |
-
- Embeddings and sparse representations depend on the configured export pipeline and model versions.
|
| 91 |
-
- As with community-generated data, content may include noise, bias, and temporal drift.
|
| 92 |
-
|
| 93 |
-
## 7. Intended Use
|
| 94 |
-
|
| 95 |
-
- semantic retrieval and reranking
|
| 96 |
-
- RAG and hybrid retriever experiments
|
| 97 |
-
- vector database benchmarking and diagnostics
|
| 98 |
-
- language-scoped developer tooling research
|
| 99 |
-
|
| 100 |
-
## 8. Limitations
|
| 101 |
-
|
| 102 |
-
- Not a complete mirror of all Stack Overflow content.
|
| 103 |
-
- Not all export modes include the same row types or chunk layouts.
|
| 104 |
-
- Best used together with the Stack2Graph retrieval pipeline and Qdrant-compatible tooling.
|
| 105 |
-
|
| 106 |
-
## 9. Licensing And Attribution
|
| 107 |
-
|
| 108 |
-
This dataset inherits Stack Overflow source licensing and attribution requirements.
|
| 109 |
-
Ensure compliant attribution and redistribution practices in all derived artifacts.
|
| 110 |
-
|
| 111 |
-
## 10. Suggested Citation
|
| 112 |
-
|
| 113 |
-
If you use this dataset, cite the Stack2Graph work:
|
| 114 |
-
|
| 115 |
-
- Stack2Graph: A Structured Knowledge Representation of Stack Overflow Data for Retrieval-based Question Answering
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
chunk_records/r0_00000.parquet
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:d3ee88320257eaed4aef4c5c6c3a5b0ef9cfe61d6fcdfc1ffe1c4cfde8f2ecfa
|
| 3 |
-
size 23205651
|
|
|
|
|
|
|
|
|
|
|
|
chunk_records/r1_00000.parquet
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:917679c937281c95654435f385e9777c335ee0e9d5421eda68b11754a74acd2b
|
| 3 |
-
size 23270229
|
|
|
|
|
|
|
|
|
|
|
|
chunk_records/r2_00000.parquet
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:bf70fd04248cfc45d29e6148282eda9f34167a4155eeba23f36ae0e6aaf81d25
|
| 3 |
-
size 23169078
|
|
|
|
|
|
|
|
|
|
|
|
chunk_records/r3_00000.parquet
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:4ae1d0c020b85cc837f9427c1eb80665ab3536c6a6f429ac518799694072ff61
|
| 3 |
-
size 23138636
|
|
|
|
|
|
|
|
|
|
|
|
chunk_records/r4_00000.parquet
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:028796fa74dec665c3e9c6f33f1e55f972f8041986fc17c36bf89edbdb1427aa
|
| 3 |
-
size 23209263
|
|
|
|
|
|
|
|
|
|
|
|
chunk_records/r5_00000.parquet
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:727633455daccc901e01e39a34ae939ea2a21e6ef376bacc27bd40be1f119178
|
| 3 |
-
size 23198406
|
|
|
|
|
|
|
|
|
|
|
|
chunk_records/r6_00000.parquet
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:3a2cb979b35010c2e14024112400326fd7644af5f15c52b7a76d978ea769abef
|
| 3 |
-
size 23220859
|
|
|
|
|
|
|
|
|
|
|
|
chunk_records/r7_00000.parquet
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:f2168533ab938576b00e224cf60e0aced5657592e34c533b59b5fad00bab2dec
|
| 3 |
-
size 23154038
|
|
|
|
|
|
|
|
|
|
|
|
dataset_manifest.json
DELETED
|
@@ -1,86 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"file_count": 13,
|
| 3 |
-
"files": [
|
| 4 |
-
{
|
| 5 |
-
"category": "chunk_records",
|
| 6 |
-
"language": "lua",
|
| 7 |
-
"relative_path": "chunk_records/r0_00000.parquet",
|
| 8 |
-
"rows": 3471
|
| 9 |
-
},
|
| 10 |
-
{
|
| 11 |
-
"category": "chunk_records",
|
| 12 |
-
"language": "lua",
|
| 13 |
-
"relative_path": "chunk_records/r1_00000.parquet",
|
| 14 |
-
"rows": 3470
|
| 15 |
-
},
|
| 16 |
-
{
|
| 17 |
-
"category": "chunk_records",
|
| 18 |
-
"language": "lua",
|
| 19 |
-
"relative_path": "chunk_records/r2_00000.parquet",
|
| 20 |
-
"rows": 3470
|
| 21 |
-
},
|
| 22 |
-
{
|
| 23 |
-
"category": "chunk_records",
|
| 24 |
-
"language": "lua",
|
| 25 |
-
"relative_path": "chunk_records/r3_00000.parquet",
|
| 26 |
-
"rows": 3470
|
| 27 |
-
},
|
| 28 |
-
{
|
| 29 |
-
"category": "chunk_records",
|
| 30 |
-
"language": "lua",
|
| 31 |
-
"relative_path": "chunk_records/r4_00000.parquet",
|
| 32 |
-
"rows": 3470
|
| 33 |
-
},
|
| 34 |
-
{
|
| 35 |
-
"category": "chunk_records",
|
| 36 |
-
"language": "lua",
|
| 37 |
-
"relative_path": "chunk_records/r5_00000.parquet",
|
| 38 |
-
"rows": 3470
|
| 39 |
-
},
|
| 40 |
-
{
|
| 41 |
-
"category": "chunk_records",
|
| 42 |
-
"language": "lua",
|
| 43 |
-
"relative_path": "chunk_records/r6_00000.parquet",
|
| 44 |
-
"rows": 3470
|
| 45 |
-
},
|
| 46 |
-
{
|
| 47 |
-
"category": "chunk_records",
|
| 48 |
-
"language": "lua",
|
| 49 |
-
"relative_path": "chunk_records/r7_00000.parquet",
|
| 50 |
-
"rows": 3470
|
| 51 |
-
},
|
| 52 |
-
{
|
| 53 |
-
"category": "question_metadata",
|
| 54 |
-
"language": "lua",
|
| 55 |
-
"relative_path": "question_metadata/r0_00000.parquet",
|
| 56 |
-
"rows": 5000
|
| 57 |
-
},
|
| 58 |
-
{
|
| 59 |
-
"category": "question_metadata",
|
| 60 |
-
"language": "lua",
|
| 61 |
-
"relative_path": "question_metadata/r0_00001.parquet",
|
| 62 |
-
"rows": 5000
|
| 63 |
-
},
|
| 64 |
-
{
|
| 65 |
-
"category": "question_metadata",
|
| 66 |
-
"language": "lua",
|
| 67 |
-
"relative_path": "question_metadata/r0_00002.parquet",
|
| 68 |
-
"rows": 5000
|
| 69 |
-
},
|
| 70 |
-
{
|
| 71 |
-
"category": "question_metadata",
|
| 72 |
-
"language": "lua",
|
| 73 |
-
"relative_path": "question_metadata/r0_00003.parquet",
|
| 74 |
-
"rows": 5000
|
| 75 |
-
},
|
| 76 |
-
{
|
| 77 |
-
"category": "question_metadata",
|
| 78 |
-
"language": "lua",
|
| 79 |
-
"relative_path": "question_metadata/r0_00004.parquet",
|
| 80 |
-
"rows": 2950
|
| 81 |
-
}
|
| 82 |
-
],
|
| 83 |
-
"language": "lua",
|
| 84 |
-
"source": "vector_dataset_language_folder",
|
| 85 |
-
"total_rows": 50711
|
| 86 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
question_metadata/r0_00000.parquet
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:ce6e57c07134b15afbcb11933fab8f552eb158c0ae8e2648abce1e0065d04d10
|
| 3 |
-
size 7226124
|
|
|
|
|
|
|
|
|
|
|
|
question_metadata/r0_00001.parquet
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:17e1eac135502472fe809bc604545b1010d3279094466ff10bbc6a70e8165692
|
| 3 |
-
size 7418734
|
|
|
|
|
|
|
|
|
|
|
|
question_metadata/r0_00002.parquet
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:628432b934a7198054935e1c8b3377dd2ffe18cb46b4437885a903d487a34452
|
| 3 |
-
size 7830406
|
|
|
|
|
|
|
|
|
|
|
|
question_metadata/r0_00003.parquet
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:07b4ee4fc0e643193bdabfac82975f10c776f195b51f0bfb20ed7d7aa93381b1
|
| 3 |
-
size 7418993
|
|
|
|
|
|
|
|
|
|
|
|
question_metadata/r0_00004.parquet
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:6935daa4806d487a4dfdbb18ff0b8b1c2575c7520c0769227696fce1ef1fa52b
|
| 3 |
-
size 4284445
|
|
|
|
|
|
|
|
|
|
|
|