Skip to content

armgit / txtai

Public Imported from GitHub
0

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

Update #704 to not require a path parameter in Embeddings as not all vector models need a path. Update test.

davidmezzettib2d864d74a7a
diff --git a/src/python/txtai/vectors/factory.py b/src/python/txtai/vectors/factory.py
index 92fc737f..9195bbf6 100644
--- a/src/python/txtai/vectors/factory.py
+++ b/src/python/txtai/vectors/factory.py
@@ -42,7 +42,7 @@ class VectorsFactory:
return WordVectors(config, scoring, models)
# Default to TransformersVectors when configuration available
- return TransformersVectors(config, scoring, models) if config.get("path") else None
+ return TransformersVectors(config, scoring, models) if config and config.get("path") else None
@staticmethod
def method(config):