Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update no_model_utils.py #913

Open
wants to merge 1 commit into
base: mainline
Choose a base branch
from
Open

Update no_model_utils.py #913

wants to merge 1 commit into from

Conversation

tomhamer
Copy link
Contributor

  • What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
    Update error message for adding documents or searching with no_model

  • What is the current behavior? (You can also link to an open issue here)
    Error is not descriptive and incorrect as it is possible to add and search text with lexical search in a no_model index.

  • What is the new behavior (if this is a feature change)?
    Additional context added to error message

  • Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)
    No

  • Have unit tests been run against this PR? (Has there also been any additional testing?)
    Unit tests need to be run - @farshidz can you have someone pick this up?

  • Related Python client changes (link commit/PR here)
    None

  • Related documentation changes (link commit/PR here)
    None

  • Other information:

  • Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes/features)
  • Docs have been added / updated (for bug fixes / features)

@tomhamer tomhamer temporarily deployed to marqo-test-suite July 23, 2024 03:28 — with GitHub Actions Inactive
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.")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with a different model

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"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only correct for unstructured indexes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants