fixing document response
This commit is contained in:
parent
704a059448
commit
c4cc4b9262
@ -93,8 +93,7 @@ export class WebScraperDataProvider {
|
|||||||
pdfDocuments.push({
|
pdfDocuments.push({
|
||||||
content: pdfContent,
|
content: pdfContent,
|
||||||
metadata: { sourceURL: pdfLink },
|
metadata: { sourceURL: pdfLink },
|
||||||
provider: "web",
|
provider: "web-scraper"
|
||||||
type: "text",
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
links = links.filter((link) => !link.endsWith(".pdf"));
|
links = links.filter((link) => !link.endsWith(".pdf"));
|
||||||
@ -157,8 +156,7 @@ export class WebScraperDataProvider {
|
|||||||
pdfDocuments.push({
|
pdfDocuments.push({
|
||||||
content: pdfContent,
|
content: pdfContent,
|
||||||
metadata: { sourceURL: pdfLink },
|
metadata: { sourceURL: pdfLink },
|
||||||
provider: "web",
|
provider: "web-scraper"
|
||||||
type: "text",
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -188,8 +186,7 @@ export class WebScraperDataProvider {
|
|||||||
pdfDocuments.push({
|
pdfDocuments.push({
|
||||||
content: pdfContent,
|
content: pdfContent,
|
||||||
metadata: { sourceURL: pdfLink },
|
metadata: { sourceURL: pdfLink },
|
||||||
provider: "web",
|
provider: "web-scraper"
|
||||||
type: "text",
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
links = links.filter((link) => !link.endsWith(".pdf"));
|
links = links.filter((link) => !link.endsWith(".pdf"));
|
||||||
|
Loading…
Reference in New Issue
Block a user