Skip to content

Commit

Permalink
maintain a version info for docker_compose yaml files among release (#…
Browse files Browse the repository at this point in the history
…1141)

Signed-off-by: Tsai, Louie <louie.tsai@intel.com>
  • Loading branch information
louie-tsai authored Nov 18, 2024
1 parent 83172e9 commit 152adf8
Show file tree
Hide file tree
Showing 27 changed files with 120 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .set_env.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
#To anounce the version of the codes, please create a version.txt and have following format.
#VERSION_MAJOR 1
#VERSION_MINOR 0
#VERSION_PATCH 0

VERSION_FILE="version.txt"
if [ -f $VERSION_FILE ]; then
VER_OPEA_MAJOR=$(grep "VERSION_MAJOR" $VERSION_FILE | cut -d " " -f 2)
VER_OPEA_MINOR=$(grep "VERSION_MINOR" $VERSION_FILE | cut -d " " -f 2)
VER_OPEA_PATCH=$(grep "VERSION_PATCH" $VERSION_FILE | cut -d " " -f 2)
export TAG=$VER_OPEA_MAJOR.$VER_OPEA_MINOR
echo OPEA Version:$TAG
fi
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

pushd "../../../../../" > /dev/null
source .set_env.sh
popd > /dev/null
export TOOLSET_PATH=$WORKDIR/GenAIExamples/AgentQnA/tools/
export ip_address=$(hostname -I | awk '{print $1}')
export recursion_limit_worker=12
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

pushd "../../../../../" > /dev/null
source .set_env.sh
popd > /dev/null
WORKPATH=$(dirname "$PWD")/..
# export WORKDIR=$WORKPATH/../../
echo "WORKDIR=${WORKDIR}"
Expand Down
7 changes: 7 additions & 0 deletions AudioQnA/docker_compose/intel/cpu/xeon/set_env.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
pushd "../../../../../" > /dev/null
source .set_env.sh
popd > /dev/null
7 changes: 7 additions & 0 deletions AudioQnA/docker_compose/intel/hpu/gaudi/set_env.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
pushd "../../../../../" > /dev/null
source .set_env.sh
popd > /dev/null
7 changes: 7 additions & 0 deletions AvatarChatbot/docker_compose/intel/cpu/xeon/set_env.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
pushd "../../../../../" > /dev/null
source .set_env.sh
popd > /dev/null
7 changes: 7 additions & 0 deletions AvatarChatbot/docker_compose/intel/hpu/gaudi/set_env.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
pushd "../../../../../" > /dev/null
source .set_env.sh
popd > /dev/null
3 changes: 3 additions & 0 deletions ChatQnA/docker_compose/intel/cpu/aipc/set_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

pushd "../../../../../" > /dev/null
source .set_env.sh
popd > /dev/null

if [ -z "${your_hf_api_token}" ]; then
echo "Error: HUGGINGFACEHUB_API_TOKEN is not set. Please set your_hf_api_token."
Expand Down
3 changes: 3 additions & 0 deletions ChatQnA/docker_compose/intel/cpu/xeon/set_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

pushd "../../../../../" > /dev/null
source .set_env.sh
popd > /dev/null

export EMBEDDING_MODEL_ID="BAAI/bge-base-en-v1.5"
export RERANK_MODEL_ID="BAAI/bge-reranker-base"
Expand Down
3 changes: 3 additions & 0 deletions ChatQnA/docker_compose/intel/hpu/gaudi/set_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
pushd "../../../../../" > /dev/null
source .set_env.sh
popd > /dev/null


export EMBEDDING_MODEL_ID="BAAI/bge-base-en-v1.5"
Expand Down
3 changes: 3 additions & 0 deletions CodeGen/docker_compose/set_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
pushd "../../" > /dev/null
source .set_env.sh
popd > /dev/null


export LLM_MODEL_ID="Qwen/Qwen2.5-Coder-7B-Instruct"
Expand Down
3 changes: 3 additions & 0 deletions CodeTrans/docker_compose/set_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
pushd "../../" > /dev/null
source .set_env.sh
popd > /dev/null


export LLM_MODEL_ID="mistralai/Mistral-7B-Instruct-v0.3"
Expand Down
3 changes: 3 additions & 0 deletions DBQnA/docker_compose/set_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
pushd "../../" > /dev/null
source .set_env.sh
popd > /dev/null

