Goal: Create an agent capable of generating and executing code. Also, store generations in a vector db and retrieve when appropraite.
Stretch: Have agent generate code to web scrape
Inspiration: Voyager
- Expand support to non built-in libraries
- Store results in vectordb - probably chroma
- Fetch results from vectordb
- Improve script interaction - maybe an indefinite while loop?
- Determine best embedding method
- Determine best code generation model
- Determine best vector distance and optimal max distance for retrieved code
- Install requirements by running
pip install requirements.txt
- Create a .env file and provide the OPENAI_API_KEY
- Setup Chroma with
git clone [email protected]:chroma-core/chroma.git
- Build and start Chroma directory with
docker compose --project-directory chroma/ up -d --build
- Describe the code you want to generate using the
task
variable - Run main.py