Metadata-Version: 2.1
Name: hayloft
Version: 0.3.1
Summary: UI tool for LLM frameworks
Home-page: https://github.com/eturchenkov/hayloft
License: MIT
Keywords: llm framework,llm app tracking,ui for llm app
Requires-Python: >=3.8,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: bottle (>=0.12.25,<0.13.0)
Requires-Dist: bottle-cors-plugin (>=0.1.9,<0.2.0)
Requires-Dist: gevent (>=22.10.2,<23.0.0)
Requires-Dist: nanoid (>=2.0.0,<3.0.0)
Requires-Dist: peewee (>=3.16.2,<4.0.0)
Requires-Dist: requests (>=2.31.0,<3.0.0)
Project-URL: Repository, https://github.com/eturchenkov/hayloft
Description-Content-Type: text/markdown

# Hayloft

UI tool for LLM frameworks to make easy prompt/completion tracking, store and comparison of different sessions.

Install package with pip

```
pip install hayloft
```
### Usage for BabyAGI

https://github.com/eturchenkov/hayloft/assets/49445761/bdbd11c2-ff94-4ab0-b664-bba0cf3d2b7b

Clone BabyAGI fork repo, setup virtual env and install all dependencies.

```
git clone git@github.com:eturchenkov/babyagi-hayloft.git
cd babyagi-hayloft
python -m venv .
source ./bin/activate
pip install -r requirements.txt
```

Adjust config in .env file. 

Start hayloft server.

```
hayloft start
```

Go to browser and open [http://localhost:7000](http://localhost:7000). Start babyagi.py script.

```
python babyagi.py
```

Go to back to browser and select first session from session list that is stream session of current BabyAGI execution. All sessions will be stored and you can explore them at any time.

