Skip to content

Commit

Permalink
Merge pull request #2 from telepace/cubxxw-patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
cubxxw authored Jun 8, 2024
2 parents b5a44c7 + 46af219 commit e99430c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Feedback Commons
# AI Commons

**反馈通用工具库**

Expand All @@ -16,7 +16,7 @@

## 简介

Feedback Commons 是一个通用工具库,旨在支持企业级 AI 驱动的智能反馈系统的开发。该库包含多种实用工具,如 API 客户端、数据清洗、文件解析、模型定义和异步任务处理。
AI Commons 是一个通用工具库,旨在支持企业级 AI 驱动的智能反馈系统的开发。该库包含多种实用工具,如 API 客户端、数据清洗、文件解析、模型定义和异步任务处理。

## 目录

Expand Down Expand Up @@ -69,7 +69,7 @@ python setup.py install
#### 示例代码

```python
from feedback_commons.api.openai_client import OpenAIClient
from ai_commons.api.openai_client import OpenAIClient

client = OpenAIClient(api_key='your_api_key')
response = client.get_response(prompt="Summarize the following feedback...")
Expand All @@ -83,7 +83,7 @@ print(response)
#### 示例代码

```python
from feedback_commons.utils.data_cleaning import clean_data
from ai_commons.utils.data_cleaning import clean_data

data = {"field1": "value1", "field2": None}
cleaned_data = clean_data(data)
Expand All @@ -97,7 +97,7 @@ print(cleaned_data)
#### 示例代码

```python
from feedback_commons.utils.file_parser import parse_excel
from ai_commons.utils.file_parser import parse_excel

data = parse_excel('path/to/file.xlsx')
print(data)
Expand All @@ -110,7 +110,7 @@ print(data)
#### 示例代码

```python
from feedback_commons.models.feedback import Feedback
from ai_commons.models.feedback import Feedback

feedback = Feedback(user_id=1, question_id=1, feedback_text="Great product!", score=4.5)
print(feedback)
Expand All @@ -123,7 +123,7 @@ print(feedback)
#### 示例代码

```python
from feedback_commons.tasks.async_tasks import process_feedback
from ai_commons.tasks.async_tasks import process_feedback

task = process_feedback.delay(feedback_data)
print(task.id)
Expand Down

0 comments on commit e99430c

Please sign in to comment.