Comments (6)
Guess you should add a vectorstore in agent, like this:
self.smart_df=Agent(connector, config={"llm": self.pandasai,"open_charts":False,
"save_charts_path":self.temp_folder_pics,
"save_charts":True,"enable_cache": False,
"verbose":True},memory_size=3, vectorstore=BambooVectorStore(api_key="xxx")
)
from pandas-ai.
Hi @epicvhbennetts, can you please be more specific about which example are you trying? If you can provide more information about the same, it would be great. It would help us understand your query and replicate the issue.
Thanks,
Sparsh
from pandas-ai.
Hi dudesparsh.
thanks for replying to my question. Sure, what additional information can I provide you?. Here are a couple of things that could be useful.
I am not doing anything different than what is shown in the documentation. Here is a snippet of my code where I create the agent and add a line to "train"
connector = PandasConnector(PandasConnectorConfig(original_df=self.data_numerical), field_descriptions=ids.FIELD_DESCRIPTIONS)
self.smart_df=Agent(connector, config={"llm": self.pandasai,"open_charts":False,
"save_charts_path":self.temp_folder_pics,
"save_charts":True,"enable_cache": False,
"verbose":True},memory_size=3
)
self.smart_df.train(docs="The fiscal year starts in April")
Just when the train instruction is being executed, the code crashes with the error message I showed you before
Let me know if you need some additional info
Thanks in advance
from pandas-ai.
@gDanzel thanks for that, I also believe that should work.
@gventuri , Many individuals seem to encounter similar challenges, likely due to a lack of familiarity with configuring PandasAI, especially among agents. Could we consider incorporating a dedicated section addressing configurations in our documentation or enhancing the existing documentation?
from pandas-ai.
@epicvhbennetts as @gDanzel you can fix it by passing the vector store or by setting the env variable.
@dudesparsh great point, added a troubleshooting section in the docs: https://docs.pandas-ai.com/en/latest/train/#train-with-your-own-settings
from pandas-ai.
It works when I set a dummy pandas ai api key. But this should not be necessary. This line solves the problem, although I just use "YOUR_PANDASAIAPI_KEY":
os.environ["PANDASAI_API_KEY"] = "YOUR_PANDASAIAPI_KEY"
from pandas-ai.
Related Issues (20)
- PANDAS API KEY needed (and used!!!) if agent.train is utilized HOT 3
- LLM not following description in config HOT 3
- Unable to run locally to contribute HOT 5
- Encountered Bug After Using PandasAI (Agent) Inside My App and Standalone with PyInstaller
- Response explanation not working
- 'No code found in the response' error - retry code gen with chatgpt
- ollama fails: cannot access local variable 'code_to_run' where it is not associated with a value HOT 1
- Passwords canβt support special characters HOT 1
- pip install pandasai[connectors] - no matches found
- Add support for processing and analyzing complex table headers
- SSL in MySQLConnector HOT 1
- Can pandasAI be used in pyscript? HOT 1
- Provide custom chart name to save in charts_directory while chatting with the PandasAI
- The graph getting generated in Jupyter is fine, but the image getting saved as a .png file is getting distorted where portions of the image from the left & right are not present and a distorted image is getting saved HOT 1
- JSON error on any prompt passed. Expecting value: line 1 column 1 (char 0). Set up using Ollama (llama3) on local with LangChain.
- enforce_privacy dose not work? HOT 1
- Clarification question and explain to support replying in the same language as query.
- Custom head not working HOT 1
- Gradio support
- Column MultiIndex support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pandas-ai.