Skip to content
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

Multiple files pipeline #391

Open
Panicum opened this issue Jan 10, 2025 · 1 comment
Open

Multiple files pipeline #391

Panicum opened this issue Jan 10, 2025 · 1 comment

Comments

@Panicum
Copy link

Panicum commented Jan 10, 2025

Hello,

I am creating larger RAG pipeline, with multiple classes and I would like to split them into multiple code files for better readability and also for future other pipelines that will use some of the same classes (like connection to DB etc.).

But I can't upload such pipeline to open-webui. I tired to split my pipeline into files with each class, save them into one directory in /pipelines/my_big_pipeline/ openwebui docker image and upload main pipeline file with Pipeline class by openweb-ui interface or by adding it to /pipelines directory with imports from /pipelines/my_big_pipeline/ classes. But it isn't working, I am keep getting error:

WARNING:root:No Pipeline class found in main_pipeline
Error loading module: main_pipeline

Anyone was trying something like this and knows the solution to this problem?

@TheWasilingMan
Copy link

I have been trying for a long time to get around this error when having a pipeline with more than one file. I have been unable to figure it out. Have you had any luck figuring out an alternative?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants