Sumitwarrior7 commited on
Commit
776a7ba
Β·
verified Β·
1 Parent(s): 256040a

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +62 -3
README.md CHANGED
@@ -1,3 +1,62 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ ---
4
+
5
+
6
+ # πŸš€ Async API Best Practices Dataset
7
+
8
+ ## πŸ“Œ Overview
9
+ This dataset contains Question-Answer (QnA) pairs extracted from Async API's official documentation and other relevant sources. It is designed to support AI assistants that aim to help users quickly find answers related to Async API.
10
+
11
+ ## πŸ“‚ Dataset Structure
12
+ The dataset is stored in JSON format and includes metadata fields for improved usability.
13
+
14
+ ## πŸ”Ή Example Data
15
+ ```json
16
+ {
17
+ "question": "How can I extend the functionality of my Rocket.Chat workspace?",
18
+ "answer": "To enhance your workspace's capabilities, you have several options...\n\nEach method has its strengths and can be chosen based on your specific requirements and technical expertise.",
19
+ "source": "https://docs.rocket.chat/docs/rocketchat-apps-faq?utm_source=chatgpt.com",
20
+ "tags": ["development", "apps", "integrations", "customization"],
21
+ "date_added": "2025-02-24",
22
+ "last_updated": "2025-02-24",
23
+ "author": "Maintainer"
24
+ }
25
+ ```
26
+
27
+ ## πŸ“– Fields & Metadata
28
+
29
+ | Field | Type | Description |
30
+ |--------------|--------|-------------|
31
+ | `question` | String | The question being asked. |
32
+ | `answer` | String | The detailed answer to the question. |
33
+ | `source` | String | The URL of the official documentation or reference. |
34
+ | `tags` | List | Keywords that help categorize the question for better searchability. |
35
+ | `date_added` | String | The date when this Q&A was added to the dataset (YYYY-MM-DD format). |
36
+ | `last_updated` | String | The last modification date of the Q&A entry (YYYY-MM-DD format). |
37
+ | `author` | String | The source or author of the answer (e.g., Async api Docs). |
38
+
39
+ ## πŸ› οΈ Usage
40
+
41
+ ### πŸ”Ή Loading the Dataset in Python
42
+ You can use the πŸ€— Hugging Face Datasets library to load the dataset easily:
43
+
44
+ ```python
45
+ from datasets import load_dataset
46
+
47
+ dataset = load_dataset("your_username/asyncapi_best_practices")
48
+ print(dataset['train'][0]) # View the first Q&A pair
49
+ ```
50
+
51
+ ### πŸ”Ή Using the Dataset for Chatbots
52
+ This dataset can be used to train an AI chatbot with retrieval-based or generative AI models. Example:
53
+
54
+ - Fine-tune an LLM.
55
+ - Benchmark a FAQ chatbot.
56
+
57
+ ## πŸ”„ Contributions
58
+ We welcome contributions! If you have additional Q&A pairs or updated answers:
59
+
60
+ 1. Fork the repository.
61
+ 2. Add/Edit Q&A entries in `asyncapi_best_practices.json`.
62
+ 3. Submit a pull request with your changes.