pipelines  by open-webui

Plugin framework for OpenAI API-compatible UIs

created 1 year ago
1,976 stars

Top 22.8% on sourcepulse

GitHubView on GitHub
1 Expert Loves This Project
Project Summary

Pipelines is a framework for extending OpenAI-compatible UI clients with custom Python logic, targeting developers and power users who need to integrate complex AI workflows or external APIs. It allows for modular, UI-agnostic plugin development, enabling advanced functionalities like custom RAG, function calling, and real-time data processing.

How It Works

Pipelines operates by exposing an OpenAI-compatible API endpoint. When a UI client sends a request to this endpoint, Pipelines intercepts it, processes it through user-defined Python scripts (pipelines), and returns the result. This architecture allows for offloading computationally intensive tasks from the main UI, enhancing scalability and performance, and integrating arbitrary Python libraries for diverse functionalities.

Quick Start & Requirements

  • Install/Run: docker run -d -p 9099:9099 --add-host=host.docker.internal:host-gateway -v pipelines:/app/pipelines --name pipelines --restart always ghcr.io/open-webui/pipelines:main
  • Prerequisites: Docker, Python 3.11 (for local build).
  • Setup: Docker setup is quick, typically under 5 minutes. Local setup requires cloning the repo, installing dependencies (pip install -r requirements.txt), and running ./start.sh.
  • Docs: https://github.com/open-webui/pipelines

Highlighted Details

  • UI-agnostic compatibility with any client supporting OpenAI API specs.
  • Supports custom Python logic, including integration with external libraries and APIs.
  • Examples include function calling, RAG, message monitoring (Langfuse, Opik), rate limiting, and translation filters.
  • Can be integrated with Open WebUI via Docker Compose.

Maintenance & Community

  • Part of the Open WebUI initiative.
  • Community engagement encouraged for feedback and feature requests.

Licensing & Compatibility

  • License: Not explicitly stated in the README.
  • Compatibility: Designed for OpenAI API-compatible clients. Custom pipelines with additional dependencies require custom Docker builds.

Limitations & Caveats

Pipelines involves arbitrary code execution, necessitating caution when loading pipelines from untrusted sources. Only "pipe-type" pipelines are supported by default; "filter-type" pipelines require specific client support. The project is described as "Work in Progress," with ongoing evolution and feature development.

Health Check
Last commit

3 weeks ago

Responsiveness

1 day

Pull Requests (30d)
10
Issues (30d)
6
Star History
246 stars in the last 90 days

Explore Similar Projects

Starred by Peter Norvig Peter Norvig(Author of Artificial Intelligence: A Modern Approach; Research Director at Google).

python-openai-demos by pamelafox

0%
374
Python scripts for OpenAI API demos
created 1 year ago
updated 1 week ago
Starred by Nat Friedman Nat Friedman(Former CEO of GitHub), Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), and
7 more.

langflow by langflow-ai

2.9%
93k
Visual tool for AI agent and workflow creation/deployment
created 2 years ago
updated 23 hours ago
Starred by Tobi Lutke Tobi Lutke(Cofounder of Shopify), Andrej Karpathy Andrej Karpathy(Founder of Eureka Labs; Formerly at Tesla, OpenAI; Author of CS 231n), and
13 more.

open-webui by open-webui

0.9%
105k
Self-hosted AI platform for local LLM deployment
created 1 year ago
updated 1 day ago
Feedback? Help us improve.