From 77adedc3aa720be2bfaf24e025814397812a9f6c Mon Sep 17 00:00:00 2001 From: Tom Date: Tue, 23 Jul 2024 13:25:21 +1000 Subject: [PATCH] Update no_model_utils.py --- src/marqo/s2_inference/no_model_utils.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/marqo/s2_inference/no_model_utils.py b/src/marqo/s2_inference/no_model_utils.py index 741bf861e..06e021e0f 100644 --- a/src/marqo/s2_inference/no_model_utils.py +++ b/src/marqo/s2_inference/no_model_utils.py @@ -12,5 +12,8 @@ def load(self, *args, **kwargs) -> None: def encode(self, *args, **kwargs) -> None: raise VectoriseError(f"Cannot vectorise anything with '{ModelType.NO_MODEL}'. " - f"This model is intended for adding documents and searching with custom vectors only. " - f"If vectorisation is needed, please use a different model ") \ No newline at end of file + f"This model is intended for adding documents and searching with custom vectors only." + f"If searching using this index, you can set the search_method to LEXICAL for lexical search, " + f"or remove the field from tensor_fields when calling add_documents to make your content" + f"only available for lexical search or filtering." + f"If vectorisation is needed, please re-create the index a different model.")