---
title: "Generate Dataset"
method: POST
path: "/evals/dataset/generate/"
deprecated: true
---

# Generate Dataset

`POST /evals/dataset/generate/`

> **Deprecated.**

Create a new dataset and save it to the database.

## Headers

- `x-talc-api` string, nullable

## Request body

- QuestionGenerationConfig
  - `name` string, required — Friendly name for the configuration used in logging, error reporting and the UI.
  - `knowledge_bases` string[], required — List of knowledge bases to use for generating questions. Uses knowledge base UUIDs.
  - `question_configs` union[], required — List of question generator configurations.
    - union
      - SimpleQuestionGeneratorArgs
        - `question_limit` integer, required — The number of questions to generate
        - `question_type` 'SimpleQuestion'
        - `temperature` number, nullable — The temperature to use when generating questions
        - `positive_examples` QuestionWithReason[], required — A list of few-shot examples of good questions to help guide the question generation
          - `reason` string — Used for explaining the reasoning behind the question.
          - `question` string, required — The question text.
          - `reference_answer` string, required — The expected response.
        - `negative_examples` QuestionWithReason[] — A list of few-shot examples of poorly phrased or incorrect questions to help guide the question generation
          - `reason` string — Used for explaining the reasoning behind the question.
          - `question` string, required — The question text.
          - `reference_answer` string, required — The expected response.
        - `extra_criteria` string[] — A list of extra criteria to evaluate the quality of the generated questions.
      - HallucinationInducingQuestionGeneratorArgs
        - `question_limit` integer, required — The number of questions to generate
        - `question_type` 'HallucinationInducing'
        - `temperature` number, nullable — The temperature to use when generating questions
        - `positive_examples` QuestionWithReason[], required — A list of few-shot examples of good questions to help guide the question generation
          - `reason` string — Used for explaining the reasoning behind the question.
          - `question` string, required — The question text.
          - `reference_answer` string, required — The expected response.
        - `negative_examples` QuestionWithReason[] — A list of few-shot examples of poorly phrased or incorrect questions to help guide the question generation
          - `reason` string — Used for explaining the reasoning behind the question.
          - `question` string, required — The question text.
          - `reference_answer` string, required — The expected response.
        - `extra_criteria` string[] — A list of extra criteria to evaluate the quality of the generated questions.
      - LinkedTopicQuestionGeneratorArgs
        - `question_limit` integer, required — The number of questions to generate
        - `question_type` 'LinkedTopic'
        - `temperature` number, nullable — The temperature to use when generating questions
        - `positive_examples` QuestionWithReason[], required — A list of few-shot examples of good questions to help guide the question generation
          - `reason` string — Used for explaining the reasoning behind the question.
          - `question` string, required — The question text.
          - `reference_answer` string, required — The expected response.
        - `negative_examples` QuestionWithReason[] — A list of few-shot examples of poorly phrased or incorrect questions to help guide the question generation
          - `reason` string — Used for explaining the reasoning behind the question.
          - `question` string, required — The question text.
          - `reference_answer` string, required — The expected response.
        - `extra_criteria` string[] — A list of extra criteria to evaluate the quality of the generated questions.

## Response `200`

Successful Response

- DatasetCreationJob — Represents the status for a long-running job that creates a dataset in the DB.
  - `id` string, required
  - `dataset_id` string, required
  - `last_updated` string, date-time, required
  - `status` string, required
  - `error` string, nullable, required
  - `diagnostics` unknown, required
  - `name` string, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/talc/apis/talc-data-generation-api.md) · [All operations](https://skmtc.dev/talc/apis/talc-data-generation-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/talc/talc-data-generation-api/revisions/bc80241e9f37/schema)
