Browse Source
Update README
Signed-off-by: Jael Gu <mengjia.gu@zilliz.com>
main
1 changed files with
15 additions and
1 deletions
-
README.md
|
|
@ -41,7 +41,7 @@ p = ( |
|
|
|
.output('answer') |
|
|
|
) |
|
|
|
|
|
|
|
an1 = p('Who are you?', [], []).get()[0] |
|
|
|
an1 = p('What is your name?', [], []).get()[0] |
|
|
|
print(an1) |
|
|
|
|
|
|
|
an2 = p('Tell me something about Towhee', towhee_docs, []).get()[0] |
|
|
@ -57,6 +57,20 @@ Create the operator via the following factory method: |
|
|
|
|
|
|
|
***ops.prompt.template(temp, keys, sys_msg)*** |
|
|
|
|
|
|
|
**Parameters:** |
|
|
|
|
|
|
|
***temp***: *str* |
|
|
|
|
|
|
|
A template to create a prompt as the last user message. |
|
|
|
|
|
|
|
***keys***: *list* |
|
|
|
|
|
|
|
A list of keys used in template. |
|
|
|
|
|
|
|
***sys_msg***: *str=None* |
|
|
|
|
|
|
|
A system message, defaults to None. If None, it will not pass any system message. |
|
|
|
|
|
|
|
<br /> |
|
|
|
|
|
|
|
|
|
|
|