Skip to content

[Bug] NativeContextualEmbeddings causes crash #34

@Kilo-Loco

Description

@Kilo-Loco

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

Usage:

await SimilarityIndex(
    model: NativeContextualEmbeddings(),
    metric: CosineSimilarity()
)

Device:
iPhone 13 Pro Max
iOS Version 17.2.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions