Information Extractor#
Use the Information Extractor node to extract structured information from incoming data.
On this page, you'll find the node parameters for the Information Extractor node, and links to more resources.
Node parameters#
Text defines the input text to extract information from. This is usually an expression
that references a field from the input items. For example, this could be
{{ $json.chatInput }}
if the input is a chat trigger, or {{ $json.text }}
if a previous node is Extract from PDF.
Schema Type allows you to choose how you want to describe the desired output data format. You can choose between:
-
From Attribute Description: This option allows you to define the schema by specifying the list of attributes and their descriptions.
-
Generate From JSON Example: Input an example JSON object to automatically generate the schema. The node uses the object property types and names. It ignores the actual values.
-
Define Below: Manually input the JSON schema. Read the JSON Schema guides and examples for help creating a valid JSON schema.
Node options#
- System Prompt Template: This option allows you to change the system prompt that's used for the information extraction. Format specification instructions will be appended to the prompt automatically.
Related resources#
View n8n's Advanced AI documentation.
- completion: Completions are the responses generated by a model like GPT.
- hallucinations: Hallucination in AI is when an LLM (large language model) mistakenly perceives patterns or objects that don't exist.
- vector database: A vector database stores mathematical representations of information. Use with embeddings and retrievers to create a database that your AI can access when answering questions.
- vector store: A vector store, or vector database, stores mathematical representations of information. Use with embeddings and retrievers to create a database that your AI can access when answering questions.