diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..825b51a Binary files /dev/null and b/.DS_Store differ diff --git a/.stfolder/syncthing-folder-18c1bb.txt b/.stfolder/syncthing-folder-18c1bb.txt new file mode 100644 index 0000000..789ce36 --- /dev/null +++ b/.stfolder/syncthing-folder-18c1bb.txt @@ -0,0 +1,5 @@ +# This directory is a Syncthing folder marker. +# Do not delete. + +folderID: wmoge-xmh3x +created: 2026-04-12T14:02:49-07:00 diff --git a/Docker/.DS_Store b/Docker/.DS_Store new file mode 100644 index 0000000..1347c15 Binary files /dev/null and b/Docker/.DS_Store differ diff --git a/Docker/Dockerfile b/Docker/Dockerfile index 4166505..cf900f9 100644 --- a/Docker/Dockerfile +++ b/Docker/Dockerfile @@ -5,7 +5,7 @@ ENV PYTHONUNBUFFERED=1 WORKDIR /app -COPY ./requirements.txt . +COPY ./Docker/requirements.txt . RUN apt-get update && apt-get install -y --no-install-recommends \ build-essential \ @@ -16,8 +16,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ RUN pip install --no-cache-dir --upgrade pip RUN pip install --no-cache-dir -r requirements.txt -COPY ./protos ./protos -COPY ./src ./src +COPY ./Docker/protos ./protos +COPY ./Docker/src ./src RUN python -m grpc_tools.protoc \ --proto_path=./protos \ @@ -25,10 +25,15 @@ RUN python -m grpc_tools.protoc \ --grpc_python_out=./src \ ./protos/brunix.proto -COPY entrypoint.sh /entrypoint.sh +# Classifier retraining pipeline (ADR-0010) +RUN mkdir -p /app/scripts/pipelines/classifier +COPY ./scripts/pipelines/classifier/retrain_pipeline.py /app/scripts/pipelines/classifier/ +COPY ./scripts/pipelines/classifier/seed_classifier_dataset.jsonl /app/scripts/pipelines/classifier/ + +COPY ./Docker/entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh EXPOSE 50051 EXPOSE 8000 -ENTRYPOINT ["/entrypoint.sh"] \ No newline at end of file +ENTRYPOINT ["/entrypoint.sh"] diff --git a/Docker/docker-compose.yaml b/Docker/docker-compose.yaml index 25f4af7..8b044d2 100644 --- a/Docker/docker-compose.yaml +++ b/Docker/docker-compose.yaml @@ -2,7 +2,9 @@ version: '3.8' services: brunix-engine: - build: . + build: + context: .. + dockerfile: Docker/Dockerfile container_name: brunix-assistance-engine ports: - "50052:50051" @@ -25,6 +27,12 @@ services: CLASSIFIER_EXPORT_DIR: ${CLASSIFIER_EXPORT_DIR} CLASSIFIER_MODEL_PATH: ${CLASSIFIER_MODEL_PATH} CLASSIFIER_CONFIDENCE_THRESHOLD: ${CLASSIFIER_CONFIDENCE_THRESHOLD} + RETRAIN_ON_EXPORT: ${RETRAIN_ON_EXPORT} + RETRAIN_SCRIPT_PATH: ${RETRAIN_SCRIPT_PATH} + CLASSIFIER_ARCHIVE_DIR: ${CLASSIFIER_ARCHIVE_DIR} + CLASSIFIER_SEED_DATASET: ${CLASSIFIER_SEED_DATASET} + CLASSIFIER_MIN_CV_ACCURACY: ${CLASSIFIER_MIN_CV_ACCURACY} + CLASSIFIER_HELD_OUT_RATIO: ${CLASSIFIER_HELD_OUT_RATIO} PROXY_THREAD_WORKERS: 10 extra_hosts: diff --git a/Docker/src/.DS_Store b/Docker/src/.DS_Store new file mode 100644 index 0000000..559e260 Binary files /dev/null and b/Docker/src/.DS_Store differ diff --git a/docs/.DS_Store b/docs/.DS_Store new file mode 100644 index 0000000..2ddd88b Binary files /dev/null and b/docs/.DS_Store differ diff --git a/docs/LRM/.DS_Store b/docs/LRM/.DS_Store new file mode 100644 index 0000000..31eaad5 Binary files /dev/null and b/docs/LRM/.DS_Store differ diff --git a/scripts/.DS_Store b/scripts/.DS_Store new file mode 100644 index 0000000..a4c6ec5 Binary files /dev/null and b/scripts/.DS_Store differ diff --git a/scripts/pipelines/.DS_Store b/scripts/pipelines/.DS_Store new file mode 100644 index 0000000..5389db1 Binary files /dev/null and b/scripts/pipelines/.DS_Store differ diff --git a/scripts/pipelines/ingestion/.DS_Store b/scripts/pipelines/ingestion/.DS_Store new file mode 100644 index 0000000..233258a Binary files /dev/null and b/scripts/pipelines/ingestion/.DS_Store differ