environments llm dbcopilot embeddings - Azure/azureml-assets GitHub Wiki
An environment for Large Language Model Retrieval Augmented Generation standard grounding database components.
Version: 69
Preview
View in Studio: https://ml.azure.com/registries/azureml/environments/llm-dbcopilot-embeddings/version/69
Docker image: mcr.microsoft.com/azureml/curated/llm-dbcopilot-embeddings:69
FROM mcr.microsoft.com/azureml/promptflow/promptflow-runtime-stable:latest
WORKDIR /
USER root
# Install necessary tools
RUN apt-get update && apt-get install -y \
curl \
gnupg \
unixodbc-dev \
git \
git-man && \
rm -rf /var/lib/apt/lists/*
# Install MS SQL ODBC Driver
RUN apt-get update \
&& curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - \
&& curl https://packages.microsoft.com/config/ubuntu/20.04/prod.list > /etc/apt/sources.list.d/mssql-release.list \
&& apt-get update \
&& ACCEPT_EULA=Y apt-get install -y --no-install-recommends msodbcsql18=18.3.3.1-1 msodbcsql17=17.10.6.1-1 \
&& rm -rf /var/lib/apt/lists/*
# Default to UTF-8 file.encoding
ENV LANG C.UTF-8
# Set the shared environment path
ENV AZUREML_CONDA_ENVIRONMENT_PATH /azureml-envs/prompt-flow/runtime
ENV PATH $AZUREML_CONDA_ENVIRONMENT_PATH/bin:$PATH
# Copy the environment file
COPY ./requirements.txt ./
# dbcopilot environment
RUN /bin/bash -c "source /opt/miniconda/etc/profile.d/conda.sh && \
conda activate $AZUREML_CONDA_ENVIRONMENT_PATH && \
pip install --upgrade pip && \
pip install -r requirements.txt && \
pip install db-copilot-tool==0.0.8 &&\
pip install cryptography==43.0.1 langchain==0.2.11 idna==3.7 sqlparse==0.5.0 gunicorn==22.0.0 Werkzeug==3.0.3 requests==2.32.0 azure-identity==1.16.1 langchain-community==0.2.9"
# Fix vunerabilities
RUN /bin/bash -c "source /opt/miniconda/etc/profile.d/conda.sh && \
conda activate /opt/miniconda && \
pip install cryptography==43.0.1 idna==3.7 sqlparse==0.5.0 gunicorn==22.0.0 tqdm==4.66.3 requests==2.32.0 azure-identity==1.16.1 urllib3==2.2.2 certifi==2024.07.04&& \
conda deactivate"
# Install certificates and other utilities
RUN set -eux; \
apt-get update; \
apt-get install -y --no-install-recommends \
# utilities for keeping Debian and OpenJDK CA certificates in sync
ca-certificates p11-kit wget \
; \
rm -rf /var/lib/apt/lists/*
ENV JAVA_HOME /usr/local/openjdk-21
ENV PATH $JAVA_HOME/bin:$PATH
# Default to UTF-8 file.encoding
ENV LANG C.UTF-8
# https://jdk.java.net/
# >
# > Java Development Kit builds, from Oracle
# >
ENV JAVA_VERSION 21-ea+22
COPY setup.sh .
RUN bash setup.sh