Skip to content

Commit

Permalink
Update ValueError message
Browse files Browse the repository at this point in the history
  • Loading branch information
CShorten authored Sep 14, 2024
1 parent 2c7d518 commit 6b33020
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dspy/retrieve/weaviate_rm.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def get_objects(self, num_samples: int, fields: List[str]) -> List[dict]:
counter += 1
return objects
else:
raise ValueError("get_objects is not supported for the v3 Weaviate Python client, please upgrade to v4.")
raise ValueError("`get_objects` is not supported for the v3 Weaviate Python client, please upgrade to v4.")

def insert(self, new_object_properties: dict):
if self._client_type == "WeaviateClient":
Expand All @@ -135,4 +135,4 @@ def insert(self, new_object_properties: dict):
uuid=get_valid_uuid(uuid4())
)
else:
raise AttributeError("insert is not supported for the v3 Weaviate Python client, please upgrade to v4.")
raise AttributeError("`insert` is not supported for the v3 Weaviate Python client, please upgrade to v4.")

0 comments on commit 6b33020

Please sign in to comment.