yoheinakajima / babyagi

MIT License
19.94k stars 2.61k forks source link

add memory #143

Open seshubonam opened 1 year ago

seshubonam commented 1 year ago

can a layer of teenage-agi implementation be added to baby-agi for storing queries and responses, to fetch more relevant answers?

https://github.com/seanpixel/Teenage-AGI

How Teenage-agi Works

Here is what happens everytime the AI is queried by the user:

AI vectorizes the query and stores it in a Pinecone Vector Database

AI looks inside its memory and finds memories and past queries that are relevant to the current query

AI thinks about what action to take

AI stores the thought from Step 3

Based on the thought from Step 3 and relevant memories from Step 2, AI generates an output

AI stores the current query and its answer in its Pinecone vector database memory