open-webui / pipelines

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

Adapting Open Web UI Pipelines for RAG with PandasAI: Seeking Examples and Guidance #181

Closed daltonbc96 closed 4 months ago

daltonbc96 commented 4 months ago

Hello everyone,

I've been exploring the capabilities of Open Web UI and, after reviewing the official documentation, I couldn't find explicit support for creating retrieval-augmented generation (RAG) for datasets or databases using tools like PandasAI.

My goal is to utilize pipeline functionalities to handle user-uploaded documents, specifically CSV files, transform them into dataframes, and perform RAG on databases using pipelines. While I understand this may not be directly supported, I'm curious if anyone has successfully adapted Open Web UI for such purposes.

Has anyone here managed to implement RAG with datasets or databases using PandasAI in Open Web UI? If so, could you share example Python code or guidance on how to capture CSV files, convert them into dataframes, and conduct RAG on databases in the context of the pipeline?

Any help or pointers to relevant examples would be greatly appreciated!