Suggestion: batch call for text embeddings
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 48/100
- Tipo de issue
- Funcionalidade
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- pytorch, react-native, typescript
- Domínio
- machine-learning, mobile
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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
- Linguagem predominante
- TypeScript
- Estrelas
- 1.8k
- Forks
- 102
- Merge médio
- 2d 6h
- PRs com merge (30d)
- 46
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de software-mansion/react-native-executorch
-
Require react-native-blob-util >=1.0.0 (Xcode 27 iOS build failure)Talvez já em andamento @msluszniak assumiu há 23 dias. Abertadependencies platform: ios
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 78/100
software-mansion/react-native-executorch#1617 · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
Android: prebuilt libexecutorch.so SIGILLs on ARMv8.0 CPUs (unguarded LSE atomics in the JNI layer, one-line fix upstream)Talvez já em andamento @msluszniak assumiu hoje. Abertauser exp
software-mansion/react-native-executorch#1665 · 1 comentário · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
Chat session: add `session.reset()` for stateless single-turn requestsTalvez já em andamento @barhanc assumiu há 1 dia. Abertafeature request
software-mansion/react-native-executorch#1664 · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 45/100
software-mansion/react-native-executorch#1661 ·
Mantenedores costumam responder em até 1 dia
-
Selfie segmentation: single-channel mask is passed through sigmoid twiceTalvez já em andamento @barhanc assumiu há 1 dia. Abertamodel
software-mansion/react-native-executorch#1660 · 1 responsável ·
Mantenedores costumam responder em até 1 dia
Todas as issues de software-mansion/react-native-executorch
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
ehmpathy/rhachet-roles-bhrain#878 ·
Mantenedores costumam responder em até 1 dia
-
Chat UI: Message actions dropdown is cut off beneath composer when message is near bottom of chatTalvez já em andamento @koeria assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
milind-soni/OpenMausBot#8023 ·
Mantenedores costumam responder em até 1 dia
-
Windows microphone listing treats words in a device name as DirectShow labelsTalvez já em andamento @Sujal-chaudhary assumiu hoje. Abertabug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
clipy-recorder/clipy#447 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
-
enhancement from-app needs-triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
nightly-labs/openbot#19162 ·
Mantenedores costumam responder em até 1 dia
-
triage:in-progress
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
Cotal-AI/Cotal#11229 · 1 comentário ·
Mantenedores costumam responder em até 1 dia