Skip to content

Commit a560c27

Browse files
Update AgentQnA and DocSum for Gaudi Compatibility
Signed-off-by: Mahathi Vatsal <mahathi.vatsal.salopanthula@intel.com>
1 parent e9cafb3 commit a560c27

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

AgentQnA/retrieval_tool/run_ingest_data.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,17 @@
44
FILEDIR=${WORKDIR}/GenAIExamples/AgentQnA/example_data/
55
FILENAME=test_docs_music.jsonl
66

7+
# AgentQnA ingestion script requires following packages
8+
packages=("requests" "tqdm")
9+
10+
# Check if packages are installed
11+
for package in "${packages[@]}"; do
12+
if pip freeze | grep -q "$package="; then
13+
echo "$package is installed"
14+
else
15+
echo "$package is not installed"
16+
pip install --no-cache-dir "$package"
17+
fi
18+
done
19+
720
python3 index_data.py --filedir ${FILEDIR} --filename ${FILENAME} --host_ip $host_ip

DocSum/docker_compose/intel/hpu/gaudi/compose.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,3 +107,6 @@ services:
107107
networks:
108108
default:
109109
driver: bridge
110+
111+
volumes:
112+
data:

0 commit comments

Comments
 (0)