Run ROCm-RAG with direct execution

Run ROCm-RAG with direct execution#

2025-09-26

1 min read time

Applies to Linux

Use direct execution to run the extraction and retrieval pipelines automatically without needing to enter a container.

Note

You can also limit the scope of scraping. For more information, see Run the extraction pipeline.

Use this code in your terminal to directly execute the ROCm-RAG pipelines:

docker run --env-file <your env file> --cap-add=SYS_PTRACE --ipc=host --privileged=true \
          --shm-size=128GB --network=host \
          --device=/dev/kfd --device=/dev/dri \
          --group-add video -it \
          -v <mount dir>:<mount dir> \
          rocm-rag:latest /bin/bash -c \
          "cd /rag-workspace/rocm-rag/scripts && \
           bash run-extraction.sh && \
           bash run-retrieval.sh"

The logs are saved to /rag-workspace/rocm-rag/logs inside the docker. To view logs on your host machine, mount this directory to a local path.

Warning

Running the container directly will not include HTTPS setup, so your microphone might be blocked by your browser in this approach. For more information, see Configure the SSL certificate and enable HTTPS.