Swarms - TGSC
$git clone https://github.com/kyegomez/swarmsInstalls into the current project.
Install swarms by running `git clone https://github.com/kyegomez/swarms`, then use it for the current task and follow its documentation at https://github.com/kyegomez/swarms.
| 1 | # Agora |
| 2 | |
| 3 |  |
| 4 | |
| 5 | [Swarms is brought to you by Agora, the open source AI research organization. Join Agora and Help create swarms and or recieve support to advance Humanity. ](https://discord.gg/qUtxnK2NMf) |
| 6 | |
| 7 | # Swarming Language Models (Swarms) |
| 8 | |
| 9 |  |
| 10 | |
| 11 | [](https://twitter.com/intent/tweet?text=Check%20out%20this%20amazing%20AI%20project:%20&url=https%3A%2F%2Fgithub.com%2Fkyegomez%2Fswarms) |
| 12 | |
| 13 | [](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fgithub.com%2Fkyegomez%2Fswarms) |
| 14 | |
| 15 | [](https://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Fgithub.com%2Fkyegomez%2Fswarms&title=&summary=&source=) |
| 16 | |
| 17 | |
| 18 | Welcome to Swarms - the future of AI, where we leverage the power of autonomous agents to create 'swarms' of Language Models (LLM) that work together, creating a dynamic and interactive AI system. |
| 19 | |
| 20 | ## Vision |
| 21 | In the world of AI and machine learning, individual models have made significant strides in understanding and generating human-like text. |
| 22 | |
| 23 | But imagine the possibilities when these models are no longer solitary units, but part of a cooperative and communicative swarm. This is the future we envision. |
| 24 | |
| 25 | Just as a swarm of bees works together, communicating and coordinating their actions for the betterment of the hive, swarming LLM agents can work together to create richer, more nuanced outputs. |
| 26 | |
| 27 | By harnessing the strengths of individual agents and combining them through a swarming architecture, we can unlock a new level of performance and responsiveness in AI systems. We envision swarms of LLM agents revolutionizing fields like customer support, content creation, research, and much more. |
| 28 | |
| 29 | |
| 30 | ## Table of Contents |
| 31 | 1. [Installation](#installation) |
| 32 | 2. [Sharing](#sharing) |
| 33 | |
| 34 | ## Installation |
| 35 | There are 2 methods, one is through `git clone` and the other is by `pip install swarms`. Check out the [document](/DOCUMENTATION.md) for more information on the classes. |
| 36 | |
| 37 | # Method1 |
| 38 | * Pip install `python3 -m pip install swarms` |
| 39 | |
| 40 | * Create new python file and unleash superintelligence |
| 41 | |
| 42 | ```python |
| 43 | |
| 44 | from swarms import Swarms |
| 45 | |
| 46 | # Retrieve your API key from the environment or replace with your actual key |
| 47 | api_key = "sksdsds" |
| 48 | |
| 49 | # Initialize Swarms with your API key |
| 50 | swarm = Swarms(openai_api_key=api_key) |
| 51 | |
| 52 | # Define an objective |
| 53 | objective = """ |
| 54 | Please develop and serve a simple community web service. |
| 55 | People can signup, login, post, comment. |
| 56 | Post and comment should be visible at once. |
| 57 | I want it to have neumorphism-style. |
| 58 | The ports you can use are 4500 and 6500. |
| 59 | """ |
| 60 | |
| 61 | # Run Swarms |
| 62 | swarm.run_swarms(objective) |
| 63 | ``` |
| 64 | |
| 65 | # Method2 |
| 66 | Download via Github, and install requirements |
| 67 | ```bash |
| 68 | git clone https://github.com/kyegomez/swarms.git |
| 69 | cd swarms |
| 70 | pip install -r requirements.txt |
| 71 | ``` |
| 72 | |
| 73 | # Method 3 |
| 74 | Simple example by: |
| 75 | |
| 76 | * `git cloning https://github.com/kyegomez/swarms.git` |
| 77 | |
| 78 | * `cd swarms` |
| 79 | |
| 80 | * `python3 -m pip install -r requirements.txt` |
| 81 | |
| 82 | * `python3 example.py` |
| 83 | |
| 84 | * or create a new file: |
| 85 | |
| 86 | ```python |
| 87 | from swarms.swarms import Swarms |
| 88 | |
| 89 | # Retrieve your API key from the environment or replace with your actual key |
| 90 | api_key = "sksdsds" |
| 91 | |
| 92 | # Initialize Swarms with your API key |
| 93 | swarm = Swarms(openai_api_key=api_key) |
| 94 | |
| 95 | # Define an objective |
| 96 | objective = """ |
| 97 | Please develop and serve a simple community web service. |
| 98 | People can signup, login, post, comment. |
| 99 | Post and comment should be visible at once. |
| 100 | I want it to have neumorphism-style. |
| 101 | The ports you can use are 4500 and 6500. |
| 102 | """ |
| 103 | |
| 104 | # Run Swarms |
| 105 | swarm.run_swarms(objective) |
| 106 | ``` |
| 107 | |
| 108 | This will create and execute a task to write a summary about the latest news on quantum computing. The result will be the summary of the news. |
| 109 | |
| 110 | |
| 111 | ## Share with your Friends |
| 112 | |
| 113 | Share on Twitter: [![Share on Twitter](https://img.shields |