Try
↑↓Move↵OpenCtrl↵New tabescClose

Datasets · Question answering Legacy

Laravel 11 QA

12,649 questions and short answers generated from the Laravel 11 documentation. I fine-tuned two Llama models on it.

View on Hugging Face ↗ (opens in a new tab)Load it

Overview

The questions and answers come from the Laravel 11 documentation as of October 1, 2024. The median answer is 50 words, and 52% of answers include a code block.

Pairs
12,649
Median answer
50 words
Answers with code
52%
Models trained
2
Task
Question answering
Splits
train 12,649
Format
Parquet · 2.7 MB
Published
Downloads
1,248 all time

Example row

human

Can I check class-based features in Laravel?

assistant

Yes, you can check class-based features by providing the class name when checking the feature. For example:

return Feature::active(NewApi::class)
        ? $this->resolveNewApiResponse($request)
        : $this->resolveLegacyApiResponse($request);
A complete row from the dataset.

Answer length

94% of answers in this set are under 100 words. The chart counts words per answer in both Laravel sets, from the published Parquet files.

  1. 3.2%Laravel 11 QA0.8%Laravel 11 QA Long Form0-24
  2. 46%Laravel 11 QA0.8%Laravel 11 QA Long Form25-49
  3. 45%Laravel 11 QA2.1%Laravel 11 QA Long Form50-99
  4. 5.4%Laravel 11 QA2.8%Laravel 11 QA Long Form100-199
  5. 0.4%Laravel 11 QA68%Laravel 11 QA Long Form200-399
  6. 0.0%Laravel 11 QA26%Laravel 11 QA Long Form400+
Answer length, words
  • Laravel 11 QA median 50
  • Laravel 11 QA Long Form median 348

How it was made

  1. Source

    The official Laravel 11 documentation, laravel/docs on the 11.x branch, as of October 1, 2024.

  2. Generation

    Models from OpenAI and Anthropic wrote the questions and answers from that documentation.

Limitations

  • Coverage stops at the Laravel 11 documentation as of October 1, 2024.

Load the dataset

The splits are Parquet files on Hugging Face, released under MIT.

Python · datasets
from datasets import load_dataset

qa = load_dataset("yannelli/laravel-11-qa", split="train")
print(qa[0]["human"])
print(qa[0]["assistant"])

Fields

humanstring
A question about Laravel 11.
assistantstring
The answer in Markdown. 52% include a code block.
Cite
Ryan Yannelli, Laravel 11 Documentation Q&A, Hugging Face, 2024, https://huggingface.co/datasets/yannelli/laravel-11-qa