Vector Search
Performs a semantic search against a Vector Database.
Experimental. Sends vector, top_k and filter to a backend vector-search endpoint that does not exist yet, so the node cannot return results today; the call fails and the run fails with it.
Finds records that are semantically similar to the query vector. Used as the core retrieval step in RAG pipelines.
Features:
- Metadata Filtering: Restrict search to specific documents (e.g.,
{ "user_id": "123" }). - Top-K: precise control over number of results.
- Metric: Cosine Similarity, Euclidean Distance, etc. (DB dependent).
How it works
- Resolves the node config: expressions in config keys are evaluated against the run; the incoming item is used as-is.
- Merges the incoming item with the config and requires
datasource_id(not the declaredindex) andvector; a missing one is thrown. - POSTs
{ datasource_id, vector, top_k, filter }to the backend (top_kdefaults to 5). A 404 is thrown asVector Search service not available on Backend. - If the backend answered with success, it would return
{ __port, matches, count }with noport, so the engine would route tooutwith that whole object as data.
In a workflow
The node as it appears in a workflow file (draft_nodes[]), and the envelope of a successful run.
{
"node_id": "node-vector-search",
"label": "Search similar chunks",
"operator_slug": "ai.vector.search",
"operator_version": "1.0.0",
"config": {
"index": "handbook",
"datasource_id": "<datasource_id>",
"top_k": 5
}
}{
"ok": true,
"port": "out",
"data": {
"__port": "success",
"matches": [
{
"id": "doc-001#3",
"score": 0.83,
"metadata": {
"source": "handbook.pdf",
"page": 12
},
"text": "Refunds are processed within 5 business days."
}
],
"count": 1
}
}Configuration
-
indexstring Required -
Name of the Vector Index/Collection.
-
kinteger Optional -
Number of results to retrieve.
-
min_scorenumber Optional -
Similarity threshold (0.0 - 1.0).
Its configuration shows the shared execution settings, but this node does not apply retries (retryOnFail, maxTries) yet. continueOnFail is not applied by any node.
Behaviour in the code
What the implementation does with these keys beyond what the schema says.
-
datasource_id / top_k - Read by the code but not declared;
datasource_idis required. Add them to the node config. -
index / k / min_score - Declared but ignored. No similarity threshold is applied.
Output ports
out default Only if the backend endpoint existed and answered success. Shape the code would return:
{
"__port": "success",
"matches": [
{
"id": "doc-001#3",
"score": 0.83,
"metadata": {
"source": "handbook.pdf",
"page": 12
},
"text": "Refunds are processed within 5 business days."
}
],
"count": 1
}miss Never fires. With no matches the code sets __port: "empty", which the engine ignores, and still routes to out.
error Never returned as an envelope: every failure is thrown and fails the run.
In expressions
What a later node can read from this node's output with $("Vector Search").item.json.<path> (write your node's label instead of Vector Search). Editor marks the paths the workflow editor suggests under Previous Nodes (the output contract); Worker marks the paths the worker really returns through out, from the output shown in Ports.
| Expression | Editor | Worker |
|---|---|---|
$("Vector Search").item.json.hits | — | |
$("Vector Search").item.json.__port | — | |
$("Vector Search").item.json.matches | — | |
$("Vector Search").item.json.count | — |
— Editor: The editor suggests it, but the worker does not return it: it reads as undefined.
— Worker: The worker returns it but the editor does not suggest it: write it by hand. Keys inside objects can depend on your data or configuration (for example one key per label).
Errors
| Message | Port | Cause and fix |
|---|---|---|
Missing 'datasource_id' config. Set a target datasource in the node configuration. | error | Thrown, not returned as an envelope: the engine marks the run as failed, unless the node sits inside a flow.try scope, which receives the error on its catch branch. |
Missing 'vector' input. Provide a vector to search with. | error | Thrown, not returned as an envelope: the engine marks the run as failed, unless the node sits inside a flow.try scope, which receives the error on its catch branch. |
Vector Search service not available on Backend | error | The backend does not expose the vector-search endpoint yet (HTTP 404). Thrown: the run fails unless a flow.try scope catches it. |
Input contract
-
vectorarray<number> Required -
The embedding vector to search for.
-
filterobject Optional -
Metadata filter object.
Output contract
-
hitsarray<object> Optional
Contracts (JSON Schema)
The definition exactly as the orchestrator declares it. All is the whole *.definition.js; compare it with the sections above to spot differences between the documentation and the schema. Use it to validate a node before you publish.
{
"slug": "ai.vector.search",
"name": "Vector Search",
"category": "ai",
"version": "1.0.0",
"description": "Performs a semantic search against a Vector Database.\n\n Finds records that are semantically similar to the query vector. Used as the core retrieval step in RAG pipelines.\n\n **Features:**\n - **Metadata Filtering:** Restrict search to specific documents (e.g., `{ \"user_id\": \"123\" }`).\n - **Top-K:** precise control over number of results.\n - **Metric:** Cosine Similarity, Euclidean Distance, etc. (DB dependent).",
"capabilities": [
"vector",
"search",
"rag",
"retrieval"
],
"config_schema": {
"type": "object",
"required": [
"index"
],
"properties": {
"index": {
"type": "string",
"title": "Result Index",
"description": "Name of the Vector Index/Collection."
},
"k": {
"type": "integer",
"default": 5,
"title": "Top K",
"description": "Number of results to retrieve."
},
"min_score": {
"type": "number",
"default": 0.7,
"title": "Min Score",
"description": "Similarity threshold (0.0 - 1.0)."
},
"execution": {
"type": "object",
"title": "Execution Settings",
"properties": {
"alwaysOutputData": {
"type": "boolean",
"title": "Always Output Data",
"description": "Always output data, even on error (if configured).",
"default": false
},
"retryOnFail": {
"type": "boolean",
"title": "Retry On Fail",
"description": "Retry the execution if it fails.",
"default": false
},
"maxTries": {
"type": "integer",
"title": "Max Retries",
"description": "Number of retries.",
"default": 3,
"displayOptions": {
"show": {
"retryOnFail": [
true
]
}
}
},
"waitBetweenTries": {
"type": "integer",
"title": "Wait Between Retries (ms)",
"default": 1000,
"displayOptions": {
"show": {
"retryOnFail": [
true
]
}
}
},
"continueOnFail": {
"type": "boolean",
"title": "Continue On Fail",
"description": "Do not crash workflow on error.",
"default": false
},
"timeout_ms": {
"type": "integer",
"title": "Timeout (ms)",
"description": "Max execution time for this node before it is killed, in milliseconds. Honored by long-running operators (e.g. OCR/extraction, inline code). Default 300000 (5 min).",
"default": 300000
}
}
}
}
},
"input_contract_schema": {
"type": "object",
"properties": {
"vector": {
"type": "array",
"items": {
"type": "number"
},
"description": "The embedding vector to search for."
},
"filter": {
"type": "object",
"description": "Metadata filter object."
}
},
"required": [
"vector"
]
},
"output_contract_schema": {
"type": "object",
"properties": {
"hits": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"score": {
"type": "number"
},
"metadata": {
"type": "object"
},
"text": {
"type": "string",
"description": "Original text content (if stored)."
}
}
}
}
}
},
"ports": [
{
"port_id": "out",
"label": "Hits",
"is_default": true,
"description": "Found matching records."
},
{
"port_id": "miss",
"label": "No Results",
"description": "No matches above threshold."
},
{
"port_id": "error",
"label": "Error"
}
],
"execution_mode": "async",
"tags": [
"vector",
"search",
"pinecone",
"weaviate"
],
"is_stateful": false,
"publisher": {
"identity": "org_sommatic_ai",
"profile": {
"name": "Sommatic AI",
"verified": true,
"url": "https://me.veripass.com/sommatic",
"logo_url": null
}
}
}{
"type": "object",
"required": [
"index"
],
"properties": {
"index": {
"type": "string",
"title": "Result Index",
"description": "Name of the Vector Index/Collection."
},
"k": {
"type": "integer",
"default": 5,
"title": "Top K",
"description": "Number of results to retrieve."
},
"min_score": {
"type": "number",
"default": 0.7,
"title": "Min Score",
"description": "Similarity threshold (0.0 - 1.0)."
},
"execution": {
"type": "object",
"title": "Execution Settings",
"properties": {
"alwaysOutputData": {
"type": "boolean",
"title": "Always Output Data",
"description": "Always output data, even on error (if configured).",
"default": false
},
"retryOnFail": {
"type": "boolean",
"title": "Retry On Fail",
"description": "Retry the execution if it fails.",
"default": false
},
"maxTries": {
"type": "integer",
"title": "Max Retries",
"description": "Number of retries.",
"default": 3,
"displayOptions": {
"show": {
"retryOnFail": [
true
]
}
}
},
"waitBetweenTries": {
"type": "integer",
"title": "Wait Between Retries (ms)",
"default": 1000,
"displayOptions": {
"show": {
"retryOnFail": [
true
]
}
}
},
"continueOnFail": {
"type": "boolean",
"title": "Continue On Fail",
"description": "Do not crash workflow on error.",
"default": false
},
"timeout_ms": {
"type": "integer",
"title": "Timeout (ms)",
"description": "Max execution time for this node before it is killed, in milliseconds. Honored by long-running operators (e.g. OCR/extraction, inline code). Default 300000 (5 min).",
"default": 300000
}
}
}
}
}{
"type": "object",
"properties": {
"vector": {
"type": "array",
"items": {
"type": "number"
},
"description": "The embedding vector to search for."
},
"filter": {
"type": "object",
"description": "Metadata filter object."
}
},
"required": [
"vector"
]
}{
"type": "object",
"properties": {
"hits": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"score": {
"type": "number"
},
"metadata": {
"type": "object"
},
"text": {
"type": "string",
"description": "Original text content (if stored)."
}
}
}
}
}
}[
{
"port_id": "out",
"label": "Hits",
"is_default": true,
"description": "Found matching records."
},
{
"port_id": "miss",
"label": "No Results",
"description": "No matches above threshold."
},
{
"port_id": "error",
"label": "Error"
}
]Execution
- Execution
async- Stateful
- No
- Retries (
retryOnFail) - No
- Capabilities
vectorsearchragretrieval- Tags
vectorsearchpineconeweaviate
Notes and limits
- Not implemented on the backend: there is no vector search to call. Do not use this node in production workflows.
- The backend request has no timeout set.
Reviewed against the orchestrator code · 31e874b · 2026-11-26