-
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
Deleting the Trained data from the Pandas Agent #1401
Comments
Hey @Subhashchandra-P! 👋 I'm here to help you with any issues or questions you have. Just ask away, and I'll do my best to assist you! Dosu To delete trained data from the PandasAI agent, you can use the methods provided for managing the vector store. Specifically, you can use the # Assuming you have access to the vector store instance
vector_store.delete_question_and_answers(ids=["your_vector_id"])
vector_store.delete_docs(ids=["your_vector_id"]) These methods will delete the specified data from the vector store, effectively removing the trained data from the agent [1][2]. |
I have used the default vectorstore (i.e. Bamboo vector store), in that case , how can we delete the QA pairs from it? |
To delete QA pairs from the default Bamboo vector store in PandasAI, you can use the # Assuming `milvus_instance` is an instance of the Milvus class
ids_to_delete = ['id1', 'id2', 'id3'] # Replace with the actual IDs you want to delete
milvus_instance.delete_question_and_answers(ids=ids_to_delete) This will remove the specified question-answer pairs from the QA collection [1]. |
Ok, can you give me the code to use Pinecone vector store for storing the trained data. using the Open AI embeddings. |
To use the Pinecone vector store for storing trained data with OpenAI embeddings, you can follow these steps:
Make sure to replace |
If we re initiate the agent, does the trained data on it gets deleted? |
Reinitializing the PandasAI agent does not automatically delete the trained data. The trained data is persisted, so you only need to train the model once unless you explicitly delete it [1]. To delete the trained data and bring the agent to its initial state, you can use the following methods:
agent.start_new_conversation() This method will clear the previous conversation context but won't delete the trained data from the vector store [2]. |
what is the API key of the default Bamboo Vector Store? |
The default Bamboo vector store does not have a predefined API key in the codebase, or at least it is not explicitly mentioned in the available information. Reinitializing the agent by creating a new instance does not delete the trained data stored in the vector store. The data persists unless you explicitly delete it using methods like |
How can I retrieve the Bamboo Vector Store Id with only the API? |
There isn't specific information available on how to retrieve the Bamboo Vector Store ID using only the API. The documentation or codebase does not provide details on methods or endpoints for retrieving vector store IDs from the Bamboo vector store. If you have access to the API, you might need to explore the available endpoints or consult additional resources to find a way to retrieve the vector store ID. |
can you give me the code to use Pinecone vector store for storing the trained data. using the Open AI embeddings. and store it with the index name as well as the namespace name. |
To use the Pinecone vector store for storing trained data with OpenAI embeddings, specifying both the index name and the namespace name, follow these steps:
Replace |
From which module, do we need to import the Pinecone? |
So, after installing ChromaDB and qdrant_client, I am still getting the error ImportError: cannot import name 'Pinecone' from 'pandasai.ee.vectorstores' (C:\Users\subhashchandra.p\AppData\Roaming\Python\Python311\site-packages\pandasai\ee\vectorstores\init.py)" |
The error you're encountering suggests that the
If these steps do not resolve the issue, there might be a problem with the package installation or the specific version you are using. |
Does the trained data of the agent changes, when we use the other pandas AI API key? |
There isn't specific information available on whether the trained data of the PandasAI agent changes when using a different API key. The documentation does not provide details on how trained data is managed or isolated based on different API keys. Therefore, it's unclear if switching API keys affects the trained data or if there is a mechanism to segregate data by API key. |
while running tha agent after being trained with question answer pairs...it is still not taking the trained data why? |
The PandasAI agent might not use the trained data during a query due to a few reasons:
Regarding data expiration or overwriting, there isn't specific information available on whether the trained data expires or gets automatically overwritten after a certain period [2]. If you're experiencing issues with the trained data not being used, it might be helpful to check the logs or use debugging tools provided by PandasAI to diagnose the problem [3]. |
what are the debugging tools provided by PandasAI to monitor the training data and the agent activities? |
PandasAI provides a Here is an example of how to configure the logger: from pandasai.helpers.logger import Logger
# Enable verbose logging to console and save logs to a file
logger = Logger(save_logs=True, verbose=True)
logger.log("This is a detailed log message.") This configuration will log messages both to the console and to a file named Additionally, PandasAI allows for logging to a server by configuring the These logging capabilities can help you monitor the training data and agent activities effectively. |
give me all the information you know about the bamboo vector store in pandas ai agents? |
The Bamboo vector store in PandasAI agents is implemented as a class named
These methods utilize a session to make HTTP requests to specific endpoints for managing the training data. Additionally, the |
How to print all the trained qa pairs of the agent..can we use agent.get_relevant_qa_documents? |
How to print all the trained qa pairs of the agent..can we use agent.get_relevant_qa_documents? |
To print all the trained question-answer pairs of the agent, you cannot directly use the If you need to access all the stored data, you would typically need a method that retrieves all entries without a query filter. Since such a method isn't available, you might need to implement a custom solution or check if the vector store provides any alternative ways to access all stored data. |
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...Now, I want to remove the trained data from the agent..how can I do that?
@dosubot
The text was updated successfully, but these errors were encountered: