Try
↑↓Move↵OpenCtrl↵New tabescClose

Datasets · Question answering Legacy

Laravel 11 QA Long Form

1,453 Laravel 11 questions with long answers, generated from the official documentation. 86% of answers have step headings, and 95% include a code block.

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

Overview

The answers come from the same Laravel 11 documentation as Laravel 11 QA. The median answer is 348 words, and 90% of answers open with a Markdown heading. I fine-tuned the same two Llama models on this set.

Pairs
1,453
Median answer
348 words
Answers with code
95%
Models trained
2
Task
Question answering
Splits
train 1,453
Format
Parquet · 1.7 MB
Published
Downloads
747 all time

Example row

human

How do you test job dispatching in Laravel without executing the jobs?

assistant

Testing Job Dispatching in Laravel Without Execution

When developing applications in Laravel, you might want to test job dispatching without actually executing the jobs. This is particularly useful when you want to ensure that your application logic correctly queues jobs without running them. Laravel provides a convenient way to fake job dispatching using the Queue facade.

Step 1: Fake the Queue

To prevent jobs from being executed, you can use the Queue::fake() method. This method will intercept any jobs that are dispatched, allowing you to make assertions on them without executing the job logic.

use Illuminate\Support\Facades\Queue;

Queue::fake();
A row from the dataset, cut after its first step.

Answer length

68% of answers in this set run 200 to 399 words. The chart counts words per answer in both Laravel sets, from the published Parquet files.

  1. 0.8%Laravel 11 QA Long Form3.2%Laravel 11 QA0-24
  2. 0.8%Laravel 11 QA Long Form46%Laravel 11 QA25-49
  3. 2.1%Laravel 11 QA Long Form45%Laravel 11 QA50-99
  4. 2.8%Laravel 11 QA Long Form5.4%Laravel 11 QA100-199
  5. 68%Laravel 11 QA Long Form0.4%Laravel 11 QA200-399
  6. 26%Laravel 11 QA Long Form0.0%Laravel 11 QA400+
Answer length, words
  • Laravel 11 QA Long Form median 348
  • Laravel 11 QA median 50

How it was made

  1. Topics

    Topics were taken from the Laravel 11 documentation as of October 1, 2024.

  2. Questions

    Models from OpenAI and Anthropic wrote questions about each topic.

  3. Answers

    The same models wrote long answers with explanations and code examples.

  4. Review

    The answers were reviewed and edited for accuracy.

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

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

Fields

humanstring
A question about Laravel 11.
assistantstring
A long answer in Markdown.
Cite
Ryan Yannelli, Laravel 11 Documentation Q&A (Long Form), Hugging Face, 2024, https://huggingface.co/datasets/yannelli/laravel-11-qa-long-form