-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pandas Agent unable to use the trained data. #1428
Comments
To address the issue of PandasAI not using the trained data, consider the following steps:
If these steps do not resolve the issue, there might be specific conditions or configurations in the codebase that determine when trained data is bypassed, which are not explicitly documented. |
Instantiate the vector store with the API keysvector_store = BambooVectorStor(api_key="YOUR_PANDASAI_API_KEY") Instantiate the agent with the custom vector storeagent = Agent(connector, config={...} vectorstore=vector_store) is this correct @dosu |
The instantiation looks mostly correct, but ensure the following:
Here's a corrected version: # Instantiate the vector store with the API key
vector_store = BambooVectorStore(api_key="YOUR_PANDASAI_API_KEY")
# Instantiate the agent with the custom vector store
agent = Agent(connector, config={...}, vectorstore=vector_store) If you continue to experience issues, verify that the |
From where do we need to import BambooVectorStore? vector_store = BambooVectorStore(api_key="YOUR_PANDASAI_API_KEY") |
From which library do we need to import BambooVectorStore? vector_store = BambooVectorStore(api_key="YOUR_PANDASAI_API_KEY") |
You can import from pandasai.ee.vectorstores import BambooVectorStore
# Instantiate the vector store with the API key
vector_store = BambooVectorStore(api_key="YOUR_PANDASAI_API_KEY") Make sure you have the necessary dependencies installed and that your environment is correctly set up to use this module. |
System Info
OS Version : windows 11
Python Version : 3.11.9
Pandas ai version : 2.2.14
🐛 Describe the bug
Thanks for the Great work!
As a part of training the agent (QA Training) ,started training on some questions...the training has successfully completed...but when try to run the trained question, it is unable to use that trianed data? why?what's the reason?
2024-11-08 06:13:03 [INFO] Running PandasAI with langchain_chat-databricks LLM...
2024-11-08 06:13:03 [INFO] Prompt ID: 413fcc0b-0d0f-4b4e-ad6e-d6db1be57cd2
2024-11-08 06:13:03 [INFO] Executing Pipeline: GenerateChatPipeline
2024-11-08 06:13:03 [INFO] Executing Step 0: ValidatePipelineInput
2024-11-08 06:13:03 [INFO] Executing Step 1: CacheLookup
2024-11-08 06:13:03 [INFO] Executing Step 2: PromptGeneration
2024-11-08 06:13:04 [INFO] Querying without using training data.
2024-11-08 06:13:04 [INFO] Querying without using training docs.
2024-11-08 06:13:04 [INFO] Using prompt:
@dosubot
The text was updated successfully, but these errors were encountered: