OpenRAG is a comprehensive, single package Retrieval-Augmented Generation platform built on Langflow, Docling, and Opensearch.
Python
Include the ability to specify the git hash to download specific versions of the Langflow flow files and OpenRAG sample documents (in addition to specifying a branch)
rodageve4ca6786ef469
diff --git a/kubernetes/helm/openrag/templates/backend/deployment.yaml b/kubernetes/helm/openrag/templates/backend/deployment.yamlindex 9bfd7faeb..1e2b2aefb 100644--- a/kubernetes/helm/openrag/templates/backend/deployment.yaml+++ b/kubernetes/helm/openrag/templates/backend/deployment.yaml@@ -46,15 +46,20 @@ spec:OWNER="{{ .Values.backend.persistence.documents.git.owner }}"REPO="{{ .Values.backend.persistence.documents.git.repo }}"BRANCH="{{ .Values.backend.persistence.documents.git.branch }}"+ {{- if .Values.backend.persistence.documents.git.hash }}+ GIT_REF="{{ .Values.backend.persistence.documents.git.hash }}"+ {{- else }}+ GIT_REF="${BRANCH}"+ {{- end }}REPO_PATH="{{ .Values.backend.persistence.documents.git.path }}"- # Raw base URL: https://raw.githubusercontent.com/<owner>/<repo>/<branch>/<path>- GITHUB_RAW_URL="https://raw.githubusercontent.com/${OWNER}/${REPO}/${BRANCH}/${REPO_PATH}"+ # Raw base URL: https://raw.githubusercontent.com/<owner>/<repo>/<ref>/<path>+ GITHUB_RAW_URL="https://raw.githubusercontent.com/${OWNER}/${REPO}/${GIT_REF}/${REPO_PATH}"mkdir -p "$DOCS_DIR"if [ -z "$(ls -A "$DOCS_DIR" 2>/dev/null)" ]; then- echo "Loading default documents from ${OWNER}/${REPO}@${BRANCH}/${REPO_PATH} ..."+ echo "Loading default documents from ${OWNER}/${REPO}@${GIT_REF}/${REPO_PATH} ..."download_with_retry() {file="$1"diff --git a/kubernetes/helm/openrag/templates/langflow/deployment.yaml b/kubernetes/helm/openrag/templates/langflow/deployment.yamlindex 7ea3d6f75..09d401e17 100644--- a/kubernetes/helm/openrag/templates/langflow/deployment.yaml+++ b/kubernetes/helm/openrag/templates/langflow/deployment.yaml@@ -47,15 +47,20 @@ spec:OWNER="{{ .Values.langflow.flows.git.owner }}"REPO="{{ .Values.langflow.flows.git.repo }}"BRANCH="{{ .Values.langflow.flows.git.branch }}"+ {{- if .Values.langflow.flows.git.hash }}+ GIT_REF="{{ .Values.langflow.flows.git.hash }}"+ {{- else }}+ GIT_REF="${BRANCH}"+ {{- end }}REPO_PATH="{{ .Values.langflow.flows.git.path }}"- # Raw base URL: https://raw.githubusercontent.com/<owner>/<repo>/<branch>/<path>- GITHUB_RAW_URL="https://raw.githubusercontent.com/${OWNER}/${REPO}/${BRANCH}/${REPO_PATH}"+ # Raw base URL: https://raw.githubusercontent.com/<owner>/<repo>/<ref>/<path>+ GITHUB_RAW_URL="https://raw.githubusercontent.com/${OWNER}/${REPO}/${GIT_REF}/${REPO_PATH}"mkdir -p "$FLOWS_DIR"if [ -z "$(ls -A "$FLOWS_DIR" 2>/dev/null)" ]; then- echo "Loading default flows from ${OWNER}/${REPO}@${BRANCH}/${REPO_PATH} ..."+ echo "Loading default flows from ${OWNER}/${REPO}@${GIT_REF}/${REPO_PATH} ..."download_with_retry() {file="$1"diff --git a/kubernetes/helm/openrag/values.yaml b/kubernetes/helm/openrag/values.yamlindex cb073dc71..1d0725578 100644--- a/kubernetes/helm/openrag/values.yaml+++ b/kubernetes/helm/openrag/values.yaml@@ -83,6 +83,8 @@ langflow:owner: langflow-airepo: openragbranch: main+ # Optional: specific git commit hash (overrides branch if set)+ hash: f5635c9906df581384c62b570afb55ace65ad1ebpath: flowsfiles:- ingestion_flow.json@@ -174,6 +176,8 @@ backend:owner: langflow-airepo: openragbranch: main+ # Optional: specific git commit hash (overrides branch if set)+ hash: f5635c9906df581384c62b570afb55ace65ad1ebpath: openrag-documentsfiles:- docling.pdf