From eb3cd9facca9225817a5c502172fb4a18b44ed92 Mon Sep 17 00:00:00 2001 From: Raphael Mitsch Date: Fri, 1 Sep 2023 14:43:16 +0200 Subject: [PATCH] Add doc section on LLM + task factories (#12905) * Add section on LLM + task factories. * Apply suggestions from code review --------- Co-authored-by: Sofie Van Landeghem --- 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 86d234ff1..9a20e7569 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, an `llm_TASKNAME` factory is available for each task - `llm_ner` for +an 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 just +the task factory - 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