Upload README.md
Browse files
README.md
CHANGED
|
@@ -1,45 +1,58 @@
|
|
| 1 |
---
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
path: data/train-*
|
| 9 |
-
dataset_info:
|
| 10 |
-
features:
|
| 11 |
-
- name: meta
|
| 12 |
-
dtype: string
|
| 13 |
-
- name: num_nodes
|
| 14 |
-
dtype: int64
|
| 15 |
-
- name: num_edges
|
| 16 |
-
dtype: int64
|
| 17 |
-
- name: nodes
|
| 18 |
-
dtype: string
|
| 19 |
-
- name: edges
|
| 20 |
-
dtype: string
|
| 21 |
-
splits:
|
| 22 |
-
- name: train
|
| 23 |
-
num_bytes: 70759
|
| 24 |
-
num_examples: 1
|
| 25 |
-
download_size: 17894
|
| 26 |
-
dataset_size: 70759
|
| 27 |
---
|
| 28 |
|
| 29 |
-
#
|
| 30 |
|
| 31 |
-
|
| 32 |
-
## Generated by ML Intern
|
| 33 |
|
| 34 |
-
|
| 35 |
|
| 36 |
-
|
| 37 |
-
- Source code: https://github.com/huggingface/ml-intern
|
| 38 |
|
| 39 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
|
| 41 |
```python
|
| 42 |
from datasets import load_dataset
|
|
|
|
| 43 |
|
| 44 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
language: de
|
| 3 |
+
license: cc-by-4.0
|
| 4 |
+
task_categories: [question-answering, text-generation]
|
| 5 |
+
tags: [simson, moped, ddr, automotive, german, knowledge-graph, linked-data]
|
| 6 |
+
pretty_name: Simson Unified Knowledge Graph
|
| 7 |
+
size_categories: n<1K
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
+
# 🧠 Simson Unified Knowledge Graph
|
| 11 |
|
| 12 |
+
**173 Nodes × 348 Edges** – der Klebstoff zwischen allen Simson-Datasets.
|
|
|
|
| 13 |
|
| 14 |
+
## Was das ist
|
| 15 |
|
| 16 |
+
Ein maschinenlesbarer Graph, der alle 6 Datasets miteinander verknüpft:
|
|
|
|
| 17 |
|
| 18 |
+
| Dataset | Status | Nodes |
|
| 19 |
+
|---------|--------|-------|
|
| 20 |
+
| racing-planet-simson-traces | Diagnose-Traces | 15 |
|
| 21 |
+
| simson-forum-qa-pairs | Forum-Wissen | 30 |
|
| 22 |
+
| simson-repair-manual | Technische Daten | 14 |
|
| 23 |
+
| racing-planet-product-catalog | Teilekatalog | 37 |
|
| 24 |
+
| simson-youtube-tutorials | Video-Tutorials | 20 |
|
| 25 |
+
| simson-part-problem-matrix | Diagnose-Logik | 57 |
|
| 26 |
+
|
| 27 |
+
## Edge-Typen
|
| 28 |
+
|
| 29 |
+
| Relation | Anzahl | Bedeutung |
|
| 30 |
+
|----------|--------|-----------|
|
| 31 |
+
| `similar_to` | 228 | Forum-Threads mit gleichem Topic |
|
| 32 |
+
| `has_cause` | 44 | Symptom → Ursache |
|
| 33 |
+
| `fixed_by_part` | 38 | Ursache → Produkt |
|
| 34 |
+
| `fixes_with` | 35 | Symptom → direktes Produkt |
|
| 35 |
+
| `references` | 3 | Forum → Handbuch |
|
| 36 |
+
| `demonstrates` | (weitere) | YouTube → Handbuch |
|
| 37 |
+
|
| 38 |
+
## Verwendung
|
| 39 |
|
| 40 |
```python
|
| 41 |
from datasets import load_dataset
|
| 42 |
+
import json
|
| 43 |
|
| 44 |
+
ds = load_dataset("jmp1987/simson-unified-knowledge-graph")
|
| 45 |
+
graph = json.loads(ds["train"][0]["nodes"])
|
| 46 |
+
edges = json.loads(ds["train"][0]["edges"])
|
| 47 |
+
|
| 48 |
+
# Finde alle Teile für ein Symptom
|
| 49 |
+
symptom_node = next(n for n in graph if n["label"].startswith("Motor springt"))
|
| 50 |
+
related = [e for e in edges if e["source"] == symptom_node["id"]]
|
| 51 |
```
|
| 52 |
+
|
| 53 |
+
## RAG-Integration
|
| 54 |
+
|
| 55 |
+
Der Knowledge Graph erlaubt:
|
| 56 |
+
1. **Hop-1 Retrieval**: Frage → Symptom-Node → verlinkte Produkte/Manual/Forum
|
| 57 |
+
2. **Hop-2 Retrieval**: Frage → Symptom → Ursache → nötige Teile → Assembly-Deps
|
| 58 |
+
3. **Cross-Dataset Retrieval**: Automatisches Finden relevanter Chunks aus allen Datasets
|