Local File RAG Chatbot with Mistral AI
f0f0fac2-6c4c-458a-98a4-e4f71be138b8
Latency
2305ms
Cost
$0.0002
Tokens
32
Status
successgpt-4o-mini
Workflow Graph
Trace
[
{
"data": {
"nodeType": "integration"
},
"event": "node_start",
"nodeId": "c5525f47-4d91-4b98-87bb-566b90da64a1",
"timestamp": 1783211463631
},
{
"data": {
"mode": "read",
"status": "ok",
"service": "localfiletrigger",
"latencyMs": 250,
"operation": "run",
"simulated": true
},
"event": "integration_mocked",
"nodeId": "integration",
"timestamp": 1783211463882
},
{
"data": {
"status": "ok",
"nodeType": "integration"
},
"event": "node_end",
"nodeId": "c5525f47-4d91-4b98-87bb-566b90da64a1",
"timestamp": 1783211463882
},
{
"data": {
"nodeType": "manualTrigger"
},
"event": "node_start",
"nodeId": "804334d6-e34d-40d1-9555-b331ffe66f6f",
"timestamp": 1783211463883
},
{
"data": {
"initialData": {
"q": "What are the main advantages of renewable energy?",
"data": "This is the content of the sample document. It discusses the benefits of using renewable energy sources like solar and wind power. It also touches upon the challenges of grid integration and energy storage solutions. The document highlights the economic advantages and environmental impact reduction associated with adopting these technologies.",
"path": "/path/to/your/local/documents/",
"event": "file_added",
"result": {
"points": [
{
"id": "doc1_chunk1",
"payload": {
"content": "Renewable energy sources like solar and wind power offer significant environmental benefits.",
"metadata": {
"source": "sample_document.txt",
"chunk_id": "doc1_chunk1"
}
}
},
{
"id": "doc1_chunk2",
"payload": {
"content": "Challenges in grid integration and energy storage are key considerations for widespread adoption.",
"metadata": {
"source": "sample_document.txt",
"chunk_id": "doc1_chunk2"
}
}
}
],
"points_map": {
"doc1_chunk1": {
"id": "doc1_chunk1",
"payload": {
"content": "Renewable energy sources like solar and wind power offer significant environmental benefits.",
"metadata": {
"source": "sample_document.txt",
"chunk_id": "doc1_chunk1"
}
}
},
"doc1_chunk2": {
"id": "doc1_chunk2",
"payload": {
"content": "Challenges in grid integration and energy storage are key considerations for widespread adoption.",
"metadata": {
"source": "sample_document.txt",
"chunk_id": "doc1_chunk2"
}
}
}
}
},
"fileName": "sample_document.txt",
"directory": "/path/to/your/local/documents/",
"file_added": true,
"file_changed": false,
"file_deleted": false,
"file_location": "/path/to/your/local/documents/sample_document.txt",
"qdrant_collection": "rag_documents"
}
},
"event": "triggered",
"nodeId": "manualTrigger",
"timestamp": 1783211463883
},
{
"data": {
"status": "ok",
"nodeType": "manualTrigger"
},
"event": "node_end",
"nodeId": "804334d6-e34d-40d1-9555-b331ffe66f6f",
"timestamp": 1783211463883
},
{
"data": {
"nodeType": "integration"
},
"event": "node_start",
"nodeId": "7354a080-051b-479f-97b1-49cc0c14c9d8",
"timestamp": 1783211463885
},
{
"data": {
"mode": "read",
"status": "ok",
"service": "embeddingsmistralcloud",
"latencyMs": 250,
"operation": "run",
"simulated": true
},
"event": "integration_mocked",
"nodeId": "integration",
"timestamp": 1783211464136
},
{
"data": {
"status": "ok",
"nodeType": "integration"
},
"event": "node_end",
"nodeId": "7354a080-051b-479f-97b1-49cc0c14c9d8",
"timestamp": 1783211464136
},
{
"data": {
"nodeType": "passthrough"
},
"event": "node_start",
"nodeId": "0b0e29b9-8873-4074-94dc-9f0364c28835",
"timestamp": 1783211464138
},
{
"data": {},
"event": "noOp",
"nodeId": "passthrough",
"timestamp": 1783211464138
},
{
"data": {
"status": "ok",
"nodeType": "passthrough"
},
"event": "node_end",
"nodeId": "0b0e29b9-8873-4074-94dc-9f0364c28835",
"timestamp": 1783211464138
},
{
"data": {
"nodeType": "trigger"
},
"event": "node_start",
"nodeId": "ffe8c363-0809-4d21-aa8f-34b0fc2dc57f",
"timestamp": 1783211464139
},
{
"data": {
"kind": "@n8n/n8n-nodes-langchain.chatTrigger"
},
"event": "seeded",
"nodeId": "trigger",
"timestamp": 1783211464139
},
{
"data": {
"status": "ok",
"nodeType": "trigger"
},
"event": "node_end",
"nodeId": "ffe8c363-0809-4d21-aa8f-34b0fc2dc57f",
"timestamp": 1783211464139
},
{
"data": {
"nodeType": "llm"
},
"event": "node_start",
"nodeId": "f143e438-8176-4923-a866-3f9a2a16793d",
"timestamp": 1783211464140
},
{
"data": {
"messages": 1,
"maxTokens": 1024
},
"event": "calling openai/mistral-small-2402",
"nodeId": "llm",
"timestamp": 1783211464140
},
{
"data": {
"model": "mistral-small-2402",
"provider": "openai"
},
"event": "llm_call",
"nodeId": "_context",
"timestamp": 1783211464140
},
{
"data": {
"model": "gpt-4o-mini-2024-07-18",
"costUsd": 0.0001075,
"provider": "openai",
"latencyMs": 637,
"promptTokens": 7,
"completionTokens": 9
},
"event": "llm_result",
"nodeId": "_context",
"timestamp": 1783211464786
},
{
"data": {
"status": "ok",
"nodeType": "llm"
},
"event": "node_end",
"nodeId": "f143e438-8176-4923-a866-3f9a2a16793d",
"timestamp": 1783211464786
},
{
"data": {
"nodeType": "integration"
},
"event": "node_start",
"nodeId": "2fdabcb5-a7a7-4e02-8c1b-9190e2e52385",
"timestamp": 1783211464787
},
{
"data": {
"mode": "read",
"status": "ok",
"service": "embeddingsmistralcloud",
"latencyMs": 250,
"operation": "run",
"simulated": true
},
"event": "integration_mocked",
"nodeId": "integration",
"timestamp": 1783211465038
},
{
"data": {
"status": "ok",
"nodeType": "integration"
},
"event": "node_end",
"nodeId": "2fdabcb5-a7a7-4e02-8c1b-9190e2e52385",
"timestamp": 1783211465038
},
{
"data": {
"nodeType": "set"
},
"event": "node_start",
"nodeId": "7ab0e284-b667-4d1f-8ceb-fb05e4081a06",
"timestamp": 1783211465039
},
{
"data": {
"inputKeys": [
"simulated",
"echo",
"items"
],
"mergeKeys": []
},
"event": "merged",
"nodeId": "set",
"timestamp": 1783211465039
},
{
"data": {
"status": "ok",
"nodeType": "set"
},
"event": "node_end",
"nodeId": "7ab0e284-b667-4d1f-8ceb-fb05e4081a06",
"timestamp": 1783211465039
},
{
"data": {
"nodeType": "passthrough"
},
"event": "node_start",
"nodeId": "a1ad45ff-a882-4aed-82e2-cad2483cf4e8",
"timestamp": 1783211465041
},
{
"data": {},
"event": "noOp",
"nodeId": "passthrough",
"timestamp": 1783211465041
},
{
"data": {
"status": "ok",
"nodeType": "passthrough"
},
"event": "node_end",
"nodeId": "a1ad45ff-a882-4aed-82e2-cad2483cf4e8",
"timestamp": 1783211465041
},
{
"data": {
"nodeType": "passthrough"
},
"event": "node_start",
"nodeId": "1857bebb-b492-415e-96c8-235329bfd28a",
"timestamp": 1783211465042
},
{
"data": {},
"event": "noOp",
"nodeId": "passthrough",
"timestamp": 1783211465042
},
{
"data": {
"status": "ok",
"nodeType": "passthrough"
},
"event": "node_end",
"nodeId": "1857bebb-b492-415e-96c8-235329bfd28a",
"timestamp": 1783211465042
},
{
"data": {
"nodeType": "switch"
},
"event": "node_start",
"nodeId": "2d6fb29c-2fac-41de-9ad0-cc781b246378",
"timestamp": 1783211465043
},
{
"event": "matched rule 0 -> file_deleted",
"nodeId": "switch",
"timestamp": 1783211465043
},
{
"data": {
"status": "ok",
"nodeType": "switch"
},
"event": "node_end",
"nodeId": "2d6fb29c-2fac-41de-9ad0-cc781b246378",
"timestamp": 1783211465043
},
{
"data": {
"nodeType": "integration"
},
"event": "node_start",
"nodeId": "06dd8f4c-3b66-43e0-85c8-ec222e275f87",
"timestamp": 1783211465044
},
{
"data": {
"mode": "read",
"status": "ok",
"service": "retrievervectorstore",
"latencyMs": 250,
"operation": "run",
"simulated": true
},
"event": "integration_mocked",
"nodeId": "integration",
"timestamp": 1783211465296
},
{
"data": {
"status": "ok",
"nodeType": "integration"
},
"event": "node_end",
"nodeId": "06dd8f4c-3b66-43e0-85c8-ec222e275f87",
"timestamp": 1783211465296
},
{
"data": {
"nodeType": "http"
},
"event": "node_start",
"nodeId": "1fd14832-aafe-4d72-b4f2-7afc72df97dc",
"timestamp": 1783211465297
},
{
"event": "fetching POST http://qdrant:6333/collections//points/scroll",
"nodeId": "http",
"timestamp": 1783211465297
},
{
"data": {
"url": "http://qdrant:6333/collections//points/scroll",
"method": "POST"
},
"event": "http_fetch",
"nodeId": "_context",
"timestamp": 1783211465297
},
{
"data": {
"mode": "read",
"status": "ok",
"service": "http",
"latencyMs": 250,
"operation": "fetch-failed",
"simulated": true
},
"event": "integration_mocked",
"nodeId": "integration",
"timestamp": 1783211465301
},
{
"data": {
"status": "ok",
"nodeType": "http"
},
"event": "node_end",
"nodeId": "1fd14832-aafe-4d72-b4f2-7afc72df97dc",
"timestamp": 1783211465301
},
{
"data": {
"nodeType": "http"
},
"event": "node_start",
"nodeId": "5408adfe-4d6b-407c-aac7-e87c9b1a1592",
"timestamp": 1783211465302
},
{
"event": "fetching POST http://qdrant:6333/collections//points/scroll",
"nodeId": "http",
"timestamp": 1783211465302
},
{
"data": {
"url": "http://qdrant:6333/collections//points/scroll",
"method": "POST"
},
"event": "http_fetch",
"nodeId": "_context",
"timestamp": 1783211465302
},
{
"data": {
"mode": "read",
"status": "ok",
"service": "http",
"latencyMs": 250,
"operation": "fetch-failed",
"simulated": true
},
"event": "integration_mocked",
"nodeId": "integration",
"timestamp": 1783211465306
},
{
"data": {
"status": "ok",
"nodeType": "http"
},
"event": "node_end",
"nodeId": "5408adfe-4d6b-407c-aac7-e87c9b1a1592",
"timestamp": 1783211465306
},
{
"data": {
"nodeType": "llm"
},
"event": "node_start",
"nodeId": "8d958669-60be-4bb2-80fc-2a6c7c7bfae6",
"timestamp": 1783211465307
},
{
"data": {
"messages": 1,
"maxTokens": 1024
},
"event": "calling openai/gpt-4o-mini",
"nodeId": "llm",
"timestamp": 1783211465307
},
{
"data": {
"model": "gpt-4o-mini",
"provider": "openai"
},
"event": "llm_call",
"nodeId": "_context",
"timestamp": 1783211465307
},
{
"data": {
"model": "gpt-4o-mini-2024-07-18",
"costUsd": 0.0001075,
"provider": "openai",
"latencyMs": 599,
"promptTokens": 7,
"completionTokens": 9
},
"event": "llm_result",
"nodeId": "_context",
"timestamp": 1783211465917
},
{
"data": {
"status": "ok",
"nodeType": "llm"
},
"event": "node_end",
"nodeId": "8d958669-60be-4bb2-80fc-2a6c7c7bfae6",
"timestamp": 1783211465917
},
{
"data": {
"nodeType": "if"
},
"event": "node_start",
"nodeId": "b5fa817f-82d6-41dd-9817-4c1dd9137b76",
"timestamp": 1783211465919
},
{
"event": "true branch",
"nodeId": "if",
"timestamp": 1783211465919
},
{
"data": {
"status": "ok",
"nodeType": "if"
},
"event": "node_end",
"nodeId": "b5fa817f-82d6-41dd-9817-4c1dd9137b76",
"timestamp": 1783211465919
},
{
"data": {
"nodeType": "if"
},
"event": "node_start",
"nodeId": "fac43587-0d24-4d6e-a0d5-8cc8f9615967",
"timestamp": 1783211465921
},
{
"event": "true branch",
"nodeId": "if",
"timestamp": 1783211465921
},
{
"data": {
"status": "ok",
"nodeType": "if"
},
"event": "node_end",
"nodeId": "fac43587-0d24-4d6e-a0d5-8cc8f9615967",
"timestamp": 1783211465921
},
{
"data": {
"nodeType": "http"
},
"event": "node_start",
"nodeId": "010baacd-fac1-4cc1-86bf-9d6ef11916fe",
"timestamp": 1783211465922
},
{
"event": "fetching POST http://qdrant:6333/collections//points/delete",
"nodeId": "http",
"timestamp": 1783211465922
},
{
"data": {
"url": "http://qdrant:6333/collections//points/delete",
"method": "POST"
},
"event": "http_fetch",
"nodeId": "_context",
"timestamp": 1783211465922
},
{
"data": {
"mode": "read",
"status": "ok",
"service": "http",
"latencyMs": 250,
"operation": "fetch-failed",
"simulated": true
},
"event": "integration_mocked",
"nodeId": "integration",
"timestamp": 1783211465925
},
{
"data": {
"status": "ok",
"nodeType": "http"
},
"event": "node_end",
"nodeId": "010baacd-fac1-4cc1-86bf-9d6ef11916fe",
"timestamp": 1783211465925
},
{
"data": {
"nodeType": "http"
},
"event": "node_start",
"nodeId": "b0fa4fa4-5d1b-4a12-b8ba-a10d71f31f94",
"timestamp": 1783211465927
},
{
"event": "fetching POST http://qdrant:6333/collections//points/delete",
"nodeId": "http",
"timestamp": 1783211465927
},
{
"data": {
"url": "http://qdrant:6333/collections//points/delete",
"method": "POST"
},
"event": "http_fetch",
"nodeId": "_context",
"timestamp": 1783211465927
},
{
"data": {
"mode": "read",
"status": "ok",
"service": "http",
"latencyMs": 250,
"operation": "fetch-failed",
"simulated": true
},
"event": "integration_mocked",
"nodeId": "integration",
"timestamp": 1783211465930
},
{
"data": {
"status": "ok",
"nodeType": "http"
},
"event": "node_end",
"nodeId": "b0fa4fa4-5d1b-4a12-b8ba-a10d71f31f94",
"timestamp": 1783211465930
},
{
"data": {
"nodeType": "set"
},
"event": "node_start",
"nodeId": "e5664534-de07-481f-87dd-68d7d0715baa",
"timestamp": 1783211465932
},
{
"data": {
"inputKeys": [
"statusCode",
"headers",
"body",
"simulated"
],
"mergeKeys": []
},
"event": "merged",
"nodeId": "set",
"timestamp": 1783211465932
},
{
"data": {
"status": "ok",
"nodeType": "set"
},
"event": "node_end",
"nodeId": "e5664534-de07-481f-87dd-68d7d0715baa",
"timestamp": 1783211465932
},
{
"data": {
"nodeType": "passthrough"
},
"event": "node_start",
"nodeId": "f82f6de0-af8f-4fdf-a733-f59ba4fed02f",
"timestamp": 1783211465933
},
{
"data": {},
"event": "noOp",
"nodeId": "passthrough",
"timestamp": 1783211465933
},
{
"data": {
"status": "ok",
"nodeType": "passthrough"
},
"event": "node_end",
"nodeId": "f82f6de0-af8f-4fdf-a733-f59ba4fed02f",
"timestamp": 1783211465933
},
{
"data": {
"nodeType": "set"
},
"event": "node_start",
"nodeId": "c0555ba6-a1bd-4aa9-a340-a9c617f8e6db",
"timestamp": 1783211465935
},
{
"data": {
"inputKeys": [
"simulated",
"echo",
"items"
],
"mergeKeys": []
},
"event": "merged",
"nodeId": "set",
"timestamp": 1783211465935
},
{
"data": {
"status": "ok",
"nodeType": "set"
},
"event": "node_end",
"nodeId": "c0555ba6-a1bd-4aa9-a340-a9c617f8e6db",
"timestamp": 1783211465935
},
{
"data": {
"nodeType": "passthrough"
},
"event": "node_start",
"nodeId": "7b29b0b9-ffee-4456-b036-9b39400d2b31",
"timestamp": 1783211465936
},
{
"data": {},
"event": "noOp",
"nodeId": "passthrough",
"timestamp": 1783211465936
},
{
"data": {
"status": "ok",
"nodeType": "passthrough"
},
"event": "node_end",
"nodeId": "7b29b0b9-ffee-4456-b036-9b39400d2b31",
"timestamp": 1783211465936
}
]