Open sankethgadadinni opened 1 year ago
Hi,
Thanks for your interest in the repo.
What kind of files are you expecting? Currently it can optionally take "chat" (via "load" option in config) like the ones in the examples folder that saved from previous conversations. If your files can be converted to python string, then you can essentially make a new chat (following the structure of the given example) that inputs your file content as if they are the user query. I can make some examples later.
Hi @jiadingfang, I was more thinking of CSV files. Currently I'm working on something which involves uploading a csv and querying. If the query requires running some code to answer its well and good but I also need it to just to give reasoning when its not required to run code.
Adding file support like csv and have python automatically loading them can indeed be a handy functionality. I'll add it to my TODOs, although I don't have too much bandwidth at the moment. Thanks for the suggestion.
In terms of opting in/out of code reasoning, the code generation is not forced, it is entirely up to the language model to decide if it needs to generate code to fulfill some goals. For example, I specifically prompt it to generate code whenever there is numerical evaluation involved because LLMs are known to be not good at arithmetic. But if your use case does not involve such cases, then it should look just like a normal ChatGPT.
@jiadingfang okay thanks, looking forward for that feature.
Can you make modifications so, it accepts file?