From 8e897f18108bc1c097b916919286f53b8e5aed2d Mon Sep 17 00:00:00 2001 From: ArnabChatterjee20k Date: Fri, 29 May 2026 16:05:09 +0530 Subject: [PATCH] updated --- docker-compose.yml | 26 +++++++++---------- .../Http/VectorsDB/Embeddings/Text/Create.php | 2 +- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index da518fb6e9..d3950fb891 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1358,19 +1358,19 @@ services: start_period: 10s command: "postgres" - appwrite-embedding: - image: appwrite/embedding - environment: - EMBEDDING_MODELS: "nomic" - container_name: appwrite-embedding - ports: - - "11430:11434" - restart: unless-stopped - # persistent for caching models across restarts and preloading - volumes: - - embedding_models:/home/embedder/models - networks: - - appwrite + appwrite-embedding: + image: appwrite/embedding + environment: + EMBEDDING_MODELS: "nomic" + container_name: appwrite-embedding + ports: + - "11430:11434" + restart: unless-stopped + # persistent for caching models across restarts and preloading + volumes: + - embedding_models:/home/embedder/models + networks: + - appwrite redis: image: redis:7.4.7-alpine diff --git a/src/Appwrite/Platform/Modules/Databases/Http/VectorsDB/Embeddings/Text/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/VectorsDB/Embeddings/Text/Create.php index 90e477d401..d71715b921 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/VectorsDB/Embeddings/Text/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/VectorsDB/Embeddings/Text/Create.php @@ -107,7 +107,7 @@ class Create extends CreateDocumentAction $results[] = $this->embeddingResult($model, $dimension, $embedding); } } catch (\Exception $e) { - $totalErrors++; + $totalErrors += \count($batch); $this->logError($e, $model, $project, $log, $logger); // One error result per text in the failed batch.