From 8924e6488cb5f50f3dc52df5ac4a98fa382b515e Mon Sep 17 00:00:00 2001 From: Jael Gu Date: Wed, 7 Jun 2023 16:14:34 +0800 Subject: [PATCH] Add chinese to README Signed-off-by: Jael Gu --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 1888611..b2d0932 100644 --- a/README.md +++ b/README.md @@ -1,20 +1,20 @@ -# 文心一言 +# Ernie Bot 文心一言 *author: Jael*
-## Description +## Description 描述 A LLM operator generates answer given prompt in messages using a large language model or service. This operator is implemented with Ernie Bot from [Baidu](https://cloud.baidu.com/wenxin.html). Please note you will need [Ernie API key & Secret key](https://ai.baidu.com/ai-doc/REFERENCE/Lkru0zoz4) to access the service. -
+LLM 算子使用大语言模型或服务,为输入的问题或提示生成答案。LLM/Ernie 利用了来自百度的[文心一言](https://cloud.baidu.com/wenxin.html)。请注意,您需要[文心一言服务的 API Key 和 Secret Key](https://ai.baidu.com/ai-doc/REFERENCE/Lkru0zoz4)才能访问该服务。 -## Code Example +
-Use the default model to continue the conversation from given messages. +## Code Example 代码示例 *Write a pipeline with explicit inputs/outputs name specifications:* @@ -24,7 +24,7 @@ from towhee import pipe, ops p = ( pipe.input('messages') .map('messages', 'answer', ops.LLM.Ernie(api_key=ERNIE_API_KEY, secret_key=ERNIE_SECRET_KEY)) - .output('messages', 'answer') + .output('answer') ) messages=[ @@ -36,7 +36,7 @@ answer = p(messages).get()[0]
-## Factory Constructor +## Factory Constructor 接口说明 Create the operator via the following factory method: @@ -59,7 +59,7 @@ Other OpenAI parameters such as temperature, etc.
-## Interface +## Interface 使用说明 The operator takes a piece of text in string as input. It returns answer in json.