Skip to content
Draft
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
16 changes: 2 additions & 14 deletions roles/chatbot/templates/chatbot.deployment.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -99,20 +99,8 @@ spec:
- name: ansible-chatbot
image: {{ _chatbot_image }}
imagePullPolicy: '{{ image_pull_policy }}'
command:
- /bin/sh
- -c
- |
if [ -z "$PROVIDER_VECTOR_DB_ID" ]; then
if [ -f "/rag/llama_stack_vector_db/provider_vector_db_id.ind" ]; then
export PROVIDER_VECTOR_DB_ID=$(cat /rag/llama_stack_vector_db/provider_vector_db_id.ind)
echo "Loaded PROVIDER_VECTOR_DB_ID: $PROVIDER_VECTOR_DB_ID"
else
echo "ERROR: PROVIDER_VECTOR_DB_ID is not set and file /rag/llama_stack_vector_db/provider_vector_db_id.ind was not found"
exit 1
fi
fi
exec /.llama/entrypoint.sh /usr/bin/python3.12
args:
[ 'sh', '-c', 'export $(cat $LLAMA_STACK_CONFIG_DIR/distributions/ansible-chatbot/provider_rag.env | xargs) && /.llama/entrypoint.sh /app-root/.venv/bin/python3.12' ]
Comment on lines -102 to +103
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this might not be needed as it will set in the container image

Copy link
Contributor Author

@romartin romartin Nov 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes but only for downstream, but not upstream

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@romartin lgtm!

env:
- name: LLAMA_STACK_CONFIG_DIR
value: /.llama/data
Expand Down