Skip to content

Commit

Permalink
Fix DBCopilot Vulnerabilities (Azure#2872)
Browse files Browse the repository at this point in the history
* Fix DBCopilot Vulnerabilities

* fix
  • Loading branch information
ricardrao authored May 9, 2024
1 parent aa2f1ff commit 9df51ed
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ tags:
Preview: ""
name: llm_ingest_db_to_acs
display_name: LLM - SQL Datastore to ACS Pipeline
version: 0.0.84
version: 0.0.85
description: Single job pipeline to chunk data from AzureML sql data store, and create ACS embeddings index
settings:
default_compute: serverless
Expand Down Expand Up @@ -142,7 +142,7 @@ jobs:
output_chunk_file:
type: uri_folder
output_grounding_context_file: ${{parent.outputs.db_context}}
component: "azureml:llm_dbcopilot_grounding:0.0.58"
component: "azureml:llm_dbcopilot_grounding:0.0.59"
type: command
generate_meta_embeddings:
type: command
Expand Down Expand Up @@ -209,7 +209,7 @@ jobs:
#########################################
db_sample_loading_generator:
type: command
component: "azureml:llm_dbcopilot_grounding_ground_samples:0.0.33"
component: "azureml:llm_dbcopilot_grounding_ground_samples:0.0.34"
resources:
instance_count: ${{parent.inputs.serverless_instance_count}}
instance_type: ${{parent.inputs.serverless_instance_type}}
Expand Down Expand Up @@ -323,5 +323,5 @@ jobs:
path: ${{parent.inputs.include_views}}
instruct_template:
path: ${{parent.inputs.instruct_template}}
component: "azureml:llm_dbcopilot_create_promptflow:0.0.58"
component: "azureml:llm_dbcopilot_create_promptflow:0.0.59"
type: command
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ tags:
Preview: ""
name: llm_ingest_db_to_faiss
display_name: LLM - SQL Datastore to FAISS Pipeline
version: 0.0.84
version: 0.0.85
description: Single job pipeline to chunk data from AzureML sql data store, and create FAISS embeddings index
settings:
default_compute: serverless
Expand Down Expand Up @@ -132,7 +132,7 @@ jobs:
output_chunk_file:
type: uri_folder
output_grounding_context_file: ${{parent.outputs.db_context}}
component: "azureml:llm_dbcopilot_grounding:0.0.58"
component: "azureml:llm_dbcopilot_grounding:0.0.59"
type: command
generate_meta_embeddings:
type: command
Expand Down Expand Up @@ -197,7 +197,7 @@ jobs:
#########################################
db_sample_loading_generator:
type: command
component: "azureml:llm_dbcopilot_grounding_ground_samples:0.0.33"
component: "azureml:llm_dbcopilot_grounding_ground_samples:0.0.34"
resources:
instance_count: ${{parent.inputs.serverless_instance_count}}
instance_type: ${{parent.inputs.serverless_instance_type}}
Expand Down Expand Up @@ -307,5 +307,5 @@ jobs:
path: ${{parent.inputs.include_views}}
instruct_template:
path: ${{parent.inputs.instruct_template}}
component: "azureml:llm_dbcopilot_create_promptflow:0.0.58"
component: "azureml:llm_dbcopilot_create_promptflow:0.0.59"
type: command
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ $schema: https://azuremlschemas.azureedge.net/latest/pipelineComponent.schema.js
type: pipeline

name: llm_ingest_dbcopilot_acs_e2e
version: 0.0.52
version: 0.0.53
display_name: Data Ingestion for DB Data Output to ACS E2E Deployment
description: Single job pipeline to chunk data from AzureML DB Datastore and create acs embeddings index

Expand Down Expand Up @@ -128,7 +128,7 @@ jobs:
#########################################
db_meta_loading_generator:
type: command
component: "azureml:llm_dbcopilot_grounding:0.0.58"
component: "azureml:llm_dbcopilot_grounding:0.0.59"
resources:
instance_count: ${{parent.inputs.serverless_instance_count}}
instance_type: ${{parent.inputs.serverless_instance_type}}
Expand Down Expand Up @@ -197,7 +197,7 @@ jobs:
#########################################
db_sample_loading_generator:
type: command
component: "azureml:llm_dbcopilot_grounding_ground_samples:0.0.33"
component: "azureml:llm_dbcopilot_grounding_ground_samples:0.0.34"
resources:
instance_count: ${{parent.inputs.serverless_instance_count}}
instance_type: ${{parent.inputs.serverless_instance_type}}
Expand Down Expand Up @@ -259,7 +259,7 @@ jobs:
#########################################
endpoint_deployment_job:
type: command
component: "azureml:llm_dbcopilot_deploy_endpoint:0.0.33"
component: "azureml:llm_dbcopilot_deploy_endpoint:0.0.34"
resources:
instance_count: ${{parent.inputs.serverless_instance_count}}
instance_type: ${{parent.inputs.serverless_instance_type}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ $schema: https://azuremlschemas.azureedge.net/latest/pipelineComponent.schema.js
type: pipeline

name: llm_ingest_dbcopilot_faiss_e2e
version: 0.0.52
version: 0.0.53
display_name: Data Ingestion for DB Data Output to FAISS E2E Deployment
description: Single job pipeline to chunk data from AzureML DB Datastore and create faiss embeddings index

Expand Down Expand Up @@ -118,7 +118,7 @@ jobs:
#########################################
db_meta_loading_generator:
type: command
component: "azureml:llm_dbcopilot_grounding:0.0.58"
component: "azureml:llm_dbcopilot_grounding:0.0.59"
resources:
instance_count: ${{parent.inputs.serverless_instance_count}}
instance_type: ${{parent.inputs.serverless_instance_type}}
Expand Down Expand Up @@ -185,7 +185,7 @@ jobs:
#########################################
db_sample_loading_generator:
type: command
component: "azureml:llm_dbcopilot_grounding_ground_samples:0.0.33"
component: "azureml:llm_dbcopilot_grounding_ground_samples:0.0.34"
resources:
instance_count: ${{parent.inputs.serverless_instance_count}}
instance_type: ${{parent.inputs.serverless_instance_type}}
Expand Down Expand Up @@ -243,7 +243,7 @@ jobs:
#########################################
endpoint_deployment_job:
type: command
component: "azureml:llm_dbcopilot_deploy_endpoint:0.0.33"
component: "azureml:llm_dbcopilot_deploy_endpoint:0.0.34"
resources:
instance_count: ${{parent.inputs.serverless_instance_count}}
instance_type: ${{parent.inputs.serverless_instance_type}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ tags:
Preview: ""
name: llm_dbcopilot_create_promptflow
display_name: LLM - Create DBCopilot Prompt Flow
version: 0.0.58
version: 0.0.59
inputs:
index_name:
type: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ type: command
tags: {}
name: llm_dbcopilot_deploy_endpoint
display_name: LLM - DBCopilot Deploy Endpoint Component
version: 0.0.33
version: 0.0.34
inputs:
deployment_name:
type: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ type: command
tags:
Preview: ""
name: llm_dbcopilot_grounding
version: 0.0.58
version: 0.0.59
inputs:
asset_uri:
type: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ type: command
tags: {}
name: llm_dbcopilot_grounding_ground_samples
display_name: LLM - DBCopilot Grounding Ground Samples Component
version: 0.0.33
version: 0.0.34
inputs:
grounding_context:
type: uri_folder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ RUN /bin/bash -c "source /opt/miniconda/etc/profile.d/conda.sh && \
pip install --upgrade pip && \
pip install -r requirements.txt && \
pip install promptflow-vectordb==0.2.9 && \
pip install https://ragsample.blob.core.windows.net/ragdata/wheels/dbcopilot/db_copilot_tool-0.1.20-py3-none-any.whl \
pip install cryptography==42.0.5 langchain==0.1.11 idna==3.7"
pip install https://ragsample.blob.core.windows.net/ragdata/wheels/dbcopilot/db_copilot_tool-0.1.20-py3-none-any.whl &&\
pip install cryptography==42.0.5 langchain==0.1.11 idna==3.7 sqlparse==0.5.0 gunicorn==22.0.0"

# Fix vunerabilities
RUN /bin/bash -c "source /opt/miniconda/etc/profile.d/conda.sh && \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ RUN python -m pip install --upgrade pip && \
# Install necessary tools
pip install -r requirements.txt && \
# Install promptflow environment
pip install promptflow-image-bundle[azure]==0.2.0 && \
pip install promptflow-image-bundle[azure]==0.3.0 && \
pip install promptflow-vectordb==0.2.9 && \
## Install dbcopilot
pip install https://ragsample.blob.core.windows.net/ragdata/wheels/dbcopilot/db_copilot_tool-0.1.20-py3-none-any.whl && \
Expand All @@ -43,7 +43,7 @@ RUN python -m pip install --upgrade pip && \
# Fix vunerabilities
RUN /bin/bash -c "source /opt/miniconda/etc/profile.d/conda.sh && \
conda activate /opt/miniconda/envs/amlenv && \
pip install cryptography==42.0.5 langchain==0.1.11 idna==3.7 sqlparse==0.5.0 gunicorn==22.0.0 pydantic==2.7.1 && \
pip install cryptography==42.0.5 langchain==0.1.11 idna==3.7 sqlparse==0.5.0 gunicorn==22.0.0 && \
conda deactivate"

# For GUNICORN_CMD_ARGS, we need to set the timeout to be 0 so that the server will not timeout
Expand Down

0 comments on commit 9df51ed

Please sign in to comment.