From 544ddb546bb5d0c03ac5d0075008c5bde0399972 Mon Sep 17 00:00:00 2001 From: Yuhang Zhou <86864241+Ralph-Zhou@users.noreply.github.com> Date: Sun, 9 Mar 2025 13:01:29 +0800 Subject: [PATCH 1/2] Update README.md --- README.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1d8bb9d..2d7a4c3 100644 --- a/README.md +++ b/README.md @@ -64,7 +64,7 @@ Our vision is to revolutionize how AI agents collaborate to solve real-world tas - [📋 Table of Contents](#-table-of-contents) - [🔥 News](#-news) - [🎬 Demo Video](#-demo-video) -- [✨️ Core Features](#-code-features) +- [✨️ Core Features](#-core-features) - [🛠️ Installation](#️-installation) - [**Clone the Github repository**](#clone-the-github-repository) - [**Set up Environment**](#set-up-environment) @@ -172,6 +172,21 @@ answer, chat_history, token_count = run_society(society) logger.success(f"Answer: {answer}") ``` +For uploading files, simply provide the file path along with your question: + +```python +# Task with a local file (e.g., file path: `tmp/example.docx`) +question = "What is in the given DOCX file? Here is the file path: tmp/example.docx" + +society = construct_society(question) +answer, chat_history, token_count = run_society(society) + +logger.success(f"Answer: {answer}") +``` + +OWL will then automatically invoke document-related tools to process the file and extract the answer. + + Example tasks you can try: - "Find the latest stock price for Apple Inc." - "Analyze the sentiment of recent tweets about climate change" From 8da5a9493fd712194ff7669dd2f04cacb64cbb03 Mon Sep 17 00:00:00 2001 From: Yuhang Zhou <86864241+Ralph-Zhou@users.noreply.github.com> Date: Sun, 9 Mar 2025 13:08:11 +0800 Subject: [PATCH 2/2] Update README_zh.md --- README_zh.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README_zh.md b/README_zh.md index ee1af7f..6a2adea 100644 --- a/README_zh.md +++ b/README_zh.md @@ -166,6 +166,21 @@ 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 将自动调用与文档相关的工具来处理文件并提取答案。 + + 你可以尝试以下示例任务: - "查询苹果公司的最新股票价格" - "分析关于气候变化的最新推文情绪"