Skip to content

armgit / dspy

Public Imported from GitHub
0

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

Python

feat(dspy): added SnowflakeRM retriever and cleanup of Snowflake (LM) support

alejandrof42df77df10b
diff --git a/dsp/modules/snowflake.py b/dsp/modules/snowflakecortex.py
similarity index 99%
rename from dsp/modules/snowflake.py
rename to dsp/modules/snowflakecortex.py
index 3cc7c4aa5..2eb6b204c 100644
--- a/dsp/modules/snowflake.py
+++ b/dsp/modules/snowflakecortex.py
@@ -31,7 +31,7 @@ def giveup_hdlr(details) -> bool:
return True
-class Snowflake(LM):
+class SnowflakeCortex(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 be397521d..0a1ada311 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
-Snowflake = dsp.Snowflake
+SnowflakeCortex = dsp.SnowflakeCortex
HFClientTGI = dsp.HFClientTGI
HFClientVLLM = HFClientVLLM