yoheinakajima / babyagi

MIT License
19.66k stars 2.57k forks source link

Fixing a constant assignment `result_id = result_1`, which causes the vector database/memory to store only a single vector. Closes #308 #309

Open peterbanda opened 1 year ago

peterbanda commented 1 year ago

Note that this is a critical error. As specified in #308 :

Result id is defined by the following line:

result_id = f"result_{task['task_id']}"

But the top task with the id 1 (after renumbering) is always taken hence result_id = result_1 in every single iteration, which results in updating/replacing of a single vector in Pinecone/Chroma.