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.pyindex fc8bd8952..d9067bffa 100644--- a/dspy/retrieve/snowflake_rm.py+++ b/dspy/retrieve/snowflake_rm.py@@ -6,7 +6,7 @@ from dsp.utils import dotdicttry:from snowflake.snowpark import Sessionfrom snowflake.snowpark import functions as snow_fn- from snowflake.snowpark.functions import lit, vector_cosine_similarity+ from snowflake.snowpark.functions import litfrom snowflake.snowpark.types import VectorTypeexcept ImportError: