n8n-nodes-query-retriever-rerank
Version:
Advanced n8n community node for intelligent document retrieval with multi-step reasoning, reranking, and comprehensive debugging
23 lines (22 loc) • 807 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getConnectionHintNoticeField = getConnectionHintNoticeField;
function getConnectionHintNoticeField(connectionTypes) {
const connectors = connectionTypes
.map((type) => {
if (type === "ai_tool" /* NodeConnectionType.AiTool */)
return 'AI Tool';
if (type === "ai_vectorStore" /* NodeConnectionType.AiVectorStore */)
return 'Vector Store';
if (type === "ai_languageModel" /* NodeConnectionType.AiLanguageModel */)
return 'Language Model';
return type;
})
.join(' or ');
return {
displayName: `Use this node to connect to ${connectors} nodes`,
name: 'notice',
type: 'notice',
default: '',
};
}