Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions code/run_index.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ OPENAI_API_KEY="${OPENAI_API_KEY:-}"
: "${OPENAI_API_KEY:?Set OPENAI_API_KEY before running run_index.sh}"
export OPENAI_API_KEY
export CUDA_VISIBLE_DEVICES="${CUDA_VISIBLE_DEVICES:-0}"
PYTHON="${PYTHON:-python3}"

# Input and model parameters.
CORPUS="/home/wcj/data/project/memgraphrag/input/smallcorpus/smallcorpus.txt"
Expand Down
1 change: 1 addition & 0 deletions code/run_retrieval_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

# 使用的 GPU 编号
export CUDA_VISIBLE_DEVICES="0"
PYTHON="${PYTHON:-python3}"

# OpenAI 兼容接口的 API Key;使用无鉴权的本地服务时可留空
export OPENAI_API_KEY=
Expand Down