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.
Can I check class-based features in Laravel?
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);
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
- License
- MIT (opens in a new tab)
- Splits
- train 12,649
- Format
- Parquet · 2.7 MB
- Published
- Downloads
- 1,248 all time
Example row
Can I check class-based features in Laravel?
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);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.
- 0-24
- 25-49
- 50-99
- 100-199
- 200-399
- 400+
- Laravel 11 QA median 50
- Laravel 11 QA Long Form median 348
How it was made
Source
The official Laravel 11 documentation,
laravel/docson the11.xbranch, as of October 1, 2024.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.
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.
Ryan Yannelli, Laravel 11 Documentation Q&A, Hugging Face, 2024, https://huggingface.co/datasets/yannelli/laravel-11-qaModels
- Safetensors1BLaravel 11 Llama 3.2 1B InstructLlama 3.2 1B Instruct fine-tuned on both Laravel sets and a private code-samples set, on one RTX 3070 Ti. (opens Hugging Face in a new tab)
- GGUF1BLaravel 11 Llama 3.2 1B Instruct GGUFThe 1B fine-tune as GGUF, for LM Studio, Jan, vLLM, and llama.cpp. (opens Hugging Face in a new tab)
- Safetensors8BLaravel 11 Llama 3.1 8B InstructLlama 3.1 8B Instruct fine-tuned on both Laravel sets. (opens Hugging Face in a new tab)
- GGUF8BLaravel 11 Llama 3.1 8B Instruct GGUFThe 8B fine-tune as GGUF for local runtimes. (opens Hugging Face in a new tab)
More datasets
All datasetsCLI Command Risk
124,923 shell commands in five shells, labeled from safe to critical with risk categories, for classifiers that check a command before a terminal or coding agent runs it.
124,923 rowsCC BY 4.048 downloads
View datasetJS/TS Code Review Decisions
12,000 synthetic JavaScript and TypeScript snippets labeled for 10 code review flaws. The dataset has 27,450 line-level findings and a 13-question benchmark for small decision models.
12,000 rowsCC BY 4.0200 downloads
View datasetLaravel 11 QA Long Form Legacy
1,453 Laravel 11 questions with long, step-by-step answers, generated from the official documentation.
1,453 rowsMIT747 downloads
View dataset