https://github.com/yearn/ygenius-brain
https://github.com/yearn/ygenius-brain
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/yearn/ygenius-brain
- Owner: yearn
- License: cc0-1.0
- Created: 2023-02-06T00:23:52.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-05-05T13:28:21.000Z (over 3 years ago)
- Last Synced: 2025-03-20T19:07:23.112Z (over 1 year ago)
- Language: Python
- Homepage: https://ygenius.yearn.farm
- Size: 37.4 MB
- Stars: 17
- Watchers: 2
- Forks: 12
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# yGenius Brain
[](https://creativecommons.org/publicdomain/zero/1.0/)
What is this: https://medium.com/@marcoworms/ygenius-chat-with-yearn-efa17d3f0ec8
Frontend Source: https://github.com/yearn/ygenius-webui

## Configuration
- copy `.env.sample` to `.env` and set environment variables (only `OPENAI_API_KEY` is mandatory)
- copy `index.json` model file to the current dir or generate a new one
## Run
Install docker and docker-compose and run:
`docker-compose up -d`
## Development
Whenever making changes to the code base, you need to rebuild a new docker image:
`docker-compose build`
## Usage
`curl "http://localhost:5001/ask?history=&query=what%20is%20yearn%20%3F"`
Output:
```
Yearn is a decentralized finance (DeFi) platform that provides users with access
to a range of financial services, including yield farming, liquidity pools, and
automated portfolio management. Yearn is built on the Ethereum blockchain and is
designed to make it easier for users to maximize their returns on their investments.
```