From 91ac3fe1753f957e46503b6baa34878ff048f42b Mon Sep 17 00:00:00 2001 From: Raphael Mitsch Date: Fri, 11 Aug 2023 15:54:12 +0200 Subject: [PATCH] Add section on LLM + task factories. --- website/docs/api/large-language-models.mdx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/website/docs/api/large-language-models.mdx b/website/docs/api/large-language-models.mdx index cc8328790..de43495a1 100644 --- a/website/docs/api/large-language-models.mdx +++ b/website/docs/api/large-language-models.mdx @@ -27,6 +27,12 @@ options: | `save_io` | Whether to save prompts/responses within `Doc.user_data["llm_io"]`. ~~bool~~ | | `validate_types` | Whether to check if signatures of configured model and task are consistent. ~~bool~~ | +Beyond that, a `llm_TASKNAME` factory is available for each task - `llm_ner` for +a LLM component with the NER task, `llm_rel` for relationship extraction etc. +These factories are equivalent to using the `llm` factory and defining the task +in the configuration. Note: tasks may require more configuration than the just +the task - compare with the tasks' description below. + An `llm` component is defined by two main settings: - A [**task**](#tasks), defining the prompt to send to the LLM as well as the