Integrate EdgeCraftRAG set_env to ut scripts and add README.md for UT scripts. (#1963)

Signed-off-by: ZePan110 <ze.pan@intel.com>
This commit is contained in:
ZePan110
2025-05-16 15:19:36 +08:00
committed by GitHub
parent 1c0b1731c5
commit ed918bcef1
4 changed files with 33 additions and 19 deletions

View File

@@ -5,3 +5,13 @@
pushd "../../../../../" > /dev/null
source .set_env.sh
popd > /dev/null
export MODEL_PATH=${MODEL_PATH}
export DOC_PATH=${DOC_PATH}
export UI_TMPFILE_PATH=${UI_TMPFILE_PATH}
export HOST_IP=${HOST_IP}
export LLM_MODEL=${LLM_MODEL}
export HF_ENDPOINT=${HF_ENDPOINT}
export vLLM_ENDPOINT=${vLLM_ENDPOINT}
export HUGGINGFACEHUB_API_TOKEN=${HUGGINGFACEHUB_API_TOKEN}
export no_proxy="localhost, 127.0.0.1, 192.168.1.1"

View File

@@ -0,0 +1,21 @@
# EdgeCraftRAG E2E test scripts
## Set the required environment variable
```bash
export HUGGINGFACEHUB_API_TOKEN="Your_Huggingface_API_Token"
```
## Run test
On Intel ARC with TGI:
```bash
bash test_compose_on_arc.sh
```
On Intel ARC with vLLM:
```bash
bash test_compose_vllm_on_arc.sh
```

View File

@@ -46,18 +46,10 @@ function build_docker_images() {
}
function start_services() {
export MODEL_PATH=${MODEL_PATH}
export DOC_PATH=${DOC_PATH}
export UI_UPLOAD_PATH=${UI_UPLOAD_PATH}
export HOST_IP=${HOST_IP}
export LLM_MODEL=${LLM_MODEL}
export HF_ENDPOINT=${HF_ENDPOINT}
export vLLM_ENDPOINT=${vLLM_ENDPOINT}
export HUGGINGFACEHUB_API_TOKEN=${HUGGINGFACEHUB_API_TOKEN}
export no_proxy="localhost, 127.0.0.1, 192.168.1.1"
cd $WORKPATH/docker_compose/intel/gpu/arc
source set_env.sh
# Start Docker Containers
docker compose -f $COMPOSE_FILE up -d > ${LOG_PATH}/start_services_with_compose.log
sleep 20

View File

@@ -53,17 +53,8 @@ function build_docker_images() {
}
function start_services() {
export MODEL_PATH=${MODEL_PATH}
export DOC_PATH=${DOC_PATH}
export UI_TMPFILE_PATH=${UI_TMPFILE_PATH}
export HOST_IP=${HOST_IP}
export LLM_MODEL=${LLM_MODEL}
export HF_ENDPOINT=${HF_ENDPOINT}
export vLLM_ENDPOINT=${vLLM_ENDPOINT}
export HUGGINGFACEHUB_API_TOKEN=${HUGGINGFACEHUB_API_TOKEN}
export no_proxy="localhost, 127.0.0.1, 192.168.1.1"
cd $WORKPATH/docker_compose/intel/gpu/arc
source set_env.sh
# Start Docker Containers
docker compose -f $COMPOSE_FILE up -d > ${LOG_PATH}/start_services_with_compose.log