open-webui / pipelines

Pipelines: Versatile, UI-Agnostic OpenAI-Compatible Plugin Framework
MIT License
1.03k stars 321 forks source link

Accessing documents in the pipelines container #268

Open afonso-ccg opened 2 months ago

afonso-ccg commented 2 months ago

I am struggling to access the documents that I upload in the Open WebUI interface. How can I do it? Is there an API? In the Custom RAG example there is this piece of code:

self.documents = SimpleDirectoryReader("./data").load_data()

but for me that returns nothing, and I got to understand that as the pipeline is running on a separate container, the path that I’m trying to access in that piece of code is in the pipelines container. Is there any way to do this?