Skip to content

Add KMP_DUPLICATE_OK workaround for Faiss OMP: Error #15 #1009

@davidmezzetti

Description

@davidmezzetti

The default faiss integration continues to cause issues primarily on Windows and macOS. An non-exhaustive list is:

This all stems from faiss-wheels/faiss-wheels#73

This change will add the KMP_DUPLICATE_OK workaround for Windows and macOS. It will also limit the number of threads to 1 on Windows in addition to macOS.

Linux won't include either of these workarounds.

Removing the faiss library from the default txtai install and moving the default ann to numpy is another option if these issues continue to persist. This underlying issue is destructive to the adoption of txtai.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions