Skip to content

Commit

Permalink
chore: use rag_prompt
Browse files Browse the repository at this point in the history
Signed-off-by: Xin Liu <sam@secondstate.io>
  • Loading branch information
apepkuss committed Apr 10, 2024
1 parent ffda2fe commit dd6cc78
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ chat_ctx_size=$(awk -F'"' '/"chat_ctx_size":/ {print $4}' config.json)
# parse prompt type for chat model
prompt_type=$(awk -F'"' '/"prompt_template":/ {print $4}' config.json)
# parse system prompt for chat model
system_prompt=$(awk -F'"' '/"rag_prompt":/ {print $4}' config.json)
rag_prompt=$(awk -F'"' '/"rag_prompt":/ {print $4}' config.json)
# parse reverse prompt for chat model
reverse_prompt=$(awk -F'"' '/"reverse_prompt":/ {print $4}' config.json)
# parse cli options for embedding model
Expand Down Expand Up @@ -139,8 +139,8 @@ cmd=(wasmedge --dir .:./dashboard \
--log-stat)

# Add system prompt if it exists
if [ -n "$system_prompt" ]; then
cmd+=("--system-prompt" "$system_prompt")
if [ -n "$rag_prompt" ]; then
cmd+=("--rag-prompt" "$rag_prompt")
fi

# Add reverse prompt if it exists
Expand Down

0 comments on commit dd6cc78

Please sign in to comment.