Replies: 2 comments 1 reply
-
Hi, |
Beta Was this translation helpful? Give feedback.
-
If I'm not wrong you can partially format PromptTemplate, while in f-string you have to fully format all values. For example, for a string like |
Beta Was this translation helpful? Give feedback.
-
I saw a basic tutorial of lang chain
which gave an example of using a "PromptTemplate" to ask a question
Not sure whats the advantage of using a "PromptTemplate" instead of an f-string. I mean we could just create a prompt=f"Question '{question_text}' Lets think step by step"
Like this
Rt?
So whats the advantage of Lang Chain here?
Beta Was this translation helpful? Give feedback.
All reactions