Comments (3)
Hey, this sounds excellent and I want to dig deeper. Not sure if you follow my Twitter updates on this, but we have built a v2 (called DSPy) that we're releasing like ... in 2-3 days. It's not a rewrite actually, it's a much cleaner and more powerful wrapper around DSPv1, but I can't tell if it will resolve some of your concerns or not.
So I'd like to understand your concerns.
dynamic behavior that could lead to hard to debug errors when something will change between versions
Versions of? The framework itself? Or a program built in it? Basically, I might need an example of this to understand what you mean.
What is the advantage of Pydantic here? What kind of validation are you thinking of?
from dspy.
One issue we did fix in DSPy (i.e., v2) is that the generate functions will take kwargs and not "x" (dsp.Example). This is a lot less opaque and causes fewer issues.
This sounds like it interacts with your concerns on validating which fields are where.
from dspy.
By validation I meant that for example when I removed 'demos' argument in vanilla_LM_QA
from "demonstrate_search_predict" notebook I got an error in generate
function and not in Example itself. Pydantic wouldn't let me create an object if I didn't pass the required field or if it had incorrect type (it would fail instantly thus making debugging far easier).
I'm looking forward for v2, when it drops I'll try to write these classes for validation.
from dspy.
Related Issues (20)
- LLM output appears cut-off (compared to the output of the same LLM and prompt in Langchain) HOT 4
- Would suggest COPRO ignore "return_outputs" HOT 1
- Implement Exponential Backoff for ThrottlingException in InvokeModel Calls HOT 2
- Error loading program compiled using the Ensemble optimizer HOT 2
- Support for Fireworks API Models with DSPY HOT 1
- Connection error. HOT 4
- Support for vLLM chat completion endpoint HOT 1
- There is a small error in the example in signature-optimizer.mdx.
- Inspect_history only shows the last history regardless of n/skip HOT 2
- Circular import and NameError in Cohere Module HOT 4
- Update weaviate_rm.py with v4 WeaviateClient
- Enhance error handling HOT 4
- DPSy Assistant HOT 1
- Application logs unexpectedly redirected to `groq_usage.log` HOT 1
- Is there a generic way to change model's `max_tokens` dynamically? HOT 6
- [Request] Support for Python3.8
- Structured Output trouble with Command R HOT 4
- ReAct calls custom tools twice HOT 1
- pypi.org version does not match HOT 3
- ImportError: cannot import name 'FaissRM' from 'dspy.retrieve' HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dspy.