export TGI_PORT=8008
export TGI_LLM_ENDPOINT="http://${your_ip}:${TGI_PORT}"
Expand Down
7 changes: 7 additions & 0 deletions DocIndexRetriever/docker_compose/intel/cpu/xeon/set_env.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
pushd "../../../../../" > /dev/null
source .set_env.sh
popd > /dev/null
7 changes: 7 additions & 0 deletions DocIndexRetriever/docker_compose/intel/hpu/gaudi/set_env.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
pushd "../../../../../" > /dev/null
source .set_env.sh
popd > /dev/null
3 changes: 3 additions & 0 deletions DocSum/docker_compose/set_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
pushd "../../" > /dev/null
source .set_env.sh
popd > /dev/null


export LLM_MODEL_ID="Intel/neural-chat-7b-v3-3"
Expand Down
7 changes: 7 additions & 0 deletions EdgeCraftRAG/docker_compose/intel/gpu/arc/set_env.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
pushd "../../../../../" > /dev/null
source .set_env.sh
popd > /dev/null
3 changes: 3 additions & 0 deletions GraphRAG/docker_compose/intel/hpu/gaudi/set_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
# Remember to set your private variables mentioned in README

# host_ip, OPENAI_API_KEY, HUGGINGFACEHUB_API_TOKEN, proxies...
pushd "../../../../../" > /dev/null
source .set_env.sh
popd > /dev/null

export EMBEDDING_MODEL_ID="BAAI/bge-base-en-v1.5"
export OPENAI_EMBEDDING_MODEL="text-embedding-3-small"
Expand Down
3 changes: 3 additions & 0 deletions MultimodalQnA/docker_compose/intel/cpu/xeon/set_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
pushd "../../../../../" > /dev/null
source .set_env.sh
popd > /dev/null

export no_proxy=${your_no_proxy}
export http_proxy=${your_http_proxy}
Expand Down
3 changes: 3 additions & 0 deletions MultimodalQnA/docker_compose/intel/hpu/gaudi/set_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
pushd "../../../../../" > /dev/null
source .set_env.sh
popd > /dev/null

export no_proxy=${your_no_proxy}
export http_proxy=${your_http_proxy}
Expand Down
3 changes: 3 additions & 0 deletions ProductivitySuite/docker_compose/intel/cpu/xeon/set_env.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
pushd "../../../../../" > /dev/null
source .set_env.sh
popd > /dev/null

export MONGO_HOST=${host_ip}
export MONGO_PORT=27017
Expand Down
3 changes: 3 additions & 0 deletions SearchQnA/docker_compose/set_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
pushd "../../" > /dev/null
source .set_env.sh
popd > /dev/null


export EMBEDDING_MODEL_ID=BAAI/bge-base-en-v1.5
Expand Down
3 changes: 3 additions & 0 deletions Translation/docker_compose/set_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
pushd "../../" > /dev/null
source .set_env.sh
popd > /dev/null


export LLM_MODEL_ID="haoranxu/ALMA-13B"
Expand Down
3 changes: 3 additions & 0 deletions VideoQnA/docker_compose/intel/cpu/xeon/set_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
pushd "../../../../../" > /dev/null
source .set_env.sh
popd > /dev/null

host_ip=$(hostname -I | awk '{print $1}')

Expand Down
3 changes: 3 additions & 0 deletions VisualQnA/docker_compose/intel/cpu/xeon/set_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
pushd "../../../../../" > /dev/null
source .set_env.sh
popd > /dev/null


export LVM_MODEL_ID="llava-hf/llava-v1.6-mistral-7b-hf"
Expand Down
3 changes: 3 additions & 0 deletions VisualQnA/docker_compose/intel/hpu/gaudi/set_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
pushd "../../../../../" > /dev/null
source .set_env.sh
popd > /dev/null

export LVM_MODEL_ID="llava-hf/llava-v1.6-mistral-7b-hf"
export LVM_ENDPOINT="http://${host_ip}:8399"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

services:
worflowexec-agent:
image: opea/agent-langchain:latest
image: ${REGISTRY:-opea}/agent-langchain:${TAG:-latest}
container_name: workflowexec-agent-endpoint
volumes:
- ${WORKDIR}/GenAIComps/comps/agent/langchain/:/home/user/comps/agent/langchain/
Expand Down

0 comments on commit 152adf8

Please sign in to comment.