Skip to content

Contextual Compression Retriever 节点#

Contextual Compression Retriever 节点通过考虑查询的上下文来改进从 向量存储 文档相似性搜索返回的答案。

子节点中的参数解析

子节点在使用表达式处理多个项目时的行为与其他节点不同。

大多数节点,包括根节点,接受任意数量的项目作为输入,处理这些项目,并输出结果。您可以使用表达式引用输入项目,节点会依次为每个项目解析表达式。例如,给定五个 name 值的输入,表达式 {{ $json.name }} 会依次解析为每个名称。

在子节点中,表达式始终解析为第一个项目。例如,给定五个 name 值的输入,表达式 {{ $json.name }} 始终解析为第一个名称。

模板和示例#

Generate Contextual YouTube Comments Automatically with GPT-4o

by Yaron Been

View template details
Dynamic MCP Server Selection with OpenAI GPT-4.1 and Contextual AI Reranker

by Jinash Rouniyar

View template details
Generate Contextual Recommendations from Slack using Pinecone

by Rahul Joshi

View template details
Browse Contextual Compression Retriever integration templates, or search all templates

相关资源#

请参考 LangChain 的上下文压缩检索器文档 获取有关该服务的更多信息。

查看 n8n 的高级 AI文档。