Inserting AI Gateway in the traffic flow

Now that we have an understanding of what AI Gateway is and how it works we will need to achive the bellow architecture.

../../../_images/Slide4.PNG
  1. First we need to modify the Arcadia Crypto App to point to the AIGW instead of the Ollama endpoint

    Go to the UDF DeploymentComponents → Click Access on JumphostWebshell

    Copy paste the bellow command.

    sed -E -i 's/([0-9]{1,3}.){3}[0-9]{1,3}:11434/10.1.1.5:4141/g' /home/ubuntu/configs/arcadia.yaml
    kubectl --kubeconfig /home/ubuntu/.kube/config apply -f /home/ubuntu/configs/arcadia.yaml
    
    Copy to clipboard
    ../../../_images/013.gif

    Next we need to push the AIGW configuration. At the moment AI Gateway is in early access and the configuration will be done through yaml files.

    curl --data-binary "@/home/ubuntu/configs/aigw_lab2.yaml" http://10.1.1.5:8080/v1/config
    
    Copy to clipboard
  2. Go to the UDF DeploymentComponents → Click Access on AI GatewayWebshell

    Bring up the logs to see the traffic going through the AI Gateway with the bellow command and go chat with the ChatBot

    docker logs aigw-aigw-1 -f
    
    Copy to clipboard
    ../../../_images/023.gif