yvann-ba / Robby-chatbot

AI chatbot 🤖 for chat with CSV, PDF, TXT files 📄 and YTB videos 🎥 | using Langchain🦜 | OpenAI | Streamlit ⚡

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Data upload

carterrees-entrata opened this issue · comments

Great project. However, I can't get the data uploader to work properly. No matter the size of the csv, if I ask for the row count it always returns 4.

For example, I uploaded the mtcars.csv file from here. The bot says it has 4 rows. So I then asked it what the average value of the cycl variable was and the answer was 5.5. When I followed up with a request to tell me how it calculated that, the bot told me that it summed 4, 6, 4, and 8 and then divided by 4.
Screenshot 2023-04-25 at 4 57 11 PM

Not sure how to go about correcting this. My file I'd like to use is only 13.2mb.

commented

Yes, this problem has already been reported to me, that's why I added csv agent but it's true that it's not explained on the chatbot. Basically the main chatbot is designed to answer questions based on the content of the csv to answer questions from the user like: how much money did this company make during the month of may? it's mostly to test the use case of a chatbot for a company on its financial reports for example, the chatbot outputs the answer according to the indexes that best fit the question. for questions on the csv that requires calculations or questions on many data table it should use the button csv agent present on chatbot csv, it has quite a lot of default but it can run python on the csv file to make calculations, count the number of occurrences ...