Interface: TextEmbeddingsProps
Defined in: packages/react-native-executorch/src/types/textEmbeddings.ts:11
Props for the useTextEmbeddings hook.
Properties
model
model:
object
Defined in: packages/react-native-executorch/src/types/textEmbeddings.ts:12
An object containing the model and tokenizer sources.
modelSource
modelSource:
ResourceSource
The source of the text embeddings model binary.
tokenizerSource
tokenizerSource:
ResourceSource
The source of the tokenizer JSON file.
preventLoad?
optionalpreventLoad:boolean
Defined in: packages/react-native-executorch/src/types/textEmbeddings.ts:22
Boolean that can prevent automatic model loading (and downloading the data if you load it for the first time) after running the hook.