Skip to content

Commit

Permalink
Set pageContent correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Sainadh Devireddy committed Jan 4, 2025
1 parent 409c811 commit 5a648f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/search/metaSearchAgent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 5a648f3

Please sign in to comment.