Skip to content

Commit

Permalink
Merge pull request #15 from Sunwood-ai-labs/translate-readme-11323668838
Browse files Browse the repository at this point in the history
📖 [docs] 英語READMEの自動更新
  • Loading branch information
iris-s-coon authored Oct 14, 2024
2 parents f5caa95 + fb8f05d commit d93dd3f
Showing 1 changed file with 46 additions and 56 deletions.
102 changes: 46 additions & 56 deletions docs/README.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,48 +3,38 @@
<h1 align="center">🌟 swarm-sample-box 🌟</h1>
</p>

<p align="center">
<a href="https://github.com/Sunwood-ai-labs/swarm-sample-box">
<img alt="GitHub Repo" src="https://img.shields.io/badge/github-swarm__sample__box-blue?logo=github">
</a>
<a href="https://github.com/Sunwood-ai-labs/swarm-sample-box/blob/main/LICENSE">
<img alt="License" src="https://img.shields.io/github/license/Sunwood-ai-labs/swarm-sample-box?color=green">
</a>
<a href="https://github.com/Sunwood-ai-labs/swarm-sample-box/releases">
<img alt="GitHub release" src="https://img.shields.io/github/v/release/Sunwood-ai-labs/swarm-sample-box?include_prereleases&style=flat-square">
</a>
<a href="https://github.com/Sunwood-ai-labs/swarm/pulls">
<img alt="PRs Welcome" src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square">
</a>
</p>


