Replies: 1 comment 2 replies
-
When I moved from langchain to instructor, I found it liberating that I could just use plain python fstrings. Those template variables, in my opinion, don't add any extra value on top of what modern python allows, fstrings are actually really flexible beyond the basic use case. To me, referring to variables in double brackets only to have to pass their values later on was only a source of problems (which sadly python isn't great at helping with at coding time). For that, my inclination would be to leave this as is. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Now that we have our own SDK we could do much more interesting things like template variables.
what are folks thoughts on something like
This would use jinja behind the scenes, but would effectively allow for template variables however if you never need them you don't have to set messages_context.
This would also allow us to use one messages_context for both formatting the messages and also providing it to the validation_context
What are folks thoughts on something like this?
Beta Was this translation helpful? Give feedback.
All reactions