Chroma的Collection管理与Where过滤深入
请深入解释Chroma的Collection管理和Where过滤。Collection的metadata参数(hnsw:space/ef/M)如何配置HNSW参数?Where过滤支持哪些操作符?
回答
孤独的心
Collection HNSW参数:hnsw:space(cosine/ip/l2)、hnsw:construction_ef(建图宽度)、hnsw:M(图度数)、hnsw:search_ef(搜索宽度)。
Where操作符:$eq/$ne/$gt/$gte/$lt/$lte/$in/$nin/$contains。
组合查询:$or(多个条件任一满足)、$and(隐式并列,多个字段条件)。
更新/删除:update(指定id更新metadata)、delete(按where条件删除)、count()获取统计。