database_semantic_enable
Turns on semantic search for one table of a Product's Postgres. Helm7 adds a helm7 schema inside the database holding a small side table of 512-dimension vectors and a keyword index for the chosen columns, plus triggers that queue changed rows, then embeds every existing row in the background and every new or changed one within a minute. The data is not copied anywhere: the side table holds the primary key, a hash and the vector. The text of the chosen columns is sent to llm11, which embeds it with OpenAI text-embedding-3-small; no other column leaves the database. The dry run states the row estimate, the one-off backfill tokens and their price, the storage it adds and the index plan. Embedding is billed per token at cost. Call it again with another table to add one; template: "agent_memory" also creates a ready-made memory.items table and turns relationships on.
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": {
"productId": "<productId>",
"databaseId": "<databaseId>"
},
"name": "database_semantic_enable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | No | A table in the database, as schema.table or just table (public is assumed). It needs a single-column primary key. | |
| columns | No | The text columns that describe a row, in the order they should be read, e.g. ["title", "body"]. Only these columns are sent to the embedding model; the rest of the row never leaves the database. | |
| confirm | No | Required for destructive operations. Without it a destructive call returns its plan and refuses, exactly as dry_run would. | |
| dry_run | No | Return the plan without applying it: the resources it would create, change or destroy, and an estimated monthly cost. Free, and has no side effects. Call this before any change you have not made before. | |
| language | No | Text search configuration for the keyword half of search. simple matches words exactly and suits mixed-language data; a language stems words, so "invoices" finds "invoice". | simple |
| template | No | Instead of an existing table, create memory.items (id, scope_id, kind, title, body, tags, valid_to) and make it searchable, with relationships on. The pattern for agent memory: plain rows your app already knows how to read. | |
| productId | Yes | Product identifier, e.g. prd_7k2m9x4qw1nv8bz3ct6d. | |
| databaseId | Yes | Database identifier, from product_get or database_get. | |
| idempotency_key | No | Replaying the same key returns the original result instead of acting twice. Strongly recommended for anything that creates a resource or spends money. |