logo
Browse Source

Update README

Signed-off-by: Jael Gu <mengjia.gu@zilliz.com>
main
Jael Gu 1 year ago
parent
commit
737b682b20
  1. 16
      README.md

16
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 />

Loading…
Cancel
Save