telys_update
Replace vectors for existing IDs by re-embedding new texts. Requires collection, texts, ids; fails if collection is missing or lengths mismatch. Use for deliberate corrections.
Instructions
Replace the vectors/metadata of EXISTING ids by re-embedding new texts, then persist. Use for deliberate corrections to known rows. Required: collection, texts, ids — strict by contract: missing or null ids fail with 'update requires ids' (use telys_upsert to insert-or-replace instead). Optional: metadata (one object per text; the collection's partition key is defaulted when omitted). Fails when the collection does not exist or on ids/texts length mismatch.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | external ids of EXISTING rows to replace (strict: required) | |
| texts | Yes | replacement texts, embedded on-device; one per id | |
| metadata | No | one object per text positionally; the partition key is defaulted when omitted | |
| collection | Yes | name of an existing collection in the active store |