Datasets:
Adds compiled data for flights and reviews.
Browse files- .gitignore +0 -2
- README.md +20 -0
- data/flights.jsonl +3 -0
- data/reviews.jsonl +3 -0
- scripts/flights/02_build_data.py +90 -0
- scripts/reviews/02_build_data.py +93 -0
- source/clubs/index.jsonl +3 -0
- source/designs/index.jsonl +3 -0
- source/flights/index.jsonl +3 -0
- source/glossary/index.jsonl +3 -0
- source/manufacturers/index.jsonl +3 -0
- source/motors/index.jsonl +3 -0
- source/parts/index.jsonl +3 -0
- source/plans/index.jsonl +3 -0
- source/products/index.jsonl +3 -0
- source/reviews/index.jsonl +3 -0
.gitignore
CHANGED
|
@@ -66,6 +66,4 @@ logs/
|
|
| 66 |
# Data / output files
|
| 67 |
*.csv
|
| 68 |
*.parquet
|
| 69 |
-
*.jsonl
|
| 70 |
-
data/
|
| 71 |
output/
|
|
|
|
| 66 |
# Data / output files
|
| 67 |
*.csv
|
| 68 |
*.parquet
|
|
|
|
|
|
|
| 69 |
output/
|
README.md
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# RocketReviews Dataset
|
| 2 |
|
| 3 |
A structured dataset scraped from [RocketReviews.com](https://www.rocketreviews.com) for use in AI/ML pipelines and vector databases.
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
task_categories:
|
| 4 |
+
- text-generation
|
| 5 |
+
- question-answering
|
| 6 |
+
tags:
|
| 7 |
+
- rocketry
|
| 8 |
+
- aerospace
|
| 9 |
+
- simulation
|
| 10 |
+
configs:
|
| 11 |
+
- config_name: reviews
|
| 12 |
+
data_files:
|
| 13 |
+
- split: train
|
| 14 |
+
path: data/reviews.jsonl
|
| 15 |
+
- config_name: flights
|
| 16 |
+
data_files:
|
| 17 |
+
- split: train
|
| 18 |
+
path: data/flights.jsonl
|
| 19 |
+
---
|
| 20 |
+
|
| 21 |
# RocketReviews Dataset
|
| 22 |
|
| 23 |
A structured dataset scraped from [RocketReviews.com](https://www.rocketreviews.com) for use in AI/ML pipelines and vector databases.
|
data/flights.jsonl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f08215ba39a63640675710a88955fc54929a94f05c2ada7c164d33ce9bcac386
|
| 3 |
+
size 17497866
|
data/reviews.jsonl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fa7e8e68420ac00dcf816e97de51320c0e909d90d2ab7eb45a79a3b94f6b579b
|
| 3 |
+
size 3141618
|
scripts/flights/02_build_data.py
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
import json
|
| 3 |
+
import logging
|
| 4 |
+
import sys
|
| 5 |
+
from pathlib import Path
|
| 6 |
+
|
| 7 |
+
# ---------------------------------------------------------------------------
|
| 8 |
+
# Config
|
| 9 |
+
# ---------------------------------------------------------------------------
|
| 10 |
+
|
| 11 |
+
ROOT = Path(__file__).parent.parent.parent
|
| 12 |
+
SOURCE_DIR = ROOT / "source" / "flights" / "detail"
|
| 13 |
+
OUTPUT_FILE = ROOT / "data" / "flights.jsonl"
|
| 14 |
+
PREFIX = "flight"
|
| 15 |
+
|
| 16 |
+
logging.basicConfig(level=logging.INFO, format="%(message)s")
|
| 17 |
+
log = logging.getLogger(__name__)
|
| 18 |
+
|
| 19 |
+
# ---------------------------------------------------------------------------
|
| 20 |
+
# Mapper
|
| 21 |
+
# ---------------------------------------------------------------------------
|
| 22 |
+
|
| 23 |
+
def transform_flight(data: dict) -> dict:
|
| 24 |
+
"""Flatten nested flight JSON into a ChromaDB-ready format."""
|
| 25 |
+
|
| 26 |
+
chroma_id = f"{PREFIX}:{int(data['id']):06d}"
|
| 27 |
+
|
| 28 |
+
# Build searchable document text
|
| 29 |
+
parts = []
|
| 30 |
+
summary = f"Flight of the {data.get('rocket', 'rocket')}"
|
| 31 |
+
if data.get('flyer'): summary += f" by {data['flyer']}"
|
| 32 |
+
if data.get('motors'): summary += f" using {data['motors']} motor(s)"
|
| 33 |
+
if data.get('launch_site'): summary += f" at {data['launch_site']}"
|
| 34 |
+
summary += "."
|
| 35 |
+
|
| 36 |
+
parts.append(summary)
|
| 37 |
+
if data.get("notes"): parts.append(data["notes"])
|
| 38 |
+
|
| 39 |
+
document = " ".join(parts)
|
| 40 |
+
|
| 41 |
+
# Flatten metadata
|
| 42 |
+
metadata = {
|
| 43 |
+
"id": data["id"],
|
| 44 |
+
"date": data.get("date"),
|
| 45 |
+
"flyer": data.get("flyer"),
|
| 46 |
+
"rocket": data.get("rocket"),
|
| 47 |
+
"kit": data.get("kit"),
|
| 48 |
+
"altitude_ft": data.get("altitude_ft"),
|
| 49 |
+
"wind_speed_mph": data.get("conditions", {}).get("wind_speed_mph"),
|
| 50 |
+
"temperature_f": data.get("conditions", {}).get("temperature_f"),
|
| 51 |
+
"url": data.get("url")
|
| 52 |
+
}
|
| 53 |
+
|
| 54 |
+
metadata = {k: v for k, v in metadata.items() if v is not None}
|
| 55 |
+
|
| 56 |
+
return {
|
| 57 |
+
"id": chroma_id,
|
| 58 |
+
"document": document,
|
| 59 |
+
"metadata": metadata
|
| 60 |
+
}
|
| 61 |
+
|
| 62 |
+
# ---------------------------------------------------------------------------
|
| 63 |
+
# Main
|
| 64 |
+
# ---------------------------------------------------------------------------
|
| 65 |
+
|
| 66 |
+
def main():
|
| 67 |
+
if not SOURCE_DIR.exists():
|
| 68 |
+
log.error(f"Source directory {SOURCE_DIR} not found.")
|
| 69 |
+
return
|
| 70 |
+
|
| 71 |
+
OUTPUT_FILE.parent.mkdir(parents=True, exist_ok=True)
|
| 72 |
+
|
| 73 |
+
count = 0
|
| 74 |
+
with OUTPUT_FILE.open("w", encoding="utf-8") as out:
|
| 75 |
+
for shard_dir in sorted(SOURCE_DIR.iterdir()):
|
| 76 |
+
if not shard_dir.is_dir(): continue
|
| 77 |
+
for file_path in sorted(shard_dir.glob("*.json")):
|
| 78 |
+
try:
|
| 79 |
+
with file_path.open("r", encoding="utf-8") as f:
|
| 80 |
+
raw_data = json.load(f)
|
| 81 |
+
processed = transform_flight(raw_data)
|
| 82 |
+
out.write(json.dumps(processed, ensure_ascii=False) + "\n")
|
| 83 |
+
count += 1
|
| 84 |
+
except Exception as e:
|
| 85 |
+
log.error(f"Error processing {file_path}: {e}")
|
| 86 |
+
|
| 87 |
+
log.info(f"Successfully built {count} records in {OUTPUT_FILE}")
|
| 88 |
+
|
| 89 |
+
if __name__ == "__main__":
|
| 90 |
+
main()
|
scripts/reviews/02_build_data.py
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
import json
|
| 3 |
+
import logging
|
| 4 |
+
import sys
|
| 5 |
+
from pathlib import Path
|
| 6 |
+
|
| 7 |
+
# ---------------------------------------------------------------------------
|
| 8 |
+
# Config
|
| 9 |
+
# ---------------------------------------------------------------------------
|
| 10 |
+
|
| 11 |
+
ROOT = Path(__file__).parent.parent.parent
|
| 12 |
+
SOURCE_DIR = ROOT / "source" / "reviews" / "detail"
|
| 13 |
+
OUTPUT_FILE = ROOT / "data" / "reviews.jsonl"
|
| 14 |
+
PREFIX = "review"
|
| 15 |
+
|
| 16 |
+
logging.basicConfig(level=logging.INFO, format="%(message)s")
|
| 17 |
+
log = logging.getLogger(__name__)
|
| 18 |
+
|
| 19 |
+
# ---------------------------------------------------------------------------
|
| 20 |
+
# Mapper
|
| 21 |
+
# ---------------------------------------------------------------------------
|
| 22 |
+
|
| 23 |
+
def transform_review(data: dict) -> dict:
|
| 24 |
+
"""Flatten nested review JSON into a ChromaDB-ready format."""
|
| 25 |
+
|
| 26 |
+
# 1. Generate Globally Unique ID
|
| 27 |
+
chroma_id = f"{PREFIX}:{int(data['id']):06d}"
|
| 28 |
+
|
| 29 |
+
# 2. Build searchable document text
|
| 30 |
+
sections = data.get("sections", {})
|
| 31 |
+
text_blocks = []
|
| 32 |
+
if data.get("kit"): text_blocks.append(f"Review of the {data['kit']}.")
|
| 33 |
+
|
| 34 |
+
# Add all narrative sections
|
| 35 |
+
for title, content in sections.items():
|
| 36 |
+
text_blocks.append(f"{title}: {content}")
|
| 37 |
+
|
| 38 |
+
document = " ".join(text_blocks)
|
| 39 |
+
|
| 40 |
+
# 3. Flatten metadata (simple types only)
|
| 41 |
+
metadata = {
|
| 42 |
+
"id": data["id"],
|
| 43 |
+
"type": data.get("type"),
|
| 44 |
+
"date": data.get("date"),
|
| 45 |
+
"kit_name": data.get("kit"),
|
| 46 |
+
"manufacturer_name": data.get("manufacturer", {}).get("name") if isinstance(data.get("manufacturer"), dict) else data.get("manufacturer"),
|
| 47 |
+
"rating_construction": data.get("ratings", {}).get("construction"),
|
| 48 |
+
"rating_flight": data.get("ratings", {}).get("flight"),
|
| 49 |
+
"rating_overall": data.get("ratings", {}).get("overall"),
|
| 50 |
+
"url": data.get("url")
|
| 51 |
+
}
|
| 52 |
+
|
| 53 |
+
# Remove nulls to keep metadata clean
|
| 54 |
+
metadata = {k: v for k, v in metadata.items() if v is not None}
|
| 55 |
+
|
| 56 |
+
return {
|
| 57 |
+
"id": chroma_id,
|
| 58 |
+
"document": document,
|
| 59 |
+
"metadata": metadata
|
| 60 |
+
}
|
| 61 |
+
|
| 62 |
+
# ---------------------------------------------------------------------------
|
| 63 |
+
# Main
|
| 64 |
+
# ---------------------------------------------------------------------------
|
| 65 |
+
|
| 66 |
+
def main():
|
| 67 |
+
if not SOURCE_DIR.exists():
|
| 68 |
+
log.error(f"Source directory {SOURCE_DIR} not found.")
|
| 69 |
+
return
|
| 70 |
+
|
| 71 |
+
OUTPUT_FILE.parent.mkdir(parents=True, exist_ok=True)
|
| 72 |
+
|
| 73 |
+
count = 0
|
| 74 |
+
with OUTPUT_FILE.open("w", encoding="utf-8") as out:
|
| 75 |
+
# Walk the sharded detail directory
|
| 76 |
+
for shard_dir in sorted(SOURCE_DIR.iterdir()):
|
| 77 |
+
if not shard_dir.is_dir(): continue
|
| 78 |
+
|
| 79 |
+
for file_path in sorted(shard_dir.glob("*.json")):
|
| 80 |
+
try:
|
| 81 |
+
with file_path.open("r", encoding="utf-8") as f:
|
| 82 |
+
raw_data = json.load(f)
|
| 83 |
+
|
| 84 |
+
processed = transform_review(raw_data)
|
| 85 |
+
out.write(json.dumps(processed, ensure_ascii=False) + "\n")
|
| 86 |
+
count += 1
|
| 87 |
+
except Exception as e:
|
| 88 |
+
log.error(f"Error processing {file_path}: {e}")
|
| 89 |
+
|
| 90 |
+
log.info(f"Successfully built {count} records in {OUTPUT_FILE}")
|
| 91 |
+
|
| 92 |
+
if __name__ == "__main__":
|
| 93 |
+
main()
|
source/clubs/index.jsonl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a7f64a92e350e303a2a86fb9c1eee73855e7a8708457e06957af675498647612
|
| 3 |
+
size 73798
|
source/designs/index.jsonl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ea2c5ad3851ae1766e78341fafc93be31571631981974535b1b2a4721cd2ee1b
|
| 3 |
+
size 1499531
|
source/flights/index.jsonl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:35cd96c24716b42f318677dde7fb32fdb32b047bc2989f1210f761496061f2c0
|
| 3 |
+
size 11609437
|
source/glossary/index.jsonl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:537d3f0497154eaf0efd7347397bbb114fed2fe12101bb27b4c3970123b93f94
|
| 3 |
+
size 274078
|
source/manufacturers/index.jsonl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f5d103b7224c9b008cf39aa9630bcaa374a809179878f49d487a92b11077bd8c
|
| 3 |
+
size 73467
|
source/motors/index.jsonl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b6a926fd4355a4683a270e7b3a669c7ecca32e11343ea1dc3ebdb5cf4a26da10
|
| 3 |
+
size 925277
|
source/parts/index.jsonl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:85d15c9e7488a9f93be1966df8272a2892e2b85aa206f8126ef30cf6e6ecc82f
|
| 3 |
+
size 4876361
|
source/plans/index.jsonl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:617d8069e8f033671c3ee3b1313f264a01303a31d6da6483f27e3d7251ec093a
|
| 3 |
+
size 60861
|
source/products/index.jsonl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f7762435c8528f106fcfd53e7199fa6d14efb46639ad980ddbc73f6c54e5e808
|
| 3 |
+
size 1574905
|
source/reviews/index.jsonl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b15806442e1c6ba32dc5067ac6cde5ed9f10a7cbe400c9c6e4b23a4b8a7ba44a
|
| 3 |
+
size 1146617
|