Local File RAG Chatbot with Mistral AI
61592f5d-fa20-4010-97f9-13d6c6cc95f1
Latency
5749ms
Cost
$0.0013
Tokens
519
Status
successgemini-3-flash-preview
Workflow Graph
Trace
[
{
"data": {
"nodeType": "integration"
},
"event": "node_start",
"nodeId": "c5525f47-4d91-4b98-87bb-566b90da64a1",
"timestamp": 1783211519585
},
{
"data": {
"mode": "read",
"status": "ok",
"service": "localfiletrigger",
"latencyMs": 250,
"operation": "run",
"simulated": true
},
"event": "integration_mocked",
"nodeId": "integration",
"timestamp": 1783211519836
},
{
"data": {
"status": "ok",
"nodeType": "integration"
},
"event": "node_end",
"nodeId": "c5525f47-4d91-4b98-87bb-566b90da64a1",
"timestamp": 1783211519836
},
{
"data": {
"nodeType": "manualTrigger"
},
"event": "node_start",
"nodeId": "804334d6-e34d-40d1-9555-b331ffe66f6f",
"timestamp": 1783211519838
},
{
"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": 1783211519838
},
{
"data": {
"status": "ok",
"nodeType": "manualTrigger"
},
"event": "node_end",
"nodeId": "804334d6-e34d-40d1-9555-b331ffe66f6f",
"timestamp": 1783211519838
},
{
"data": {
"nodeType": "integration"
},
"event": "node_start",
"nodeId": "7354a080-051b-479f-97b1-49cc0c14c9d8",
"timestamp": 1783211519838
},
{
"data": {
"mode": "read",
"status": "ok",
"service": "embeddingsmistralcloud",
"latencyMs": 250,
"operation": "run",
"simulated": true
},
"event": "integration_mocked",
"nodeId": "integration",
"timestamp": 1783211520089
},
{
"data": {
"status": "ok",
"nodeType": "integration"
},
"event": "node_end",
"nodeId": "7354a080-051b-479f-97b1-49cc0c14c9d8",
"timestamp": 1783211520089
},
{
"data": {
"nodeType": "passthrough"
},
"event": "node_start",
"nodeId": "0b0e29b9-8873-4074-94dc-9f0364c28835",
"timestamp": 1783211520091
},
{
"data": {},
"event": "noOp",
"nodeId": "passthrough",
"timestamp": 1783211520091
},
{
"data": {
"status": "ok",
"nodeType": "passthrough"
},
"event": "node_end",
"nodeId": "0b0e29b9-8873-4074-94dc-9f0364c28835",
"timestamp": 1783211520091
},
{
"data": {
"nodeType": "trigger"
},
"event": "node_start",
"nodeId": "ffe8c363-0809-4d21-aa8f-34b0fc2dc57f",
"timestamp": 1783211520092
},
{
"data": {
"kind": "@n8n/n8n-nodes-langchain.chatTrigger"
},
"event": "seeded",
"nodeId": "trigger",
"timestamp": 1783211520092
},
{
"data": {
"status": "ok",
"nodeType": "trigger"
},
"event": "node_end",
"nodeId": "ffe8c363-0809-4d21-aa8f-34b0fc2dc57f",
"timestamp": 1783211520092
},
{
"data": {
"nodeType": "llm"
},
"event": "node_start",
"nodeId": "f143e438-8176-4923-a866-3f9a2a16793d",
"timestamp": 1783211520093
},
{
"data": {
"messages": 1,
"maxTokens": 1024
},
"event": "calling openai/mistral-small-2402",
"nodeId": "llm",
"timestamp": 1783211520093
},
{
"data": {
"model": "mistral-small-2402",
"provider": "openai"
},
"event": "llm_call",
"nodeId": "_context",
"timestamp": 1783211520093
},
{
"data": {
"model": "gemini-3-flash-preview",
"costUsd": 0.0010978,
"provider": "openai",
"latencyMs": 3479,
"promptTokens": 1,
"completionTokens": 439
},
"event": "llm_result",
"nodeId": "_context",
"timestamp": 1783211523572
},
{
"data": {
"status": "ok",
"nodeType": "llm"
},
"event": "node_end",
"nodeId": "f143e438-8176-4923-a866-3f9a2a16793d",
"timestamp": 1783211523572
},
{
"data": {
"nodeType": "integration"
},
"event": "node_start",
"nodeId": "2fdabcb5-a7a7-4e02-8c1b-9190e2e52385",
"timestamp": 1783211523573
},
{
"data": {
"mode": "read",
"status": "ok",
"service": "embeddingsmistralcloud",
"latencyMs": 250,
"operation": "run",
"simulated": true
},
"event": "integration_mocked",
"nodeId": "integration",
"timestamp": 1783211523825
},
{
"data": {
"status": "ok",
"nodeType": "integration"
},
"event": "node_end",
"nodeId": "2fdabcb5-a7a7-4e02-8c1b-9190e2e52385",
"timestamp": 1783211523825
},
{
"data": {
"nodeType": "set"
},
"event": "node_start",
"nodeId": "7ab0e284-b667-4d1f-8ceb-fb05e4081a06",
"timestamp": 1783211523826
},
{
"data": {
"inputKeys": [
"simulated",
"echo",
"items"
],
"mergeKeys": []
},
"event": "merged",
"nodeId": "set",
"timestamp": 1783211523826
},
{
"data": {
"status": "ok",
"nodeType": "set"
},
"event": "node_end",
"nodeId": "7ab0e284-b667-4d1f-8ceb-fb05e4081a06",
"timestamp": 1783211523826
},
{
"data": {
"nodeType": "passthrough"
},
"event": "node_start",
"nodeId": "a1ad45ff-a882-4aed-82e2-cad2483cf4e8",
"timestamp": 1783211523827
},
{
"data": {},
"event": "noOp",
"nodeId": "passthrough",
"timestamp": 1783211523827
},
{
"data": {
"status": "ok",
"nodeType": "passthrough"
},
"event": "node_end",
"nodeId": "a1ad45ff-a882-4aed-82e2-cad2483cf4e8",
"timestamp": 1783211523827
},
{
"data": {
"nodeType": "passthrough"
},
"event": "node_start",
"nodeId": "1857bebb-b492-415e-96c8-235329bfd28a",
"timestamp": 1783211523828
},
{
"data": {},
"event": "noOp",
"nodeId": "passthrough",
"timestamp": 1783211523828
},
{
"data": {
"status": "ok",
"nodeType": "passthrough"
},
"event": "node_end",
"nodeId": "1857bebb-b492-415e-96c8-235329bfd28a",
"timestamp": 1783211523828
},
{
"data": {
"nodeType": "switch"
},
"event": "node_start",
"nodeId": "2d6fb29c-2fac-41de-9ad0-cc781b246378",
"timestamp": 1783211523830
},
{
"event": "matched rule 0 -> file_deleted",
"nodeId": "switch",
"timestamp": 1783211523830
},
{
"data": {
"status": "ok",
"nodeType": "switch"
},
"event": "node_end",
"nodeId": "2d6fb29c-2fac-41de-9ad0-cc781b246378",
"timestamp": 1783211523830
},
{
"data": {
"nodeType": "integration"
},
"event": "node_start",
"nodeId": "06dd8f4c-3b66-43e0-85c8-ec222e275f87",
"timestamp": 1783211523831
},
{
"data": {
"mode": "read",
"status": "ok",
"service": "retrievervectorstore",
"latencyMs": 250,
"operation": "run",
"simulated": true
},
"event": "integration_mocked",
"nodeId": "integration",
"timestamp": 1783211524082
},
{
"data": {
"status": "ok",
"nodeType": "integration"
},
"event": "node_end",
"nodeId": "06dd8f4c-3b66-43e0-85c8-ec222e275f87",
"timestamp": 1783211524082
},
{
"data": {
"nodeType": "http"
},
"event": "node_start",
"nodeId": "1fd14832-aafe-4d72-b4f2-7afc72df97dc",
"timestamp": 1783211524083
},
{
"event": "fetching POST http://qdrant:6333/collections//points/scroll",
"nodeId": "http",
"timestamp": 1783211524083
},
{
"data": {
"url": "http://qdrant:6333/collections//points/scroll",
"method": "POST"
},
"event": "http_fetch",
"nodeId": "_context",
"timestamp": 1783211524083
},
{
"data": {
"mode": "read",
"status": "ok",
"service": "http",
"latencyMs": 250,
"operation": "fetch-failed",
"simulated": true
},
"event": "integration_mocked",
"nodeId": "integration",
"timestamp": 1783211524087
},
{
"data": {
"status": "ok",
"nodeType": "http"
},
"event": "node_end",
"nodeId": "1fd14832-aafe-4d72-b4f2-7afc72df97dc",
"timestamp": 1783211524087
},
{
"data": {
"nodeType": "http"
},
"event": "node_start",
"nodeId": "5408adfe-4d6b-407c-aac7-e87c9b1a1592",
"timestamp": 1783211524088
},
{
"event": "fetching POST http://qdrant:6333/collections//points/scroll",
"nodeId": "http",
"timestamp": 1783211524088
},
{
"data": {
"url": "http://qdrant:6333/collections//points/scroll",
"method": "POST"
},
"event": "http_fetch",
"nodeId": "_context",
"timestamp": 1783211524088
},
{
"data": {
"mode": "read",
"status": "ok",
"service": "http",
"latencyMs": 250,
"operation": "fetch-failed",
"simulated": true
},
"event": "integration_mocked",
"nodeId": "integration",
"timestamp": 1783211524091
},
{
"data": {
"status": "ok",
"nodeType": "http"
},
"event": "node_end",
"nodeId": "5408adfe-4d6b-407c-aac7-e87c9b1a1592",
"timestamp": 1783211524091
},
{
"data": {
"nodeType": "llm"
},
"event": "node_start",
"nodeId": "8d958669-60be-4bb2-80fc-2a6c7c7bfae6",
"timestamp": 1783211524092
},
{
"data": {
"messages": 1,
"maxTokens": 1024
},
"event": "calling openai/gpt-4o-mini",
"nodeId": "llm",
"timestamp": 1783211524092
},
{
"data": {
"model": "gpt-4o-mini",
"provider": "openai"
},
"event": "llm_call",
"nodeId": "_context",
"timestamp": 1783211524092
},
{
"data": {
"model": "gemini-3-flash-preview",
"costUsd": 0.0001953,
"provider": "openai",
"latencyMs": 1223,
"promptTokens": 1,
"completionTokens": 78
},
"event": "llm_result",
"nodeId": "_context",
"timestamp": 1783211525317
},
{
"data": {
"status": "ok",
"nodeType": "llm"
},
"event": "node_end",
"nodeId": "8d958669-60be-4bb2-80fc-2a6c7c7bfae6",
"timestamp": 1783211525317
},
{
"data": {
"nodeType": "if"
},
"event": "node_start",
"nodeId": "b5fa817f-82d6-41dd-9817-4c1dd9137b76",
"timestamp": 1783211525319
},
{
"event": "true branch",
"nodeId": "if",
"timestamp": 1783211525319
},
{
"data": {
"status": "ok",
"nodeType": "if"
},
"event": "node_end",
"nodeId": "b5fa817f-82d6-41dd-9817-4c1dd9137b76",
"timestamp": 1783211525319
},
{
"data": {
"nodeType": "if"
},
"event": "node_start",
"nodeId": "fac43587-0d24-4d6e-a0d5-8cc8f9615967",
"timestamp": 1783211525320
},
{
"event": "true branch",
"nodeId": "if",
"timestamp": 1783211525320
},
{
"data": {
"status": "ok",
"nodeType": "if"
},
"event": "node_end",
"nodeId": "fac43587-0d24-4d6e-a0d5-8cc8f9615967",
"timestamp": 1783211525320
},
{
"data": {
"nodeType": "http"
},
"event": "node_start",
"nodeId": "010baacd-fac1-4cc1-86bf-9d6ef11916fe",
"timestamp": 1783211525322
},
{
"event": "fetching POST http://qdrant:6333/collections//points/delete",
"nodeId": "http",
"timestamp": 1783211525322
},
{
"data": {
"url": "http://qdrant:6333/collections//points/delete",
"method": "POST"
},
"event": "http_fetch",
"nodeId": "_context",
"timestamp": 1783211525322
},
{
"data": {
"mode": "read",
"status": "ok",
"service": "http",
"latencyMs": 250,
"operation": "fetch-failed",
"simulated": true
},
"event": "integration_mocked",
"nodeId": "integration",
"timestamp": 1783211525325
},
{
"data": {
"status": "ok",
"nodeType": "http"
},
"event": "node_end",
"nodeId": "010baacd-fac1-4cc1-86bf-9d6ef11916fe",
"timestamp": 1783211525325
},
{
"data": {
"nodeType": "http"
},
"event": "node_start",
"nodeId": "b0fa4fa4-5d1b-4a12-b8ba-a10d71f31f94",
"timestamp": 1783211525327
},
{
"event": "fetching POST http://qdrant:6333/collections//points/delete",
"nodeId": "http",
"timestamp": 1783211525327
},
{
"data": {
"url": "http://qdrant:6333/collections//points/delete",
"method": "POST"
},
"event": "http_fetch",
"nodeId": "_context",
"timestamp": 1783211525327
},
{
"data": {
"mode": "read",
"status": "ok",
"service": "http",
"latencyMs": 250,
"operation": "fetch-failed",
"simulated": true
},
"event": "integration_mocked",
"nodeId": "integration",
"timestamp": 1783211525330
},
{
"data": {
"status": "ok",
"nodeType": "http"
},
"event": "node_end",
"nodeId": "b0fa4fa4-5d1b-4a12-b8ba-a10d71f31f94",
"timestamp": 1783211525330
},
{
"data": {
"nodeType": "set"
},
"event": "node_start",
"nodeId": "e5664534-de07-481f-87dd-68d7d0715baa",
"timestamp": 1783211525331
},
{
"data": {
"inputKeys": [
"statusCode",
"headers",
"body",
"simulated"
],
"mergeKeys": []
},
"event": "merged",
"nodeId": "set",
"timestamp": 1783211525331
},
{
"data": {
"status": "ok",
"nodeType": "set"
},
"event": "node_end",
"nodeId": "e5664534-de07-481f-87dd-68d7d0715baa",
"timestamp": 1783211525331
},
{
"data": {
"nodeType": "passthrough"
},
"event": "node_start",
"nodeId": "f82f6de0-af8f-4fdf-a733-f59ba4fed02f",
"timestamp": 1783211525332
},
{
"data": {},
"event": "noOp",
"nodeId": "passthrough",
"timestamp": 1783211525332
},
{
"data": {
"status": "ok",
"nodeType": "passthrough"
},
"event": "node_end",
"nodeId": "f82f6de0-af8f-4fdf-a733-f59ba4fed02f",
"timestamp": 1783211525332
},
{
"data": {
"nodeType": "set"
},
"event": "node_start",
"nodeId": "c0555ba6-a1bd-4aa9-a340-a9c617f8e6db",
"timestamp": 1783211525333
},
{
"data": {
"inputKeys": [
"simulated",
"echo",
"items"
],
"mergeKeys": []
},
"event": "merged",
"nodeId": "set",
"timestamp": 1783211525333
},
{
"data": {
"status": "ok",
"nodeType": "set"
},
"event": "node_end",
"nodeId": "c0555ba6-a1bd-4aa9-a340-a9c617f8e6db",
"timestamp": 1783211525333
},
{
"data": {
"nodeType": "passthrough"
},
"event": "node_start",
"nodeId": "7b29b0b9-ffee-4456-b036-9b39400d2b31",
"timestamp": 1783211525334
},
{
"data": {},
"event": "noOp",
"nodeId": "passthrough",
"timestamp": 1783211525334
},
{
"data": {
"status": "ok",
"nodeType": "passthrough"
},
"event": "node_end",
"nodeId": "7b29b0b9-ffee-4456-b036-9b39400d2b31",
"timestamp": 1783211525334
}
]