Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions deploy/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,12 @@ services:
image: 'chromadb/chroma:latest'
environment:
IS_PERSISTENT: 'TRUE'
healthcheck:
test: [ "CMD", "/bin/bash", "-c", "cat < /dev/null > /dev/tcp/localhost/8000" ]
interval: 15s
timeout: 15s
retries: 15
start_period: 20s
volumes:
- chromadb-data:/data
# ports:
Expand Down
6 changes: 6 additions & 0 deletions deploy/helm/templates/chatbot/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ spec:
args:
- "service"
- {{ .Values.identity.service.name | quote }}
- name: wait-for-chromadb
image: {{ .Values.waitForK8sResources.image }}
imagePullPolicy: {{ .Values.waitForK8sResources.imagePullPolicy }}
args:
- "service"
- {{ .Values.chromadb.service.name | quote }}
containers:
- name: {{ .Values.chatbot.name }}
image: {{ .Values.chatbot.image }}:{{ .Chart.AppVersion }}
Expand Down
8 changes: 8 additions & 0 deletions deploy/k8s/base/chromadb/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: chromadb-config
labels:
app: crapi-chromadb
data:
IS_PERSISTENT: "TRUE"
12 changes: 12 additions & 0 deletions deploy/k8s/base/chromadb/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: crapi-chromadb
labels:
app: crapi-chromadb
spec:
ports:
- port: 8000
name: chromadb
selector:
app: crapi-chromadb
33 changes: 33 additions & 0 deletions deploy/k8s/base/chromadb/statefulset.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: crapi-chromadb
labels:
app: crapi-chromadb
spec:
serviceName: crapi-chromadb
replicas: 1
selector:
matchLabels:
app: crapi-chromadb
template:
metadata:
labels:
app: crapi-chromadb
spec:
containers:
- name: chromadb
image: chromadb/chroma:latest
imagePullPolicy: IfNotPresent
ports:
- containerPort: 8000
envFrom:
- configMapRef:
name: chromadb-config
volumeMounts:
- mountPath: /data
name: chromadb-data
volumes:
- name: chromadb-data
persistentVolumeClaim:
claimName: chromadb-pv-claim
13 changes: 13 additions & 0 deletions deploy/k8s/base/chromadb/storage.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: chromadb-pv-claim
labels:
app: chromadb
spec:
#storageClassName: local-path
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1000Mi
2 changes: 1 addition & 1 deletion services/chatbot/src/chatbot/chat_service.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from uuid import uuid4
from langgraph.graph.message import Messages
from services.chatbot.src.chatbot.retrieverutils import add_to_chroma_collection
from .retrieverutils import add_to_chroma_collection
from .extensions import db
from .langgraph_agent import execute_langgraph_agent

Expand Down
2 changes: 1 addition & 1 deletion services/web/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "crapi-web",
"version": "0.1.0",
"proxy": "https://crapi.allvapps.com",
"proxy": "http://localhost:8888",
"private": true,
"dependencies": {
"@ant-design/cssinjs": "^1.21.1",
Expand Down
Loading