forest-of-thoughts


Nameforest-of-thoughts JSON
Version 0.0.2 PyPI version JSON
download
home_pagehttps://github.com/kyegomez/forest-of-thoughts
SummaryPaper - Pytorch
upload_time2024-02-04 04:50:35
maintainer
docs_urlNone
authorKye Gomez
requires_python>=3.6,<4.0
licenseMIT
keywords artificial intelligence deep learning optimizers prompt engineering
VCS
bugtrack_url
requirements swarms chromadb uuid
Travis-CI No Travis.
coveralls test coverage No coveralls.
            [![Multi-Modality](agorabanner.png)](https://discord.gg/qUtxnK2NMf)

# Forest of thoughts

## Install


## Usage
```python
import os
from swarms import OpenAIChat, Mixtral
from fot.main import ForestOfAgents
from dotenv import load_dotenv

# Load env
load_dotenv()

# OpenAI API key
api_key = os.getenv("OPENAI_API_KEY")

# create llm
openai = OpenAIChat(openai_api_base=api_key)
llm = Mixtral(max_new_tokens=3000, load_in_4bit=True)

# Create a forest of agents
forest = ForestOfAgents(
    openai, num_agents=5, max_loops=1, max_new_tokens=100
)

# Distribute tasks to the agents
forest.run("What is the meaning of life?")


```


# License
MIT


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/kyegomez/forest-of-thoughts",
    "name": "forest-of-thoughts",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6,<4.0",
    "maintainer_email": "",
    "keywords": "artificial intelligence,deep learning,optimizers,Prompt Engineering",
    "author": "Kye Gomez",
    "author_email": "kye@apac.ai",
    "download_url": "https://files.pythonhosted.org/packages/7f/d3/c6b22b234d4c06d226b0f374ecba0cf2c0418907cc8ca431a4d38a141006/forest_of_thoughts-0.0.2.tar.gz",
    "platform": null,
    "description": "[![Multi-Modality](agorabanner.png)](https://discord.gg/qUtxnK2NMf)\n\n# Forest of thoughts\n\n## Install\n\n\n## Usage\n```python\nimport os\nfrom swarms import OpenAIChat, Mixtral\nfrom fot.main import ForestOfAgents\nfrom dotenv import load_dotenv\n\n# Load env\nload_dotenv()\n\n# OpenAI API key\napi_key = os.getenv(\"OPENAI_API_KEY\")\n\n# create llm\nopenai = OpenAIChat(openai_api_base=api_key)\nllm = Mixtral(max_new_tokens=3000, load_in_4bit=True)\n\n# Create a forest of agents\nforest = ForestOfAgents(\n    openai, num_agents=5, max_loops=1, max_new_tokens=100\n)\n\n# Distribute tasks to the agents\nforest.run(\"What is the meaning of life?\")\n\n\n```\n\n\n# License\nMIT\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Paper - Pytorch",
    "version": "0.0.2",
    "project_urls": {
        "Homepage": "https://github.com/kyegomez/forest-of-thoughts",
        "Repository": "https://github.com/kyegomez/forest-of-thoughts"
    },
    "split_keywords": [
        "artificial intelligence",
        "deep learning",
        "optimizers",
        "prompt engineering"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d358f2a21bddc01daaf4735c4ce90cdf4585c90a62abf6446339871082a6b027",
                "md5": "98b26eb04ed9c644c6c408c9db1315c8",
                "sha256": "4b92c36484e68f400db97d1b3735fcf3b2ca0b8bfffbbce0ab3c0a1268000480"
            },
            "downloads": -1,
            "filename": "forest_of_thoughts-0.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "98b26eb04ed9c644c6c408c9db1315c8",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6,<4.0",
            "size": 5060,
            "upload_time": "2024-02-04T04:50:33",
            "upload_time_iso_8601": "2024-02-04T04:50:33.848331Z",
            "url": "https://files.pythonhosted.org/packages/d3/58/f2a21bddc01daaf4735c4ce90cdf4585c90a62abf6446339871082a6b027/forest_of_thoughts-0.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7fd3c6b22b234d4c06d226b0f374ecba0cf2c0418907cc8ca431a4d38a141006",
                "md5": "615e26e7ecffc760916c5f72590473a8",
                "sha256": "c4fd35220fe3fe017c3b5ebd754bf4eca8d6119021c67af5f642658d227e3282"
            },
            "downloads": -1,
            "filename": "forest_of_thoughts-0.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "615e26e7ecffc760916c5f72590473a8",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6,<4.0",
            "size": 5083,
            "upload_time": "2024-02-04T04:50:35",
            "upload_time_iso_8601": "2024-02-04T04:50:35.658872Z",
            "url": "https://files.pythonhosted.org/packages/7f/d3/c6b22b234d4c06d226b0f374ecba0cf2c0418907cc8ca431a4d38a141006/forest_of_thoughts-0.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-04 04:50:35",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "kyegomez",
    "github_project": "forest-of-thoughts",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "swarms",
            "specs": []
        },
        {
            "name": "chromadb",
            "specs": []
        },
        {
            "name": "uuid",
            "specs": []
        }
    ],
    "lcname": "forest-of-thoughts"
}
        
Elapsed time: 0.26008s