Add iter()/aiter() for filter-based lazy iteration
维护者通常 4 天内回复
评估
调研方向
先阅读现有的 paginate() 和 scan_by_pattern() 实现及其集成测试,然后跟踪同步和异步 API 的索引过滤表达式路径。完成的标准是:选择性表达式和通配符表达式能够延迟流式传输完整且确定性的键覆盖范围,而无需将完整结果物化,并且集成测试验证两个迭代器。
由索引模型根据 Issue 内容生成。
描述
Summary
Add lazy filter-based ID/key iteration APIs for index maintenance and agent pipelines.
Level: Intermediate
Current State
paginate()yields full document records, not IDs/keys only.scan_by_pattern()works on raw Redis key patterns and returns a materialized list.- No index filter-expression based generator for IDs/keys.
Proposed Change
- Add lazy iterators over keys included in an index in Redis optionally applying some filtering:
iter(filter_expression...)aiter(filter_expression,...)
- Yield as a generator of said keys?
Definition of Done
- Iteration is lazy (streaming batches, no full list required).
- Works for selective and wildcard filter expressions.
- Integration tests verify complete and deterministic coverage.
Out of Scope
- Arbitrary cursor checkpoints or resumable iterators.
- 主要语言
- Python
- 星标
- 432
- 派生
- 116
- 平均合并
- 5 天 22 小时
- 30 天内合并 PR
- 13
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
redis/redis-vl-python 的其他 Issue
-
from_existing fails on SVS-VAMANA indexes created without compression可能已有人在做 @itsrayeedscodespace 于 2 天前认领。 未关闭bug index
难度 2/5 1-3 小时 新手友好度 84/100
redis/redis-vl-python#787 ·
维护者通常 4 天内回复
-
RedisVL warnings are never shown when the application has not configured logging可能已有人在做 @hippi345 于 2 天前认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 77/100
redis/redis-vl-python#786 ·
维护者通常 4 天内回复
-
exists() depends on exact FT.INFO error wording; an unrecognised "missing index" message makes create() never create the index (regression from #672)可能重新可做 关联的 PR 已关闭且未合并。 未关闭
难度 2/5 1-3 小时 新手友好度 75/100
redis/redis-vl-python#773 · 1 条评论 ·
维护者通常 4 天内回复
-
Vector field with index_missing=True cannot be created可能已有人在做 @RaphaelFakhri 于 12 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
redis/redis-vl-python#770 ·
维护者通常 4 天内回复
-
Add Python 3.15 support可能已有人在做 @vishal-bala 于 14 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 65/100
redis/redis-vl-python#757 · 1 条评论 · 1 个 reaction ·
维护者通常 4 天内回复
查看 redis/redis-vl-python 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 86/100
-
Validate finite output clamping limits in StepPredictor.prepare_clamping_params to prevent silent NaN/Inf propagation可能已有人在做 @muskan-creates352 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 84/100
mllam/neural-lam#848 ·
维护者通常 2 天内回复
-
infra
难度 1/5 1 小时以内 新手友好度 88/100
fab-geocommuns/RNB-coeur#1166 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
deepspeedai/DeepSpeed#8951 ·
维护者通常 2 天内回复