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 天內回覆