You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have attempted to switch from using NativeEmbeddings to NativeContextualEmbeddings and it is causing my iOS app to crash. It seems that the embeddings object is failing to initialize the model.
Error:
SimilaritySearchKit/NativeContextualEmbeddings.swift:43: Fatal error: 'try!' expression unexpectedly raised an error: Foundation._GenericObjCError.nilError
I believe this is happening because nativeModel.requestAssets is not completed before trying to load the model. Tricky to catch because it only shows up if it is the very first install of the app. Thanks for the report!
I think we should let developers decide when to load the model(and documented it) like the way Apple did. They tell us to requireAssets before using the Contextual Model.
I have attempted to switch from using
NativeEmbeddings
toNativeContextualEmbeddings
and it is causing my iOS app to crash. It seems that the embeddings object is failing to initialize the model.Error:
SimilaritySearchKit/NativeContextualEmbeddings.swift:43: Fatal error: 'try!' expression unexpectedly raised an error: Foundation._GenericObjCError.nilError
Usage:
Device:
iPhone 13 Pro Max
iOS Version 17.2.1
The text was updated successfully, but these errors were encountered: