Skip to content

Commit f0e22b6

Browse files
ezelanzaZePan110
andauthored
Add if validation to retrieval tool (opea-project#2007)
Signed-off-by: Ezequiel Lanza <ezequiel.lanza@gmail.com> Co-authored-by: ZePan110 <ze.pan@intel.com>
1 parent 1b22200 commit f0e22b6

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

AgentQnA/retrieval_tool/run_ingest_data.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22
# Copyright (C) 2024 Intel Corporation
33
# SPDX-License-Identifier: Apache-2.0
44

5-
host_ip=$(hostname -I | awk '{print $1}')
5+
# If host_ip is not set, assign it
6+
if [ -z "$host_ip" ]; then
7+
host_ip=$(hostname -I | awk '{print $1}')
8+
fi
9+
610
port=6007
711
FILEDIR=${WORKDIR}/GenAIExamples/AgentQnA/example_data/
812
FILENAME=test_docs_music.jsonl

0 commit comments

Comments
 (0)