Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
Signed-off-by: Chendi.Xue <chendi.xue@intel.com>
  • Loading branch information
xuechendi committed Jul 18, 2024
1 parent 2c23319 commit 697d60a
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions RAGAgent/tests/test_ragagent_on_gaudi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ function build_docker_images_indexretriever() {
git clone https://github.com/opea-project/GenAIComps.git
fi
cd GenAIComps
if [ `git branch --show-current` != "PR314" ] ; then
local CUR=$(git branch --show-current)
echo "Check to DocIndexerRetriever component, Current Branch is ${CUR}"
if [ "${CUR}" != "PR314" ] ; then
git fetch origin pull/314/head:PR314; git checkout PR314
fi

Expand All @@ -29,20 +31,25 @@ function build_docker_images_indexretriever() {

cd $WORKPATH/../../
cd GenAIExamples
if [ `git branch --show-current` != "PR405" ] ; then
git checkout -b ragagent
local CUR=$(git branch --show-current)
echo "Check to DocIndexerRetriever megaservice, Current Branch is ${CUR}"
if [ "${CUR}" != "PR405" ] ; then
git fetch origin pull/405/head:PR405; git checkout PR405
fi
cd ..
docker build -t opea/doc-index-retriever:latest -f GenAIExamples/DocIndexRetriever/docker/Dockerfile .
git checkout ragagent
}

function build_docker_images_agent() {
cd $WORKPATH/../../
if [ ! -d "GenAIComps" ] ; then
git clone https://github.com/opea-project/GenAIComps.git
fi
cd GenAIComps
if [ `git branch --show-current` != "PR228" ] ; then
local CUR=$(git branch --show-current)
echo "Check to Agent component, Current Branch is ${CUR}"
if [ "${CUR}" != "PR228" ] ; then
git fetch origin pull/228/head:PR228; git checkout PR228
fi
docker build -t opea/comps-agent-langchain:latest -f comps/agent/langchain/docker/Dockerfile .
Expand Down

0 comments on commit 697d60a

Please sign in to comment.