DSPy: The framework for programming—not prompting—language models
Python
Test convenience imports of other modules
forwardprogress6621d4eb5a64
diff --git a/dsp/modules/__init__.py b/dsp/modules/__init__.pyindex e8912f15c..6afc8200f 100644--- a/dsp/modules/__init__.py+++ b/dsp/modules/__init__.py@@ -9,4 +9,5 @@ from .pyserini import *from .ollama import *from .hf_client import HFClientTGI+from .hf_client import HFClientVLLMfrom .hf_client import Anyscale\ No newline at end of filediff --git a/tests/test_dsp.py b/tests/test_dsp.pyindex 3d7a8a0d6..b5c4b7f10 100644--- a/tests/test_dsp.py+++ b/tests/test_dsp.py@@ -2,8 +2,19 @@ import unittestclass DspModuleImportsTest(unittest.TestCase):- def test_convenience_import_of_dsp_ollama_client(self):+ def test_convenience_import_of_dsp_modules(self):+ from dsp import Cohere+ from dsp import ColBERTv2+ from dsp import GPT3+ from dsp import HFModel+ from dsp import HFClientTGI+ from dsp import HFClientVLLMfrom dsp import OllamaLocal+ from dsp import PyseriniRetriever+ from dsp import SentenceTransformersCrossEncoder+ from dsp import SentenceTransformersVectorizer+ from dsp import NaiveGetFieldVectorizer+ from dsp import OpenAIVectorizerif __name__ == '__main__':