Github To Openwebui Context Pipeline
Model data pipeline from a Github repository to Open Web UI knowledge using actions
About This Project
This project is a Python data pipeline that moves content from a GitHub repository into Open WebUI knowledge collections. Each subdirectory under a context-data folder is mapped to a collection, with its files uploaded and kept in sync as they are added or removed. Open WebUI handles collection management, and embeddings are stored in Qdrant for vector search, with OpenAI used to generate the embeddings. The pipeline is packaged as a reusable GitHub workflow template, and the sync script can also be run locally with a configuration file.
The pipeline is built around authentication against a Cloudflare-secured OpenWebUI instance using a Cloudflare Access service token, followed by authentication to the Open WebUI API with an API key and JWT token. Its configuration relies on GitHub repository secrets, and it includes a test script for validating file upload behavior. The supported formats include plain text, Markdown, PDF, Office documents, CSV, JSON, and HTML.
This project may be useful to developers and teams who maintain documentation, policies, or other reference material in Git and want that content available to a self-hosted AI chat interface. It is most relevant to those running Open WebUI behind Cloudflare Access, since the README identifies that authentication setup as the most involved part of the process.