Skip to content

Commit

Permalink
Update install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
juntao authored Apr 13, 2024
1 parent 61e9036 commit d7c1968
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,9 @@ cd $gaianet_base_dir
url_snapshot=$(awk -F'"' '/"snapshot":/ {print $4}' config.json)
url_document=$(awk -F'"' '/"document":/ {print $4}' config.json)
embedding_collection_name=$(awk -F'"' '/"embedding_collection_name":/ {print $4}' config.json)
if [[ -z "$embedding_collection_name" ]]; then
embedding_collection_name="default"
fi

if [ -n "$url_snapshot" ]; then
# 10.1 recover from the given qdrant collection snapshot
Expand Down Expand Up @@ -348,6 +351,9 @@ elif [ -n "$url_document" ]; then
embedding_ctx_size=$(awk -F'"' '/"embedding_ctx_size":/ {print $4}' config.json)
# parse cli options for embedding vector collection name
embedding_collection_name=$(awk -F'"' '/"embedding_collection_name":/ {print $4}' config.json)
if [[ -z "$embedding_collection_name" ]]; then
embedding_collection_name="default"
fi
# parse port for LlamaEdge API Server
llamaedge_port=$(awk -F'"' '/"llamaedge_port":/ {print $4}' config.json)

Expand Down

0 comments on commit d7c1968

Please sign in to comment.