The dataset is currently empty. Upload or create new data files. Then, you will be able to explore them in the Dataset Viewer.

πŸš€ Async API Best Practices Dataset

πŸ“Œ Overview

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.

πŸ“‚ Dataset Structure

The dataset is stored in JSON format and includes metadata fields for improved usability.

πŸ”Ή Example Data

{
  "question": "How do I structure an AsyncAPI document for multiple servers?",
  "answer": "Always define multiple servers if your application interacts with different environments (e.g., dev, staging, prod).",
  "source": "GitHub Discussion",
  "tags": ["development"],
  "date_added": "2025-02-24",
  "last_updated": "2025-02-24",
  "author": "Maintainer"
}

πŸ“– Fields & Metadata

Field Type Description
question String The question being asked.
answer String The detailed answer to the question.
source String The URL of the official documentation or reference.
tags List Keywords that help categorize the question for better searchability.
date_added String The date when this Q&A was added to the dataset (YYYY-MM-DD format).
last_updated String The last modification date of the Q&A entry (YYYY-MM-DD format).
author String The source or author of the answer (e.g., Async api Docs).

πŸ› οΈ Usage

πŸ”Ή Loading the Dataset in Python

You can use the πŸ€— Hugging Face Datasets library to load the dataset easily:

from datasets import load_dataset

dataset = load_dataset("your_username/asyncapi_best_practices")
print(dataset['train'][0])  # View the first Q&A pair

πŸ”Ή Using the Dataset for Chatbots

This dataset can be used to train an AI chatbot with retrieval-based or generative AI models. Example:

  • Fine-tune an LLM.
  • Benchmark a FAQ chatbot.

πŸ”„ Contributions

We welcome contributions! If you have additional Q&A pairs or updated answers:

  1. Fork the repository.
  2. Add/Edit Q&A entries in asyncapi_best_practices.json.
  3. Submit a pull request with your changes.
Downloads last month
13