Skip to content

armgit / txtai

Public Imported from GitHub
0

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

Change default sparse vector model, closes #940

davidmezzetti9b935a24d12e
diff --git a/src/python/txtai/embeddings/base.py b/src/python/txtai/embeddings/base.py
index 3fdbfac7..03317bfe 100644
--- a/src/python/txtai/embeddings/base.py
+++ b/src/python/txtai/embeddings/base.py
@@ -865,7 +865,7 @@ class Embeddings:
if sparse or method == "sparse":
# Sparse vector configuration
sparse = {"path": self.config.get("sparse")} if isinstance(sparse, str) else {} if isinstance(sparse, bool) else sparse
- sparse["path"] = sparse.get("path", "prithivida/Splade_PP_en_v2")
+ sparse["path"] = sparse.get("path", "opensearch-project/opensearch-neural-sparse-encoding-doc-v2-mini")
# Merge in sparse parameters
self.config["scoring"] = {**{"method": "sparse"}, **sparse}