diff --git a/package.json b/package.json index e35cd77d..277205ed 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vectara-answer", - "version": "1.6.2", + "version": "1.6.9", "private": true, "dependencies": { "@analytics/google-tag-manager": "^0.5.5", diff --git a/src/utils/deserializeSearchResponse.ts b/src/utils/deserializeSearchResponse.ts index b9e60d67..8558e654 100644 --- a/src/utils/deserializeSearchResponse.ts +++ b/src/utils/deserializeSearchResponse.ts @@ -69,7 +69,7 @@ export const deserializeSearchResponse = ( }, source: document.document_metadata.source, url: document.document_metadata.url, - title: document.document_metadata.title, + title: document.document_metadata.title || text.split(' ').slice(0, 10).join(' '), metadata: document.document_metadata } as DeserializedSearchResult); });