From ef678b5238f4de72291f40cdce5f6f74a119be28 Mon Sep 17 00:00:00 2001 From: Anupam Kumar Date: Mon, 6 Oct 2025 17:15:46 +0200 Subject: [PATCH 1/2] fix: ensure the decoded text from the document is utf-8 compat Signed-off-by: Anupam Kumar --- context_chat_backend/chain/ingest/doc_loader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/context_chat_backend/chain/ingest/doc_loader.py b/context_chat_backend/chain/ingest/doc_loader.py index a692f62..efb81b6 100644 --- a/context_chat_backend/chain/ingest/doc_loader.py +++ b/context_chat_backend/chain/ingest/doc_loader.py @@ -129,7 +129,7 @@ def decode_source(source: UploadFile) -> str | None: if _loader_map.get(mimetype): result = _loader_map[mimetype](source.file) source.file.close() - return result + return result.encode('utf-8', 'ignore').decode('utf-8', 'ignore') result = source.file.read().decode('utf-8', 'ignore') source.file.close() From 98cd6f9e52a813c40ad2d1b0be31751cfbeaa158 Mon Sep 17 00:00:00 2001 From: Anupam Kumar Date: Mon, 6 Oct 2025 17:39:06 +0200 Subject: [PATCH 2/2] fix: use php82 for NC server master Signed-off-by: Anupam Kumar --- .github/workflows/integration-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index 474534d..881abe8 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -61,7 +61,7 @@ jobs: # do not stop on another job's failure fail-fast: false matrix: - php-versions: [ '8.1' ] + php-versions: [ '8.2' ] databases: [ 'pgsql' ] server-versions: [ 'stable32', 'master' ]