Hi @Jim_Le , thank you for taking a look into this.
I directly tested your suggestion and substituded the code. Now I get [ERROR: vectorStore.asRetriever is not a function [line 12]]
. Maybe I am missing a package or something? My instance has the following available: N8N_NODE_FUNCTION_ALLOW_EXTERNAL=langchain,openai
If you really want to learn langchain, it’s probably better to learn it in a code environment first
Yes, I guess you are correct. I noticed that the n8n implementation is different. I will try it “raw”.
The reason why I strated doing it in n8n was an issue with an AI Agent that I could not understand and resolve. Can you check this new ticket? I described it in here.
Many thanks!