File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ pre-commit install
9999
100100Mellea supports validation of generation results through a ** instruct-validate-repair** pattern.
101101Below, the request for * "Write an email.."* is constrained by the requirements of * "be formal"* and * "Use 'Dear interns' as greeting."* .
102- Using a simple rejection sampling strategy, the request is send up to three (loop_budget) times to the model and
102+ Using a simple rejection sampling strategy, the request is sent up to three (loop_budget) times to the model and
103103the output is checked against the constraints using (in this case) LLM-as-a-judge.
104104
105105
@@ -133,11 +133,11 @@ print(f"***** email ****\n{str(email_v1)}\n*******")
133133
134134## Getting Started with Generative Slots
135135
136- Generative slots allow to define functions without implementing them.
137- By using the ` @generative ` decorator, the function gets converted into an LLM function .
138- The example below, is a minimal version of writing a sentiment classification function
139- using Mellea's generative slots and a local LLM.
140-
136+ Generative slots allow you to define functions without implementing them.
137+ The ` @generative ` decorator marks a function as one that should be interpreted by querying an LLM.
138+ The example below demonstrates how an LLM's sentiment classification
139+ capability can be wrapped up as a function using Mellea's generative slots and
140+ a local LLM.
141141
142142
143143``` python
You can’t perform that action at this time.
0 commit comments