forked from loftyoutcome/k8s-rag-llm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add LLM observability tool Phoenix to QA in a box stack
- Includes doc to run Phoenix locally - Includes doc to run Phoenix in K8s
- Loading branch information
Showing
13 changed files
with
449 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
# phoenix.yaml | ||
# Source: https://docs.arize.com/phoenix/deployment/kubernetes | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
labels: | ||
name: phoenix | ||
name: phoenix | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
app: phoenix | ||
name: phoenix | ||
namespace: phoenix | ||
spec: | ||
ports: | ||
- port: 6006 | ||
protocol: TCP | ||
targetPort: 6006 | ||
selector: | ||
app: phoenix | ||
type: ClusterIP | ||
--- | ||
apiVersion: apps/v1 | ||
kind: StatefulSet | ||
metadata: | ||
name: phoenix | ||
namespace: phoenix | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: phoenix | ||
template: | ||
metadata: | ||
# Assume k8s pod service discovery for prometheus | ||
annotations: | ||
prometheus.io/path: /metrics | ||
prometheus.io/port: "9090" | ||
prometheus.io/scrape: "true" | ||
labels: | ||
app: phoenix | ||
spec: | ||
containers: | ||
- name: phoenix | ||
args: | ||
- -m | ||
- phoenix.server.main | ||
- serve | ||
command: | ||
- python | ||
env: | ||
- name: PHOENIX_WORKING_DIR | ||
value: /mnt/data | ||
- name: PHOENIX_PORT | ||
value: "6006" | ||
# The version of phoenix you want should be used here | ||
image: docker.io/arizephoenix/phoenix:latest | ||
ports: | ||
- containerPort: 6006 | ||
- containerPort: 4317 | ||
- containerPort: 9090 | ||
volumeMounts: | ||
- mountPath: /mnt/data | ||
name: phoenix | ||
volumeClaimTemplates: | ||
- metadata: | ||
name: phoenix | ||
spec: | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 8Gi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
faiss-cpu | ||
fastapi | ||
langchain-huggingface | ||
uvicorn | ||
opentelemetry-api | ||
opentelemetry-instrumentation | ||
opentelemetry-semantic-conventions | ||
opentelemetry-exporter-otlp-proto-http | ||
arize-phoenix | ||
arize-phoenix[evals] | ||
tiktoken | ||
openinference-instrumentation-langchain | ||
nest-asyncio | ||
langchain | ||
langchain_community | ||
opentelemetry-sdk | ||
opentelemetry-exporter-otlp | ||
openai>=1 | ||
langchain-openai | ||
httpx<0.28 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.