Problem Description
I would like to obtain the embedding vector of text directly within the main workflow in n8n. While n8n provides integrated embedding sub-nodes, I am uncertain how to retrieve the embedding vector from these nodes for use in the main workflow. Additionally, I am utilizing a Langchain code node to generate text embeddings, but I am unsure how to properly execute the code in this context.
I have two specific inquiries:
- Is there a method to directly acquire the embedding vector in the main workflow?
- How can I utilize the Langchain code node to generate an embedding vector for a specified text within the workflow?
Please share your workflow
The output returned by the last node
[
{
"text": "Hello World",
"vector": {}
},
{
"text": "Hi World",
"vector": {}
}
]
The Langchain code node run sucessfully, but the workflow keep executing and didn’t stop.
Information on your n8n setup
- n8n version: [email protected]
- Database (default: SQLite): SQLite
- Running n8n: Docker
- Operating system: Window