Demo application for giving travel advice written in Python. Observability signals by OpenTelemetry.
Uses OpenAI ChatGPT to generate advice for a given destination.
- Download the latest Weaviate binary from GitHub. Add it to your
PATH
. - Download the latest Dynatrace OpenTelemetry collector binary from GitHub. Add it to your
PATH
.
##### 1. Start Weaviate
set PROMETHEUS_MONITORING_ENABLED=true
weaviate --host 0.0.0.0 --port 8000 --scheme http
##### 2. Configure these variables and Start Collector
##### Token needs: logs.ingest, metrics.ingest and openTelemetryTrace.ingest permissions
set DT_ENDPOINT=https://abc12345.live.dynatrace.com/api/v2/otlp
set API_TOKEN=dt0c01.******.******
dynatrace-otel-collector.exe --config ./run-locally/otelcol-config.yaml
##### Start app
set OPENAI_API_KEY=sk-proj-**********
set WEAVIATE_ENDPOINT=http://localhost:8000
# Disable usage telemetry that is sent to Traceloop
set TRACELOOP_TELEMETRY=false
python app.py
You will need Docker or Podman installed and Helm.
git clone
this repository locally:
git clone https://github.com/dynatrace-perfclinics/obslab-llm-observability
cd traveladvisor
Create a cluster if you do not already have one:
kind create cluster --config .devcontainer/kind-cluster.yml --wait 300s
Customise and set some environment variables
export DT_ENDPOINT=https://abc12345.live.dynatrace.com
export DT_TOKEN=TODO
export OPEN_AI_TOKEN=******
Run the deployment script:
.devcontainer/deployment.sh