Skip to content

armgit / txtai

Public Imported from GitHub
0

💡 All-in-one AI framework for semantic search, LLM orchestration and language model workflows

Fix faiss detection logic

davidmezzettid01d30fdfe8d
diff --git a/src/python/txtai/ann/factory.py b/src/python/txtai/ann/factory.py
index 9ddb3d0d..c13469ac 100644
--- a/src/python/txtai/ann/factory.py
+++ b/src/python/txtai/ann/factory.py
@@ -3,16 +3,9 @@ Factory module
"""
from .annoy import Annoy
+from .faiss import Faiss, FAISS
from .hnsw import HNSW
-# Conditionally import Faiss as it's only supported on Linux/macOS
-try:
- from .faiss import Faiss
-
- FAISS = True
-except ImportError:
- FAISS = False
-
class ANNFactory:
"""