vault backup: 2025-09-01 23:48:02

This commit is contained in:
嘉宇 刘
2025-09-01 23:48:02 +08:00
parent 7f5834e812
commit a1622e51b6
7 changed files with 2253 additions and 2 deletions

291
3.知识库对话.md Normal file
View File

@ -0,0 +1,291 @@
{
"nodes": [
{
"parameters": {
"promptType": "define",
"text": "={{ $json.chatInput }}",
"hasOutputParser": true,
"options": {
"systemMessage": "你是一名个人知识库回答专家,在你链接的向量数据库中,存储着用户个人的知识库,你将根据知识库回答用户相关问题",
"batching": {}
}
},
"type": "@n8n/n8n-nodes-langchain.agent",
"typeVersion": 2.1,
"position": [
-96,
-48
],
"id": "0cee6e45-82b0-45f3-8c76-abce0fc483ab",
"name": "AI Agent1"
},
{
"parameters": {
"mode": "retrieve-as-tool",
"toolDescription": "个人知识库",
"pineconeIndex": {
"__rl": true,
"value": "n8n",
"mode": "list",
"cachedResultName": "n8n"
},
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
"typeVersion": 1.3,
"position": [
-80,
192
],
"id": "01a93ab3-a72c-4700-aad9-34f43975e2dd",
"name": "Pinecone Vector Store",
"credentials": {
"pineconeApi": {
"id": "7qJGb4MBAKjNsyZF",
"name": "PineconeApi account"
}
}
},
{
"parameters": {
"model": {
"__rl": true,
"value": "deepseek-r1",
"mode": "list",
"cachedResultName": "deepseek-r1"
},
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"typeVersion": 1.2,
"position": [
-192,
160
],
"id": "700c3732-e7a8-404b-8486-5e1436e503b0",
"name": "OpenAI Chat Model",
"credentials": {
"openAiApi": {
"id": "7mjh9ylUsSuSTkV1",
"name": "千问api"
}
}
},
{
"parameters": {
"model": "BAAI/bge-m3",
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
"typeVersion": 1.2,
"position": [
-32,
384
],
"id": "50462cf9-c635-4256-930a-80e36745339f",
"name": "Embeddings OpenAI",
"credentials": {
"openAiApi": {
"id": "yzrRDMLnAHckRsR3",
"name": "deepseek"
}
}
},
{
"parameters": {
"operation": "download",
"fileId": {
"__rl": true,
"value": "1epA4w6J1u_Eug0JFDfWbmDsu_bN0e9dX",
"mode": "list",
"cachedResultName": "“算力”和“数字经济飞地”协同发展研究报告.pdf",
"cachedResultUrl": "https://drive.google.com/file/d/1epA4w6J1u_Eug0JFDfWbmDsu_bN0e9dX/view?usp=drivesdk"
},
"options": {}
},
"type": "n8n-nodes-base.googleDrive",
"typeVersion": 3,
"position": [
-480,
592
],
"id": "6e0a41ea-b72d-4791-b8d4-dac36c4a3f24",
"name": "Down",
"credentials": {
"googleDriveOAuth2Api": {
"id": "MwQahrkkEINegvbC",
"name": "Google Drive account"
}
}
},
{
"parameters": {
"dataType": "binary",
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
"typeVersion": 1.1,
"position": [
-48,
800
],
"id": "b34d170c-9612-4fee-91fa-81f6c472b4a6",
"name": "Default Data Loader"
},
{
"parameters": {
"mode": "insert",
"pineconeIndex": {
"__rl": true,
"value": "n8n",
"mode": "list",
"cachedResultName": "n8n"
},
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
"typeVersion": 1.3,
"position": [
-192,
592
],
"id": "c7f7d31c-f05c-40f0-b33d-8b684202711d",
"name": "Pinecone Vector Store1",
"credentials": {
"pineconeApi": {
"id": "7qJGb4MBAKjNsyZF",
"name": "PineconeApi account"
}
}
},
{
"parameters": {
"model": "BAAI/bge-m3",
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
"typeVersion": 1.2,
"position": [
-208,
800
],
"id": "822bb84d-253a-4174-970a-50a795b6001a",
"name": "Embeddings OpenAI1",
"credentials": {
"openAiApi": {
"id": "yzrRDMLnAHckRsR3",
"name": "deepseek"
}
}
},
{
"parameters": {
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.chatTrigger",
"typeVersion": 1.3,
"position": [
-304,
-48
],
"id": "b4955d7f-c4ad-4b60-89b6-ba1330e4d2c8",
"name": "When chat message received",
"webhookId": "cab41746-c020-49bb-add4-624f2dbdf151"
}
],
"connections": {
"AI Agent1": {
"main": [
[]
]
},
"Pinecone Vector Store": {
"ai_tool": [
[
{
"node": "AI Agent1",
"type": "ai_tool",
"index": 0
}
]
]
},
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "AI Agent1",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Embeddings OpenAI": {
"ai_embedding": [
[
{
"node": "Pinecone Vector Store",
"type": "ai_embedding",
"index": 0
}
]
]
},
"Down": {
"main": [
[
{
"node": "Pinecone Vector Store1",
"type": "main",
"index": 0
}
]
]
},
"Default Data Loader": {
"ai_document": [
[
{
"node": "Pinecone Vector Store1",
"type": "ai_document",
"index": 0
}
]
]
},
"Embeddings OpenAI1": {
"ai_embedding": [
[
{
"node": "Pinecone Vector Store1",
"type": "ai_embedding",
"index": 0
}
]
]
},
"When chat message received": {
"main": [
[
{
"node": "AI Agent1",
"type": "main",
"index": 0
}
]
]
}
},
"pinData": {
"AI Agent1": [
{
"output": "根据知识库中的信息,**数字经济飞地**是指两个经济发展存在落差的行政地区打破原有行政区划限制,通过跨区域合作实现数字经济资源互补和协调发展的新型经济模式。其核心特点和分类如下:\n\n### 一、核心定义\n数字经济飞地是区域间通过行政管理和数字经济开发实现以下目标的合作模式\n1. **打破行政区划限制**:独立行政地区间建立合作机制\n2. **资源互补**:利用各自优势资源(土地、算力、技术、人才等)\n3. **协调发展**:促进数字经济产业梯度转移和集聚发展\n\n### 二、三大类型\n| 类型 | 特点 | 典型案例 |\n|------------|----------------------------------------------------------------------|------------------------------|\n| **资源型** | 欠发达地区提供土地/算力/能源,吸引数字产业聚集 | 宁夏“双节点”算力基地 |\n| **产业型** | 欠发达地区在发达地区设园区,招引企业/人才/项目落地 | 长三角飞地招商模式 |\n| **创新型** | 利用发达地区科研资源,建立实验室/孵化器发展数字技术 | 京津冀联合创新中心 |\n\n### 三、发展路径\n1. **政府引导**\n - 设立跨区域产业投资基金如数字宁夏“1244+N”计划\n - 建立产学研合作机制,柔性引进高端人才\n2. **优势互补**\n - 明确“飞出地”与“飞入地”资源禀赋(如宁夏提供能源,北上广提供技术)\n - 制定合理的利益分配机制如税收分成、GDP统计分摊\n3. **龙头企业带动**\n - 重点招引移动/电信/腾讯/阿里等头部企业\n - 培育“链主企业”形成产业集群(如宁夏招引智能终端、数据服务项目)\n\n### 四、实践案例\n- **宁夏模式**:作为全国唯一“算力+能源”双节点通过飞地招商引进云计算头部企业2023年推动智能终端、软件开发等项目落地\n- **长三角实践**2002年首创飞地经济通过“研发在上海制造在周边”实现产业链协同\n\n> 数据来源《算力与“数字经济飞地”协同发展研究报告》2023该模式起源于京津冀、长三角、珠三角地区现已成为区域数字经济发展的重要抓手。"
}
]
},
"meta": {
"templateCredsSetupCompleted": true,
"instanceId": "d4bc54c4750443ddb7fb9e6b4c7e38c46f3d96e6d4cbfdf57a74efbc3218b7c8"
}
}