💡 All-in-one AI framework for semantic search, LLM orchestration and language model workflows
Python agentsaiai-agentsembeddingsinformation-retrievallanguage-modellarge-language-modelsllmnlppythonragretrieval-augmented-generationsearchsearch-enginesemantic-searchsentence-embeddingstransformerstxtaivector-databasevector-search
Update notes on KMP_DUPLICATE_LIB_OK, closes #1009
davidmezzetti846cf2ddc765
diff --git a/docs/faq.md b/docs/faq.mdindex 0ff2ab61..24b3ef22 100644--- a/docs/faq.md+++ b/docs/faq.md@@ -106,11 +106,11 @@ __Solution__Set the following environment parameters.- Disable OpenMP multithreading via `export OMP_NUM_THREADS=1`+- Workaround `OMP: Error #15` errors via `export KMP_DUPLICATE_LIB_OK=TRUE`- Disable PyTorch MPS device via `export PYTORCH_MPS_DISABLE=1`- Disable llama.cpp metal via `export LLAMA_NO_METAL=1`-- Workaround `OMP: Error #15` errors via `export KMP_DUPLICATE_LIB_OK=TRUE`-For more details, refer to [this issue on GitHub](https://github.com/kyamagu/faiss-wheels/issues/100).+For more details, refer to [this issue on GitHub](https://github.com/kyamagu/faiss-wheels/issues/73).----------diff --git a/src/python/txtai/ann/dense/faiss.py b/src/python/txtai/ann/dense/faiss.pyindex 565caad2..76b41ecb 100644--- a/src/python/txtai/ann/dense/faiss.py+++ b/src/python/txtai/ann/dense/faiss.py@@ -10,7 +10,7 @@ import numpy as np# pylint: disable=C0413if platform.system() == "Darwin" or os.name == "nt":- # Workaround for a Faiss issue with OMP: Error #15+ # Workaround for a Faiss issue with OMP: Error #15. See txtai FAQ for more.os.environ["KMP_DUPLICATE_LIB_OK"] = "TRUE"from faiss import omp_set_num_threads