Suggestion: batch call for text embeddings
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 48/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- pytorch, react-native, typescript
调研方向
Start by reading the existing embed(input: string) implementation and its worklet variant, then trace how text is tokenized and passed to the native runtime. The issue proposes embedBatch(inputs: string[]) with native batching and padding, but does not identify the relevant files or tests. Done means the batch API and worklet variant return one embedding per input and are covered by tests.
由索引模型根据 Issue 内容生成。
描述
Problem description
embed(input: string) takes one text. Indexing a corpus means one call per document (5183 documents in our SciFact run = 5183 calls), each paying the JS-to-native and worklet hop.
Proposed solution
Add embedBatch(inputs: string[]): Promise<Float32Array[]> (and a worklet variant) that tokenizes and runs the batch natively, padding inside.
Alternative solutions
No response
Benefits to React Native ExecuTorch
Not a performance problem today: RNE was the fastest embedder we measured on Android (all-MiniLM-L6-v2 int8, about 13 ms per text on both phones). A batch call would send the texts once instead of once per text, and make RAG indexing code simpler.
Additional context
No response
- 主要语言
- TypeScript
- 星标
- 1.8k
- 派生
- 102
- 平均合并
- 2 天 6 小时
- 30 天内合并 PR
- 46
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
software-mansion/react-native-executorch 的其他 Issue
-
Require react-native-blob-util >=1.0.0 (Xcode 27 iOS build failure)可能已有人在做 @msluszniak 于 23 天前认领。 未关闭dependencies platform: ios
难度 1/5 1-3 小时 新手友好度 78/100
software-mansion/react-native-executorch#1617 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Android: prebuilt libexecutorch.so SIGILLs on ARMv8.0 CPUs (unguarded LSE atomics in the JNI layer, one-line fix upstream)可能已有人在做 @msluszniak 今天认领。 未关闭user exp
software-mansion/react-native-executorch#1665 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Chat session: add `session.reset()` for stateless single-turn requests可能已有人在做 @barhanc 于 1 天前认领。 未关闭feature request
software-mansion/react-native-executorch#1664 · 已指派 1 人 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 45/100
software-mansion/react-native-executorch#1661 ·
维护者通常 1 天内回复
-
Selfie segmentation: single-channel mask is passed through sigmoid twice可能已有人在做 @barhanc 于 1 天前认领。 未关闭model
software-mansion/react-native-executorch#1660 · 已指派 1 人 ·
维护者通常 1 天内回复
查看 software-mansion/react-native-executorch 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
ehmpathy/rhachet-roles-bhrain#878 ·
维护者通常 1 天内回复
-
Chat UI: Message actions dropdown is cut off beneath composer when message is near bottom of chat可能已有人在做 @koeria 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
milind-soni/OpenMausBot#8023 ·
维护者通常 1 天内回复
-
Windows microphone listing treats words in a device name as DirectShow labels可能已有人在做 @Sujal-chaudhary 今天认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 88/100
clipy-recorder/clipy#447 · 2 条评论 ·
维护者通常 1 天内回复
-
enhancement from-app needs-triage
难度 2/5 1-3 小时 新手友好度 68/100
nightly-labs/openbot#19162 ·
维护者通常 1 天内回复
-
triage:in-progress
难度 2/5 1-3 小时 新手友好度 76/100
Cotal-AI/Cotal#11229 · 1 条评论 ·
维护者通常 1 天内回复