Skip to content

armgit / dspy

Public Imported from GitHub
0

DSPy: The framework for programming—not prompting—language models

Python

Update ValueError message

Connor Shorten6b330201d5b5
diff --git a/dspy/retrieve/weaviate_rm.py b/dspy/retrieve/weaviate_rm.py
index 7b778567a..0653e7929 100644
--- a/dspy/retrieve/weaviate_rm.py
+++ b/dspy/retrieve/weaviate_rm.py
@@ -126,7 +126,7 @@ class WeaviateRM(dspy.Retrieve):
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":
@@ -135,4 +135,4 @@ class WeaviateRM(dspy.Retrieve):
uuid=get_valid_uuid(uuid4())
)
else:
- raise AttributeError("insert is not supported for the v3 Weaviate Python client, please upgrade to v4.")
\ No newline at end of file
+ raise AttributeError("`insert` is not supported for the v3 Weaviate Python client, please upgrade to v4.")