DSPy: The framework for programming—not prompting—language models
Python
A little more progress on testing for development.
Connor Shorten7569eb091bc2
diff --git a/dspy/retrieve/weaviate_rm_test.py b/dspy/retrieve/weaviate_rm_test.pyindex 513894b2c..ef919bdc3 100644--- a/dspy/retrieve/weaviate_rm_test.py+++ b/dspy/retrieve/weaviate_rm_test.py@@ -4,4 +4,16 @@# Add Toy Data (maybe an idea to restore a backup)-#\ No newline at end of file+# Connect DSPy++# Test this API+"""+from dspy.retrieve.weaviate_rm import WeaviateRM+retriever_model = WeaviateRM("WeaviateBlogChunk", weaviate_client=weaviate_client)+dspy.settings.configure(rm=retriever_model)++retrieve = dspy.Retrieve(k=1)+topK_passages = retrieve("what are the stages in planning, sanctioning and execution of public works").passages++assert(type(topK_passages))+"""\ No newline at end of file