Skip to content

armgit / txtai

Public Imported from GitHub
0

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

Switch default backend on Windows to Hnswlib, closes #88

davidmezzetti6a9a281cf72a
diff --git a/src/python/txtai/ann/factory.py b/src/python/txtai/ann/factory.py
index c13469ac..1274e09d 100644
--- a/src/python/txtai/ann/factory.py
+++ b/src/python/txtai/ann/factory.py
@@ -30,7 +30,7 @@ class ANNFactory:
# Default backend if not provided, based on available libraries
if not backend:
- backend = "faiss" if FAISS else "annoy"
+ backend = "faiss" if FAISS else "hnsw"
# Create ANN instance
if backend == "annoy":