Upsert Vector
Inserts or Updates records in a Vector Database.
Experimental. Sends index and vectors to a backend vector-upsert endpoint that does not exist yet, so nothing is stored today; the call fails and the run fails with it.
Used during the ingestion phase. It takes vectors (and their metadata/text) and stores them in the index for future retrieval.
Use Cases:
- Indexing a new document.
- Updating user profile embeddings.
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
indexand a non-emptyvectorsarray; a missing one is thrown. - POSTs
{ index, vectors }to the backend. A 404 is thrown asUpsert service not available on Backend. - If the backend answered with success, it would return
{ __port: "success", count }with noport; the engine would route toout, which this node does not declare, sosuccessedges would not run.
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-upsert",
"label": "Store embeddings",
"operator_slug": "ai.vector.upsert",
"operator_version": "1.0.0",
"config": {
"index": "handbook"
}
}{
"ok": true,
"port": "out",
"data": {
"__port": "success",
"count": 2
}
}Configuration
-
indexstring Required
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.
-
vectors - Read from the incoming item (or a
vectorsconfig key, which may be an expression). Each record is{ id, values, metadata }; records are sent as they are, without validation.
Output ports
success default Never fires: even a successful call is routed to the undeclared out. Shape the code would return:
{
"__port": "success",
"count": 2
}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 $("Upsert Vector").item.json.<path> (write your node's label instead of Upsert Vector). Editor marks the paths the workflow editor suggests under Previous Nodes (the output contract); Worker marks the paths the worker really returns through success, from the output shown in Ports.
| Expression | Editor | Worker |
|---|---|---|
$("Upsert Vector").item.json.countNumber of records UPSERTED. | ||
$("Upsert Vector").item.json.__port | — |
— 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 'index' config. Set a target index 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 or empty 'vectors' input. Provide at least one vector record. | 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. |
Upsert service not available on Backend | error | The backend does not expose the vector-upsert endpoint yet (HTTP 404). Thrown: the run fails unless a flow.try scope catches it. |
Input contract
-
vectorsarray<object> Required -
List of records to insert.
Output contract
-
countnumber Optional -
Number of records UPSERTED.
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.upsert",
"name": "Upsert Vector",
"category": "ai",
"version": "1.0.0",
"description": "Inserts or Updates records in a Vector Database.\n\n Used during the ingestion phase. It takes vectors (and their metadata/text) and stores them in the index for future retrieval.\n\n **Use Cases:**\n - Indexing a new document.\n - Updating user profile embeddings.",
"capabilities": [
"vector",
"database",
"write",
"upsert"
],
"config_schema": {
"type": "object",
"required": [
"index"
],
"properties": {
"index": {
"type": "string",
"title": "Target Index"
},
"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": {
"vectors": {
"type": "array",
"description": "List of records to insert.",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"values": {
"type": "array",
"items": {
"type": "number"
}
},
"metadata": {
"type": "object"
}
}
}
}
},
"required": [
"vectors"
]
},
"output_contract_schema": {
"type": "object",
"properties": {
"count": {
"type": "number",
"description": "Number of records UPSERTED."
}
}
},
"ports": [
{
"port_id": "success",
"label": "Success",
"is_default": true
},
{
"port_id": "error",
"label": "Error"
}
],
"execution_mode": "async",
"tags": [
"vector",
"write",
"database"
],
"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": "Target Index"
},
"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": {
"vectors": {
"type": "array",
"description": "List of records to insert.",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"values": {
"type": "array",
"items": {
"type": "number"
}
},
"metadata": {
"type": "object"
}
}
}
}
},
"required": [
"vectors"
]
}{
"type": "object",
"properties": {
"count": {
"type": "number",
"description": "Number of records UPSERTED."
}
}
}[
{
"port_id": "success",
"label": "Success",
"is_default": true
},
{
"port_id": "error",
"label": "Error"
}
]Execution
- Execution
async- Stateful
- No
- Retries (
retryOnFail) - No
- Capabilities
vectordatabasewriteupsert- Tags
vectorwritedatabase
Notes and limits
- Not implemented on the backend: there is no vector store to write to. Do not use this node in production workflows.
- The backend request has no timeout set.
Reviewed against the orchestrator code · 31e874b · 2026-11-26