Skip to content

Commit

Permalink
Merge pull request #101 from okamototk/tika-support
Browse files Browse the repository at this point in the history
feat: add Apache Tika dependency
  • Loading branch information
0xThresh authored Nov 7, 2024
2 parents 008268d + 6a61802 commit c70affc
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 5 deletions.
1 change: 1 addition & 0 deletions .github/workflows/helm-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
run: |
helm repo add ollama https://otwld.github.io/ollama-helm/
helm repo add open-webui https://helm.openwebui.com/
helm repo add tika https://apache.jfrog.io/artifactory/tika/
- name: Run chart-releaser
uses: helm/[email protected]
Expand Down
9 changes: 6 additions & 3 deletions charts/open-webui/Chart.lock
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
dependencies:
- name: ollama
repository: https://otwld.github.io/ollama-helm/
version: 0.63.1
version: 0.64.0
- name: pipelines
repository: https://helm.openwebui.com
version: 0.0.4
digest: sha256:ca806b2864a64f4e9107971c3228a3770016758f3492f6cd11025972f745a78b
generated: "2024-11-04T18:01:27.101973899+01:00"
- name: tika
repository: https://apache.jfrog.io/artifactory/tika
version: 2.9.0
digest: sha256:91c12b702598527a8b602af6f229f975abc8bd7cf95c31324bc013bb919ff14e
generated: "2024-11-07T14:14:55.798831-07:00"
6 changes: 5 additions & 1 deletion charts/open-webui/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: open-webui
version: 3.5.1
version: 3.6.0
appVersion: "0.3.35"

home: https://www.openwebui.com/
Expand Down Expand Up @@ -36,3 +36,7 @@ dependencies:
- child: service
parent: pipelines.service
condition: pipelines.enabled
- name: tika
repository: https://apache.jfrog.io/artifactory/tika
version: ">=2.9.0"
condition: tika.enabled
4 changes: 3 additions & 1 deletion charts/open-webui/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# open-webui

![Version: 3.5.1](https://img.shields.io/badge/Version-3.5.1-informational?style=flat-square) ![AppVersion: 0.3.35](https://img.shields.io/badge/AppVersion-0.3.35-informational?style=flat-square)
![Version: 3.6.0](https://img.shields.io/badge/Version-3.6.0-informational?style=flat-square) ![AppVersion: 0.3.35](https://img.shields.io/badge/AppVersion-0.3.35-informational?style=flat-square)

Open WebUI: A User-Friendly Web Interface for Chat Interactions 👋

Expand Down Expand Up @@ -32,6 +32,7 @@ helm upgrade --install open-webui open-webui/open-webui

| Repository | Name | Version |
|------------|------|---------|
| https://apache.jfrog.io/artifactory/tika | tika | >=2.9.0 |
| https://helm.openwebui.com | pipelines | >=0.0.1 |
| https://otwld.github.io/ollama-helm/ | ollama | >=0.24.0 |

Expand Down Expand Up @@ -74,6 +75,7 @@ helm upgrade --install open-webui open-webui/open-webui
| replicaCount | int | `1` | |
| resources | object | `{}` | |
| service | object | `{"annotations":{},"containerPort":8080,"labels":{},"loadBalancerClass":"","nodePort":"","port":80,"type":"ClusterIP"}` | Service values to expose Open WebUI pods to cluster |
| tika.enabled | bool | `false` | Automatically install Apache Tika to extend Open WebUI |
| tolerations | list | `[]` | Tolerations for pod assignment |
| topologySpreadConstraints | list | `[]` | Topology Spread Constraints for pod assignment |
| volumeMounts | object | `{"container":[],"initContainer":[]}` | Configure container volume mounts ref: <https://kubernetes.io/docs/tasks/configure-pod-container/configure-volume-storage/> |
Expand Down
Binary file removed charts/open-webui/charts/ollama-0.63.1.tgz
Binary file not shown.
Binary file added charts/open-webui/charts/ollama-0.64.0.tgz
Binary file not shown.
Binary file added charts/open-webui/charts/tika-2.9.0.tgz
Binary file not shown.
6 changes: 6 additions & 0 deletions charts/open-webui/templates/workload-manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,12 @@ spec:
{{- if .Values.extraEnvVars }}
{{- toYaml .Values.extraEnvVars | nindent 8 }}
{{- end }}
{{- if .Values.tika.enabled }}
- name: "CONTENT_EXTRACTION_ENGINE"
value: "Tika"
- name: "TIKA_SERVER_URL"
value: http://{{ .Chart.Name }}-tika:9998
{{- end }}
tty: true
{{- with .Values.nodeSelector }}
nodeSelector:
Expand Down
4 changes: 4 additions & 0 deletions charts/open-webui/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ pipelines:
# -- This section can be used to pass required environment variables to your pipelines (e.g. Langfuse hostname)
extraEnvVars: []

tika:
# -- Automatically install Apache Tika to extend Open WebUI
enabled: false

# -- A list of Ollama API endpoints. These can be added in lieu of automatically installing the Ollama Helm chart, or in addition to it.
ollamaUrls: []

Expand Down

0 comments on commit c70affc

Please sign in to comment.