Apply suggestions from code review

This commit is contained in:
Sofie Van Landeghem 2023-09-01 14:08:29 +02:00 committed by GitHub
parent 91ac3fe175
commit 435e18e117
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,11 +27,11 @@ options:
| `save_io` | Whether to save prompts/responses within `Doc.user_data["llm_io"]`. ~~bool~~ | | `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~~ | | `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 Beyond that, an `llm_TASKNAME` factory is available for each task - `llm_ner` for
a LLM component with the NER task, `llm_rel` for relationship extraction etc. 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 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 in the configuration. Note: tasks may require more configuration than just
the task - compare with the tasks' description below. the task factory - compare with the tasks' description below.
An `llm` component is defined by two main settings: An `llm` component is defined by two main settings: