This is an experimental project to explore whether ChatGPT model can learn by itself. Currently we equip the model with a memory brain to store everything that ChatGPT may not know. When using the model to finish tasks, it first recall (retrieve) relevant knowledge and use that as supplementary materials.
-
We tested the project with python 3.8. Install all the required packages with
pip install -r requirements.txt
-
Copy
.env.template
to.env
-
Get your openai api key, pinecone api key, google api key and google search engine id and set them in .env (If you don't know how to get these id and keys, you can refer to Auto-GPT documentation here)
-
Start running with
python main.py
demo.mp4
- Ask a question to the model, and the model tries to answer the question using information from its memory
- If the answer might be incorrect, search the internet to collect information
- The model filters unrelated information, and try to generate an answer from filtered information
- The model compare the new answer with its original answer. if the original is correct, the model memorizes the new answer