[![GitHub Repo](https://img.shields.io/badge/github-swarm__sample__box-blue?logo=github)](https://github.com/Sunwood-ai-labs/swarm-sample-box)
[![License](https://img.shields.io/github/license/Sunwood-ai-labs/swarm-sample-box?color=green)](https://github.com/Sunwood-ai-labs/swarm-sample-box/blob/main/LICENSE)
[![GitHub stars](https://img.shields.io/github/stars/Sunwood-ai-labs/swarm-sample-box?style=social)](https://github.com/Sunwood-ai-labs/swarm-sample-box/stargazers)
[![GitHub release](https://img.shields.io/github/v/release/Sunwood-ai-labs/swarm-sample-box?include_prereleases&style=flat-square)](https://github.com/Sunwood-ai-labs/swarm-sample-box/releases)
... (Other badges are similarly linked and self-explanatory)


<h2 align="center">
~ Experimental Playground for AI Agent Orchestration ~

<a href="https://github.com/Sunwood-ai-labs/swarm-sample-box/blob/main/README.md"><img src="https://img.shields.io/badge/ドキュメント-日本語-white.svg" alt="JA doc"/></a>
<a href="https://github.com/Sunwood-ai-labs/swarm-sample-box/blob/main/docs/README.en.md"><img src="https://img.shields.io/badge/english-document-white.svg" alt="EN doc"></a>
[![JA doc](https://img.shields.io/badge/ドキュメント-日本語-white.svg)](https://github.com/Sunwood-ai-labs/swarm-sample-box/blob/main/README.md)
[![EN doc](https://img.shields.io/badge/english-document-white.svg)](https://github.com/Sunwood-ai-labs/swarm-sample-box/blob/main/docs/README.en.md)
</h2>

> [!IMPORTANT]
> swarm-sample-box is a template repository developed using [cline (formerly Claude Dev)](https://github.com/clinebot/cline), [SourceSage](https://github.com/Sunwood-ai-labs/SourceSage), and [claude.ai](https://claude.ai/). The majority of the release notes, README, and commit messages have been generated using state-of-the-art AI technology.
> swarm-sample-box is a template repository developed using [cline (formerly Claude Dev)](https://github.com/clinebot/cline), [SourceSage](https://github.com/Sunwood-ai-labs/SourceSage), and [claude.ai](https://claude.ai/). Most of the release notes, README, and commit messages are generated using the latest AI technologies.

## 🚀 Project Overview

Swarm Sample Box is an AI agent experimentation repository utilizing [Swarm, an experimental multi-agent orchestration framework developed by OpenAI](https://github.com/openai/swarm). This repository provides a lightweight and flexible solution for efficiently coordinating multiple AI agents to perform complex tasks, supporting developers' research and experimentation. Version: v1.5.0
Swarm Sample Box is an AI agent experimental repository that utilizes [Swarm, an experimental multi-agent orchestration framework developed by OpenAI](https://github.com/openai/swarm). This repository provides a lightweight and flexible solution for efficiently coordinating multiple AI agents to perform complex tasks, supporting developers' research and experimentation. Version: v1.3.1

## ✨ Main Features

- Diverse Agent Samples: Provides implementation examples of various AI agents, from basic conversations to complex task processing.
- Flexible Customization: Each sample can be easily extended and modified to adapt to your own use cases.
- Integrated Experimental Environment: Offers a practical experimental environment, including Docker environment and integration with a vector database (Qdrant).
- Automatic Evaluation Function: Some samples include automatic evaluation scripts to measure agent performance.
- Gemini Pro 002 model support
1. **Diverse Agent Samples**: Provides implementation examples of various AI agents, ranging from basic dialogue to complex task processing.
2. **Flexible Customization**: Each sample can be easily extended and modified, adaptable to your own use cases.
3. **Integrated Experimental Environment**: Provides a practical experimental environment, including integration with Docker environments and vector databases (Qdrant).
4. **Automatic Evaluation Function**: Some samples include automatic evaluation scripts, allowing for agent performance measurement.
5. 🎉 **Sample Question Display Function**: Added a function to display sample questions to the user.


## 🔧 Usage
## 🔧 Setup and Usage

1. Clone the repository:
```bash
Expand All @@ -64,66 +54,66 @@ Swarm Sample Box is an AI agent experimentation repository utilizing [Swarm, an
pip install -r requirements.txt
```

4. Set your OpenAI API key:
4. Set the OpenAI API key:
```bash
export OPENAI_API_KEY="your-api-key"
```

5. Run a specific sample:
```bash
cd examples/<sample-name>
cd examples/<sample name>
python main.py
```

## 📚 Sample List

## 📦 Installation Instructions
### Official Samples (Translated to Japanese)

The `swarm` package needs to be installed from the GitHub repository, not PyPI, as specified in `requirements.txt`. Therefore, please install it using pip as follows:
The following samples are Japanese translations of the samples listed in the [official OpenAI Swarm repository](https://github.com/openai/swarm/tree/main/examples), modified to be operational:

```bash
pip install -r requirements.txt
# or
pip install git+https://github.com/openai/swarm.git
```
- [Basic](https://github.com/Sunwood-ai-labs/swarm-sample-box/tree/main/examples/basic): A minimal implementation example introducing the basic functions of Swarm.
- [Airline](https://github.com/Sunwood-ai-labs/swarm-sample-box/tree/main/examples/airline): A multi-agent setup simulating an airline's customer service.
- [Personal Shopper](https://github.com/Sunwood-ai-labs/swarm-sample-box/tree/main/examples/personal_shopper): An implementation example of a personal shopping assistant agent.
- [Support Bot](https://github.com/Sunwood-ai-labs/swarm-sample-box/tree/main/examples/support_bot): An implementation example of a customer support bot, including a document search function using Qdrant.
- [Triage Agent](https://github.com/Sunwood-ai-labs/swarm-sample-box/tree/main/examples/triage_agent): An implementation example of a triage agent that directs user requests to the appropriate agent.
- [Weather Agent](https://github.com/Sunwood-ai-labs/swarm-sample-box/tree/main/examples/weather_agent): A simple implementation example of an agent that retrieves weather information and performs related tasks. (🔥Under Development)
- [Customer Service Streaming](https://github.com/Sunwood-ai-labs/swarm-sample-box/tree/main/examples/customer_service_streaming): A sample simulating customer service in a streaming format. (🔥Under Development)

## 🆕 What's New

- The README for the Triage Agent sample has been significantly improved, adding a workflow diagram, setup instructions, evaluation tests, file structure, contribution guidelines, and license information.
- Added Gemini Pro 002 model support to the Triage Agent sample.
### Original Samples

This section will introduce originally developed samples. Currently under preparation, so please wait for future updates.

## 📚 Sample List
- [In preparation] New original sample 1: Details coming soon
- [In preparation] New original sample 2: Details coming soon

### Official Samples (Translated to Japanese)
## 🧪 Evaluation Method

- Basic: A minimal implementation example showcasing basic Swarm functionality.
- Airline: A multi-agent setup simulating an airline's customer service.
- Personal Shopper: An implementation example of a personal shopping assistant agent.
- Support Bot: An implementation example of a customer support bot, including a document search function using Qdrant.
- Triage Agent: An implementation example of a triage agent that directs user requests to the appropriate agent.
- Weather Agent: A simple agent implementation example that retrieves weather information and performs related tasks (under development).
- Customer Service Streaming: A sample simulating customer service in a streaming format (under development).
Some samples include automatic evaluation scripts. To run the evaluation, execute the following command in the sample directory:

### Original Samples
```bash
pytest evals.py
```

This section will introduce original samples that we have developed. Currently under preparation, so please wait for future updates.
## 📦 Upgrade Procedure

- [In preparation] New Original Sample 1: Details coming soon.
- [In preparation] New Original Sample 2: Details coming soon.
1. Clone or pull the latest version of the repository.
2. Update dependencies with `make install`.
3. Restart the Docker container with `docker-compose up -d`. (For Support Bot, also run `make prep`)
4. Run the data preparation script with `make prep` in the relevant sample.
5. Run the application with `make run`.


## 🤝 Contribution

Swarm Sample Box welcomes contributions from the community as an open-source project. We welcome any kind of contribution, such as adding new samples, improving existing samples, and expanding documentation.

Swarm Sample Box welcomes contributions from the community as an open-source project. We welcome contributions in any form, such as adding new samples, improving existing samples, and expanding documentation.

## 📄 License

Swarm Sample Box is released under the [MIT License](LICENSE).
Swarm Sample Box is published under the [MIT License](LICENSE).

## 🙏 Acknowledgements

This project is based on the Swarm framework developed by OpenAI. We express our sincere gratitude to the Swarm developers. Contributors to this release: Maki, iris-s-coon
This project is based on the Swarm framework developed by OpenAI. We express our sincere gratitude to the developers of Swarm. Contributors to this release: Maki, iris-s-coon


---
Expand Down

0 comments on commit d93dd3f

Please sign in to comment.