-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DSPy Support For Snowflake LLM's #859
DSPy Support For Snowflake LLM's #859
Conversation
Thanks @sfc-gh-alherrera for the PR! left a few comments and seems like there are some merge conflicts to resolve. Could you also add documentation for the Snowflake LM/RM to provide context as done for the LMs in our documentation here? and RMs. |
… extras dependency
@arnavsinghvi11 thanks for taking a look. Just took a whole pass on your comments and addressed conflicts |
…model and updating snowflake session init to also include session log
…will be deprecated at the end of the month
…will be deprecated at the end of the month
…will be deprecated at the end of the month
### Usage | ||
|
||
```python | ||
lm = dspy.Snowflake(model="mixtral-8x7b",credentials=connection_parameters) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think it would be useful to define some required connection_parameters
from Snowflake based on the documentation so users know what to expect when configuring dspy.Snowflake
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. added the same as in the RM docs
import os | ||
|
||
connection_parameters = { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah you can add this to the LM documentation to address that comment!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
left a few comments @sfc-gh-alherrera. Can you also resolve the failing test from the actions on fixing the poetry.lock file? Additionally, can you run |
…uff issues and failing tests
thanks for the review @arnavsinghvi11. Just went through and addressed your latest round of comments. |
Thanks @sfc-gh-alherrera ! |
DSPy Support For Snowflake LLM's
Adding support for using Snowflake's Cortex API with DSPy. This includes an implementation of a Snowflake LM as well as a Snowflake RM.