n8n-io / n8n

Free and source-available fair-code licensed workflow automation tool. Easily automate tasks across different services.
https://n8n.io
Other
45.47k stars 6.25k forks source link

Internal Error @ LangChain Code Node /w In-Memory Vector Store using getInputConnectionData('ai_vectorStore', 0); #10323

Open nepomuc opened 1 month ago

nepomuc commented 1 month ago

Bug Description

When using this.getInputConnectionData('ai_vectorStore', 0); in an LangChain Code Node while an In-Memory Vector Store is connected to it, it results in the following error inside the In-Memory Vector Store:

{
  "errorMessage": "Internal error",
  "errorDetails": {},
  "n8nDetails": {
    "itemIndex": 0,
    "time": "8/8/2024, 1:17:08 AM",
    "n8nVersion": "1.52.2 (Self Hosted)",
    "binaryDataMode": "default",
    "cause": {}
  }
}

To Reproduce

  1. Create a LangChain Code Node
  2. Connect an In-Memory Vector Store to it
  3. Use this.getInputConnectionData('ai_vectorStore', 0)

Expected behavior

It should not return that error.

Operating System

Docker

n8n Version

1.52.2

Node.js Version

-

Database

SQLite (default)

Execution mode

main (default)

nepomuc commented 1 month ago

Background: I tried to use this upcerting approach but not with Pinecone but with the In-Memory Vector Store instead

Joffcom commented 1 month ago

Thanks for the report @nepomuc I have passed this on to our AI team and it has an internal reference of AI-271