diff --git a/backend/danswer/document_index/vespa/index.py b/backend/danswer/document_index/vespa/index.py index 90751a309fb7..09d7db50482f 100644 --- a/backend/danswer/document_index/vespa/index.py +++ b/backend/danswer/document_index/vespa/index.py @@ -304,6 +304,9 @@ def _index_vespa_chunk( vespa_document_fields[SEMANTIC_IDENTIFIER] = remove_invalid_unicode_chars( cast(str, vespa_document_fields[SEMANTIC_IDENTIFIER]) ) + vespa_document_fields[TITLE] = remove_invalid_unicode_chars( + cast(str, vespa_document_fields[TITLE]) + ) vespa_document_fields[CONTENT] = remove_invalid_unicode_chars( cast(str, vespa_document_fields[CONTENT]) )