Repository navigation
Readme Signature Declaration #872
BrianSemiglia
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I’ve been trying to understand DSPy via the documentation but I’m still a little muddy. I thought it could be useful if the Readme took inspiration from DSPy’s own design by stating the signature of itself as a framework. This is what I gather so far:
The parts of a formula that can vary can be considered a detail. Given a problem, a solution can be achieved in different ways:
Problem -> {Solver} -> SolutionThe variability allows for scalability (up and down) and optimization:
Declarative formulas ask for the parts that don’t vary and infer the rest.
Problem -> SolutionPrompting is typically done using a formula of:
System Prompt, Query, Example, LLM -> AnswerDSPy is a framework that makes the system prompt a variable that is inferred from examples.
{System Prompt}, Query, Example, Metric, Solver (Module), LLM, Prompt Optimizer -> AnswerIts signature shows the potential for more variability where the ideal llm, optimization and approach to solving the problem are inferred from the query, example and metric:
{System Prompt}, Query, Example, Metric, {Solver (Module)}, {LLM}, {Prompt Optimizer} -> AnswerAm I close?
All reactions