You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When the option chart and redraw_chart are set to false, the function generate_plotly_code of the model is still executed. If the dataset is big, the execution takes a lot of time, so it can be very problematic for users who do not need this step.
Execute this code to run the app, then ask a question in the app. No graph is generated:
But this appears in the logs:
Your app is running at:
http://localhost:8084
* Serving Flask app 'vanna.flask'
* Debug mode: off
import plotly.express as px
if len(df) == 1:
fig = px.indicators.generic.Indicator(
value=df['TotalSales'][0],
title=df['Name'][0]
)
else:
fig = px.bar(df, x='Name', y='TotalSales', title='Top 10 Artists by Sales')
Expected Behavior
The function should not be executed. It comes as an important problem when the dataset is large or the LLM access is limited, because the function sends all the dataset to the LLM.
Desktop
OS: [Ubuntu]
Version: [22.04]
Python: [3.10]
Vanna: [0.3.3]
The text was updated successfully, but these errors were encountered:
Describe the bug
When the option chart and redraw_chart are set to false, the function
generate_plotly_code
of the model is still executed. If the dataset is big, the execution takes a lot of time, so it can be very problematic for users who do not need this step.To Reproduce
Execute this code to run the app, then ask a question in the app. No graph is generated:
But this appears in the logs:
Expected Behavior
The function should not be executed. It comes as an important problem when the dataset is large or the LLM access is limited, because the function sends all the dataset to the LLM.
Desktop
The text was updated successfully, but these errors were encountered: