Describe the problem/error/question
I want to Build a RAG with Azure AI Search
What is the error message (if any)?
Not able to find appropriate tools to vectorize querry
Please share your workflow
(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)
Share the output returned by the last node
Information on your n8n setup
- n8n version:
- Database (default: SQLite):
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- Running n8n via (Docker, npm, n8n cloud, desktop app):
- Operating system:
Hey Aditya! If you’re trying to build a RAG system with Azure AI Search in n8n, here’s the general path:
-
How to vectorize the query:
n8n doesn’t have a native Azure embedding node yet, but you can use an HTTP Request Node to hit your embedding model endpoint in Azure OpenAI (or any compatible embedding model).
For example: text-embedding-ada-002, if that’s available in your setup.
-
Pull data from Azure AI Search:
After generating the vector, use another HTTP Request Node to query your Azure AI Search index, passing the vector like this:
{
“vector”: [0.123, 0.456, …],
“top”: 5,
“fields”: “content”
}
-
Stitch it all together:
Capture the user question
Generate the embedding
Search the index
Combine the context with the query
Send it to the model (like ChatGPT or GPT-4) to generate the final answer