telys_add
Store new text documents in a memory collection: each text is embedded on-device, inserted as a new row, and auto-creates the collection when absent.
Instructions
Add text documents to a Telys memory collection: each text is embedded on-device, inserted as a new row, and persisted; the collection is auto-created (partition_by='scope') when absent. Use to store new memories. Required: collection, texts. Optional: ids (one per text; auto-generated when omitted — an id that already exists raises a conflict, so use telys_upsert to replace) and metadata (one object per text; set a scope value to route partitions and enable where-filtering later). Fails on empty texts, ids/texts length mismatch, or duplicate ids. NOT idempotent: omitted ids are freshly generated per call, so a repeat call inserts additional new rows.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | No | ||
| texts | Yes | ||
| metadata | No | ||
| collection | Yes |