DSPy: The framework for programming—not prompting—language models
Python
feat(dspy): added Snowflake Cortex (LM) and Snowflake RM support
alejandro8ce13780e72e
diff --git a/dsp/modules/__init__.py b/dsp/modules/__init__.pyindex 948844a39..a57515e94 100644--- a/dsp/modules/__init__.py+++ b/dsp/modules/__init__.py@@ -22,3 +22,4 @@ from .ollama import *from .pyserini import *from .sbert import *from .sentence_vectorizer import *+from .snowflake import *diff --git a/dsp/modules/snowflakecortex.py b/dsp/modules/snowflake.pysimilarity index 99%rename from dsp/modules/snowflakecortex.pyrename to dsp/modules/snowflake.pyindex 2eb6b204c..3cc7c4aa5 100644--- a/dsp/modules/snowflakecortex.py+++ b/dsp/modules/snowflake.py@@ -31,7 +31,7 @@ def giveup_hdlr(details) -> bool:return True-class SnowflakeCortex(LM):+class Snowflake(LM):"""Wrapper around Snowflake's CortexAPI.Currently supported models include 'mistral-large','reka-flash','mixtral-8x7b',diff --git a/dspy/__init__.py b/dspy/__init__.pyindex 0a1ada311..be397521d 100644--- a/dspy/__init__.py+++ b/dspy/__init__.py@@ -25,7 +25,7 @@ Clarifai = dsp.ClarifaiLLMGoogle = dsp.GoogleGoogleVertexAI = dsp.GoogleVertexAIGROQ = dsp.GroqLM-SnowflakeCortex = dsp.SnowflakeCortex+Snowflake = dsp.SnowflakeHFClientTGI = dsp.HFClientTGIHFClientVLLM = HFClientVLLM