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:
@@ -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"
|
||||
|
||||
21
EdgeCraftRAG/tests/README.md
Normal file
21
EdgeCraftRAG/tests/README.md
Normal 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
|
||||
```
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user