Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥
TypeScript aiai-agentsai-crawlerai-scrapingai-searchcrawlerdata-extractionhtml-to-markdownllmmarkdownscraperscrapingweb-crawlerweb-dataweb-data-extractionweb-scraperweb-scrapingweb-searchwebscraping
Update index.ts
Nicolas15b774e9749f
diff --git a/apps/api/src/scraper/WebScraper/index.ts b/apps/api/src/scraper/WebScraper/index.tsindex 0cf001fed..1e285520d 100644--- a/apps/api/src/scraper/WebScraper/index.ts+++ b/apps/api/src/scraper/WebScraper/index.ts@@ -7,7 +7,6 @@ import { getValue, setValue } from "../../services/redis";import { getImageDescription } from "./utils/imageDescription";import { fetchAndProcessPdf } from "./utils/pdfProcessor";import { replaceImgPathsWithAbsolutePaths, replacePathsWithAbsolutePaths } from "./utils/replacePaths";-import OpenAI from 'openai'import { generateCompletions } from "../../lib/LLM-extraction";@@ -83,6 +82,11 @@ export class WebScraperDataProvider {}}+ /**+ * Process documents without cache handling each mode+ * @param inProgress inProgress+ * @returns documents+ */private async processDocumentsWithoutCache(inProgress?: (progress: Progress) => void): Promise<Document[]> {switch (this.mode) {case "crawl":