Initial project setup for Telegram-to-Qdrant knowledge base.
Add unified n8n workflow, userbot ingestion script, and detailed README for running n8n with a separate Dockerized Telethon collector. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
155
TG Fixed Native.json
Normal file
155
TG Fixed Native.json
Normal file
@@ -0,0 +1,155 @@
|
||||
{
|
||||
"name": "TG Fixed Native",
|
||||
"nodes": [
|
||||
{
|
||||
"parameters": {
|
||||
"mode": "insert",
|
||||
"qdrantCollection": {
|
||||
"__rl": true,
|
||||
"value": "telegram_kb",
|
||||
"mode": "list",
|
||||
"cachedResultName": "telegram_kb"
|
||||
},
|
||||
"options": {}
|
||||
},
|
||||
"type": "@n8n/n8n-nodes-langchain.vectorStoreQdrant",
|
||||
"typeVersion": 1.3,
|
||||
"position": [
|
||||
512,
|
||||
0
|
||||
],
|
||||
"id": "e02cd3a1-a2b7-4177-b76a-87656ab74cac",
|
||||
"name": "Qdrant Vector Store",
|
||||
"credentials": {
|
||||
"qdrantApi": {
|
||||
"id": "gS1LJOMgnR7VJFRO",
|
||||
"name": "QdrantApi account 2"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"jsonMode": "expressionData",
|
||||
"jsonData": "={{ $json.text }}",
|
||||
"options": {}
|
||||
},
|
||||
"type": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
|
||||
"typeVersion": 1.1,
|
||||
"position": [
|
||||
480,
|
||||
208
|
||||
],
|
||||
"id": "a09381bd-04dc-4273-8d6f-35c23b9177c5",
|
||||
"name": "Default Data Loader"
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"jsCode": "const body = $input.item.json.body || {};\nconst meta = body.metadata || {};\nconst rawText = body.text || \"\";\n\nreturn {\n json: {\n text: `Пользователь ${meta.sender_name || 'Unknown'} (ID: ${meta.sender_id || '0'}) написал: ${rawText}`,\n metadata: {\n ...meta,\n processed_at: new Date().toISOString()\n }\n }\n};"
|
||||
},
|
||||
"type": "n8n-nodes-base.code",
|
||||
"typeVersion": 2,
|
||||
"position": [
|
||||
240,
|
||||
0
|
||||
],
|
||||
"id": "539d5c4b-067b-4491-b62c-ea3d555707d0",
|
||||
"name": "Code"
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"model": "qwen3-embedding:8b"
|
||||
},
|
||||
"type": "@n8n/n8n-nodes-langchain.embeddingsOllama",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
256,
|
||||
208
|
||||
],
|
||||
"id": "eab97058-b3f4-48d3-8da8-a0e6dd9359d5",
|
||||
"name": "Embeddings Ollama",
|
||||
"credentials": {
|
||||
"ollamaApi": {
|
||||
"id": "Uis7Bsdb0l1qDDL7",
|
||||
"name": "Ollama account 2"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"httpMethod": "POST",
|
||||
"path": "tg-inbox",
|
||||
"options": {}
|
||||
},
|
||||
"type": "n8n-nodes-base.webhook",
|
||||
"typeVersion": 2.1,
|
||||
"position": [
|
||||
-16,
|
||||
0
|
||||
],
|
||||
"id": "316ab407-1f95-44dc-bc3c-fff1185ce301",
|
||||
"name": "Webhook",
|
||||
"webhookId": "d857e864-ed25-447f-84ef-27c63190fb93",
|
||||
"notesInFlow": false
|
||||
}
|
||||
],
|
||||
"pinData": {},
|
||||
"connections": {
|
||||
"Code": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Qdrant Vector Store",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Embeddings Ollama": {
|
||||
"ai_embedding": [
|
||||
[
|
||||
{
|
||||
"node": "Qdrant Vector Store",
|
||||
"type": "ai_embedding",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Default Data Loader": {
|
||||
"ai_document": [
|
||||
[
|
||||
{
|
||||
"node": "Qdrant Vector Store",
|
||||
"type": "ai_document",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Webhook": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Code",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
"active": true,
|
||||
"settings": {
|
||||
"executionOrder": "v1",
|
||||
"binaryMode": "separate",
|
||||
"availableInMCP": false
|
||||
},
|
||||
"versionId": "2e4668e1-305c-4de7-8537-11cfe20a8020",
|
||||
"meta": {
|
||||
"templateCredsSetupCompleted": true,
|
||||
"instanceId": "96706479c2e398d2a4e75bb05002310bb6030e8268be45294cab77c6640a0fe6"
|
||||
},
|
||||
"id": "ILJJXfEmFW6KG6YZDjQWX",
|
||||
"tags": []
|
||||
}
|
||||
Reference in New Issue
Block a user