Skip to content

Commit

Permalink
Implement Marqo index validation, fix tests and removed unused code (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
farshidz authored Nov 29, 2023
1 parent 3026a69 commit fd8c9e6
Show file tree
Hide file tree
Showing 48 changed files with 1,228 additions and 8,320 deletions.
3 changes: 2 additions & 1 deletion requirements.dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,5 @@ pydantic==1.10.11
httpx==0.25.0

# test requirements
pyvespa==0.37.1
pyvespa==0.37.1
pytest==7.4.3
201 changes: 0 additions & 201 deletions src/marqo/_httprequests.py

This file was deleted.

1 change: 1 addition & 0 deletions src/marqo/core/constants.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
MARQO_RESERVED_PREFIX = 'marqo__'
MARQO_DOC_TENSORS = 'marqo__tensors' # doc-level so must not clash with index field names
MARQO_DOC_HIGHLIGHTS = '_highlights' # doc-level so must not clash with index field names
MARQO_DOC_CHUNKS = 'chunks'
Expand Down
4 changes: 0 additions & 4 deletions src/marqo/core/index_management/index_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,10 +294,6 @@ def _save_index_settings(self, marqo_index: MarqoIndex) -> None:
"""
Create or update index settings in Vespa settings schema.
"""
# Don't store model properties if model is not custom
if not marqo_index.model.custom:
marqo_index.model.properties = None

self.vespa_client.feed_document(
VespaDocument(
id=marqo_index.name,
Expand Down
Loading

0 comments on commit fd8c9e6

Please sign in to comment.