Open Marcus-M1999 opened 3 months ago
Hi @Marcus-M1999, this might be caused by the fact that the prompt has been optimized for GPT3.5 and google models. Every LLM might need some variation to perform at its best. We are working on different prompts based on the LLM (at least for the most common ones).
Thanks for the quick response! @gventuri
@gventuri are these the prompt templates that have been optimized for GPT3.5 and Google models?
@Marcus-M1999 yes, that's correct!
Could you clarify a bit that how could we avoid this error? Do we need to optimize our prompt? Thanks!
System Info
PandasAI version = "1.5.15" Python version = 3.9.0 langchain version = 0.1.9
🐛 Describe the bug
When testing the PandasAI_agent method from the pandasai library I will get the following error with select questions: 'Unfortunately, I was not able to answer your question, because of the following error:\n\nNo result returned\n'. This happens with all models that aren't GPT-4. (StarcoderPlus, Code Llama, Mitral 8x7b, etc.) Without the Pandas AI framework the models are able to generate code by having the DF passed into the prompt.
code:
Output: Unfortunately, I was not able to answer your question, because of the following error:\n\nNo result returned\n