update README.md about uploading files (#96)
Browse files- README.md +16 -1
- README_zh.md +6 -1
README.md
CHANGED
@@ -64,7 +64,7 @@ Our vision is to revolutionize how AI agents collaborate to solve real-world tas
|
|
64 |
- [📋 Table of Contents](#-table-of-contents)
|
65 |
- [🔥 News](#-news)
|
66 |
- [🎬 Demo Video](#-demo-video)
|
67 |
-
- [✨️ Core Features](#-
|
68 |
- [🛠️ Installation](#️-installation)
|
69 |
- [**Clone the Github repository**](#clone-the-github-repository)
|
70 |
- [**Set up Environment**](#set-up-environment)
|
@@ -172,6 +172,21 @@ answer, chat_history, token_count = run_society(society)
|
|
172 |
logger.success(f"Answer: {answer}")
|
173 |
```
|
174 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
175 |
Example tasks you can try:
|
176 |
- "Find the latest stock price for Apple Inc."
|
177 |
- "Analyze the sentiment of recent tweets about climate change"
|
|
|
64 |
- [📋 Table of Contents](#-table-of-contents)
|
65 |
- [🔥 News](#-news)
|
66 |
- [🎬 Demo Video](#-demo-video)
|
67 |
+
- [✨️ Core Features](#-core-features)
|
68 |
- [🛠️ Installation](#️-installation)
|
69 |
- [**Clone the Github repository**](#clone-the-github-repository)
|
70 |
- [**Set up Environment**](#set-up-environment)
|
|
|
172 |
logger.success(f"Answer: {answer}")
|
173 |
```
|
174 |
|
175 |
+
For uploading files, simply provide the file path along with your question:
|
176 |
+
|
177 |
+
```python
|
178 |
+
# Task with a local file (e.g., file path: `tmp/example.docx`)
|
179 |
+
question = "What is in the given DOCX file? Here is the file path: tmp/example.docx"
|
180 |
+
|
181 |
+
society = construct_society(question)
|
182 |
+
answer, chat_history, token_count = run_society(society)
|
183 |
+
|
184 |
+
logger.success(f"Answer: {answer}")
|
185 |
+
```
|
186 |
+
|
187 |
+
OWL will then automatically invoke document-related tools to process the file and extract the answer.
|
188 |
+
|
189 |
+
|
190 |
Example tasks you can try:
|
191 |
- "Find the latest stock price for Apple Inc."
|
192 |
- "Analyze the sentiment of recent tweets about climate change"
|
README_zh.md
CHANGED
@@ -166,7 +166,7 @@ answer, chat_history, token_count = run_society(society)
|
|
166 |
logger.success(f"Answer: {answer}")
|
167 |
```
|
168 |
|
169 |
-
|
170 |
|
171 |
```python
|
172 |
# 处理本地文件(例如,文件路径为 `tmp/example.docx`)
|
@@ -177,6 +177,10 @@ answer, chat_history, token_count = run_society(society)
|
|
177 |
|
178 |
logger.success(f"答案:{answer}")
|
179 |
```
|
|
|
|
|
|
|
|
|
180 |
OWL 将自动调用与文档相关的工具来处理文件并提取答案。
|
181 |
|
182 |
你可以尝试以下示例任务:
|
@@ -184,6 +188,7 @@ OWL 将自动调用与文档相关的工具来处理文件并提取答案。
|
|
184 |
- "分析关于气候变化的最新推文情绪"
|
185 |
- "帮我调试这段 Python 代码:[在此粘贴你的代码]"
|
186 |
- "总结这篇研究论文的主要观点:[论文URL]"
|
|
|
187 |
# 🧪 实验
|
188 |
|
189 |
我们提供了一个脚本用于复现 GAIA 上的实验结果。
|
|
|
166 |
logger.success(f"Answer: {answer}")
|
167 |
```
|
168 |
|
169 |
+
上传文件时,只需提供文件路径和问题:
|
170 |
|
171 |
```python
|
172 |
# 处理本地文件(例如,文件路径为 `tmp/example.docx`)
|
|
|
177 |
|
178 |
logger.success(f"答案:{answer}")
|
179 |
```
|
180 |
+
|
181 |
+
OWL 将自动调用与文档相关的工具来处理文件并提取答案。
|
182 |
+
|
183 |
+
|
184 |
OWL 将自动调用与文档相关的工具来处理文件并提取答案。
|
185 |
|
186 |
你可以尝试以下示例任务:
|
|
|
188 |
- "分析关于气候变化的最新推文情绪"
|
189 |
- "帮我调试这段 Python 代码:[在此粘贴你的代码]"
|
190 |
- "总结这篇研究论文的主要观点:[论文URL]"
|
191 |
+
-
|
192 |
# 🧪 实验
|
193 |
|
194 |
我们提供了一个脚本用于复现 GAIA 上的实验结果。
|