信息提取节点#
使用信息提取节点从输入数据中提取结构化信息。
本页将介绍信息提取节点的参数配置,并提供更多相关资源的链接。
节点参数#
- 文本 定义要从中提取信息的输入文本。通常是一个引用输入项字段的表达式。例如,如果输入是聊天触发器,可以是
{{ $json.chatInput }}
;如果前一个节点是"从PDF提取",则可以是{{ $json.text }}
。 - 使用模式类型选择描述期望输出数据格式的方式。可选选项包括:
- 从属性描述生成:通过指定属性列表及其描述来定义模式。
- 从JSON示例生成:输入一个JSON对象示例来自动生成模式。节点会使用对象属性类型和名称,忽略实际值。
- 手动定义:直接输入JSON模式。创建有效的JSON模式可参考JSON Schema的指南和示例。
节点选项#
- 系统提示模板:修改用于信息提取的系统提示。n8n会自动将格式规范指令附加到提示中。
相关资源#
查看 n8n 的高级 AI 文档。
AI glossary#
- 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.