---
title: "Determines the appropriate approach based on the provided input"
method: POST
path: "/llm/determine_approach"
tags: ["llm"]
---

# Determines the appropriate approach based on the provided input

`POST /llm/determine_approach`

## 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
      - `delete_existing_annotations` boolean — Delete existing annotations before creating new ones
    - 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

- ApproachRecommendation
  - `recommended_approach` 'LLM_ZERO_SHOT' | 'LLM_FEW_SHOT', required
  - `reasoning` string, required — Reasoning for the recommendation
  - `available_approaches` object, required — Available approaches

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/uhh-lt/apis/discourse-analysis-tool-suite-api.md) · [All operations](https://skmtc.net/uhh-lt/apis/discourse-analysis-tool-suite-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/uhh-lt/discourse-analysis-tool-suite-api/versions/6b22366ce2d1/schema)
