How to clear pipeline data? #122

Closed
opened 2026-02-15 19:16:04 -05:00 by yindo · 1 comment
Owner

Originally created by @Panicum on GitHub (Sep 18, 2024).

I created the RAG pipeline in which I am saving data in the variable "self.campaign_data":

def __init__(self):
        # Optionally, you can set the id and name of the pipeline.
        self.name = "Pipeline XYZ"
        self.campaign_data = {
            "company_name": None,
            "product_name": None,
            "date_from": None,
            "date_to": None
        }
        pass

I would like to have it reset on every new "Pipeline XYZ" chat window, but for now, it is taking data entered in different chats and using it in the new conversations.

Originally created by @Panicum on GitHub (Sep 18, 2024). I created the RAG pipeline in which I am saving data in the variable "self.campaign_data": ``` def __init__(self): # Optionally, you can set the id and name of the pipeline. self.name = "Pipeline XYZ" self.campaign_data = { "company_name": None, "product_name": None, "date_from": None, "date_to": None } pass ``` I would like to have it reset on every new "Pipeline XYZ" chat window, but for now, it is taking data entered in different chats and using it in the new conversations.
yindo closed this issue 2026-02-15 19:16:04 -05:00
Author
Owner

@jedwards1230 commented on GitHub (Nov 15, 2024):

I think the server holds that self.campaign_data in-memory across all your chats while the pipelines server is running. You would need to add code to your pipeline to grab and store an ID for each thread and do the lookup in your pipe.

@jedwards1230 commented on GitHub (Nov 15, 2024): I think the server holds that `self.campaign_data` in-memory across all your chats while the pipelines server is running. You would need to add code to your pipeline to grab and store an ID for each thread and do the lookup in your pipe.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: open-webui/pipelines#122