---
title: "Returns the default training parameters for the given llm task"
method: POST
path: "/llm/create_training_parameters"
tags: ["llm"]
---

# Returns the default training parameters for the given llm task

`POST /llm/create_training_parameters`

## Request body

- LLMJobParameters
  - `project_id` integer, required — Project ID associated with the job
  - `llm_job_type` 'TAGGING' | 'METADATA_EXTRACTION' | 'ANNOTATION' | 'SENTENCE_ANNOTATION', required
  - `specific_task_parameters` union, required — Specific parameters for the LLMJob w.r.t it's type
    - TaggingParams
      - `llm_job_type` 'TAGGING', required
      - `sdoc_ids` integer[], required — IDs of the source documents to analyse
      - `tag_ids` integer[], required — IDs of the tags to use for the document tagging
    - MetadataExtractionParams
      - `llm_job_type` 'METADATA_EXTRACTION', required
      - `sdoc_ids` integer[], required — IDs of the source documents to analyse
      - `project_metadata_ids` integer[], required — IDs of the project metadata to use for the metadata extraction
    - AnnotationParams
      - `llm_job_type` 'ANNOTATION', required
      - `sdoc_ids` integer[], required — IDs of the source documents to analyse
      - `code_ids` integer[], required — IDs of the codes to use for the annotation
    - SentenceAnnotationParams
      - `llm_job_type` 'SENTENCE_ANNOTATION', required
      - `sdoc_ids` integer[], required — IDs of the source documents to analyse
      - `code_ids` integer[], required — IDs of the codes to use for the sentence annotation
      - `delete_existing_annotations` boolean — Delete existing annotations before creating new ones

## Response `200`

Successful Response

- TrainingParameters
  - `max_epochs` integer, required — The maximum number of epochs to train the model
  - `batch_size` integer, required — The batch size to use for training
  - `learning_rate` number, required — The learning rate to use for training

## Other responses

- `422` — Validation Error

## Changes

- **2025-08-22** `53e769440a25` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/uhh-lt/apis/discourse-analysis-tool-suite-api/changes/llm/create_training_parameters/post.md)

---

[API](https://skmtc.dev/uhh-lt/apis/discourse-analysis-tool-suite-api.md) · [All operations](https://skmtc.dev/uhh-lt/apis/discourse-analysis-tool-suite-api/llms.txt) · [OpenAPI document](https://skmtc.dev/uhh-lt/apis/discourse-analysis-tool-suite-api/revisions/ac72b8e534ee?raw)
