Skip to content

Segmentation fault when calling embeddings.index #744

@mehabakshii

Description

@mehabakshii

Hi there! I'm on an M1 mac and am trying to get up and running with txtai, starting with a simple script:

import txtai

embeddings = txtai.Embeddings()
embeddings.index(["Test", "Text"])
print(embeddings.search("positive", 1))

It seems like the code is getting to a seg fault on the index step - failing w/ segmentation fault python3 script.py. Any idea what is going on here? I took a look at the common issues here: https://neuml.github.io/txtai/faq/#common-issues and followed steps under "Segmentation faults and similar errors on macOS" but exporting those global vars didn't work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions