Main UI doesn't see the full CSV file
chazhenry opened this issue · 4 comments
What is the difference in logic between the main chat textbox and agent processing? I loaded a ten line csv. When I ask both, the main box says the file has four rows. The agent (correctly) says ten. The main UI text box gets every query wrong. Why does it not see the full file contents?
Hey, just look at the read-me, good day
Thanks. Still studying the code and saw the readme - just can't see where that limitation is coded. I see that create_csv_agent has a max of 4 iterations, but I don't see where the main chat limits itself to four rows. Seems that given any real world csv file, the general chat has no value and that only the agent would provide any insights into the data.
here how to retrieve 15 rows instead of 4:
retriever = self.vectors.as_retriever()
retriever.search_kwargs = {'k':15}