Skip to content

keventmesh/agentic-ai-demo

Repository files navigation

Running on Kubernetes

Install pre-requisites:

Set up some environment variables in your shell:

export IMAGE_REGISTRY="docker.io/aliok"
export IMAGE_TAG="latest"

Build the images:

skaffold build --default-repo="${IMAGE_REGISTRY}" --tag="${IMAGE_TAG}"

Run the application on Kubernetes:

skaffold run --default-repo="${IMAGE_REGISTRY}" --tag="${IMAGE_TAG}"
# on Minikube/kind, you can use:
# skaffold deploy --default-repo="${IMAGE_REGISTRY}" --tag="${IMAGE_TAG}" --load-images=true
# or, 2 steps:
# skaffold render --default-repo="${IMAGE_REGISTRY}" --tag="${IMAGE_TAG}" | kubectl apply -f -

Send a request to the intake service:

# start Kubectl port-forward to access the service
kubectl port-forward -n keventmesh svc/svc-intake 8080:80
# then, in a new terminal, send a request to the intake service:
curl -X POST http://localhost:8080/ \
  -H "Content-Type: application/json" \
  -d '{
    "content": "Hello, my name is Jane Doe. I am writing because I am completely locked out of my account for the Gizmo-X product. I have tried the password reset link five times and it is not working. I am really frustrated because I have a deadline today and need to access my files. Can someone please help me ASAP? My email is [email protected]."
    }
  '

You should receive a response like this:

{"eventId":"9b78c13a-9c38-42c7-84fa-615f45add5af","status":"event accepted"}

Clean up the resources:

skaffold delete

Building and pushing images

skaffold build --default-repo="${IMAGE_REGISTRY}" --tag="${IMAGE_TAG}" --push

Setup Python Environment

pyenv install 3.11.9
pyenv local 3.11.9
$(pyenv which python) -m venv venv
source venv/bin/activate
pip install --no-cache-dir .

How to run locally

Each service has its own README file with instructions on how to run it locally.

TODO: Postgres, ChromaDB, Ollama

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published