telys_add
Add text documents to a collection to store new memories: each text is embedded on-device, inserted as a row, and persisted; optional IDs and metadata support scoped filtering.
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 | external ids, one per text positionally; auto-generated when omitted | |
| texts | Yes | documents to embed on-device and insert; one new row per text | |
| metadata | No | one object per text positionally; set `scope` to route partitions | |
| collection | Yes | target collection; auto-created with partition_by='scope' when absent |