Dataset Viewer
Auto-converted to Parquet Duplicate
chunk_id
string
question_id
string
language
string
chunk_index
int64
dense_vector
list
sparse_indices
list
sparse_values
list
56242944_c0
56242944
elixir
0
[ 0.031982421875, -0.02880859375, -0.042236328125, -0.016357421875, 0.0194091796875, 0.0004863739013671875, -0.00933837890625, -0.021484375, -0.00567626953125, 0.01385498046875, 0.00982666015625, 0.026611328125, 0.0167236328125, -0.0157470703125, 0.0296630859375, 0.0111083984375, -0.01...
[ 48962, 12, 6035, 429, 5303, 111, 22288, 7, 12298, 15296, 38308, 15649 ]
[ 0.10174560546875, 0.0537109375, 0.230224609375, 0.166259765625, 0.2197265625, 0.05718994140625, 0.224365234375, 0.07757568359375, 0.129150390625, 0.1363525390625, 0.263671875, 0.2125244140625 ]
52781786_c0
52781786
elixir
0
[ 0.029541015625, -0.0262451171875, -0.0026397705078125, -0.013916015625, -0.00445556640625, -0.005706787109375, -0.00046539306640625, -0.03369140625, 0.01312255859375, 0.027099609375, 0.01104736328125, 0.01123046875, 0.0098876953125, -0.024658203125, 0.0291748046875, 0.00157928466796875...
[ 48962, 11062, 5037, 5303, 47, 111, 370, 8705, 12298, 15296, 38308, 15649, 12 ]
[ 0.08807373046875, 0.08917236328125, 0.179443359375, 0.2578125, 0.090576171875, 0.0782470703125, 0.152587890625, 0.255859375, 0.11834716796875, 0.11419677734375, 0.255615234375, 0.197021484375, 0.0074615478515625 ]
75098741_c0
75098741
elixir
0
[0.0225830078125,-0.0235595703125,-0.0177001953125,-0.016357421875,0.00872802734375,-0.01025390625,-(...TRUNCATED)
[ 48962, 11249, 27198, 903, 5303, 3934, 10, 22288, 12298, 15296, 38308, 15649, 12, 47 ]
[0.041412353515625,0.100341796875,0.2159423828125,0.08038330078125,0.244140625,0.12225341796875,0.09(...TRUNCATED)
27493029_c0
27493029
elixir
0
[0.0223388671875,-0.0106201171875,-0.003082275390625,-0.02392578125,0.000885009765625,-0.01416015625(...TRUNCATED)
[ 48962, 25318, 38308, 18499, 56, 3066, 152, 32116, 83613, 42, 12298, 15296, 15649, 12 ]
[0.08392333984375,0.1668701171875,0.28857421875,0.21533203125,0.087646484375,0.2183837890625,0.02255(...TRUNCATED)
47151358_c0
47151358
elixir
0
[-0.00634765625,-0.0517578125,-0.032470703125,-0.0302734375,-0.00139617919921875,-0.0228271484375,0.(...TRUNCATED)
[48962,135913,31,40514,5,3794,132,18499,23,25318,38308,12298,53073,33,4084,160328,18244,15296,1621,1(...TRUNCATED)
[0.07666015625,0.234130859375,0.1728515625,0.29052734375,0.03668212890625,0.16748046875,0.0745849609(...TRUNCATED)
74094800_c0
74094800
elixir
0
[0.020263671875,-0.0157470703125,-0.0159912109375,-0.0181884765625,0.0242919921875,-0.00830078125,-0(...TRUNCATED)
[ 48962, 3642, 47, 183540, 6024, 22799, 27494, 90, 3934, 22288, 42856, 12298, 15296, 38308, 15649, 12 ]
[0.053466796875,0.0926513671875,0.01030731201171875,0.2462158203125,0.21875,0.2098388671875,0.187622(...TRUNCATED)
58397866_c0
58397866
elixir
0
[0.030029296875,-0.0303955078125,-0.033935546875,-0.0203857421875,0.007568359375,-0.0096435546875,-0(...TRUNCATED)
[ 48962, 11249, 831, 642, 96760, 5303, 111, 47, 22288, 705, 647, 150, 38308, 12298, 2053, 137656, 15296, 15649 ]
[0.075927734375,0.064453125,0.06292724609375,0.02459716796875,0.15185546875,0.25048828125,0.05267333(...TRUNCATED)
77205874_c0
77205874
elixir
0
[0.047607421875,-0.0303955078125,-0.0113525390625,0.00011682510375976562,0.017333984375,-0.011657714(...TRUNCATED)
[48962,82,7,831,7413,17164,1284,3768,18,154109,442,12298,15296,38308,72,3066,23,109005,53,10135,3738(...TRUNCATED)
[0.060943603515625,0.216796875,0.1871337890625,0.12091064453125,0.1866455078125,0.220458984375,0.116(...TRUNCATED)
38944582_c0
38944582
elixir
0
[0.003662109375,-0.033935546875,0.00154876708984375,-0.0186767578125,0.0206298828125,-0.012939453125(...TRUNCATED)
[48962,10091,44286,47,180,23658,543,36356,127689,3835,19770,35773,12298,15296,38308,88,150,112569,16(...TRUNCATED)
[0.0203399658203125,0.10308837890625,0.15966796875,0.04437255859375,0.10650634765625,0.18896484375,0(...TRUNCATED)
36606175_c0
36606175
elixir
0
[0.00579833984375,-0.0145263671875,0.01141357421875,-0.03271484375,0.014404296875,0.0012283325195312(...TRUNCATED)
[ 48962, 3293, 70731, 13, 53418, 14858, 6637, 96362, 11343, 90, 12298, 15296, 38308, 15649 ]
[0.0262603759765625,0.1041259765625,0.1903076171875,0.10284423828125,0.183349609375,0.232421875,0.10(...TRUNCATED)
End of preview. Expand in Data Studio

Elixir StackOverflow Vector Dataset

Summary

This repository contains the Elixir shard of the Stack2Graph vector retrieval dataset. Each Hugging Face dataset repository contains one programming-language shard and is intended to restore or rebuild the Qdrant collection stackoverflow_elixir_vector.

The dataset is the vector counterpart to the Stack2Graph RDF knowledge graph. It is designed for hybrid retrieval, graph entry-point finding, and retrieval-augmented generation experiments over Stack Overflow content.

Stack2Graph source: https://github.com/tha-atlas/Stack2Graph

Repository Layout

README.md
dataset_manifest.json
qdrant_snapshots/
  collections_manifest.json
  stackoverflow_elixir_vector.tar.zst
  stackoverflow_elixir_vector.snapshot.zst.part_000
  ...
question_metadata/
  r0_00000.parquet
chunk_records/
  r0_00000.parquet
question_records/
  r0_00000.parquet
  • dataset_manifest.json: language-scoped manifest listing the files in this shard.
  • qdrant_snapshots/collections_manifest.json: language-scoped Qdrant snapshot manifest.
  • qdrant_snapshots/stackoverflow_elixir_vector.*: optional Qdrant restore artifact files for stackoverflow_elixir_vector.
  • question_metadata/*.parquet: question-level metadata used by parent-child chunk retrieval.
  • chunk_records/*.parquet: chunk-level vector rows when parent-child indexing is enabled.
  • question_records/*.parquet: question-level vector rows when non-chunked export is used.

The Hugging Face upload is one repository per language. During upload, the local leading language directory is removed, so local files such as elixir/chunk_records/r0_00000.parquet appear in this repository as chunk_records/r0_00000.parquet.

Data Model

Rows are derived from Stack Overflow questions tagged for Elixir.

The current Stack2Graph vector pipeline uses:

  • dense vectors from Qwen/Qwen3-Embedding-8B
  • 4096-dimensional dense embeddings with last-token pooling
  • instruction-aware query embedding for retrieval
  • sparse lexical vectors from BAAI/bge-m3
  • unified question text containing title, tags, cleaned problem text, and code
  • optional parent-child indexing where chunk hits collapse back to parent question IDs

When Qdrant snapshots are included, they are the fastest restore path. The Parquet files remain the portable fallback for rebuilding the collection.

Coverage

This repository contains only the Elixir shard. A Stack Overflow question can appear in more than one language shard when it has multiple programming-language tags.

The dataset is not a complete Stack Overflow mirror. Full question and answer graph context lives in the corresponding Stack2Graph knowledge graph artifacts; the vector dataset stores retrieval rows, vectors, sparse weights, and routing metadata.

Recommended Use

Use this dataset for:

  • semantic and hybrid retrieval
  • Qdrant restore or ingestion tests
  • Stack2Graph RAG experiments
  • graph entry-point retrieval before QLever graph expansion
  • vector database benchmarking and diagnostics

This dataset is not intended as a standalone supervised training dataset.

Restore With Stack2Graph

You do not need to regenerate embeddings to use this dataset.

Typical workflow:

  1. Clone Stack2Graph and configure .env with service paths and HF token.
  2. Start local services:
docker compose up -d
  1. Download and restore vector artifacts:
python -m experiment.sources.hf --skip-kg

The loader restores Qdrant snapshots when present and falls back to Parquet ingestion when snapshots are unavailable.

Manual Use

For manual use, inspect dataset_manifest.json, then either:

  • restore the Qdrant snapshot artifacts under qdrant_snapshots/, or
  • ingest the listed Parquet shards into a compatible vector database.

The target Qdrant collection name is:

stackoverflow_elixir_vector

Quality Notes

  • Embedding quality depends on the configured Stack2Graph export pipeline and model versions.
  • Sparse text can be generated from the same unified text as dense embeddings or from a lexical variant, depending on export configuration.
  • Community-generated Stack Overflow content may contain errors, outdated information, bias, or incomplete answers.
  • Rebuilding from Parquet may produce operational differences if Qdrant collection settings differ from the original export.

License And Attribution

This dataset is derived from Stack Overflow content and is distributed under CC-BY-SA-4.0. Preserve required attribution and license notices when redistributing derived artifacts.

Citation

If you use this dataset, cite the Stack2Graph project and preserve Stack Overflow attribution requirements:

  • Stack2Graph: A Structured Knowledge Representation of Stack Overflow Data for Retrieval-based Question Answering
Downloads last month
72