Functioning of the Macro
object
#1469
RobinPicard
started this conversation in
General
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.
-
We want to replace the Outlines function by a new object called
Macro
that will encapsulate a model, a prompt template and an output type (see #1346 and #1454). It would look like the following:There are 3 issues with that implementation:
macro.with_model(...)
to be able to change the model used by the macro while keeping the same output type and prompt templateoutlines <macro_name> --with-model <name-of-predefined-model>
A solution considered is to ask the user to provide a function that returns a model instead of a model instance. That way we could rely on lazy loading and we could save the code of the function to be able to create a predefined model.
3 questions:
Beta Was this translation helpful? Give feedback.
All reactions