Skip to content

armgit / dspy

Public Imported from GitHub
0

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__.py
index 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.py
similarity index 99%
rename from dsp/modules/snowflakecortex.py
rename to dsp/modules/snowflake.py
index 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__.py
index 0a1ada311..be397521d 100644
--- a/dspy/__init__.py
+++ b/dspy/__init__.py
@@ -25,7 +25,7 @@ Clarifai = dsp.ClarifaiLLM
Google = dsp.Google
GoogleVertexAI = dsp.GoogleVertexAI
GROQ = dsp.GroqLM
-SnowflakeCortex = dsp.SnowflakeCortex
+Snowflake = dsp.Snowflake
HFClientTGI = dsp.HFClientTGI
HFClientVLLM = HFClientVLLM