adrianf12 commited on
Commit
2c52e57
·
verified ·
1 Parent(s): 49f2b74

Add README for prompt/completion CSV dataset

Browse files
Files changed (1) hide show
  1. README.md +61 -0
README.md ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # HealthCareMagic-1k-prompt-completion
2
+
3
+ This dataset is a modified version of [adrianf12/HealthCareMagic-1k-csv](https://huggingface.co/datasets/adrianf12/HealthCareMagic-1k-csv) with renamed columns.
4
+
5
+ ## Dataset Information:
6
+ - **Format**: CSV (Comma Separated Values)
7
+ - **Rows**: 1,000
8
+ - **Columns**: prompt, completion
9
+ - **Size**: 1045.62 KB
10
+ - **Created**: 2025-07-31 17:35:41
11
+
12
+ ## Column Changes:
13
+ - **'input'** → **'prompt'**: Patient medical questions/descriptions
14
+ - **'output'** → **'completion'**: Medical professional responses/advice
15
+
16
+ ## Dataset Structure:
17
+ - **prompt**: Patient medical questions/descriptions
18
+ - **completion**: Medical professional responses/advice
19
+
20
+ ## Usage:
21
+
22
+ ### Load with pandas:
23
+ ```python
24
+ import pandas as pd
25
+ df = pd.read_csv("hf://datasets/adrianf12/HealthCareMagic-1k-prompt-completion/healthcare_magic_1k_prompt_completion.csv")
26
+ print(df.head())
27
+ ```
28
+
29
+ ### Load with Hugging Face datasets:
30
+ ```python
31
+ from datasets import load_dataset
32
+ dataset = load_dataset("adrianf12/HealthCareMagic-1k-prompt-completion", data_files="healthcare_magic_1k_prompt_completion.csv")
33
+ print(dataset['train'][0])
34
+ ```
35
+
36
+ ### Download directly:
37
+ ```bash
38
+ wget https://huggingface.co/datasets/adrianf12/HealthCareMagic-1k-prompt-completion/resolve/main/healthcare_magic_1k_prompt_completion.csv
39
+ ```
40
+
41
+ ### For Fine-tuning:
42
+ This dataset format with 'prompt' and 'completion' columns is ideal for:
43
+ - Training conversational AI models
44
+ - Fine-tuning language models for medical Q&A
45
+ - Training models that expect prompt/completion pairs
46
+
47
+ ## Original Dataset:
48
+ This is derived from [wangrongsheng/HealthCareMagic-100k-en](https://huggingface.co/datasets/wangrongsheng/HealthCareMagic-100k-en).
49
+
50
+ ## Modifications from Original:
51
+ 1. Limited to first 1,000 entries
52
+ 2. Removed 'instruction' column
53
+ 3. Renamed 'input' → 'prompt'
54
+ 4. Renamed 'output' → 'completion'
55
+ 5. Converted to CSV format
56
+
57
+ ## License:
58
+ Please refer to the original dataset's license terms.
59
+
60
+ ## File Contents:
61
+ - `healthcare_magic_1k_prompt_completion.csv`: The main dataset file in CSV format with prompt/completion columns