Open fletchsims opened 4 months ago
Same experience here. Not sure if pandasai is creating a fresh thread every time a new chat request is made on the agent.
Agree - simple followup questions to assess the memory are not answered correctly. For example, what is the mean BMI, then followed up by return twice the prior value doesn't make sense, nor does the generated explanation.
System Info
Python version: 3.11 PandasAI: 2.0.40 OS: macOS Ventura 13.6.4
🐛 Describe the bug
I'm using the following code from the documentation found on the official docs about using the Agent. I've modified it slightly by changing "deals_opened" value for France from 70 to 180 and modifying the queries slightly:
Input:
Expected Output:
Actual Output:
From what I understand about the Agent, is that additional queries after the first one should be "follow-up" queries if they're found to be relevant by the LLM. What is happening is that it is defaulting the original data and performing the search that way, not the new subset of data from the first query.