Find answers from the community

Updated 2 years ago

Hi Logan I have a following question

Hi Logan. I have a following question that I hope you could take a look. I iterated each review, which are string, and created document object. I then tried to load them into GPTListIndex but it returns the error.
Attachments
image.png
image.png
L
C
2 comments
Maybe one of the rows in your df was a float instead of a string?

Try casting to a string review_list.append(str(review))

You might also want to filter out any reviews that are causing problems (or at least print the list of reviews to confirm you are grabbing the right thing)
Thank you so much!
Add a reply
Sign up and join the conversation on Discord