Set pageContent correctly
This commit is contained in:
parent
409c811a42
commit
5a648f34b8
1 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue