From 5a648f34b8c7f31b051dc9b7b94855a9f57a884f Mon Sep 17 00:00:00 2001 From: Sainadh Devireddy Date: Sat, 4 Jan 2025 10:36:33 -0800 Subject: [PATCH] Set pageContent correctly --- src/search/metaSearchAgent.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/search/metaSearchAgent.ts b/src/search/metaSearchAgent.ts index 1e85cf62..ee82c106 100644 --- a/src/search/metaSearchAgent.ts +++ b/src/search/metaSearchAgent.ts @@ -213,9 +213,9 @@ class MetaSearchAgent implements MetaSearchAgentType { new Document({ pageContent: result.content || - this.config.activeEngines.includes('youtube') + (this.config.activeEngines.includes('youtube') ? result.title - : '' /* Todo: Implement transcript grabbing using Youtubei (source: https://www.npmjs.com/package/youtubei) */, + : '') /* Todo: Implement transcript grabbing using Youtubei (source: https://www.npmjs.com/package/youtubei) */, metadata: { title: result.title, url: result.url,