yoheinakajima / babyagi

https://babyagi.org/
20.12k stars 2.63k forks source link

Wrong `result_id` type in `{Default,Pinecone}ResultsStorage.add` function #267

Closed peterbanda closed 1 year ago

peterbanda commented 1 year ago

Related to #266, result_id in add function of PineconeResultsStorage as well as DefaultResultsStorage has a wrong type:

  def add(self, task: Dict, result: Dict, result_id: int, vector: List):

Instead of int it should be str since it always looks like result_<number>.

peterbanda commented 1 year ago

The problem still exists. Creating a new PR to fix it in PineconeResultsStorage