upsert_embedding
Insert a new embedding row or update an existing one by ID in a pgvector table, setting the vector and optional metadata or other columns.
Instructions
Insert a row or update it in place if id_value already exists (upsert).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"table": "<table>",
"id_column": "<id_column>",
"id_value": "<id_value>",
"embedding_column": "<embedding_column>",
"embedding": "<embedding>"
},
"name": "upsert_embedding"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | ||
| schema | No | public | |
| id_value | Yes | ||
| metadata | No | Other column values to set, keyed by column name | |
| embedding | Yes | ||
| id_column | Yes | ||
| embedding_column | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||