Skip to content

Reason-Wang/AutoLearn-GPT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AutoLearn-GPT: GPT learns to improve itself

Stargazers repo roster for @Reason-Wang/AutoLearn-GPT

[EN | 简中]

😕What is AutoLearn-GPT

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.

🧰How to use

  • 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

demo.mp4

📖How it works

  1. Ask a question to the model, and the model tries to answer the question using information from its memory
  2. If the answer might be incorrect, search the internet to collect information
  3. The model filters unrelated information, and try to generate an answer from filtered information
  4. The model compare the new answer with its original answer. if the original is correct, the model memorizes the new answer

how_it_works