Detect
Detect entities by GPT
The llm.detect
function is used for detecting entities in a given text input using GPT. It takes various parameters to help generate the desired output by training the GPT model with examples provided.
Function Signature
Parameters
input
(String): The input text that needs to be analyzed to detect entities.prompt
(String): The custom prompt to initiate the detection process.entityDescription
(String): The description of entities to detect.examples
(List<Pair<String, List>>): A list of examples in the form of pairs. Each pair contains a text input and a list of entity outputs.config
(LLMConfig): The configuration object for controlling how GPT generates the output.
Return Value
The function returns a List of Strings, containing the detected entities.
Usage Example:
In the dialogue function node:
In the example above, the llm.detect
function will analyze the input text to detect and return the emotions felt by the speaker.
Last updated