Skip to content

Commit 8b268a0

Browse files
zechengzlightaime
andauthored
Fix README and some other minor fixes (camel-ai#439)
Co-authored-by: lig <[email protected]>
1 parent 72af654 commit 8b268a0

File tree

6 files changed

+64
-59
lines changed

6 files changed

+64
-59
lines changed

README.md

Lines changed: 58 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,23 @@
1-
<div style="left">
2-
<a href="https://colab.research.google.com/drive/1AzP33O8rnMW__7ocWJhVBXjKziJXPtim?usp=sharing" target="_blank">
3-
<img alt="Open In Colab" src="https://colab.research.google.com/assets/colab-badge.svg" />
4-
</a>
5-
<a href="https://huggingface.co/camel-ai" target="_blank">
6-
<img alt="Hugging Face" src="https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-CAMEL--AI-ffc107?color=ffc107&logoColor=white" />
7-
</a>
8-
<a href="https://join.slack.com/t/camel-kwr1314/shared_invite/zt-1vy8u9lbo-ZQmhIAyWSEfSwLCl2r2eKA" target="_blank">
9-
<img alt="Slack" src="https://img.shields.io/badge/Slack-CAMEL--AI-blueviolet?logo=slack" />
10-
</a>
11-
<a href="https://discord.gg/CNcNpquyDc" target="_blank">
12-
<img alt="Discord" src="https://img.shields.io/badge/Discord-CAMEL--AI-7289da?logo=discord&logoColor=white&color=7289da" />
13-
</a>
14-
<a href="https://ghli.org/camel/wechat.png" target="_blank">
15-
<img alt="Discord" src="https://img.shields.io/badge/WeChat-CamelAIOrg-brightgreen?logo=wechat&logoColor=white" />
16-
</a>
17-
<a href="https://twitter.com/CamelAIOrg" target="_blank">
18-
<img alt="Twitter Follow" src="https://img.shields.io/twitter/follow/CamelAIOrg?style=social&color=brightgreen&logo=twitter" />
19-
</a>
20-
</div>
21-
22-
# CAMEL: Communicative Agents for “Mind” Exploration of Large Scale Language Model Society
23-
24-
<div align="center">
25-
26-
<a>![Python 3.9+](https://img.shields.io/badge/Python-3.9%2B-brightgreen.svg)</a>
27-
<a href="https://github.com/camel-ai/camel/actions/workflows/pytest_package.yml">![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/camel-ai/camel/pytest_package.yml?label=tests&logo=github)</a>
28-
<a href="https://camel-ai.github.io/camel/">
29-
![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/camel-ai/camel/documentation.yaml?label=docs&logo=github)
30-
</a>
31-
<a href="https://github.com/camel-ai/camel/stargazers" target="_blank">
32-
<img alt="GitHub Repo Stars" src="https://img.shields.io/github/stars/camel-ai/camel?label=stars&logo=github&color=brightgreen" />
33-
</a>
34-
<a href="https://github.com/camel-ai/camel/blob/master/licenses/LICENSE">![License](https://img.shields.io/github/license/camel-ai/camel?label=license&logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiBmaWxsPSIjZmZmZmZmIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMi43NSAyLjc1YS43NS43NSAwIDAwLTEuNSAwVjQuNUg5LjI3NmExLjc1IDEuNzUgMCAwMC0uOTg1LjMwM0w2LjU5NiA1Ljk1N0EuMjUuMjUgMCAwMTYuNDU1IDZIMi4zNTNhLjc1Ljc1IDAgMTAwIDEuNUgzLjkzTC41NjMgMTUuMThhLjc2Mi43NjIgMCAwMC4yMS44OGMuMDguMDY0LjE2MS4xMjUuMzA5LjIyMS4xODYuMTIxLjQ1Mi4yNzguNzkyLjQzMy42OC4zMTEgMS42NjIuNjIgMi44NzYuNjJhNi45MTkgNi45MTkgMCAwMDIuODc2LS42MmMuMzQtLjE1NS42MDYtLjMxMi43OTItLjQzMy4xNS0uMDk3LjIzLS4xNTguMzEtLjIyM2EuNzUuNzUgMCAwMC4yMDktLjg3OEw1LjU2OSA3LjVoLjg4NmMuMzUxIDAgLjY5NC0uMTA2Ljk4NC0uMzAzbDEuNjk2LTEuMTU0QS4yNS4yNSAwIDAxOS4yNzUgNmgxLjk3NXYxNC41SDYuNzYzYS43NS43NSAwIDAwMCAxLjVoMTAuNDc0YS43NS43NSAwIDAwMC0xLjVIMTIuNzVWNmgxLjk3NGMuMDUgMCAuMS4wMTUuMTQuMDQzbDEuNjk3IDEuMTU0Yy4yOS4xOTcuNjMzLjMwMy45ODQuMzAzaC44ODZsLTMuMzY4IDcuNjhhLjc1Ljc1IDAgMDAuMjMuODk2Yy4wMTIuMDA5IDAgMCAuMDAyIDBhMy4xNTQgMy4xNTQgMCAwMC4zMS4yMDZjLjE4NS4xMTIuNDUuMjU2Ljc5LjRhNy4zNDMgNy4zNDMgMCAwMDIuODU1LjU2OCA3LjM0MyA3LjM0MyAwIDAwMi44NTYtLjU2OWMuMzM4LS4xNDMuNjA0LS4yODcuNzktLjM5OWEzLjUgMy41IDAgMDAuMzEtLjIwNi43NS43NSAwIDAwLjIzLS44OTZMMjAuMDcgNy41aDEuNTc4YS43NS43NSAwIDAwMC0xLjVoLTQuMTAyYS4yNS4yNSAwIDAxLS4xNC0uMDQzbC0xLjY5Ny0xLjE1NGExLjc1IDEuNzUgMCAwMC0uOTg0LS4zMDNIMTIuNzVWMi43NXpNMi4xOTMgMTUuMTk4YTUuNDE4IDUuNDE4IDAgMDAyLjU1Ny42MzUgNS40MTggNS40MTggMCAwMDIuNTU3LS42MzVMNC43NSA5LjM2OGwtMi41NTcgNS44M3ptMTQuNTEtLjAyNGMuMDgyLjA0LjE3NC4wODMuMjc1LjEyNi41My4yMjMgMS4zMDUuNDUgMi4yNzIuNDVhNS44NDYgNS44NDYgMCAwMDIuNTQ3LS41NzZMMTkuMjUgOS4zNjdsLTIuNTQ3IDUuODA3eiI+PC9wYXRoPjwvc3ZnPgo=)</a>
35-
</div>
1+
[![Colab][colab-image]][colab-url]
2+
[![Hugging Face][huggingface-image]][huggingface-url]
3+
[![Slack][slack-image]][slack-url]
4+
[![Discord][discord-image]][discord-url]
5+
[![Wechat][wechat-image]][wechat-url]
6+
[![Twitter][twitter-image]][twitter-url]
7+
8+
______________________________________________________________________
9+
10+
# CAMEL: Communicative Agents for “Mind” Exploration of Large Language Model Society
11+
12+
[![Python Version][python-image]][python-url]
13+
[![PyTest Status][pytest-image]][pytest-url]
14+
[![Documentation][docs-image]][docs-url]
15+
[![Star][star-image]][star-url]
16+
[![Package License][package-license-image]][package-license-url]
17+
[![Data License][data-license-image]][data-license-url]
3618

3719
<p align="center">
38-
<a href="https://github.com/camel-ai/camel#community">Community</a> |
20+
<a href="https://github.com/camel-ai/camel#community">Community</a> |
3921
<a href="https://github.com/camel-ai/camel#installation">Installation</a> |
4022
<a href="https://camel-ai.github.io/camel/">Documentation</a> |
4123
<a href="https://github.com/camel-ai/camel/tree/HEAD/examples">Examples</a> |
@@ -46,7 +28,7 @@
4628
</p>
4729

4830
<p align="center">
49-
<img src='https://raw.githubusercontent.com/camel-ai/camel/master/misc/logo.png' width=800>
31+
<img src='https://raw.githubusercontent.com/camel-ai/camel/master/misc/primary_logo.png' width=800>
5032
</p>
5133

5234
## Overview
@@ -70,7 +52,7 @@ We provide a [![Google Colab](https://colab.research.google.com/assets/colab-bad
7052

7153
To install the base camel library, simply run `pip install camel-ai`
7254

73-
Some features reuqire extra dependencies.
55+
Some features require extra dependencies.
7456

7557
To use hugging-face agent, run `pip install camel-ai[huggingface-agent]`
7658

@@ -224,21 +206,21 @@ agent = ChatAgent(
224206
- example: [lmsys/vicuna-7b-v1.5](https://huggingface.co/lmsys/vicuna-7b-v1.5)
225207

226208
## Data (Hosted on Hugging Face)
227-
| Dataset | Chat format | Instruction format | Chat format (translated) |
228-
| -- | -- | -- | -- |
209+
| Dataset | Chat format | Instruction format | Chat format (translated) |
210+
|----------------|-----------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------|
229211
| **AI Society** | [Chat format](https://huggingface.co/datasets/camel-ai/ai_society/blob/main/ai_society_chat.tar.gz) | [Instruction format](https://huggingface.co/datasets/camel-ai/ai_society/blob/main/ai_society_instructions.json) | [Chat format (translated)](https://huggingface.co/datasets/camel-ai/ai_society_translated) |
230-
| **Code** | [Chat format](https://huggingface.co/datasets/camel-ai/code/blob/main/code_chat.tar.gz) | [Instruction format](https://huggingface.co/datasets/camel-ai/code/blob/main/code_instructions.json) | x |
231-
| **Math** | [Chat format](https://huggingface.co/datasets/camel-ai/math) | x | x|
232-
| **Physics** | [Chat format](https://huggingface.co/datasets/camel-ai/physics) | x | x |
233-
| **Chemistry** | [Chat format](https://huggingface.co/datasets/camel-ai/chemistry) | x | x |
234-
| **Biology** | [Chat format](https://huggingface.co/datasets/camel-ai/biology) | x | x |
212+
| **Code** | [Chat format](https://huggingface.co/datasets/camel-ai/code/blob/main/code_chat.tar.gz) | [Instruction format](https://huggingface.co/datasets/camel-ai/code/blob/main/code_instructions.json) | x |
213+
| **Math** | [Chat format](https://huggingface.co/datasets/camel-ai/math) | x | x |
214+
| **Physics** | [Chat format](https://huggingface.co/datasets/camel-ai/physics) | x | x |
215+
| **Chemistry** | [Chat format](https://huggingface.co/datasets/camel-ai/chemistry) | x | x |
216+
| **Biology** | [Chat format](https://huggingface.co/datasets/camel-ai/biology) | x | x |
235217

236218
## Visualizations of Instructions and Tasks
237219

238-
| Dataset | Instructions | Tasks |
239-
| -- | -- | -- |
240-
| **AI Society** | [Instructions](https://atlas.nomic.ai/map/3a559a06-87d0-4476-a879-962656242452/db961915-b254-48e8-8e5c-917f827b74c6) | [Tasks](https://atlas.nomic.ai/map/cb96f41b-a6fd-4fe4-ac40-08e101714483/ae06156c-a572-46e9-8345-ebe18586d02b) |
241-
| **Code** | [Instructions](https://atlas.nomic.ai/map/902d6ccb-0bbb-4294-83a8-1c7d2dae03c8/ace2e146-e49f-41db-a1f4-25a2c4be2457) | [Tasks](https://atlas.nomic.ai/map/efc38617-9180-490a-8630-43a05b35d22d/2576addf-a133-45d5-89a9-6b067b6652dd) |
220+
| Dataset | Instructions | Tasks |
221+
|------------------|----------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------|
222+
| **AI Society** | [Instructions](https://atlas.nomic.ai/map/3a559a06-87d0-4476-a879-962656242452/db961915-b254-48e8-8e5c-917f827b74c6) | [Tasks](https://atlas.nomic.ai/map/cb96f41b-a6fd-4fe4-ac40-08e101714483/ae06156c-a572-46e9-8345-ebe18586d02b) |
223+
| **Code** | [Instructions](https://atlas.nomic.ai/map/902d6ccb-0bbb-4294-83a8-1c7d2dae03c8/ace2e146-e49f-41db-a1f4-25a2c4be2457) | [Tasks](https://atlas.nomic.ai/map/efc38617-9180-490a-8630-43a05b35d22d/2576addf-a133-45d5-89a9-6b067b6652dd) |
242224
| **Misalignment** | [Instructions](https://atlas.nomic.ai/map/5c491035-a26e-4a05-9593-82ffb2c3ab40/2bd98896-894e-4807-9ed8-a203ccb14d5e) | [Tasks](https://atlas.nomic.ai/map/abc357dd-9c04-4913-9541-63e259d7ac1f/825139a4-af66-427c-9d0e-f36b5492ab3f) |
243225

244226
## Implemented Research Ideas from Other Works
@@ -261,12 +243,10 @@ We implemented amazing research ideas from other works for you to build, compare
261243
## Acknowledgement
262244
Special thanks to [Nomic AI](https://home.nomic.ai/) for giving us extended access to their data set exploration tool (Atlas).
263245

264-
We would also like to thank Haya Hammoud for designing the logo of our project.
246+
We would also like to thank Haya Hammoud for designing the initial logo of our project.
265247

266248
## License
267249

268-
The intended purpose and licensing of CAMEL is solely for research use.
269-
270250
The source code is licensed under Apache 2.0.
271251

272252
The datasets are licensed under CC BY NC 4.0, which permits only non-commercial usage. It is advised that any models trained using the dataset should not be utilized for anything other than research purposes.
@@ -276,3 +256,29 @@ We appreciate your interest in contributing to our open-source initiative. We pr
276256

277257
## Contact
278258
For more information please contact [email protected].
259+
260+
[python-image]: https://img.shields.io/badge/Python-3.9%2B-brightgreen.svg
261+
[python-url]: https://docs.python.org/3.9/
262+
[pytest-image]: https://github.com/camel-ai/camel/actions/workflows/pytest_package.yml/badge.svg
263+
[pytest-url]: https://github.com/camel-ai/camel/actions/workflows/pytest_package.yml
264+
[docs-image]: https://img.shields.io/badge/Documentation-grey.svg?logo=github
265+
[docs-url]: https://camel-ai.github.io/camel/index.html
266+
[star-image]: https://img.shields.io/github/stars/camel-ai/camel?label=stars&logo=github&color=brightgreen
267+
[star-url]: https://github.com/camel-ai/camel/stargazers
268+
[package-license-image]: https://img.shields.io/badge/License-Apache_2.0-blue.svg
269+
[package-license-url]: https://github.com/camel-ai/camel/blob/master/licenses/LICENSE
270+
[data-license-image]: https://img.shields.io/badge/License-CC_BY--NC_4.0-lightgrey.svg
271+
[data-license-url]: https://github.com/camel-ai/camel/blob/master/licenses/DATA_LICENSE
272+
273+
[colab-url]: https://colab.research.google.com/drive/1AzP33O8rnMW__7ocWJhVBXjKziJXPtim?usp=sharing
274+
[colab-image]: https://colab.research.google.com/assets/colab-badge.svg
275+
[huggingface-url]: https://huggingface.co/camel-ai
276+
[huggingface-image]: https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-CAMEL--AI-ffc107?color=ffc107&logoColor=white
277+
[slack-url]: https://join.slack.com/t/camel-kwr1314/shared_invite/zt-1vy8u9lbo-ZQmhIAyWSEfSwLCl2r2eKA
278+
[slack-image]: https://img.shields.io/badge/Slack-CAMEL--AI-blueviolet?logo=slack
279+
[discord-url]: https://discord.gg/CNcNpquyDc
280+
[discord-image]: https://img.shields.io/badge/Discord-CAMEL--AI-7289da?logo=discord&logoColor=white&color=7289da
281+
[wechat-url]: https://ghli.org/camel/wechat.png
282+
[wechat-image]: https://img.shields.io/badge/WeChat-CamelAIOrg-brightgreen?logo=wechat&logoColor=white
283+
[twitter-url]: https://twitter.com/CamelAIOrg
284+
[twitter-image]: https://img.shields.io/twitter/follow/CamelAIOrg?style=social&color=brightgreen&logo=twitter

camel/agents/chat_agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class ChatAgent(BaseAgent):
8282
message_window_size (int, optional): The maximum number of previous
8383
messages to include in the context window. If `None`, no windowing
8484
is performed. (default: :obj:`None`)
85-
token_limit (int, optional): The maxinum number of tokens in a context.
85+
token_limit (int, optional): The maximum number of tokens in a context.
8686
The context will be automatically pruned to fulfill the limitation.
8787
If `None`, it will be set according to the backend model.
8888
(default: :obj:`None`)

camel/functions/search_functions.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def search_google(query: str) -> List[Dict[str, Any]]:
8383
as a whole',
8484
'url': 'https://www.openai.com'
8585
}
86-
title, descrption, url of a website.
86+
title, description, url of a website.
8787
"""
8888
import requests
8989

@@ -150,7 +150,7 @@ def text_extract_from_web(url: str) -> str:
150150
r"""Get the text information from given url.
151151
152152
Args:
153-
url (str): The web site you want to search.
153+
url (str): The website you want to search.
154154
155155
Returns:
156156
str: All texts extract from the web.
@@ -190,7 +190,7 @@ def create_chunks(text: str, n: int) -> List[str]:
190190
n (int): The max length of a single chunk.
191191
192192
Returns:
193-
List[str]: A list of splitted texts.
193+
List[str]: A list of split texts.
194194
"""
195195

196196
chunks = []
@@ -238,7 +238,7 @@ def summarize_text(text: str, query: str) -> str:
238238
given.
239239
240240
Args:
241-
text (str): Text to summarise.
241+
text (str): Text to summarize.
242242
query (str): What information you want.
243243
244244
Returns:

misc/framework.png

-141 KB
Loading

misc/logo.png

-152 KB
Binary file not shown.

test/functions/test_search_functions.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ def test_search_wiki_normal():
3232

3333

3434
def test_search_wiki_not_found():
35-
search_output = search_output = search_wiki(
36-
"South Africa Women Football Team")
35+
search_output = search_wiki("South Africa Women Football Team")
3736
assert search_output.startswith(
3837
"There is no page in Wikipedia corresponding to entity South Africa "
3938
"Women Football Team, please specify another word to describe the "

0 commit comments

Comments
 (0)