ppicello / llamaindex-mongodb-GPT4All

Leverage GPT4All to ask questions about your MongoDB data
3 stars 0 forks source link

documents returning as an empty array. #1

Open wolfassi123 opened 1 year ago

wolfassi123 commented 1 year ago

I have been using the exact same code that you have used, but after applying "reader.load_data" I am always getting nothing back. I realised the collection name changed but the problem is that sometimes I am passing the field_name as it yet returning nothing as it is not being detected. Any idea why?

ppicello commented 1 year ago

Hi, the code is assuming you have a mdb collection called movies_short part of the sample_mflix collection (this one is a smaller version I used for playing with this). If you want to use the standard dataset part of Atlas you should change it to movies. Probably this is the cause. Let me know if this works