Skip to content

Commit

Permalink
updated marqo version to 2.6.0 (#834)
Browse files Browse the repository at this point in the history
  • Loading branch information
RaynorChavez committed May 10, 2024
1 parent 4b13a22 commit fbee89a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/marqo/core/embed/embed.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,15 @@ def embed_content(
# Decide on the prefix

# For backwards compatibility
if marqo_index.model.text_query_prefix is None or marqo_index.model.text_chunk_prefix is None:
prefix = ""
elif content_type == EmbedContentType.Query:

if content_type == EmbedContentType.Query:
prefix = marqo_index.model.get_text_query_prefix()
elif content_type == EmbedContentType.Document:
prefix = marqo_index.model.get_text_chunk_prefix()
elif content_type is None:
prefix = ""
elif marqo_index.model.text_query_prefix is None or marqo_index.model.text_chunk_prefix is None:
prefix = ""
else:
# use [item.value for item in list(EmbedContentType)], but formatted not as a list
raise ValueError(f"Invalid content_type: {content_type}. Must be {', '.join([item.value for item in list(EmbedContentType)])}, or None.")
Expand Down
2 changes: 1 addition & 1 deletion src/marqo/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "2.5.1"
__version__ = "2.6.0"


def get_version() -> str:
Expand Down

0 comments on commit fbee89a

Please sign in to comment.