Igor Lins e Silva
051f0cc1ec
fix(backends): normalize all OneOrMany inputs in EmbeddingCollection
...
Address #1707 review:
- _as_list also wraps a bare dict (single metadata) — list({'k':1}) -> ['k']
would drop the values — and returns list inputs as-is (no copy, Copilot
perf note); other iterables are materialized once.
- Normalize ids and metadatas (not just documents) in add/upsert/update so
a scalar id/metadata stays length-aligned with documents/embeddings.
- Widen query_texts annotation to list[str] | str to match the behavior.
- Tests: bare-str ids + dict metadatas, dict wrapping, list-returned-as-is.
2026-06-06 04:56:19 -03:00
..
2026-05-03 17:43:00 +05:00
2026-06-05 21:41:21 -03:00
2026-06-02 21:38:53 -03:00
2026-06-05 21:41:21 -03:00
2026-06-06 00:16:12 -03:00
2026-05-17 23:20:01 -03:00
2026-05-17 23:20:01 -03:00
2026-04-19 10:34:11 +02:00
2026-06-01 17:19:10 -05:00
2026-06-02 21:38:53 -03:00
2026-05-23 12:05:34 -04:00
2026-05-24 13:18:08 -03:00
2026-04-25 00:39:37 -03:00
2026-05-30 12:44:47 -07:00
2026-04-24 11:13:51 +02:00
2026-06-06 03:24:08 -03:00
2026-04-18 12:52:01 -03:00
2026-06-06 00:16:33 -03:00
2026-05-24 13:18:08 -03:00
2026-04-24 01:30:40 -03:00
2026-05-17 23:20:01 -03:00
2026-05-17 23:20:01 -03:00
2026-06-02 21:38:53 -03:00
2026-04-11 16:16:31 -07:00
2026-05-24 13:18:08 -03:00
2026-06-06 04:56:19 -03:00
2026-04-24 23:11:29 +00:00
2026-05-30 02:57:09 -03:00
2026-04-15 00:26:38 -07:00
2026-05-24 13:50:53 -07:00
2026-05-10 12:56:50 +02:00
2026-05-07 12:51:47 -03:00
2026-05-03 21:37:12 +05:00
2026-05-24 13:18:08 -03:00
2026-05-24 13:18:08 -03:00
2026-04-13 17:11:11 -07:00
2026-06-02 21:45:14 -07:00
2026-06-02 19:15:10 -07:00
2026-05-07 09:10:00 -03:00
2026-05-14 19:17:26 -03:00
2026-05-17 23:20:01 -03:00
2026-06-05 12:26:27 +05:00
2026-05-17 23:20:01 -03:00
2026-05-17 23:20:01 -03:00
2026-04-13 18:40:36 -03:00
2026-05-17 23:20:01 -03:00
2026-05-17 23:20:01 -03:00
2026-05-30 12:44:47 -07:00
2026-04-15 00:26:41 -07:00
2026-05-17 23:20:01 -03:00
2026-04-16 16:00:29 +05:00
2026-04-14 13:09:10 -07:00
2026-04-08 21:38:12 +03:00
2026-05-08 14:44:04 +00:00
2026-04-24 23:06:26 -03:00
2026-04-19 11:13:50 +03:00
2026-05-24 13:18:08 -03:00
2026-05-17 23:20:01 -03:00
2026-04-24 23:06:26 -03:00
2026-06-06 01:11:54 -03:00
2026-05-17 23:20:01 -03:00
2026-06-06 03:11:46 -03:00
2026-05-10 13:06:40 +02:00
2026-05-24 13:18:08 -03:00
2026-04-18 13:14:32 -03:00
2026-06-06 03:24:08 -03:00
2026-05-17 23:20:01 -03:00
2026-05-14 06:40:27 -03:00
2026-05-24 13:18:08 -03:00
2026-04-25 11:06:32 -07:00
2026-05-17 23:20:01 -03:00
2026-06-05 21:41:21 -03:00
2026-06-05 23:14:35 -03:00
2026-04-24 23:06:26 -03:00
2026-06-05 21:41:21 -03:00
2026-04-12 22:19:58 -03:00
2026-05-23 12:05:34 -04:00
2026-05-18 16:10:16 -03:00
2026-04-11 16:16:06 -07:00
2026-05-17 23:20:01 -03:00
2026-04-14 10:55:56 -07:00
2026-05-17 23:20:01 -03:00
2026-05-09 20:25:47 -03:00
2026-04-08 21:38:12 +03:00
2026-04-08 21:08:49 +03:00
2026-04-08 21:07:03 +03:00
2026-06-05 23:14:35 -03:00
2026-05-17 23:20:01 -03:00
2026-05-17 23:20:01 -03:00
2026-04-07 08:53:25 +01:00