Skip to content

armgit / dspy

Public Imported from GitHub
0

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

Python

fix(dspy): updating syntax for Snowflake cos similarity method which will be deprecated at the end of the month

alejandro53630da5f578
diff --git a/dspy/retrieve/snowflake_rm.py b/dspy/retrieve/snowflake_rm.py
index fc8bd8952..d9067bffa 100644
--- a/dspy/retrieve/snowflake_rm.py
+++ b/dspy/retrieve/snowflake_rm.py
@@ -6,7 +6,7 @@ from dsp.utils import dotdict
try:
from snowflake.snowpark import Session
from snowflake.snowpark import functions as snow_fn
- from snowflake.snowpark.functions import lit, vector_cosine_similarity
+ from snowflake.snowpark.functions import lit
from snowflake.snowpark.types import VectorType
except ImportError: