Update README.md
Browse files
README.md
CHANGED
@@ -18,15 +18,31 @@ size_categories:
|
|
18 |
This is a subset of [sentence-transformers/gooaq](https://huggingface.co/datasets/sentence-transformers/gooaq).
|
19 |
|
20 |
This dataset is a collection of question-answer pairs, collected from Google. See GooAQ for additional information. This dataset can be used directly with Sentence Transformers to train embedding models.
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
This is a subset of [sentence-transformers/gooaq](https://huggingface.co/datasets/sentence-transformers/gooaq).
|
19 |
|
20 |
This dataset is a collection of question-answer pairs, collected from Google. See GooAQ for additional information. This dataset can be used directly with Sentence Transformers to train embedding models.
|
21 |
+
|
22 |
+
## Dataset Subsets
|
23 |
+
|
24 |
+
Columns: "question", "answer", "category"
|
25 |
+
Column types: str, str
|
26 |
+
Examples:
|
27 |
+
|
28 |
+
{
|
29 |
+
'question': 'is toprol xl the same as metoprolol?',
|
30 |
+
'answer': 'Metoprolol succinate is also known by the brand name Toprol XL. It is the extended-release form of metoprolol. Metoprolol succinate is approved to treat high blood pressure, chronic chest pain, and congestive heart failure.',
|
31 |
+
'category': 'Chemistry'
|
32 |
+
}
|
33 |
+
|
34 |
+
## Method of categorization
|
35 |
+
|
36 |
+
Llama-3.1-8B was queried for category for each question using the following function:
|
37 |
+
```python
|
38 |
+
def get_category(row):
|
39 |
+
query = "You need to categorize the following question into one of the following categories: "
|
40 |
+
categories = ["Biology", "Chemistry", "Physics", "Mathematics", "Computer Science", "Medicine", "Pop culture", "History", "Philosophy", "Art", "Music", "Sports", "Politics", "Religion", "Other"]
|
41 |
+
query += ", ".join(categories)
|
42 |
+
query += ". The question is: ```" + row["question"] + "```"
|
43 |
+
query += ". The answer is: ```" + row["answer"] + "```"
|
44 |
+
query += "\n Answer only with the category name, no other text."
|
45 |
+
return ask_llm(query)
|
46 |
+
```
|
47 |
+
|
48 |
+
This subset consists only of the following categories: `{"Biology", "Chemistry", "Medicine"}`
|