From 27a7d7be679e1978ab5ceb60af3cfa3be3d72259 Mon Sep 17 00:00:00 2001 From: Jacky Jiang Date: Thu, 25 Jul 2024 00:19:10 +1000 Subject: [PATCH] - set default log level to `warn` to avoid print access log - add `extraction_config` to test-deploy.yaml - update doc --- README.md | 2 +- deploy/magda-embedding-api/values.yaml | 5 ++--- deploy/test-deploy.yaml | 5 ++++- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 8bde32e..7381366 100644 --- a/README.md +++ b/README.md @@ -78,7 +78,7 @@ Kubernetes: `>= 1.21.0` | livenessProbe.periodSeconds | int | `20` | | | livenessProbe.successThreshold | int | `1` | | | livenessProbe.timeoutSeconds | int | `5` | | -| logLevel | string | `info`. | The log level of the application. one of 'fatal', 'error', 'warn', 'info', 'debug', 'trace'; also 'silent' is supported to disable logging. Any other value defines a custom level and requires supplying a level value via levelVal. | +| logLevel | string | `"warn"` | The log level of the application. one of 'fatal', 'error', 'warn', 'info', 'debug', 'trace'; also 'silent' is supported to disable logging. Any other value defines a custom level and requires supplying a level value via levelVal. | | nameOverride | string | `""` | | | nodeSelector | object | `{}` | | | pluginTimeout | int | Default to 10000 (10 seconds). | The maximum amount of time in milliseconds in which a fastify plugin can load. If not, ready will complete with an Error with code 'ERR_AVVIO_PLUGIN_TIMEOUT'. | diff --git a/deploy/magda-embedding-api/values.yaml b/deploy/magda-embedding-api/values.yaml index 9c190eb..508dfd2 100644 --- a/deploy/magda-embedding-api/values.yaml +++ b/deploy/magda-embedding-api/values.yaml @@ -9,9 +9,8 @@ debug: false # -- (string) The log level of the application. # one of 'fatal', 'error', 'warn', 'info', 'debug', 'trace'; # also 'silent' is supported to disable logging. -# Any other value defines a custom level and requires supplying a level value via levelVal. -# @default -- `info`. -logLevel: "info" +# Any other value defines a custom level and requires supplying a level value via levelVal. +logLevel: "warn" # -- (int) The maximum amount of time in milliseconds in which a fastify plugin can load. # If not, ready will complete with an Error with code 'ERR_AVVIO_PLUGIN_TIMEOUT'. diff --git a/deploy/test-deploy.yaml b/deploy/test-deploy.yaml index 020254b..5984d98 100644 --- a/deploy/test-deploy.yaml +++ b/deploy/test-deploy.yaml @@ -19,4 +19,7 @@ appConfig: - name: Xenova/bge-small-en-v1.5 # set quantized to false to use the non-quantized version of the model # by default, the quantized version of the model will be used - quantized: true \ No newline at end of file + quantized: true + extraction_config: + pooling: "mean" + normalize: true \ No newline at end of file