Suggestion: batch call for text embeddings
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- pytorch, react-native, typescript
- Lĩnh vực
- machine-learning, mobile
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- TypeScript
- Star
- 1.8k
- Fork
- 102
- Merge trung bình
- 2 ngày 6 giờ
- Pull request đã merge (30 ngày)
- 46
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của software-mansion/react-native-executorch
-
Require react-native-blob-util >=1.0.0 (Xcode 27 iOS build failure)Có thể đã có người làm @msluszniak đã nhận 23 ngày trước. Đang mởdependencies platform: ios
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 78/100
software-mansion/react-native-executorch#1617 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Android: prebuilt libexecutorch.so SIGILLs on ARMv8.0 CPUs (unguarded LSE atomics in the JNI layer, one-line fix upstream)Có thể đã có người làm @msluszniak đã nhận hôm nay. Đang mởuser exp
software-mansion/react-native-executorch#1665 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Chat session: add `session.reset()` for stateless single-turn requestsCó thể đã có người làm @barhanc đã nhận 1 ngày trước. Đang mởfeature request
software-mansion/react-native-executorch#1664 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
software-mansion/react-native-executorch#1661 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Selfie segmentation: single-channel mask is passed through sigmoid twiceCó thể đã có người làm @barhanc đã nhận 1 ngày trước. Đang mởmodel
software-mansion/react-native-executorch#1660 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của software-mansion/react-native-executorch
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
ehmpathy/rhachet-roles-bhrain#878 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Chat UI: Message actions dropdown is cut off beneath composer when message is near bottom of chatCó thể đã có người làm @koeria đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
milind-soni/OpenMausBot#8023 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Windows microphone listing treats words in a device name as DirectShow labelsCó thể đã có người làm @Sujal-chaudhary đã nhận hôm nay. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
clipy-recorder/clipy#447 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement from-app needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
nightly-labs/openbot#19162 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
triage:in-progress
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Cotal-AI/Cotal#11229 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày