Update README_zh.md

This commit is contained in:
Yuhang Zhou
2025-03-09 13:04:23 +08:00
committed by GitHub
parent 63a14115b0
commit 2edcf9dc28

View File

@@ -166,6 +166,19 @@ answer, chat_history, token_count = run_society(society)
logger.success(f"Answer: {answer}")
```
上传文件时,只需在问题中额外提供文件路径:
```python
# 处理本地文件(例如,文件路径为 `tmp/example.docx`
question = "给定的 DOCX 文件中有什么内容文件路径如下tmp/example.docx"
society = construct_society(question)
answer, chat_history, token_count = run_society(society)
logger.success(f"答案:{answer}")
```
OWL 将自动调用与文档相关的工具来处理文件并提取答案。
你可以尝试以下示例任务:
- "查询苹果公司的最新股票价格"
- "分析关于气候变化的最新推文情绪"